Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnContextMenu Shows up without text Pin
valikac22-Apr-03 11:56
valikac22-Apr-03 11:56 
GeneralRe: OnContextMenu Shows up without text Pin
allcodeluver23-Apr-03 4:26
allcodeluver23-Apr-03 4:26 
GeneralWinsock Problems Pin
Ken Mazaika22-Apr-03 10:51
Ken Mazaika22-Apr-03 10:51 
GeneralRe: Winsock Problems Pin
valikac22-Apr-03 11:59
valikac22-Apr-03 11:59 
GeneralRe: Winsock Problems Pin
Ken Mazaika22-Apr-03 13:28
Ken Mazaika22-Apr-03 13:28 
GeneralRe: Winsock Problems Pin
valikac22-Apr-03 14:29
valikac22-Apr-03 14:29 
GeneralRe: Winsock Problems Pin
basementman24-Apr-03 8:10
basementman24-Apr-03 8:10 
GeneralXP Style dialogs Pin
conetti22-Apr-03 10:39
conetti22-Apr-03 10:39 
GeneralRe: XP Style dialogs Pin
Neville Franks22-Apr-03 11:40
Neville Franks22-Apr-03 11:40 
GeneralDouble Click Pin
Anthony988722-Apr-03 10:16
Anthony988722-Apr-03 10:16 
GeneralRe: Double Click Pin
David Crow22-Apr-03 10:22
David Crow22-Apr-03 10:22 
GeneralCreateCompatibleBitmap Pin
georgiek5022-Apr-03 10:13
georgiek5022-Apr-03 10:13 
GeneralRe: CreateCompatibleBitmap Pin
Chris Losinger22-Apr-03 10:40
professionalChris Losinger22-Apr-03 10:40 
GeneralRe: CreateCompatibleBitmap Pin
georgiek5022-Apr-03 14:35
georgiek5022-Apr-03 14:35 
Generalvc++ 6 enviroment question Pin
tasoss22-Apr-03 9:55
tasoss22-Apr-03 9:55 
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 
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 
Best not to apply that globaly, it might have a serious impact on performence.
Surround the offending struct like so:

<br />
#pragma pack(push,1)<br />
struct blah<br />
{<br />
}<br />
#pragma pack(pop)<br />


That will force the compiler to use byte alignment just for the offending structure. A better soloution would be to provide aprropriate iostream serialisers.

Ryan

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.