Click here to Skip to main content
15,898,134 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralMultiple DllImportAttribute Statements Problem Pin
Chikky17-Mar-05 12:21
Chikky17-Mar-05 12:21 
GeneralRe: Multiple DllImportAttribute Statements Problem Pin
Chikky24-Mar-05 11:43
Chikky24-Mar-05 11:43 
Generalclosing a form/dialog Pin
doneirik16-Mar-05 1:36
doneirik16-Mar-05 1:36 
GeneralRe: closing a form/dialog Pin
Christian Graus16-Mar-05 15:43
protectorChristian Graus16-Mar-05 15:43 
GeneralRe: closing a form/dialog Pin
Anonymous18-Mar-05 20:58
Anonymous18-Mar-05 20:58 
QuestionCan i write a Dialog Based Program on DLL Pin
popo8414-Mar-05 15:47
popo8414-Mar-05 15:47 
AnswerRe: Can i write a Dialog Based Program on DLL Pin
User 91483328-Mar-05 12:02
User 91483328-Mar-05 12:02 
Generalerror C2061: syntax error : identifier 'SocketChatClient' Pin
neo_coder14-Mar-05 10:35
neo_coder14-Mar-05 10:35 
Hi there, can someone tell me where' a syntax error in that code on line 16.

<br />
#pragma once<br />
<br />
using namespace System;<br />
using namespace System::Windows::Forms;<br />
using namespace System::Collections;<br />
using namespace System::Net;<br />
using namespace System::Net::Sockets;<br />
using namespace System::Data::Odbc;<br />
using namespace System::Text;<br />
<br />
#include "MessagesCodes.h"<br />
#include "Utilities.h"<br />
<br />
__gc class CServer<br />
	{<br />
	public:<br />
		CServer(TextBox* p_txtServerEvents, TextBox* p_txtUsersMessages);<br />
		~CServer(void);<br />
<br />
		void DecodeMsg(SocketChatClient* p_client, String* p_msg);  // Here's the problem<br />
<br />
		String* GetServerName();<br />
		String* GetServerAddress();<br />
		int GetServerPort();<br />
<br />
		bool GetHost();<br />
		void CreateSocket();<br />
<br />
		void OnConnectRequest(IAsyncResult* p_ar);<br />
		void NewConnection(Socket* p_clientSocket);<br />
		void OnReceivedData(IAsyncResult* p_ar);<br />
<br />
	private:<br />
		String* m_hostName;<br />
		IPAddress* m_addr;<br />
		const static int PORT= 3050;<br />
		Socket* m_serverSocket;<br />
		ArrayList* m_arrClients;<br />
		TextBox* m_txtServerEvents;<br />
		TextBox* m_txtUsersMessages;<br />
<br />
	// Internal class that will contain the information of a client.<br />
	__gc class SocketChatClient<br />
		{<br />
		public:<br />
			SocketChatClient(Socket* p_sock);<br />
<br />
			Socket* GetSock() { return m_sock; }<br />
			void SetupReceiveCallback(CServer* p_server);<br />
			Byte GetReceivedData(IAsyncResult* p_ar)[];<br />
<br />
		private:<br />
			Socket* m_sock;<br />
			Byte m_byBuff[];<br />
		};<br />
	};<br />


I think the problem is that the compiler don't see the internal class SocketChatClient but I don't know how to correct it.

--------------
The Thruth Is Out There
GeneralRe: error C2061: syntax error : identifier 'SocketChatClient' Pin
Steve Mayfield14-Mar-05 12:17
Steve Mayfield14-Mar-05 12:17 
GeneralRe: error C2061: syntax error : identifier 'SocketChatClient' Pin
neo_coder15-Mar-05 2:32
neo_coder15-Mar-05 2:32 
GeneralUsing MFC within a .NET application Pin
skonopa14-Mar-05 10:25
skonopa14-Mar-05 10:25 
GeneralRe: Using MFC within a .NET application Pin
Sheng Jiang 蒋晟15-Mar-05 17:43
Sheng Jiang 蒋晟15-Mar-05 17:43 
GeneralRe: Using MFC within a .NET application Pin
skonopa22-Mar-05 4:06
skonopa22-Mar-05 4:06 
GeneralRe: Using MFC within a .NET application Pin
Sheng Jiang 蒋晟22-Mar-05 4:17
Sheng Jiang 蒋晟22-Mar-05 4:17 
GeneralRe: Using MFC within a .NET application Pin
skonopa22-Mar-05 7:31
skonopa22-Mar-05 7:31 
GeneralRe: Using MFC within a .NET application Pin
skonopa23-Mar-05 5:37
skonopa23-Mar-05 5:37 
GeneralRe: Using MFC within a .NET application Pin
Sheng Jiang 蒋晟23-Mar-05 8:05
Sheng Jiang 蒋晟23-Mar-05 8:05 
GeneralRe: Using MFC within a .NET application Pin
sunhui1-Jun-05 17:54
sunhui1-Jun-05 17:54 
GeneralLoad custom User control (at runtime) Pin
Lythimer14-Mar-05 10:24
Lythimer14-Mar-05 10:24 
Generalvirtual memory Pin
mpapeo13-Mar-05 22:21
mpapeo13-Mar-05 22:21 
QuestionHow to input and output chinese Pin
ckhung11-Mar-05 9:06
ckhung11-Mar-05 9:06 
AnswerRe: How to input and output chinese Pin
toxcct22-Mar-05 4:16
toxcct22-Mar-05 4:16 
GeneralDirectX MC++ Sprites fail to present Pin
sdnoonan10-Mar-05 18:17
sdnoonan10-Mar-05 18:17 
GeneralInter Process comunication Pin
lightKnight9-Mar-05 18:31
lightKnight9-Mar-05 18:31 
General2.0 beta-1 IDE Pin
TFB9-Mar-05 6:47
TFB9-Mar-05 6:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.