Mixed types problem
-
I create a "Windows Form Application" projects that names p2pport. Dlg is my form file name. The following two lines are in Dlg.h. struct sockaddr_in addrLoop; CClient *cnList[5]; But it comes some errors. error C4368: cannot define 'addrLoop' as a member of managed 'p2pport::Dlg': mixed types are not supported error C4368: cannot define 'cnList' as a member of managed 'p2pport::Dlg': mixed types are not supported Do anybody know what's wrong? Appreciate your reply. Thx.
-
I create a "Windows Form Application" projects that names p2pport. Dlg is my form file name. The following two lines are in Dlg.h. struct sockaddr_in addrLoop; CClient *cnList[5]; But it comes some errors. error C4368: cannot define 'addrLoop' as a member of managed 'p2pport::Dlg': mixed types are not supported error C4368: cannot define 'cnList' as a member of managed 'p2pport::Dlg': mixed types are not supported Do anybody know what's wrong? Appreciate your reply. Thx.
minihotto wrote:
Do anybody know what's wrong?
Yes, mixed types are not supported. If you had studied C++/CLI, this means reading things likes books and articles you would know what that means. There is actually a great series of introductory articles on the subject right here on Code Project. I suggest you read them.
-
minihotto wrote:
Do anybody know what's wrong?
Yes, mixed types are not supported. If you had studied C++/CLI, this means reading things likes books and articles you would know what that means. There is actually a great series of introductory articles on the subject right here on Code Project. I suggest you read them.