Re: [sqlite] problem compiling loadable extensions using VisualStudio

2008-07-09 Thread Teg
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,
 Tegmailto:[EMAIL PROTECTED]

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


Re: [sqlite] problem compiling loadable extensions using VisualStudio

2008-07-09 Thread Igor Tandetnik
Shane Harrelson
<[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).

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

Igor Tandetnik 



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