Click here to Skip to main content
15,912,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionLoadMenu problem Pin
Mohammad A Gdeisat17-Sep-06 12:02
Mohammad A Gdeisat17-Sep-06 12:02 
AnswerRe: LoadMenu problem Pin
Mohammad A Gdeisat17-Sep-06 12:16
Mohammad A Gdeisat17-Sep-06 12:16 
GeneralRe: LoadMenu problem [modified] Pin
erfi17-Sep-06 19:49
erfi17-Sep-06 19:49 
GeneralRe: LoadMenu problem Pin
Mohammad A Gdeisat18-Sep-06 1:39
Mohammad A Gdeisat18-Sep-06 1:39 
QuestionCan't set Window name when using CreateWindow Pin
BarryOg17-Sep-06 12:02
BarryOg17-Sep-06 12:02 
AnswerRe: Can't set Window name when using CreateWindow Pin
Roland Rüdenauer17-Sep-06 12:30
Roland Rüdenauer17-Sep-06 12:30 
GeneralRe: Can't set Window name when using CreateWindow Pin
BarryOg17-Sep-06 22:04
BarryOg17-Sep-06 22:04 
GeneralRe: Can't set Window name when using CreateWindow Pin
BarryOg18-Sep-06 9:07
BarryOg18-Sep-06 9:07 
Yes that works a treat, So CreateWindowEx takes in UNICODE strings/chars as default and by just using "" I was using ASCII. Then using _T() converts ASCII to UNICODE automatically for you and that's why it works? Great to get the code fix but I'd like to understand why it worked as well.

I'm also trying something else I want to be able to use a string instead of hard coding the string parameter in quotes. Here's the code I want to use:
HWND hWnd = CreateWindow( _T("Barry's D3D BaseClass"), _T(windowName), 
                         WS_OVERLAPPEDWINDOW, 100, 100, 300, 300,GetDesktopWindow(),
                         NULL, windowClass.hInstance, NULL );


This gives me the follow compile error:
c:\documents and settings\barryod\my documents\visual studio 2005\projects\directx1\directx1\directxbase.cpp(38) : error C2065: 'LwindowName' : undeclared identifier

I'm really not sure what's happening here, any help would be appreciated.
QuestionTN035 - include afxres... winres ???? Pin
Vaclav_17-Sep-06 10:16
Vaclav_17-Sep-06 10:16 
Questionneed help with the cursor creating Pin
bloodwinner17-Sep-06 8:45
bloodwinner17-Sep-06 8:45 
Questionscreen Capture Pin
khaled-ahmad17-Sep-06 8:37
khaled-ahmad17-Sep-06 8:37 
Questionplaying with strings Pin
Yustme17-Sep-06 6:35
Yustme17-Sep-06 6:35 
AnswerRe: playing with strings Pin
Nish Nishant17-Sep-06 6:41
sitebuilderNish Nishant17-Sep-06 6:41 
GeneralRe: playing with strings Pin
Yustme17-Sep-06 6:51
Yustme17-Sep-06 6:51 
QuestionExporting form a C++/CLR dll Pin
avimitrani17-Sep-06 5:03
avimitrani17-Sep-06 5:03 
Questionincluding gdiplus Pin
erfi17-Sep-06 2:06
erfi17-Sep-06 2:06 
AnswerRe: including gdiplus Pin
bob1697217-Sep-06 4:16
bob1697217-Sep-06 4:16 
AnswerRe: including gdiplus Pin
Christian Graus17-Sep-06 11:15
protectorChristian Graus17-Sep-06 11:15 
QuestionComboBox Problem Pin
mikobi17-Sep-06 1:54
mikobi17-Sep-06 1:54 
AnswerRe: ComboBox Problem [modified] Pin
Hamid_RT17-Sep-06 2:15
Hamid_RT17-Sep-06 2:15 
GeneralRe: ComboBox Problem Pin
mikobi17-Sep-06 19:54
mikobi17-Sep-06 19:54 
AnswerRe: ComboBox Problem Pin
Nibu babu thomas17-Sep-06 17:43
Nibu babu thomas17-Sep-06 17:43 
Questiongdiplus.h including problem [modified] Pin
erfi17-Sep-06 1:43
erfi17-Sep-06 1:43 
AnswerRe: gdiplus.h including problem Pin
Hamid_RT17-Sep-06 1:46
Hamid_RT17-Sep-06 1:46 
GeneralRe: gdiplus.h including problem Pin
erfi17-Sep-06 1:53
erfi17-Sep-06 1:53 

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.