C programming?

Started by Farabi, March 30, 2005, 06:27:00 PM

Previous topic - Next topic

Farabi

I made my own dll and I want to use it on C++ application. How to do it?
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

Vortex

The most important is to declare correctly the external C functions:

#ifdef __cplusplus
extern "C" {
#endif

extern int yourfunction(int x,int y);
// other function declarations


#ifdef __cplusplus
}
#endif


Second, you must add your import library ( concerning your DLL ) to the project.