Click here to Skip to main content
15,896,453 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionReg MDI windows Explorer Pin
hellogany22-Mar-10 20:45
hellogany22-Mar-10 20:45 
AnswerRe: Reg MDI windows Explorer Pin
Richard MacCutchan22-Mar-10 22:16
mveRichard MacCutchan22-Mar-10 22:16 
AnswerRe: Reg MDI windows Explorer Pin
Adam Roderick J23-Mar-10 2:19
Adam Roderick J23-Mar-10 2:19 
GeneralRe: Reg MDI windows Explorer Pin
hellogany23-Mar-10 18:40
hellogany23-Mar-10 18:40 
GeneralRe: Reg MDI windows Explorer Pin
hellogany28-Mar-10 20:15
hellogany28-Mar-10 20:15 
QuestionGCC Linker and Where To Define Structures Pin
Trevor Johansen22-Mar-10 17:46
Trevor Johansen22-Mar-10 17:46 
AnswerRe: GCC Linker and Where To Define Structures Pin
CPallini22-Mar-10 21:55
mveCPallini22-Mar-10 21:55 
GeneralRe: GCC Linker and Where To Define Structures Pin
Trevor Johansen24-Mar-10 9:22
Trevor Johansen24-Mar-10 9:22 
Ahh I see so my delay.c is compiled to its own object obviously so at link time file1.o and file2.o while both using _delay() get it from delay.o I could have figured that one out if I took the though process a bit deeper eh..

This extern setup is a pain in the butt. I have multiple structures in my files for example I have my menu system as:
enum states { 
		Info = 0,
		Speed = 1,
			Up = 2,
			Down = 3,
		Control = 4,
			OnOff = 5,
			CW = 6,
			CCW = 7
};

struct branch {
    enum states new_state:7;
		int entry_action;
                int action_a;
		int action_b;
		int action_c;
		int exit_action;
};


These are in my header file and almost exclusive to that source file except as the project grew I now need to read branch data from a separate source file. In that file if I include the header I get multiple definition errors of struct branch. Moving that structure to the source and declaring extern struct branch; solves the error but now I cannot use the structure in other source files as it says its undefined.
GeneralRe: GCC Linker and Where To Define Structures Pin
CPallini24-Mar-10 11:33
mveCPallini24-Mar-10 11:33 
GeneralRe: GCC Linker and Where To Define Structures Pin
Trevor Johansen25-Mar-10 13:08
Trevor Johansen25-Mar-10 13:08 
GeneralRe: GCC Linker and Where To Define Structures Pin
CPallini25-Mar-10 21:41
mveCPallini25-Mar-10 21:41 
QuestionHow do you display a bitmap in IE and control navigation? Pin
nstein222-Mar-10 11:57
nstein222-Mar-10 11:57 
AnswerRe: How do you display a bitmap in IE and control navigation? Pin
KarstenK23-Mar-10 4:21
mveKarstenK23-Mar-10 4:21 
QuestionDeleting a single point from a quadtree Pin
Chidori-chan22-Mar-10 9:43
Chidori-chan22-Mar-10 9:43 
AnswerRe: Deleting a single point from a quadtree Pin
Avi Berger22-Mar-10 11:00
Avi Berger22-Mar-10 11:00 
AnswerRe: Deleting a single point from a quadtree Pin
Richard MacCutchan22-Mar-10 11:07
mveRichard MacCutchan22-Mar-10 11:07 
QuestionRe: Deleting a single point from a quadtree Pin
Chidori-chan23-Mar-10 8:52
Chidori-chan23-Mar-10 8:52 
QuestionRST Template Matching Pin
cherrymotion22-Mar-10 6:20
cherrymotion22-Mar-10 6:20 
AnswerRe: RST Template Matching Pin
Tim Craig22-Mar-10 9:45
Tim Craig22-Mar-10 9:45 
GeneralRe: RST Template Matching Pin
cherrymotion22-Mar-10 11:05
cherrymotion22-Mar-10 11:05 
GeneralRe: RST Template Matching Pin
Tim Craig22-Mar-10 13:48
Tim Craig22-Mar-10 13:48 
GeneralRe: RST Template Matching Pin
cherrymotion23-Mar-10 11:18
cherrymotion23-Mar-10 11:18 
GeneralRe: RST Template Matching Pin
Tim Craig23-Mar-10 12:53
Tim Craig23-Mar-10 12:53 
GeneralRe: RST Template Matching Pin
cherrymotion25-Mar-10 6:46
cherrymotion25-Mar-10 6:46 
QuestionModeless dialog frame sizing in MFC MDI Pin
Vaclav_22-Mar-10 3:38
Vaclav_22-Mar-10 3:38 

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.