Click here to Skip to main content
15,889,724 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Command is not firing in Owner Draw menu in MFC Dilaog Pin
Richard MacCutchan28-Oct-11 2:32
mveRichard MacCutchan28-Oct-11 2:32 
AnswerRe: Command is not firing in Owner Draw menu in MFC Dilaog Pin
Albert Holguin28-Oct-11 4:57
professionalAlbert Holguin28-Oct-11 4:57 
AnswerRe: Command is not firing in Owner Draw menu in MFC Dilaog Pin
Manikkuttan31-Oct-11 1:35
Manikkuttan31-Oct-11 1:35 
QuestionCreating icon in taskbar Pin
Pranit Kothari27-Oct-11 19:09
Pranit Kothari27-Oct-11 19:09 
AnswerRe: Creating icon in taskbar Pin
Chandrasekharan P27-Oct-11 20:03
Chandrasekharan P27-Oct-11 20:03 
AnswerRe: my two cents Pin
Software_Developer28-Oct-11 0:00
Software_Developer28-Oct-11 0:00 
AnswerRe: C# code: Creating icon in taskbar Pin
Goto_Label_28-Oct-11 0:08
Goto_Label_28-Oct-11 0:08 
QuestionQuickWin Compile Errors in Visual Studio 2008 Pin
oldbritthumper27-Oct-11 11:40
oldbritthumper27-Oct-11 11:40 
Hello,

When I try to build the QuickWin source (download link: http://www.codeproject.com/KB/dialog/quickwin.aspx) I get some errors. I *have* done it (built it the same way) several years ago using an earlier version of Visual Studio.

Looks like it should be easy to overcome, but I'm not sure how to proceed.
Here's a good example to start with:
c:\projects\quickwin\quickwin\quickwin.h(28) : error C2504: 'CRedirect' : base class undefined

And here's the entire build output (BTW, I am *not* worried about warnings.):
1>------ Build started: Project: QuickWin_Project, Configuration: Debug Win32 ------
1>Compiling...
1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
1>QuickTst.cpp
1>c:\projects\quickwin\quicktst\quicktst.cpp(20) : warning C4996: 'gets': This function or variable may be unsafe. Consider using gets_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdio.h(279) : see declaration of 'gets'
1>c:\projects\quickwin\quicktst\quicktst.cpp(26) : warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _stricmp. See online help for details.
1> c:\program files (x86)\microsoft visual studio 9.0\vc\include\string.h(215) : see declaration of 'stricmp'
1>StdAfx.cpp
1>ChildView.cpp
1> WINVER not defined. Defaulting to 0x0600 (Windows Vista)
1>c:\projects\quickwin\quickwin\quickwin.h(28) : error C2504: 'CRedirect' : base class undefined
1>c:\projects\quickwin\quickwin\quickwin.h(66) : error C2146: syntax error : missing ';' before identifier 'm_WinPlace'
1>c:\projects\quickwin\quickwin\quickwin.h(66) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\projects\quickwin\quickwin\quickwin.h(66) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\projects\quickwin\quickwin\quickview.h(26) : error C2065: 'BUFFER_SIZE' : undeclared identifier
1>c:\projects\quickwin\quickwin\childview.cpp(17) : error C2653: 'CChildView' : is not a class or namespace name
1>c:\projects\quickwin\quickwin\childview.cpp(18) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\projects\quickwin\quickwin\childview.cpp(19) : warning C4508: 'CChildView' : function should return a value; 'void' return type assumed
1>c:\projects\quickwin\quickwin\childview.cpp(21) : error C2653: 'CChildView' : is not a class or namespace name
1>c:\projects\quickwin\quickwin\childview.cpp(21) : fatal error C1903: unable to recover from previous error(s); stopping compilation
1>LppDlg.cpp
1> WINVER not defined. Defaulting to 0x0600 (Windows Vista)
1>MainFrm.cpp
1> WINVER not defined. Defaulting to 0x0600 (Windows Vista)
1>ParamDlg.cpp
1> WINVER not defined. Defaulting to 0x0600 (Windows Vista)
1>ProcessDlg.cpp
1> WINVER not defined. Defaulting to 0x0600 (Windows Vista)
1>QuickView.cpp
1> WINVER not defined. Defaulting to 0x0600 (Windows Vista)
1>c:\projects\quickwin\quickwin\quickview.cpp(74) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 9.0\vc\include\string.h(74) : see declaration of 'strcpy'
1>QuickWin.cpp
1> WINVER not defined. Defaulting to 0x0600 (Windows Vista)
1>c:\projects\quickwin\quickwin\quickwin.cpp(45) : warning C4996: '_splitpath': This function or variable may be unsafe. Consider using _splitpath_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdlib.h(786) : see declaration of '_splitpath'
1>c:\projects\quickwin\quickwin\quickwin.cpp(63) : warning C4996: '_splitpath': This function or variable may be unsafe. Consider using _splitpath_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdlib.h(786) : see declaration of '_splitpath'
1>c:\projects\quickwin\quickwin\quickwin.cpp(116) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
1>c:\projects\quickwin\quickwin\quickwin.cpp(118) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 9.0\vc\include\string.h(74) : see declaration of 'strcpy'
1>c:\projects\quickwin\quickwin\quickwin.cpp(120) : warning C4267: 'argument' : conversion from 'size_t' to 'DWORD', possible loss of data
1>c:\projects\quickwin\quickwin\quickwin.cpp(124) : warning C4267: 'argument' : conversion from 'size_t' to 'DWORD', possible loss of data
1>c:\projects\quickwin\quickwin\quickwin.cpp(159) : warning C4267: 'argument' : conversion from 'size_t' to 'DWORD', possible loss of data
1>c:\projects\quickwin\quickwin\quickwin.cpp(195) : error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall CQuickWinApp::* )(WPARAM,LPARAM)' to 'void (__thiscall CWinThread::* )(WPARAM,LPARAM)'
1> None of the functions with this name in scope match the target type
1>Redirect.cpp
1> WINVER not defined. Defaulting to 0x0600 (Windows Vista)
1>c:\projects\quickwin\quickwin\redirect.cpp(110) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdio.h(366) : see declaration of 'sprintf'
1>c:\projects\quickwin\quickwin\redirect.cpp(395) : warning C4267: 'initializing' : conversion from 'size_t' to 'DWORD', possible loss of data
1>ToolBar.cpp
1> WINVER not defined. Defaulting to 0x0600 (Windows Vista)
1>c:\projects\quickwin\quickwin\toolbar.cpp(95) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 9.0\vc\include\string.h(74) : see declaration of 'strcpy'
1>WinPlace.cpp
1> WINVER not defined. Defaulting to 0x0600 (Windows Vista)
1>Generating Code...
1>Build log was saved at "file://c:\Projects\QuickWin\Debug\BuildLog.htm"
1>QuickWin_Project - 10 error(s), 15 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Any ideas are appreciated.

Matt
AnswerRe: QuickWin Compile Errors in Visual Studio 2008 Pin
«_Superman_»27-Oct-11 16:47
professional«_Superman_»27-Oct-11 16:47 
GeneralRe: QuickWin Compile Errors in Visual Studio 2008 Pin
Albert Holguin28-Oct-11 4:54
professionalAlbert Holguin28-Oct-11 4:54 
QuestionSanity Check on Registry Value REG_MULTI_SZ - format value Pin
jkirkerx27-Oct-11 9:14
professionaljkirkerx27-Oct-11 9:14 
AnswerI'm going with it, it produces the results I need. Pin
jkirkerx27-Oct-11 10:33
professionaljkirkerx27-Oct-11 10:33 
AnswerRe: Sanity Check on Registry Value REG_MULTI_SZ - format value Pin
Adorjáni Alpár27-Oct-11 10:50
Adorjáni Alpár27-Oct-11 10:50 
GeneralRe: Sanity Check on Registry Value REG_MULTI_SZ - format value Pin
jkirkerx27-Oct-11 11:48
professionaljkirkerx27-Oct-11 11:48 
GeneralRe: Sanity Check on Registry Value REG_MULTI_SZ - format value Pin
jkirkerx27-Oct-11 13:28
professionaljkirkerx27-Oct-11 13:28 
AnswerRe: Sanity Check on Registry Value REG_MULTI_SZ - format value Pin
Peter_in_278027-Oct-11 13:39
professionalPeter_in_278027-Oct-11 13:39 
GeneralRe: Sanity Check on Registry Value REG_MULTI_SZ - format value Pin
jkirkerx28-Oct-11 6:24
professionaljkirkerx28-Oct-11 6:24 
AnswerRe: Sanity Check on Registry Value REG_MULTI_SZ - format value Pin
Richard MacCutchan27-Oct-11 21:59
mveRichard MacCutchan27-Oct-11 21:59 
GeneralRe: Sanity Check on Registry Value REG_MULTI_SZ - format value Pin
jkirkerx28-Oct-11 6:41
professionaljkirkerx28-Oct-11 6:41 
GeneralRe: Sanity Check on Registry Value REG_MULTI_SZ - format value Pin
Richard MacCutchan28-Oct-11 6:57
mveRichard MacCutchan28-Oct-11 6:57 
GeneralRe: Sanity Check on Registry Value REG_MULTI_SZ - format value Pin
jkirkerx28-Oct-11 7:17
professionaljkirkerx28-Oct-11 7:17 
AnswerI rewrote the my function for WCHAR Pin
jkirkerx28-Oct-11 8:22
professionaljkirkerx28-Oct-11 8:22 
AnswerRe: I rewrote the my function for WCHAR Pin
Richard MacCutchan28-Oct-11 23:13
mveRichard MacCutchan28-Oct-11 23:13 
GeneralRe: I rewrote the my function for WCHAR Pin
jkirkerx29-Oct-11 7:39
professionaljkirkerx29-Oct-11 7:39 
GeneralRe: I rewrote the my function for WCHAR Pin
jkirkerx29-Oct-11 8:20
professionaljkirkerx29-Oct-11 8:20 

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.