Click here to Skip to main content
15,901,205 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCompiler limit Pin
dellthinker16-Jul-07 13:24
dellthinker16-Jul-07 13:24 
AnswerRe: Compiler limit Pin
Stephen Hewitt16-Jul-07 14:02
Stephen Hewitt16-Jul-07 14:02 
AnswerRe: Compiler limit Pin
James R. Twine17-Jul-07 1:10
James R. Twine17-Jul-07 1:10 
AnswerRe: Compiler limit Pin
David Crow17-Jul-07 3:05
David Crow17-Jul-07 3:05 
QuestionRe: Compiler limit Pin
Hamid_RT25-Jul-07 7:26
Hamid_RT25-Jul-07 7:26 
QuestionVisual Studio Comment Template Pin
Like2Byte16-Jul-07 9:42
Like2Byte16-Jul-07 9:42 
QuestionChanging the container apps cursor Pin
emmmatty116-Jul-07 8:57
emmmatty116-Jul-07 8:57 
Questiontray icon tooltip text Pin
Adno16-Jul-07 8:04
Adno16-Jul-07 8:04 
//Shell_NotifyIcon<br />
	NOTIFYICONDATA notifyData;<br />
	notifyData.cbSize = sizeof(notifyData);<br />
	notifyData.hWnd = hwnd;<br />
	notifyData.uFlags = NIF_ICON | NIF_TIP | NIF_MESSAGE | NIF_STATE;<br />
	notifyData.uCallbackMessage = MSG_STATUSICON;<br />
	notifyData.hIcon = LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_ICON1));<br />
	::strcpy((char*)notifyData.szTip, "hello"); <-- not working<br />
	::strcpy((char*)notifyData.szInfo, "blablabla");<br />
<br />
	char tp [128] ;<br />
	::strcpy(tp,(char*)notifyData.szTip); //test tp gets "hello" value<br />
<br />
	Shell_NotifyIcon(NIM_ADD, ¬ifyData);


instead of hello im getting gibberish on my icon ToolTip ..long string looks like chinese.

something wrong with this line?
::strcpy((char*)notifyData.szTip, "hello");

thank you
QuestionRe: tray icon tooltip text Pin
David Crow16-Jul-07 8:09
David Crow16-Jul-07 8:09 
AnswerRe: tray icon tooltip text Pin
Adno16-Jul-07 8:18
Adno16-Jul-07 8:18 
AnswerRe: tray icon tooltip text [modified] Pin
Mark Salsbery16-Jul-07 8:17
Mark Salsbery16-Jul-07 8:17 
GeneralRe: tray icon tooltip text Pin
Adno16-Jul-07 8:28
Adno16-Jul-07 8:28 
GeneralRe: tray icon tooltip text Pin
Mark Salsbery16-Jul-07 8:31
Mark Salsbery16-Jul-07 8:31 
QuestionHow to make sure the LPCRITICAL_SECTION i have is valid Pin
xcavin16-Jul-07 6:32
xcavin16-Jul-07 6:32 
AnswerRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
Mark Salsbery16-Jul-07 7:29
Mark Salsbery16-Jul-07 7:29 
GeneralRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
xcavin16-Jul-07 7:40
xcavin16-Jul-07 7:40 
GeneralRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
Mark Salsbery16-Jul-07 7:46
Mark Salsbery16-Jul-07 7:46 
GeneralRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
xcavin16-Jul-07 7:53
xcavin16-Jul-07 7:53 
GeneralRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
David Crow16-Jul-07 7:57
David Crow16-Jul-07 7:57 
GeneralRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
xcavin16-Jul-07 8:04
xcavin16-Jul-07 8:04 
GeneralRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
Mark Salsbery16-Jul-07 8:10
Mark Salsbery16-Jul-07 8:10 
GeneralRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
xcavin16-Jul-07 8:21
xcavin16-Jul-07 8:21 
GeneralRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
Mark Salsbery16-Jul-07 8:30
Mark Salsbery16-Jul-07 8:30 
GeneralRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
led mike16-Jul-07 10:46
led mike16-Jul-07 10:46 
GeneralRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
xcavin16-Jul-07 11:00
xcavin16-Jul-07 11:00 

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.