I have the function below which is expecting a LPSTR, so it can populate it.
I want to pass in std::string.
GetSelString(LPSTR str, int maxChars);
eg
std::string str;
GetSelString(str, ...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_21308010.html
Zones:
C++Date Answered: 02/09/2005 Grade: A Views: 0
I need to convert from char[] to LPSTR. Is it tecnically correct to do this way:
char Source[25] = {"\0"}; //is this the correct way to initialise it?
strcpy(Source, "TEST") ;
TV_INSERTSTRUCT T...
http://www.experts-exchange.com/Programming/System/Windows__Programming/MFC/Q_10042982.htm...
Zones:
Windows MFCDate Answered: 03/21/1998 Grade: B Views: 11
Hi guys,
How r all of u? I have a function that takes in a LPSTR parameter as in MyFunction (LPSTR str, LPSTR str2)
and my problem is I have to pass in a class member of type CString in to it.....
http://www.experts-exchange.com/Programming/System/Windows__Programming/MFC/Q_10076009.htm...
Zones:
Windows MFCDate Answered: 08/28/1998 Grade: A Views: 4
I am trying to get this function:
DllExport HRESULT WINAPI readrtf (LPSTR lpProfileName, LPSTR lpMsgIDSrc, LPSTR lpStoreIDSrc, LPSTR *lpRTF)
to run from my C# code. I am using this statement...
http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_20644601.html
Zones:
C#Date Answered: 08/03/2004 Grade: A Views: 0
I have a function that requires an LPSTR as a value. I have the value in a CString. How do I feed my CString into that function?
Thanks, Justin
http://www.experts-exchange.com/Programming/System/Windows__Programming/MFC/Q_20721493.htm...
Zones:
Windows MFCDate Answered: 08/27/2003 Grade: A Views: 0
Hi all,
I want to assing a string of LPSTR type to BSTR.
As im new to VC++ plz give me all possible ways to do this.
I have tried with x= (BSTR) y;
But its not assinging it.
Thx in adv...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20783903.html
Zones:
C++Date Answered: 01/23/2004 Grade: B Views: 4
I get memory access error every time I type more than 20 characters in the edit control.
Here's the code:
wstring to;
GetDlgItemText( hWnd, IDC_EDIT_TO, (LPSTR) to.c_str(), 150 );
Error o...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20945077.html
Zones:
C++Date Answered: 04/06/2004 Grade: A Views: 4
Hi All,
I'm creating an ActiveX plugin for IE browser hook the print driver window. Where I have to set some values to the driver after getting its reference. I need to pass these values from Ja...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_21003334.html
Zones:
C++,
Plug InsDate Answered: 06/23/2004 Grade: B Views: 0
Hello Expert
Please tell me how to convert a CString variable into LPSTR and vice versa.
Regards
Akhil
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VisualC_PLUS_PLU...
Zones:
MS Visual C++Date Answered: 11/07/2005 Grade: A Views: 178
How do I convert a CString to a LPSTR?
CString ctmp = "Hello";
LPSTR tmp = ctmp;
The above will not compile.
http://www.experts-exchange.com/Programming/System/Windows__Programming/MFC/Q_10326501.htm...
Zones:
Windows MFCDate Answered: 04/11/2000 Grade: B Views: 34