User forums > Help

GetProcAddress problem

<< < (2/3) > >>

thomas:
No, no... I did not mean it that way. I meant to say that this is the "school book way" or "cook book way" of installing a hook, just like you will probably find it on MSDN -- so it should certainly work.

You don't happen to strip the library?

MarshMan1101:
It's not striped. I wen't to the build options and the only thing I checked was Optimize generated code (for size).

TDragon:
Do you know for certain "DLL_EXPORT" is defined as "__declspec(dllexport)"?

MarshMan1101:
#ifdef BUILD_DLL
    #define DLL_EXPORT __declspec(dllexport)
#else
    #define DLL_EXPORT
#endif

and yes, BUILD_DLL is defined.

I did this many times with Dev-C++ before without any issues, so I figure its some option in Code::Blocks that I'm missing, except I can't figure out what it is.

thomas:
You should post the complete build log for the library, so we can see what options are passed to the compiler/linker (set logging to "full commandline" in compiler options if you haven't done so anyway).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version