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

C / C++ / MFC

 
GeneralRe: c2146 error missing ";" before identifier HwndMSWheel Pin
Christian Graus20-Jul-05 12:06
protectorChristian Graus20-Jul-05 12:06 
GeneralRe: c2146 error missing ";" before identifier HwndMSWheel Pin
PapermillBill21-Jul-05 8:32
PapermillBill21-Jul-05 8:32 
GeneralRe: c2146 error missing ";" before identifier HwndMSWheel Pin
Christian Graus21-Jul-05 13:31
protectorChristian Graus21-Jul-05 13:31 
GeneralRe: c2146 error missing ";" before identifier HwndMSWheel Pin
PapermillBill22-Jul-05 3:55
PapermillBill22-Jul-05 3:55 
GeneralRe: c2146 error missing ";" before identifier HwndMSWheel Pin
Christian Graus22-Jul-05 11:54
protectorChristian Graus22-Jul-05 11:54 
GeneralRe: c2146 error missing ";" before identifier HwndMSWheel Pin
PapermillBill25-Jul-05 3:02
PapermillBill25-Jul-05 3:02 
GeneralRe: c2146 error missing ";" before identifier HwndMSWheel Pin
Christian Graus25-Jul-05 13:51
protectorChristian Graus25-Jul-05 13:51 
GeneralModeless dialog error Pin
TEOlivier20-Jul-05 9:47
TEOlivier20-Jul-05 9:47 
When I try to create a modeless dialog (according to the example given by Dr. GUI on MSDN) with the CDialog::Create() function it gives a casting error message when I use the following where 'CParams' is a dialog's class:

CParams *m_pParams;
m_pParams = new CParams;
---> m_pParams->Create(IDD_DIALOG1, this);
m_pParams->ShowWindow(SW_SHOW);

This is the error in visual c++ 6:

error C2664: 'int __thiscall CDialog::Create(const char *,class CWnd *)' : cannot convert parameter 1 from 'const int' to 'const char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast

Please help. I'm trying to create a modeless dialog here.
Thanx
GeneralRe: Modeless dialog error Pin
David Crow20-Jul-05 10:22
David Crow20-Jul-05 10:22 
GeneralRe: Modeless dialog error Pin
wicked_guy20-Jul-05 22:27
wicked_guy20-Jul-05 22:27 
Generaltype confusion with _bstr_t Pin
LCI20-Jul-05 9:37
LCI20-Jul-05 9:37 
GeneralRe: type confusion with _bstr_t Pin
LCI20-Jul-05 9:58
LCI20-Jul-05 9:58 
GeneralRe: type confusion with _bstr_t Pin
Michael Dunn20-Jul-05 10:42
sitebuilderMichael Dunn20-Jul-05 10:42 
GeneralValid UNICODE character Pin
John R. Shaw20-Jul-05 8:30
John R. Shaw20-Jul-05 8:30 
QuestionUSB device/hub reset? Pin
jaycush20-Jul-05 7:51
jaycush20-Jul-05 7:51 
AnswerRe: USB device/hub reset? Pin
jaycush21-Jul-05 4:24
jaycush21-Jul-05 4:24 
Generalkilling dll Pin
Ann6620-Jul-05 6:45
sussAnn6620-Jul-05 6:45 
GeneralRe: killing dll Pin
Marc Soleda20-Jul-05 7:03
Marc Soleda20-Jul-05 7:03 
GeneralRe: killing dll Pin
Ann6620-Jul-05 8:07
sussAnn6620-Jul-05 8:07 
GeneralRe: killing dll Pin
David Crow20-Jul-05 9:34
David Crow20-Jul-05 9:34 
GeneralRe: killing dll Pin
Ann6620-Jul-05 11:06
sussAnn6620-Jul-05 11:06 
GeneralRe: killing dll Pin
David Crow21-Jul-05 2:34
David Crow21-Jul-05 2:34 
GeneralWinExec Pin
Usman Tasleem Akshaf20-Jul-05 6:07
Usman Tasleem Akshaf20-Jul-05 6:07 
GeneralRe: WinExec Pin
berndg20-Jul-05 6:15
berndg20-Jul-05 6:15 
GeneralRe: WinExec Pin
Usman Tasleem Akshaf20-Jul-05 6:39
Usman Tasleem Akshaf20-Jul-05 6:39 

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.