Hello Igor,

Wednesday, July 9, 2008, 3:22:46 PM, you wrote:

IT> Shane Harrelson
IT> <[EMAIL PROTECTED]> wrote:
>> Without creating a .DEF file for MSVC to use, you need to tell it
>> which functions to "export".
>> The easiest way to do this is with the __declspec(dllexport).

IT> I assumed the OP was doing this. Anyway, __declspec(dllexport) always 
IT> results in a decorated name being exported.

IT> Igor Tandetnik 



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

/*
** 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.

-- 
Best regards,
 Teg                            mailto:[EMAIL PROTECTED]

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

Reply via email to