Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return Value of 9240577 from Win32 DLL

Status
Not open for further replies.

raochetan

Programmer
Aug 20, 2001
62
IN
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:
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, &quot;initialized Map Variables&quot;, &quot;DLL&quot;, 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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top