Click here to Skip to main content
15,914,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Prefered base Address. Pin
cmk5-Dec-03 19:33
cmk5-Dec-03 19:33 
GeneralRe: Prefered base Address. Pin
Prakash Nadar5-Dec-03 21:04
Prakash Nadar5-Dec-03 21:04 
GeneralRe: Prefered base Address. Pin
cmk5-Dec-03 22:06
cmk5-Dec-03 22:06 
GeneralRe: Prefered base Address. Pin
Prakash Nadar5-Dec-03 22:44
Prakash Nadar5-Dec-03 22:44 
GeneralRe: Prefered base Address. Pin
cmk5-Dec-03 23:42
cmk5-Dec-03 23:42 
GeneralRe: Prefered base Address. Pin
Bo Hunter6-Dec-03 11:11
Bo Hunter6-Dec-03 11:11 
GeneralRe: Prefered base Address. Pin
Prakash Nadar6-Dec-03 14:47
Prakash Nadar6-Dec-03 14:47 
GeneralByte swapping questions Pin
fuzzbuzz5-Dec-03 14:24
fuzzbuzz5-Dec-03 14:24 
I've been having a problem, that I can't quite figure it out. Here is the layout of the file. There is an extern unsigned char data[6 * 1024 *1024] in a header file I have. When the data is loaded into the variable, the bytes are swapped. I am trying to use the _swab function, but to no use. I've defined a variable, char rData[6 * 1024 * 1024], local to a function I have. The _swab function looks like this:

_swab((char *)data, rData, sizeof(datasize));

*datasize is the acutal number of bytes that were written to the data.

This should work, I think. But instead, the program hangs, and creates an exception that ends the program.
Any help is WIDELY appreciated. Thankx.

Chris


GeneralRe: Byte swapping questions Pin
cmk5-Dec-03 19:41
cmk5-Dec-03 19:41 
Generaldoc/view question in MDI Pin
rkhuang5-Dec-03 14:06
rkhuang5-Dec-03 14:06 
GeneralRe: doc/view question in MDI Pin
kjessee5-Dec-03 15:11
kjessee5-Dec-03 15:11 
GeneralQuestion regarding Getting File Path Pin
Deepak Samuel5-Dec-03 13:56
Deepak Samuel5-Dec-03 13:56 
GeneralRe: Question regarding Getting File Path Pin
Jörgen Sigvardsson5-Dec-03 14:11
Jörgen Sigvardsson5-Dec-03 14:11 
GeneralChallenge to the geek in you! Pin
BaldwinMartin5-Dec-03 11:53
BaldwinMartin5-Dec-03 11:53 
GeneralVC error but not in gcc. Pin
Tili5-Dec-03 11:27
Tili5-Dec-03 11:27 
GeneralRe: VC error but not in gcc. Pin
Jörgen Sigvardsson5-Dec-03 13:53
Jörgen Sigvardsson5-Dec-03 13:53 
GeneralRe: VC error but not in gcc. Pin
Michael Dunn5-Dec-03 17:39
sitebuilderMichael Dunn5-Dec-03 17:39 
GeneralError: Exception Breakpoint Pin
haritadala5-Dec-03 10:07
haritadala5-Dec-03 10:07 
Generalcommand-line arguments in VS7 Pin
karunswaroop5-Dec-03 8:27
karunswaroop5-Dec-03 8:27 
GeneralRe: command-line arguments in VS7 Pin
Michael P Butler5-Dec-03 8:42
Michael P Butler5-Dec-03 8:42 
GeneralRe: command-line arguments in VS7 Pin
karunswaroop5-Dec-03 9:33
karunswaroop5-Dec-03 9:33 
GeneralPrinting 2 Pages Per Sheet Pin
K. Shaffer5-Dec-03 7:58
K. Shaffer5-Dec-03 7:58 
GeneralRe: Printing 2 Pages Per Sheet Pin
Steve S9-Dec-03 0:59
Steve S9-Dec-03 0:59 
QuestionFILETIME? DosDateTimeToFileTime() ? Pin
Amit Dey5-Dec-03 7:48
Amit Dey5-Dec-03 7:48 
AnswerRe: FILETIME? DosDateTimeToFileTime() ? Pin
Michael Dunn5-Dec-03 17:46
sitebuilderMichael Dunn5-Dec-03 17:46 

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.