Advertisement

1 - 10 of 27 containing alltags:("lpstr") (0 seconds)
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, ...
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...
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.....
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...
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
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...
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...
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...
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
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.
Zones: Windows MFCDate Answered: 04/11/2000 Grade: B Views: 34