Link to home
Start Free TrialLog in
Avatar of kirannapit
kirannapit

asked on

Linker problem with Gethostbyname in mfc

hi,
    i have included "winsock2.h" in implemtation file using gethostbyname function,still it gives linker error as cannot resolve gethostbyname@4 error.
The same fucntion works in sample application in MFC and also VB , also there is i think winsock2 verion on my pc.
what to do ?
kiran
ASKER CERTIFIED SOLUTION
Avatar of vascov
vascov
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
it should "link" fine    
(not "compile" :)
Hi kiran,

Is it working for you ?

Did this help ?
Hi kirannapit,
I think i should be awarded the points. My tip was probably the cause.

Vasco