I am trying to implement a win32/winapi client with winsock to connect to a server program.
What is the best way to integrate the winsock functions/etc with winapi?
For ex. Where should i declare my wsadata? In the winmain? Above winmain?
Using another thread? (_beginthreadex?)
Should I separate my main.cpp into multiple files? If so, how would i go about this? Which parts are appropriate to separate?
I know all of this syntax but have no idea how to implement them correctly.
Here is my code at the moment, but im not sure if it is being implemented correctly?
Youll see some code constructing an email object, just ignore it.
Also can anyone review my code for criticism?
Im a learner and I want to get criticised.
Lines to look at: 562, 172, 50, 39, 40
Also, is my implementation of textboxes, and retrieveing their data correct?
It all works, but i want to do this the Right Way.
Thanks all for the help!