Click here to Skip to main content
12,068,108 members (56,316 online)

C / C++ / MFC

 
AnswerRe: How Static variable persists/retains its value.? Pin
PecuniousPete9-Dec-12 21:20
memberPecuniousPete9-Dec-12 21:20 
AnswerRe: How Static variable persists/retains its value.? Pin
sajeesh.c9-Dec-12 21:25
membersajeesh.c9-Dec-12 21:25 
GeneralRe: How Static variable persists/retains its value.? Pin
PecuniousPete10-Dec-12 8:58
memberPecuniousPete10-Dec-12 8:58 
GeneralRe: How Static variable persists/retains its value.? Pin
sajeesh.c10-Dec-12 17:50
membersajeesh.c10-Dec-12 17:50 
GeneralRe: How Static variable persists/retains its value.? Pin
PecuniousPete11-Dec-12 8:18
memberPecuniousPete11-Dec-12 8:18 
QuestionVC6.0 compiler error C2664 while using GUID Pin
Vaclav_Sal9-Dec-12 6:44
memberVaclav_Sal9-Dec-12 6:44 
AnswerRe: VC6.0 compiler error C2664 while using GUID Pin
Richard MacCutchan9-Dec-12 7:02
mvpRichard MacCutchan9-Dec-12 7:02 
GeneralRe: VC6.0 compiler error C2664 while using GUID Pin
Vaclav_Sal9-Dec-12 8:14
memberVaclav_Sal9-Dec-12 8:14 
GeneralRe: VC6.0 compiler error C2664 while using GUID Pin
jschell9-Dec-12 9:16
memberjschell9-Dec-12 9:16 
AnswerRe: VC6.0 compiler error C2664 while using GUID Pin
PecuniousPete10-Dec-12 9:00
memberPecuniousPete10-Dec-12 9:00 
AnswerRe: VC6.0 compiler error C2664 while using GUID Pin
Arild Fiskum19-Dec-12 11:18
memberArild Fiskum19-Dec-12 11:18 
QuestionFork Implementation using the native API RtlCloneUserProcess Pin
akhilmv889-Dec-12 5:00
memberakhilmv889-Dec-12 5:00 
QuestionDeclaring a TBYTE in C. Pin
Member 41945938-Dec-12 16:04
memberMember 41945938-Dec-12 16:04 
AnswerRe: Declaring a TBYTE in C. Pin
manoranjan8-Dec-12 21:56
membermanoranjan8-Dec-12 21:56 
This should help you:

typedef unsigned char tbyte[10];
 
int main()
{
  tbyte a;
  a[0] = 3;
  return 0;
}

The drawback is it doesn't initialize the array for you.

My 2 cents: Please don't mix different languages' idioms. Each language is meant for a different purpose.

If you need to, you can easily use assembly. VC++ supports inline assembly. Otherwise, you can write a separate asm file and then link the resulting object file to your exe.
GeneralRe: Declaring a TBYTE in C. Pin
Member 41945939-Dec-12 4:29
memberMember 41945939-Dec-12 4:29 
GeneralRe: Declaring a TBYTE in C. Pin
manoranjan10-Dec-12 0:47
membermanoranjan10-Dec-12 0:47 
GeneralRe: Declaring a TBYTE in C. Pin
Member 419459310-Dec-12 13:11
memberMember 419459310-Dec-12 13:11 
GeneralRe: Declaring a TBYTE in C. Pin
manoranjan11-Dec-12 2:35
membermanoranjan11-Dec-12 2:35 
QuestionMethods bank account Pin
Magda63477-Dec-12 11:17
memberMagda63477-Dec-12 11:17 
AnswerRe: Methods bank account Pin
Richard MacCutchan7-Dec-12 22:56
mvpRichard MacCutchan7-Dec-12 22:56 
AnswerRe: Methods bank account Pin
Alan Balkany10-Dec-12 6:43
memberAlan Balkany10-Dec-12 6:43 
AnswerRe: Methods bank account Pin
PecuniousPete10-Dec-12 9:05
memberPecuniousPete10-Dec-12 9:05 
GeneralRe: Methods bank account Pin
Magda634713-Mar-13 12:36
memberMagda634713-Mar-13 12:36 
Questionread text file Pin
peoria1237-Dec-12 10:59
memberpeoria1237-Dec-12 10:59 
AnswerRe: read text file Pin
André Kraak7-Dec-12 21:56
memberAndré Kraak7-Dec-12 21:56 
AnswerRe: read text file Pin
sajeesh.c9-Dec-12 22:05
membersajeesh.c9-Dec-12 22:05 
QuestionWM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
Vaclav_Sal7-Dec-12 5:10
memberVaclav_Sal7-Dec-12 5:10 
AnswerRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
Jochen Arndt7-Dec-12 6:56
memberJochen Arndt7-Dec-12 6:56 
AnswerRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
jeron17-Dec-12 6:59
memberjeron17-Dec-12 6:59 
GeneralRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
Vaclav_Sal7-Dec-12 7:58
memberVaclav_Sal7-Dec-12 7:58 
AnswerRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
Richard MacCutchan7-Dec-12 22:51
mvpRichard MacCutchan7-Dec-12 22:51 
GeneralRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
Vaclav_Sal9-Dec-12 6:47
memberVaclav_Sal9-Dec-12 6:47 
AnswerRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
PecuniousPete9-Dec-12 21:23
memberPecuniousPete9-Dec-12 21:23 
Questionhow to find out the codes who eat up my memory? Pin
Falconapollo7-Dec-12 3:32
memberFalconapollo7-Dec-12 3:32 
AnswerRe: how to find out the codes who eat up my memory? Pin
Richard MacCutchan7-Dec-12 3:54
mvpRichard MacCutchan7-Dec-12 3:54 
QuestionRe: how to find out the codes who eat up my memory? Pin
DavidCrow7-Dec-12 3:55
memberDavidCrow7-Dec-12 3:55 
AnswerRe: how to find out the codes who eat up my memory? Pin
Falconapollo7-Dec-12 4:11
memberFalconapollo7-Dec-12 4:11 
QuestionRe: how to find out the codes who eat up my memory? Pin
DavidCrow7-Dec-12 4:25
memberDavidCrow7-Dec-12 4:25 
AnswerRe: how to find out the codes who eat up my memory? Pin
Falconapollo7-Dec-12 4:28
memberFalconapollo7-Dec-12 4:28 
AnswerRe: how to find out the codes who eat up my memory? Pin
Joe Woodbury7-Dec-12 9:30
memberJoe Woodbury7-Dec-12 9:30 
AnswerRe: how to find out the codes who eat up my memory? Pin
vr9999999998-Dec-12 2:25
membervr9999999998-Dec-12 2:25 
AnswerRe: how to find out the codes who eat up my memory? Pin
PecuniousPete11-Dec-12 21:42
memberPecuniousPete11-Dec-12 21:42 
QuestionImage processing and converter Pin
Flaviu26-Dec-12 23:12
memberFlaviu26-Dec-12 23:12 
QuestionRe: Image processing and converter Pin
Richard MacCutchan6-Dec-12 23:18
mvpRichard MacCutchan6-Dec-12 23:18 
AnswerRe: Image processing and converter Pin
Flaviu26-Dec-12 23:26
memberFlaviu26-Dec-12 23:26 
GeneralRe: Image processing and converter Pin
Richard MacCutchan7-Dec-12 0:32
mvpRichard MacCutchan7-Dec-12 0:32 
GeneralRe: Image processing and converter Pin
Flaviu27-Dec-12 2:00
memberFlaviu27-Dec-12 2:00 
GeneralRe: Image processing and converter Pin
Richard MacCutchan7-Dec-12 2:11
mvpRichard MacCutchan7-Dec-12 2:11 
GeneralRe: Image processing and converter Pin
Flaviu27-Dec-12 2:44
memberFlaviu27-Dec-12 2:44 
GeneralRe: Image processing and converter Pin
Chris Losinger10-Dec-12 9:05
memberChris Losinger10-Dec-12 9:05 

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 | Mobile
Web04 | 2.8.160208.1 | Last Updated 8 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid