Teg <[EMAIL PROTECTED]> wrote:
> /*
> ** Make sure we can call this stuff from C++.
> */
> #ifdef __cplusplus
> extern "C" {
> #endif
>
> __declspec(dllexport) HANDLE APIENTRY PI_Test(const char* pszFilename)
> {
>        return(NULL);
> }
>
> #ifdef __cplusplus
> }
> #endif
>
> __declspec(dllexport) HANDLE APIENTRY PI_TestEx(const char*
> pszFilename) {
>        return(NULL);
> }
>
>
> The first one isn't decorated, the second one is.

Have you actually tried it? Build a DLL with this code, check with 
Dependency Walker. These two functions get exported under the following 
names:

[EMAIL PROTECTED]
?PI_TestEx@@[EMAIL PROTECTED]

The first name is decorated, the second is mangled (there's a difference 
between these two things, but it doesn't matter in this context where 
all you want is to get an exported name exactly as it is in your code).

Igor Tandetnik



_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to