sasi_kumar_irtt
December 7th, 2006, 04:46 AM
Dear all,
I wanted to display a string using ExtTextOut
I declared a map with int and string.
Later i copied the string value to a 'temp' varaible which is declared as below
string temp[10]
then i wished to display the string using ExtTextOut
I called ExtTextOut as follows
ExtTextOut((hDc,x,y,0,NULL,(LPCWSTR)temp[j].c_str(),strlen(temp[j].c_str(),),NULL);
But i got run time access violation what could be wrong and help me how to correct it
Tx
Sasi
I wanted to display a string using ExtTextOut
I declared a map with int and string.
Later i copied the string value to a 'temp' varaible which is declared as below
string temp[10]
then i wished to display the string using ExtTextOut
I called ExtTextOut as follows
ExtTextOut((hDc,x,y,0,NULL,(LPCWSTR)temp[j].c_str(),strlen(temp[j].c_str(),),NULL);
But i got run time access violation what could be wrong and help me how to correct it
Tx
Sasi