Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Images in Dll Pin
kiranin30-Mar-09 1:59
kiranin30-Mar-09 1:59 
GeneralRe: Images in Dll Pin
Stuart Dootson30-Mar-09 2:03
professionalStuart Dootson30-Mar-09 2:03 
GeneralRe: Images in Dll Pin
kiranin4-Apr-09 1:18
kiranin4-Apr-09 1:18 
GeneralRe: Images in Dll Pin
Stuart Dootson4-Apr-09 2:38
professionalStuart Dootson4-Apr-09 2:38 
GeneralRe: Images in Dll [modified] Pin
kiranin4-Apr-09 2:53
kiranin4-Apr-09 2:53 
GeneralRe: Images in Dll Pin
Stuart Dootson4-Apr-09 8:51
professionalStuart Dootson4-Apr-09 8:51 
QuestionProblem while setting text to a control using WM_SETTEXT with SendMessage API Pin
PankajB29-Mar-09 21:30
PankajB29-Mar-09 21:30 
AnswerRe: Problem while setting text to a control using WM_SETTEXT with SendMessage API Pin
CPallini29-Mar-09 21:38
mveCPallini29-Mar-09 21:38 
PankajB wrote:
char buffer[MAX_PATH];
char *message = "Hello";
sprintf(buffer, "%s", message);
....
....
HWND pWnd7 = ::FindWindowEx(pWnd6, NULL, L"TComboBox", NULL);
::SendMessage(pWnd7, WM_SETTEXT, 0, (LPARAM)buffer);


What about
TCHAR buffer[] = _T("Hello");
//...
HWND hWnd7 = ::FindWindowEx(hWnd6, NULL, _T("TComboBox"), NULL);
if ( hWnd7 ) ::SendMessage(hWnd7, WM_SETTEXT, 0 , (LPARAM) buffer);


Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: Problem while setting text to a control using WM_SETTEXT with SendMessage API Pin
safeer vengasseri20-Aug-09 5:14
safeer vengasseri20-Aug-09 5:14 
Questionproblem with debug mode Pin
kir_MFC29-Mar-09 20:42
kir_MFC29-Mar-09 20:42 
QuestionCOM port number identification Pin
AnayKulkarni29-Mar-09 19:58
AnayKulkarni29-Mar-09 19:58 
AnswerRe: COM port number identification Pin
«_Superman_»29-Mar-09 20:59
professional«_Superman_»29-Mar-09 20:59 
AnswerRe: COM port number identification Pin
Jonathan Davies30-Mar-09 3:54
Jonathan Davies30-Mar-09 3:54 
Question[Message Deleted] Pin
Purish Dwivedi29-Mar-09 19:08
Purish Dwivedi29-Mar-09 19:08 
AnswerRe: how to conditionally select a DLL on detecting a language pack? Pin
CPallini29-Mar-09 21:32
mveCPallini29-Mar-09 21:32 
General[Message Deleted] Pin
Purish Dwivedi29-Mar-09 22:52
Purish Dwivedi29-Mar-09 22:52 
GeneralRe: how to conditionally select a DLL on detecting a language pack? Pin
Randor 30-Mar-09 2:34
professional Randor 30-Mar-09 2:34 
QuestionShould an application to have a central error handling model? Pin
xiaolin.lan29-Mar-09 17:06
xiaolin.lan29-Mar-09 17:06 
AnswerRe: Should an application to have a central error handling model? Pin
N a v a n e e t h29-Mar-09 17:24
N a v a n e e t h29-Mar-09 17:24 
GeneralRe: Should an application to have a central error handling model? Pin
xiaolin.lan29-Mar-09 17:32
xiaolin.lan29-Mar-09 17:32 
Questionfocusing messagebox Pin
gamefreak229129-Mar-09 16:15
gamefreak229129-Mar-09 16:15 
AnswerRe: focusing messagebox Pin
enhzflep29-Mar-09 18:26
enhzflep29-Mar-09 18:26 
GeneralRe: focusing messagebox Pin
gamefreak229129-Mar-09 19:02
gamefreak229129-Mar-09 19:02 
GeneralRe: focusing messagebox Pin
«_Superman_»29-Mar-09 19:44
professional«_Superman_»29-Mar-09 19:44 
GeneralRe: focusing messagebox Pin
gamefreak229129-Mar-09 20:38
gamefreak229129-Mar-09 20:38 

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.