i want to send a string to my vc dll from vb
when vc writes to the file the text is not the same as what was sent from vb,
basicly i want to go from a lpstr from vb to a c++ character array
void __stdcall FillString(LPSTR pszString)
{
// Create a temp buffer with our string
char buffer[256];
strcpy(buffer,pszString);
ofstream SaveFile("test.txt"
SaveFile << buffer;
SaveFile.close();
}
when vc writes to the file the text is not the same as what was sent from vb,
basicly i want to go from a lpstr from vb to a c++ character array
void __stdcall FillString(LPSTR pszString)
{
// Create a temp buffer with our string
char buffer[256];
strcpy(buffer,pszString);
ofstream SaveFile("test.txt"
SaveFile << buffer;
SaveFile.close();
}