B
Badrinath Mohan
Hi Guys
I am calling a simple win32 dll from a C# application.
Say the function is GetLastErrorString(BSTR *pstr)
the C#client calls it as
[DllImport("..\\..\\..\\ClientDll\\Debug\\ClientDll.dll",EntryPoint="?GetLas
tErrorString@@YAHPAPAG@Z")]
static extern int GetLastErrorString(ref string pStrErrorCode);
CLIENTDLL_API int GetLastErrorString(BSTR *pszErrorCode)
{
return gOcr.GetLastErrorString(pszErrorCode);
}
the pszErrorCode contains "Operation Success"
C# function is
string strerror=" ";
int ns = GetLastErrorString(ref strerror);
but it contains Just "O" the others are missing???
Why?
Expecting replies
Badrinath
I am calling a simple win32 dll from a C# application.
Say the function is GetLastErrorString(BSTR *pstr)
the C#client calls it as
[DllImport("..\\..\\..\\ClientDll\\Debug\\ClientDll.dll",EntryPoint="?GetLas
tErrorString@@YAHPAPAG@Z")]
static extern int GetLastErrorString(ref string pStrErrorCode);
CLIENTDLL_API int GetLastErrorString(BSTR *pszErrorCode)
{
return gOcr.GetLastErrorString(pszErrorCode);
}
the pszErrorCode contains "Operation Success"
C# function is
string strerror=" ";
int ns = GetLastErrorString(ref strerror);
but it contains Just "O" the others are missing???
Why?
Expecting replies
Badrinath