winsock.h or winsock2.h can i choose? Topic is solved
winsock.h or winsock2.h can i choose?
Hi,
I'm developping a small project under windows with visual studio 2005.
I am using a librairie in my project which uses winsock2.h
But the wxWidget part of the project use winsock.h and of course there are issues and compil time errors.
What is the difference between winsock.h and winsock2.h? Are they 2 completely different things or just updates? Is it possible to set wxWidgets to use winsock2.h? can it work with it?
thank you
I'm developping a small project under windows with visual studio 2005.
I am using a librairie in my project which uses winsock2.h
But the wxWidget part of the project use winsock.h and of course there are issues and compil time errors.
What is the difference between winsock.h and winsock2.h? Are they 2 completely different things or just updates? Is it possible to set wxWidgets to use winsock2.h? can it work with it?
thank you
well i tried but...
If the part of the project that i was looking for can compil, the main project gives:
do you know how to solve that ones?
If the part of the project that i was looking for can compil, the main project gives:
Code: Select all
hello.obj : error LNK2001: unresolved external symbol "public: virtual class wxClassInfo * __thiscall wxEvtHandler::GetClassInfoW(void)const " (?GetClassInfoW@wxEvtHandler@@UBEPAVwxClassInfo@@XZ)
TestFrame.obj : error LNK2001: unresolved external symbol "public: virtual class wxClassInfo * __thiscall wxEvtHandler::GetClassInfoW(void)const " (?GetClassInfoW@wxEvtHandler@@UBEPAVwxClassInfo@@XZ)
TestFrame.obj : error LNK2001: unresolved external symbol "public: virtual class wxClassInfo * __thiscall wxGDIObject::GetClassInfoW(void)const " (?GetClassInfoW@wxGDIObject@@UBEPAVwxClassInfo@@XZ)
Actually... i have never used that before...
But i tried, i had in the two classes (.h file) deriving from a wxWidgets class and in their cpp files.
Then it does.... nothing!
Still have exactly the same errors. I also tried with and same result!
But i tried, i had
Code: Select all
DECLARE_CLASS(class);
Code: Select all
IMPLEMENT_CLASS(classname, baseclass)
Then it does.... nothing!
Still have exactly the same errors. I also tried with
Code: Select all
DECLARE_DYNAMIC_CLASS