Click here to Skip to main content
13,149,756 members (85,639 online)

C / C++ / MFC

 
QuestionRe: error C2065: 'xlSheetVisible' undeclared Pin
Richard MacCutchan11-Dec-12 11:12
mvpRichard MacCutchan11-Dec-12 11:12 
AnswerRe: error C2065: 'xlSheetVisible' undeclared Pin
ForNow11-Dec-12 11:19
memberForNow11-Dec-12 11:19 
GeneralRe: error C2065: 'xlSheetVisible' undeclared Pin
Richard MacCutchan11-Dec-12 11:25
mvpRichard MacCutchan11-Dec-12 11:25 
GeneralRe: error C2065: 'xlSheetVisible' undeclared Pin
ForNow11-Dec-12 11:41
memberForNow11-Dec-12 11:41 
GeneralRe: error C2065: 'xlSheetVisible' undeclared Pin
Richard MacCutchan11-Dec-12 11:48
mvpRichard MacCutchan11-Dec-12 11:48 
QuestionCMFCPropertyGridProperty - Protected methods don't get called Pin
Simon Langdon10-Dec-12 1:08
memberSimon Langdon10-Dec-12 1:08 
AnswerRe: CMFCPropertyGridProperty - Protected methods don't get called Pin
Member 1342254421-Sep-17 10:12
memberMember 1342254421-Sep-17 10:12 
QuestionHow Static variable persists/retains its value.? Pin
mbatra319-Dec-12 19:53
membermbatra319-Dec-12 19:53 
AnswerRe: How Static variable persists/retains its value.? Pin
PecuniousPete9-Dec-12 20:20
memberPecuniousPete9-Dec-12 20:20 
AnswerRe: How Static variable persists/retains its value.? Pin
sajeesh.c9-Dec-12 20:25
membersajeesh.c9-Dec-12 20:25 
GeneralRe: How Static variable persists/retains its value.? Pin
PecuniousPete10-Dec-12 7:58
memberPecuniousPete10-Dec-12 7:58 
GeneralRe: How Static variable persists/retains its value.? Pin
sajeesh.c10-Dec-12 16:50
membersajeesh.c10-Dec-12 16:50 
GeneralRe: How Static variable persists/retains its value.? Pin
PecuniousPete11-Dec-12 7:18
memberPecuniousPete11-Dec-12 7:18 
QuestionVC6.0 compiler error C2664 while using GUID Pin
Vaclav_Sal9-Dec-12 5:44
memberVaclav_Sal9-Dec-12 5:44 
I am in over my head again.
I am getting error C2664 and I did read the Tech note ( something about ANSI improvement) about it and frankly I just do not understand what is the problem and <b>how to fix it in VC6.0.</b>

Do I have to redefine the GUID_DEVCLASS_COMPUTER?

The parameter GUID is defined in both functions as “const GUID*”

The API fails with this error C2664 and C_GetClassImgIndex compiles OK

error C2664: 'SetupDiGetClassImageIndex' : cannot convert parameter 2 from 'const struct _GUID *' to 'struct _GUID *'
Conversion loses qualifiers

Fails
b = SetupDiGetClassImageIndex(&m_imgList, &GUID_DEVCLASS_COMPUTER, &nRootImg);

OK
int n = C_GetClassImgIndex(&GUID_DEVCLASS_COMPUTER);

Any help would be greatly appreciated.
Cheers
Vaclav
AnswerRe: VC6.0 compiler error C2664 while using GUID Pin
Richard MacCutchan9-Dec-12 6:02
mvpRichard MacCutchan9-Dec-12 6:02 
GeneralRe: VC6.0 compiler error C2664 while using GUID Pin
Vaclav_Sal9-Dec-12 7:14
memberVaclav_Sal9-Dec-12 7:14 
GeneralRe: VC6.0 compiler error C2664 while using GUID Pin
jschell9-Dec-12 8:16
memberjschell9-Dec-12 8:16 
AnswerRe: VC6.0 compiler error C2664 while using GUID Pin
PecuniousPete10-Dec-12 8:00
memberPecuniousPete10-Dec-12 8:00 
AnswerRe: VC6.0 compiler error C2664 while using GUID Pin
Arild Fiskum19-Dec-12 10:18
memberArild Fiskum19-Dec-12 10:18 
QuestionFork Implementation using the native API RtlCloneUserProcess Pin
akhilmv889-Dec-12 4:00
memberakhilmv889-Dec-12 4:00 
QuestionDeclaring a TBYTE in C. Pin
Member 41945938-Dec-12 15:04
memberMember 41945938-Dec-12 15:04 
AnswerRe: Declaring a TBYTE in C. Pin
manoranjan8-Dec-12 20:56
membermanoranjan8-Dec-12 20:56 
GeneralRe: Declaring a TBYTE in C. Pin
Member 41945939-Dec-12 3:29
memberMember 41945939-Dec-12 3:29 
GeneralRe: Declaring a TBYTE in C. Pin
manoranjan9-Dec-12 23:47
membermanoranjan9-Dec-12 23:47 
GeneralRe: Declaring a TBYTE in C. Pin
Member 419459310-Dec-12 12:11
memberMember 419459310-Dec-12 12:11 
GeneralRe: Declaring a TBYTE in C. Pin
manoranjan11-Dec-12 1:35
membermanoranjan11-Dec-12 1:35 
QuestionWM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
Vaclav_Sal7-Dec-12 4:10
memberVaclav_Sal7-Dec-12 4:10 
AnswerRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
Jochen Arndt7-Dec-12 5:56
memberJochen Arndt7-Dec-12 5:56 
AnswerRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
jeron17-Dec-12 5:59
memberjeron17-Dec-12 5:59 
GeneralRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
Vaclav_Sal7-Dec-12 6:58
memberVaclav_Sal7-Dec-12 6:58 
AnswerRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
Richard MacCutchan7-Dec-12 21:51
mvpRichard MacCutchan7-Dec-12 21:51 
GeneralRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
Vaclav_Sal9-Dec-12 5:47
memberVaclav_Sal9-Dec-12 5:47 
AnswerRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
PecuniousPete9-Dec-12 20:23
memberPecuniousPete9-Dec-12 20:23 
Questionhow to find out the codes who eat up my memory? Pin
Falconapollo7-Dec-12 2:32
memberFalconapollo7-Dec-12 2:32 
AnswerRe: how to find out the codes who eat up my memory? Pin
Richard MacCutchan7-Dec-12 2:54
mvpRichard MacCutchan7-Dec-12 2:54 
QuestionRe: how to find out the codes who eat up my memory? Pin
DavidCrow7-Dec-12 2:55
memberDavidCrow7-Dec-12 2:55 
AnswerRe: how to find out the codes who eat up my memory? Pin
Falconapollo7-Dec-12 3:11
memberFalconapollo7-Dec-12 3:11 
QuestionRe: how to find out the codes who eat up my memory? Pin
DavidCrow7-Dec-12 3:25
memberDavidCrow7-Dec-12 3:25 
AnswerRe: how to find out the codes who eat up my memory? Pin
Falconapollo7-Dec-12 3:28
memberFalconapollo7-Dec-12 3:28 
AnswerRe: how to find out the codes who eat up my memory? Pin
Joe Woodbury7-Dec-12 8:30
memberJoe Woodbury7-Dec-12 8:30 
AnswerRe: how to find out the codes who eat up my memory? Pin
vr9999999998-Dec-12 1:25
membervr9999999998-Dec-12 1:25 
AnswerRe: how to find out the codes who eat up my memory? Pin
PecuniousPete11-Dec-12 20:42
memberPecuniousPete11-Dec-12 20:42 
QuestionUniversal Patch Finder Native Plug-ins Pin
droopy66-Dec-12 20:41
memberdroopy66-Dec-12 20:41 
AnswerRe: Universal Patch Finder Native Plug-ins Pin
Richard MacCutchan6-Dec-12 22:16
mvpRichard MacCutchan6-Dec-12 22:16 
QuestionHow to detect window event : Log on, log off, standby... Pin
vunhutien6-Dec-12 16:27
membervunhutien6-Dec-12 16:27 
AnswerRe: How to detect window event : Log on, log off, standby... Pin
Richard MacCutchan6-Dec-12 22:14
mvpRichard MacCutchan6-Dec-12 22:14 
Question_ApplicationPtr definition in OLE program Pin
ForNow6-Dec-12 13:30
memberForNow6-Dec-12 13:30 
AnswerRe: _ApplicationPtr definition in OLE program Pin
Peter_in_27806-Dec-12 15:18
memberPeter_in_27806-Dec-12 15:18 
GeneralRe: _ApplicationPtr definition in OLE program Pin
ForNow6-Dec-12 16:00
memberForNow6-Dec-12 16:00 
GeneralRe: _ApplicationPtr definition in OLE program Pin
Richard MacCutchan6-Dec-12 22:11
mvpRichard MacCutchan6-Dec-12 22:11 

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.


Advertise | Privacy |
Web01 | 2.8.170924.2 | Last Updated 25 Sep 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid