Click here to Skip to main content
15,896,154 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to give a run time struct definition Pin
gumber21-Apr-03 22:38
gumber21-Apr-03 22:38 
AnswerRe: How to give a run time struct definition Pin
Phil Hamer22-Apr-03 12:57
Phil Hamer22-Apr-03 12:57 
GeneralRe: how to input a xml file in vc++ project ? Pin
Joaquín M López Muñoz21-Apr-03 22:29
Joaquín M López Muñoz21-Apr-03 22:29 
Generaltvn_selchanging message Pin
JensB21-Apr-03 21:31
JensB21-Apr-03 21:31 
GeneralRe: tvn_selchanging message Pin
Phil Hamer22-Apr-03 13:00
Phil Hamer22-Apr-03 13:00 
GeneralBrodcast a message when settings are changed Pin
Mathias S.21-Apr-03 21:28
Mathias S.21-Apr-03 21:28 
GeneralRe: Brodcast a message when settings are changed Pin
David Crow22-Apr-03 5:30
David Crow22-Apr-03 5:30 
QuestionHow to send CString with SendMessage Pin
Vassili21-Apr-03 20:57
Vassili21-Apr-03 20:57 
Hi all,

does anybody know what the exact syntax is for sending a CString variable with SendMessage? I have tried every thing you can imagine:

UINT MyThread(LPVOID arg)
{
HWND hMain = (HWND) arg;
CString text;

text = "Hello";
SendMessage(hMain, WM_SEND_HELLO, 0, (LPARAM &) text);
}

LRESULT CMyDlg::OnSendHello(WPARAM wParam, LPARAM lParam)
{
CString* text = (CString *) lParam;

return 0;
}
What is wrong with this code?

AnswerRe: How to send CString with SendMessage Pin
puzzolino21-Apr-03 21:12
puzzolino21-Apr-03 21:12 
AnswerRe: How to send CString with SendMessage Pin
John R. Shaw22-Apr-03 17:22
John R. Shaw22-Apr-03 17:22 
GeneralHp openview Pin
zhixiong21-Apr-03 20:42
zhixiong21-Apr-03 20:42 
GeneralDebugging.. Pin
vikramlinux21-Apr-03 20:37
vikramlinux21-Apr-03 20:37 
GeneralUTF-8 Conversion Pin
vikramj21-Apr-03 20:11
vikramj21-Apr-03 20:11 
GeneralWant to write a tool to analyze log file of IIS. Pin
George221-Apr-03 19:41
George221-Apr-03 19:41 
GeneralEnabling Menu Items Pin
AnkushChopra21-Apr-03 19:14
AnkushChopra21-Apr-03 19:14 
GeneralRe: Enabling Menu Items Pin
21-Apr-03 20:07
suss21-Apr-03 20:07 
GeneralRe: Enabling Menu Items Pin
AnkushChopra23-Apr-03 22:16
AnkushChopra23-Apr-03 22:16 
GeneralRe: Enabling Menu Items Pin
Phil Hamer22-Apr-03 13:04
Phil Hamer22-Apr-03 13:04 
GeneralRe: Enabling Menu Items Pin
AnkushChopra23-Apr-03 22:19
AnkushChopra23-Apr-03 22:19 
GeneralRe: Enabling Menu Items Pin
Toni7822-Apr-03 19:38
Toni7822-Apr-03 19:38 
GeneralRefer to Help Pin
Toni7822-Apr-03 19:41
Toni7822-Apr-03 19:41 
GeneralIgnore my message...Sorry Pin
Toni7822-Apr-03 21:16
Toni7822-Apr-03 21:16 
GeneralI set a global hook,But can use SAPI to speak the word typed! Pin
white jungle21-Apr-03 19:09
white jungle21-Apr-03 19:09 
GeneralAbout serial communication Pin
maggiet21-Apr-03 17:49
maggiet21-Apr-03 17:49 
GeneralRe: About serial communication Pin
John R. Shaw22-Apr-03 18:33
John R. Shaw22-Apr-03 18:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.