first of all....
please excuse me for being so stupid....
secondly, im using dev-cpp, and im compiling... ummm.... normally....
i make the output dll and object files to another directory where my...
Type: Posts; User: seec77
first of all....
please excuse me for being so stupid....
secondly, im using dev-cpp, and im compiling... ummm.... normally....
i make the output dll and object files to another directory where my...
damn...
then WSAStartup uses LoadLibrary?
damn...
so how can i go about doing this???
btw, i do think DllMain is only called if you use the LoadLibrary function to open it, and not just do a ...
ok... this is really weird....
i just understood that my DllMain function isn't even called! :eek:
first of all i tried putting the winsock initialization code in the body of the function and it...
weird...
it didn't work...
i put the initialization code inside the process_attach, and when i ran the program, it went kaboom
then, when i put the initialization code inside the first function...
i'd rather go with Codeplug's suggestion....
thank you both!!!
:D
p.s.
what is "gg"?!?!
i want to do some initializing when a dll is loaded.... this is my dll of course, and what i want to do is actually initialize winsock...
ok...
this is my code for DllMain:
BOOL APIENTRY...
uhh.... sorry if this is a stupid question, but if you guys do get to get a lan party going, are you going to do anything c++ related? otherwise it won't be speacial to CProgramming... imo
right, thanks for moving it!
i would have done the quizes, but i'm kinda busy in the next week (turning 13 and im jewish so i have a bar-mitzva, tons to remember).....
the quizes were kinda missing...
i have just finished reading the last tutorial (20) and i am really wating for the next ones (i noticed the next one will be bout binary trees again, oh well)... when are you going to make new...