Click here to Skip to main content
15,900,724 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How do I implement a custom tag? Pin
Michael Dunn22-Mar-06 9:01
sitebuilderMichael Dunn22-Mar-06 9:01 
GeneralRe: How do I implement a custom tag? Pin
dude_445316924-Mar-06 9:54
dude_445316924-Mar-06 9:54 
QuestionHow to Declare Pointer to Structure Global? Pin
fambi_mail22-Mar-06 8:22
fambi_mail22-Mar-06 8:22 
QuestionPOSTing binary data with HTTPS through wininet... Pin
dandy7222-Mar-06 8:22
dandy7222-Mar-06 8:22 
AnswerRe: POSTing binary data with HTTPS through wininet... Pin
MF22-Mar-06 16:12
MF22-Mar-06 16:12 
GeneralRe: POSTing binary data with HTTPS through wininet... Pin
dandy7223-Mar-06 2:43
dandy7223-Mar-06 2:43 
GeneralRe: POSTing binary data with HTTPS through wininet... Pin
dandy7223-Mar-06 4:16
dandy7223-Mar-06 4:16 
QuestionControling MS Communications Control? Pin
pavanbabut22-Mar-06 6:12
pavanbabut22-Mar-06 6:12 
QuestionOverlapped RS232 crash problem Pin
Battikaa22-Mar-06 5:49
Battikaa22-Mar-06 5:49 
AnswerRe: Overlapped RS232 crash problem Pin
Battikaa25-Apr-06 5:56
Battikaa25-Apr-06 5:56 
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 

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.