|
From: <or...@vp...> - 2004-08-29 20:18:33
|
Noorez Kassam wrote: > for functions in dlls, do I need to use the __declspec (dllexport) =20 > for both the declaration and definition of the function to compile the=20 > dll correctly or is it ok in just one place. If it's just one place=20 > where do I need it? It is enough in the declaration. (Don't forget that it's need to be __declspec(dllimport) when using the D= LL! - can be done=20 with some macro mumbo-jumbo) As a side note, if you are sure, that you will never use any compiler apa= rt from GCC, then=20 this __declspec() stuff is not needed at all, as far as I know, because= GCC can=20 auto-import symbols. Have to read more on this myself, I just wanted you = to know about it. -- Greetings, Bal=E1zs |