Click here to Skip to main content
15,891,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionplease help me Pin
dSolariuM22-Mar-06 5:26
dSolariuM22-Mar-06 5:26 
AnswerRe: please help me Pin
Dominik Reichl22-Mar-06 6:58
Dominik Reichl22-Mar-06 6:58 
QuestionNotification when a shared file is closed by other program Pin
bgsommerfeld22-Mar-06 4:58
bgsommerfeld22-Mar-06 4:58 
AnswerRe: Notification when a shared file is closed by other program Pin
Chris Meech22-Mar-06 7:05
Chris Meech22-Mar-06 7:05 
Questionvc.net(1.1) Pin
pankajgarg1222-Mar-06 4:06
pankajgarg1222-Mar-06 4:06 
AnswerRe: vc.net(1.1) Pin
toxcct22-Mar-06 4:09
toxcct22-Mar-06 4:09 
AnswerRe: vc.net(1.1) Pin
Dominik Reichl22-Mar-06 7:01
Dominik Reichl22-Mar-06 7:01 
Questionstructs in c++ Pin
pplshero5422-Mar-06 3:57
pplshero5422-Mar-06 3:57 
I am writing a program in c++ and I want to use a struct to group together some information but I don't need to make a full class for it since it only has 4 primitive fields in it and doesn't need data hiding or methods. I was wondering if it would be more efficient to use C linkage rather than just declaring a struct in c++ because I don't want the overhead of constructors destructors, methods, etc. The two ways I could do this are listed below. can you tell me if the one with C linkage will be smaller. My program needs to be as efficient as possible.

extern "C" {<br />
typedef struct<br />
{<br />
	float velX;<br />
	float velY;<br />
	float velZ;<br />
	float b;<br />
} FluidInfo;<br />
}


or

struct FluidInfo<br />
{<br />
	float velX;<br />
	float velY;<br />
	float velZ;<br />
	float b;<br />
};


pplshero54 gives his most thanks
AnswerRe: structs in c++ Pin
toxcct22-Mar-06 4:07
toxcct22-Mar-06 4:07 
AnswerRe: structs in c++ Pin
Michael Dunn22-Mar-06 5:33
sitebuilderMichael Dunn22-Mar-06 5:33 
Questionwhat should be the salary of an exp vc++ sw developer Pin
vmmk22-Mar-06 3:22
vmmk22-Mar-06 3:22 
AnswerRe: what should be the salary of an exp vc++ sw developer Pin
toxcct22-Mar-06 4:11
toxcct22-Mar-06 4:11 
GeneralRe: what should be the salary of an exp vc++ sw developer Pin
Waldermort22-Mar-06 4:16
Waldermort22-Mar-06 4:16 
GeneralRe: what should be the salary of an exp vc++ sw developer Pin
toxcct22-Mar-06 4:19
toxcct22-Mar-06 4:19 
GeneralRe: what should be the salary of an exp vc++ sw developer Pin
Abebe22-Mar-06 4:21
Abebe22-Mar-06 4:21 
GeneralRe: what should be the salary of an exp vc++ sw developer Pin
V.22-Mar-06 4:40
professionalV.22-Mar-06 4:40 
GeneralRe: what should be the salary of an exp vc++ sw developer Pin
toxcct22-Mar-06 4:41
toxcct22-Mar-06 4:41 
GeneralRe: what should be the salary of an exp vc++ sw developer Pin
V.22-Mar-06 4:43
professionalV.22-Mar-06 4:43 
GeneralRe: what should be the salary of an exp vc++ sw developer Pin
Abebe22-Mar-06 4:43
Abebe22-Mar-06 4:43 
AnswerRe: what should be the salary of an exp vc++ sw developer Pin
Nish Nishant22-Mar-06 5:10
sitebuilderNish Nishant22-Mar-06 5:10 
QuestionHow to stop the window popping up when a CD is inserted Pin
Atom22-Mar-06 3:05
Atom22-Mar-06 3:05 
AnswerRe: How to stop the window popping up when a CD is inserted Pin
Michael Dunn22-Mar-06 5:34
sitebuilderMichael Dunn22-Mar-06 5:34 
GeneralRe: How to stop the window popping up when a CD is inserted Pin
Atom22-Mar-06 6:21
Atom22-Mar-06 6:21 
GeneralRe: How to stop the window popping up when a CD is inserted Pin
Waldermort22-Mar-06 18:17
Waldermort22-Mar-06 18:17 
GeneralRe: How to stop the window popping up when a CD is inserted Pin
Syouki_kou22-Mar-06 18:53
Syouki_kou22-Mar-06 18:53 

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.