Click here to Skip to main content
15,912,457 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: fatal error LNK1120: 1 unresolved externals question Pin
monsieur_jj12-Aug-08 16:19
monsieur_jj12-Aug-08 16:19 
GeneralRe: fatal error LNK1120: 1 unresolved externals question [modified] Pin
Mark Salsbery12-Aug-08 16:25
Mark Salsbery12-Aug-08 16:25 
GeneralRe: fatal error LNK1120: 1 unresolved externals question Pin
monsieur_jj12-Aug-08 16:42
monsieur_jj12-Aug-08 16:42 
QuestionTypelib issue Pin
George_George12-Aug-08 15:40
George_George12-Aug-08 15:40 
QuestionWriting in a CScrollView and print Previews - I can move forward in the print preview, but not backwards Pin
Sternocera12-Aug-08 11:54
Sternocera12-Aug-08 11:54 
Questionclass align vs struct align Pin
oobimoo12-Aug-08 11:04
oobimoo12-Aug-08 11:04 
AnswerRe: class align vs struct align Pin
Bram van Kampen12-Aug-08 11:12
Bram van Kampen12-Aug-08 11:12 
GeneralRe: class align vs struct align Pin
oobimoo12-Aug-08 11:24
oobimoo12-Aug-08 11:24 
Thanks for the quick response Bram.
Unfortunately this is not my problem. So let me make it more clear. I have a class with a virtual method (or two or a hudrent, there is no difference), an integer and a double and a 32bit os. So i expect to get 4 bytes for the vptr, 4 bytes for the int, 8 for the double and no need for padding anywhere between, because they are already aligned. Exactly what i have in the struct (pointer, int, double). Why do i get different sizes and member alignment?

modified on Tuesday, August 12, 2008 6:03 PM

GeneralRe: class align vs struct align Pin
Bram van Kampen12-Aug-08 12:13
Bram van Kampen12-Aug-08 12:13 
GeneralRe: class align vs struct align Pin
oobimoo12-Aug-08 12:20
oobimoo12-Aug-08 12:20 
AnswerRe: class align vs struct align Pin
Jijo.Raj12-Aug-08 19:22
Jijo.Raj12-Aug-08 19:22 
GeneralRe: class align vs struct align Pin
oobimoo12-Aug-08 23:18
oobimoo12-Aug-08 23:18 
GeneralRe: class align vs struct align Pin
Bram van Kampen13-Aug-08 16:32
Bram van Kampen13-Aug-08 16:32 
QuestionInitializing and Terminating function calls with a static library Pin
Chris Meech12-Aug-08 10:18
Chris Meech12-Aug-08 10:18 
AnswerRe: Initializing and Terminating function calls with a static library Pin
Mark Salsbery12-Aug-08 10:45
Mark Salsbery12-Aug-08 10:45 
GeneralRe: Initializing and Terminating function calls with a static library Pin
Chris Meech12-Aug-08 15:02
Chris Meech12-Aug-08 15:02 
GeneralRe: Initializing and Terminating function calls with a static library Pin
Mark Salsbery12-Aug-08 15:22
Mark Salsbery12-Aug-08 15:22 
GeneralRe: Initializing and Terminating function calls with a static library Pin
Bram van Kampen12-Aug-08 15:40
Bram van Kampen12-Aug-08 15:40 
GeneralRe: Initializing and Terminating function calls with a static library Pin
Chris Meech13-Aug-08 4:29
Chris Meech13-Aug-08 4:29 
GeneralRe: Initializing and Terminating function calls with a static library Pin
Mark Salsbery13-Aug-08 6:01
Mark Salsbery13-Aug-08 6:01 
GeneralRe: Initializing and Terminating function calls with a static library Pin
Bram van Kampen12-Aug-08 15:27
Bram van Kampen12-Aug-08 15:27 
GeneralRe: Initializing and Terminating function calls with a static library Pin
Mark Salsbery12-Aug-08 15:33
Mark Salsbery12-Aug-08 15:33 
GeneralRe: Initializing and Terminating function calls with a static library Pin
Chris Meech13-Aug-08 4:31
Chris Meech13-Aug-08 4:31 
AnswerRe: Initializing and Terminating function calls with a static library Pin
Bram van Kampen12-Aug-08 15:19
Bram van Kampen12-Aug-08 15:19 
QuestionC++ pointer question Pin
winburn12-Aug-08 10:17
winburn12-Aug-08 10:17 

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.