Click here to Skip to main content
15,907,396 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Constructors throwing exceptions cont. Pin
Tomasz Sowinski24-Jul-02 5:03
Tomasz Sowinski24-Jul-02 5:03 
GeneralRe: Constructors throwing exceptions cont. Pin
Philippe Mori24-Jul-02 8:16
Philippe Mori24-Jul-02 8:16 
GeneralRe: Constructors throwing exceptions cont. Pin
JohnnyG24-Jul-02 10:45
JohnnyG24-Jul-02 10:45 
GeneralRe: Constructors throwing exceptions cont. Pin
tom7624-Jul-02 21:51
tom7624-Jul-02 21:51 
GeneralGOT IT! Pin
tom7624-Jul-02 23:18
tom7624-Jul-02 23:18 
Generalhelp needed Pin
OmarLodhi24-Jul-02 3:00
OmarLodhi24-Jul-02 3:00 
GeneralRe: help needed Pin
Philippe Mori24-Jul-02 8:18
Philippe Mori24-Jul-02 8:18 
GeneralVisual C++ optimize Pin
Hiusing24-Jul-02 2:47
Hiusing24-Jul-02 2:47 
Hello,
Is there any good web resource teach or list all the tricks of code optimization with vc++? For example, if I define a struct with all 32-bit verable and run it with a 32-bit processor, the code will run faster. If I want to write some data in a file and define a struct like this:

struct filedata {
short a;
int b;
char c;
};

Since the struct is just going to use in-memory but write out to a file. I do not want to waste space by appending dummy veriable to make them all 32-bit. I'll have to access it like this...

filedata *pFiledata = (filedata *)memory_regon;
... use the pFiledata to update the memory_regon

Is this going to run a lot slower then appending dummy bytes into the struct? Is there any good why I can improve this code without modifing the data struct since the file format is already defined.

Thanks for advice!

Hiusing
GeneralCHtmlView printing doubt - (tech level - newbie) Pin
Nish Nishant24-Jul-02 1:55
sitebuilderNish Nishant24-Jul-02 1:55 
GeneralRe: CHtmlView printing doubt - One line solution :-) Pin
Nish Nishant24-Jul-02 2:32
sitebuilderNish Nishant24-Jul-02 2:32 
GeneralHINSTANCE hPrevious Pin
slah24-Jul-02 1:21
slah24-Jul-02 1:21 
GeneralRe: HINSTANCE hPrevious Pin
Nish Nishant24-Jul-02 1:25
sitebuilderNish Nishant24-Jul-02 1:25 
GeneralRe: HINSTANCE hPrevious Pin
Atlence24-Jul-02 5:31
Atlence24-Jul-02 5:31 
GeneralRe: HINSTANCE hPrevious Pin
Daniel Lohmann24-Jul-02 22:59
Daniel Lohmann24-Jul-02 22:59 
GeneralDll error Pin
suresh_sathya24-Jul-02 1:16
suresh_sathya24-Jul-02 1:16 
GeneralRe: Dll error Pin
Nish Nishant24-Jul-02 1:26
sitebuilderNish Nishant24-Jul-02 1:26 
GeneralRe: Dll error Pin
KarstenK24-Jul-02 1:34
mveKarstenK24-Jul-02 1:34 
GeneralTooltips in win32 ... Pin
Neha24-Jul-02 1:15
Neha24-Jul-02 1:15 
GeneralRe: Tooltips in win32 ... Pin
Fortran24-Jul-02 7:49
Fortran24-Jul-02 7:49 
GeneralRe: Tooltips in win32 ... Pin
jwarns1322-Oct-02 2:26
jwarns1322-Oct-02 2:26 
GeneralSimple question = (I hope) simple answer Pin
[CoY0te]24-Jul-02 0:59
[CoY0te]24-Jul-02 0:59 
GeneralRe: Simple question = (I hope) simple answer Pin
Tomasz Sowinski24-Jul-02 1:10
Tomasz Sowinski24-Jul-02 1:10 
GeneralRe: Simple question = (I hope) simple answer Pin
[CoY0te]24-Jul-02 1:24
[CoY0te]24-Jul-02 1:24 
GeneralKey Press Messages Pin
Atlence24-Jul-02 0:41
Atlence24-Jul-02 0:41 
GeneralRe: Key Press Messages Pin
Tomasz Sowinski24-Jul-02 0:45
Tomasz Sowinski24-Jul-02 0:45 

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.