Hi All,
I have created a simple Win32 DLL wherin i have used the STL classes namenly string, vector and map.
The Dll is called from a MapBasic Program (Similar to VB in Syntax), it returns a value 9240577 because of runtime error. I have been able to trace the point where the Dll is returning could not identify the reason.
The code is below:
The Program did not display the 2nd MessageBox. Can anyone suggest what is wrong in the code.
PS: ltstr is structure as below
Thanks in advance
raochetan
I have created a simple Win32 DLL wherin i have used the STL classes namenly string, vector and map.
The Dll is called from a MapBasic Program (Similar to VB in Syntax), it returns a value 9240577 because of runtime error. I have been able to trace the point where the Dll is returning could not identify the reason.
The code is below:
Code:
MessageBox(NULL, "Operation Succesful", "DLL", MB_ICONINFORMATION);
int size = recRawInfo.size();
int index = 0;
string cellid("");
map<const char *, char *, ltstr> points; // To store all the points of a cell
map<const char *, const char *, ltstr> SSpoints; // To store System information of the site
MessageBox(NULL, "initialized Map Variables", "DLL", MB_ICONINFORMATION);
The Program did not display the 2nd MessageBox. Can anyone suggest what is wrong in the code.
PS: ltstr is structure as below
Code:
struct ltstr {
bool operator() (const char *s1, const char *s2) const
{
return strcmp(s1, s2) < 0;
}
};
Thanks in advance
raochetan