Click here to Skip to main content
11,415,390 members (86,242 online)

C / C++ / MFC

 
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 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web03 | 2.8.150427.4 | Last Updated 26 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid