Jump to content
xisto Community
Sign in to follow this  
khalilov

P2p Chat Using Visual C

Recommended Posts

At the beginning I was going to make my P2P chat project using pure C/C++ (black console). But we were informed that we can use visual C. So I have a question

// adad.cpp : main project file.#include "stdafx.h"#include "Form1.h"using namespace adad;[STAThreadAttribute]int main(array<System::String ^> ^args){	// Enabling Windows XP visual effects before any controls are created	Application::EnableVisualStyles();	Application::SetCompatibleTextRenderingDefault(false); 	// Create the main window and run it	Application::Run(gcnew Form1());	Form1 a;	return 0;}

How do I make Form1 a appear? putting it in the Application::Run command gives the following error

Error	1	error C2665: 'System::Windows::Forms::Application::Run' : none of the 3 overloads could convert all the argument types	c:\Users\pc\Documents\Visual Studio 2005\Projects\adad\adad\adad.cpp	18

Also an advice, I haven't used visual before so what best type would suit a P2P chat (similar to IRC) project? I am going with Windows Forms Application.
My basic idea is:

Main page:
Username/Password/Login button/Signup button
Sub pages:
Login successful / Registration forum etc...
Key pages:
Listing all active accounts and active chats. When you click on chat/account you start chatting ( a special form for chatting is shown)

Is such a thing possible in one application?

Note: This is a big project, so I can't use any 3rd party or any premade libraries that provide with the functions for visual P2P chat, I have to make everything. And so far, it's going well 8)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.