Hi Seewan,
"Toondalis" <se****@surreal.com.sg> schrieb im Newsbeitrag
news:49**************************@posting.google.c om...
I am now extending a Program that is written in C thru DLL. The Main
program will call functions in my DLL . The problem is that i wanted
to write my extenstion in C++ instead of C , How can it be done?
That's simple. You just encapsulate the block with API functions in an "
extern "C" { ... } " block. :-)
Or declare only the APIs as having C linkage:
extern "C" void __declspec(dllexport) MyGreatAPIFunction( void*
argument ) {
// do C++ stuff
}
I hope that helps! :-)
regards,
Ekkehard Morgenstern.