Click here to Skip to main content
15,888,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question.net and windows forms and why use them? Pin
ns22-Apr-03 8:35
ns22-Apr-03 8:35 
AnswerRe: .net and windows forms and why use them? Pin
Maximilien22-Apr-03 9:10
Maximilien22-Apr-03 9:10 
GeneralRe: .net and windows forms and why use them? Pin
ns22-Apr-03 9:15
ns22-Apr-03 9:15 
AnswerRe: .net and windows forms and why use them? Pin
Ravi Bhavnani22-Apr-03 12:46
professionalRavi Bhavnani22-Apr-03 12:46 
Generaleasy question about convertion Pin
Martin_Viet22-Apr-03 8:17
Martin_Viet22-Apr-03 8:17 
GeneralRe: easy question about convertion Pin
Emiliano22-Apr-03 12:15
Emiliano22-Apr-03 12:15 
GeneralRe: easy question about convertion Pin
anju22-Apr-03 17:38
anju22-Apr-03 17:38 
GeneralWrite array to file Pin
Dominik Reichl22-Apr-03 7:53
Dominik Reichl22-Apr-03 7:53 
Hello,

I am trying to write this array of the following type to file:

typedef struct tagDIBFILEHDR
{
WORD bfType;
DWORD bfSize;
WORD bfReserved1;
WORD bfReserved2;
DWORD bfOffBits;
} DIBFILEHDR;

Thats the same struct as BITMAPFILEHEADER.
The correct output should be (hex):

42 4D 36 68 00 00 00 00 00 00 36 04 00 00

But after compiling the program with MSVC++ it outputs the following:

42 4D 00 00 36 68 00 00 00 00 00 00 36 04 00 00

So why does MSVC++ swap/insert zero bytes there???

Confused | :confused:
-Dominik



_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? Wink | ;)

GeneralRe: Write array to file Pin
David Crow22-Apr-03 8:00
David Crow22-Apr-03 8:00 
GeneralRe: Write array to file Pin
Ryan_Roberts22-Apr-03 8:07
Ryan_Roberts22-Apr-03 8:07 
GeneralRe: Write array to file Pin
Dominik Reichl22-Apr-03 8:14
Dominik Reichl22-Apr-03 8:14 
GeneralRe: Write array to file Pin
Dominik Reichl22-Apr-03 8:11
Dominik Reichl22-Apr-03 8:11 
GeneralBasic Question. Pin
73Zeppelin22-Apr-03 7:48
73Zeppelin22-Apr-03 7:48 
GeneralRe: Basic Question. Pin
David Crow22-Apr-03 7:54
David Crow22-Apr-03 7:54 
GeneralRe: Basic Question. Pin
Le centriste22-Apr-03 10:47
Le centriste22-Apr-03 10:47 
Generalsocket tutorial Pin
Emiliano22-Apr-03 7:35
Emiliano22-Apr-03 7:35 
GeneralRe: socket tutorial Pin
Mike Zinni22-Apr-03 7:44
Mike Zinni22-Apr-03 7:44 
GeneralRe: socket tutorial Pin
valikac22-Apr-03 8:51
valikac22-Apr-03 8:51 
QuestionHow to change size of window. Pin
gmlnd22-Apr-03 7:19
gmlnd22-Apr-03 7:19 
AnswerRe: How to change size of window. Pin
eXplodus22-Apr-03 8:00
eXplodus22-Apr-03 8:00 
AnswerRe: How to change size of window. Pin
David Crow22-Apr-03 8:08
David Crow22-Apr-03 8:08 
GeneralThe Window button Pin
Demian Panello22-Apr-03 7:15
Demian Panello22-Apr-03 7:15 
GeneralRe: The Window button Pin
valikac22-Apr-03 9:02
valikac22-Apr-03 9:02 
GeneralRe: The Window button Pin
basementman24-Apr-03 8:29
basementman24-Apr-03 8:29 
Generalproblem with CIPAddressCtrl Pin
dudic22-Apr-03 6:30
dudic22-Apr-03 6:30 

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.