Click here to Skip to main content
15,920,632 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Mysterious error!!! [edited] Pin
Maxwell Chen14-May-02 0:57
Maxwell Chen14-May-02 0:57 
GeneralRe: Mysterious error!!! [edited] Pin
tongc14-May-02 1:44
tongc14-May-02 1:44 
GeneralUnix signal analogous implementation in windows Pin
14-May-02 0:22
suss14-May-02 0:22 
GeneralRe: Unix signal analogous implementation in windows Pin
Martin Ziacek14-May-02 0:23
Martin Ziacek14-May-02 0:23 
GeneralRe: Unix signal analogous implementation in windows Pin
Joaquín M López Muñoz14-May-02 1:02
Joaquín M López Muñoz14-May-02 1:02 
GeneralProblems with "external struct" Pin
14-May-02 0:10
suss14-May-02 0:10 
GeneralRe: Problems with "external struct" Pin
Maxwell Chen14-May-02 0:53
Maxwell Chen14-May-02 0:53 
GeneralRe: Problems with "external struct" Pin
Aizik Yair14-May-02 1:00
Aizik Yair14-May-02 1:00 
Hi,
you probebly want to construct my_struct in one .c file and then use it in another .c file.
So if I correct the Wright way to do this:

1. First construct your my_struct in one .c file (lets say it will be call "TheStruct”).

Example :
my_struct TheStruct;

2. Now after you know you construct you my_struct go to other .c file
And declare on top of it "extern my_struct TheStruct;"

TheStruct is the same my_struct you construct in 1.

No Need To do that in .h files

Wink | ;)

Aizik Yair
Software Engineer
GeneralRe: Problems with "external struct" Pin
14-May-02 2:59
suss14-May-02 2:59 
GeneralRe: Problems with "external struct" Pin
Alexandru Savescu14-May-02 2:58
Alexandru Savescu14-May-02 2:58 
GeneralRe: Problems with "external struct" Pin
14-May-02 3:02
suss14-May-02 3:02 
GeneralRe: Problems with "external struct" Pin
14-May-02 3:16
suss14-May-02 3:16 
GeneralRe: Problems with "external struct" Pin
14-May-02 5:42
suss14-May-02 5:42 
QuestionDialogs in dialogs? Pin
-Dy14-May-02 0:12
-Dy14-May-02 0:12 
AnswerRe: Dialogs in dialogs? Pin
Martin Ziacek14-May-02 0:18
Martin Ziacek14-May-02 0:18 
GeneralRe: Dialogs in dialogs? Pin
-Dy14-May-02 0:28
-Dy14-May-02 0:28 
AnswerRe: Dialogs in dialogs? Pin
Nish Nishant14-May-02 0:18
sitebuilderNish Nishant14-May-02 0:18 
GeneralRe: Dialogs in dialogs? Pin
-Dy14-May-02 0:30
-Dy14-May-02 0:30 
AnswerRe: Dialogs in dialogs? Pin
Maxwell Chen14-May-02 0:41
Maxwell Chen14-May-02 0:41 
GeneralRe: Dialogs in dialogs? Pin
Niklas L14-May-02 2:17
Niklas L14-May-02 2:17 
AnswerRe: Dialogs in dialogs? Pin
Chris Losinger17-May-02 7:39
professionalChris Losinger17-May-02 7:39 
GeneralSecurity hole or feature? (IIS related) Pin
Philip Patrick13-May-02 23:41
professionalPhilip Patrick13-May-02 23:41 
GeneralRe: Security hole or feature? (IIS related) Pin
Oleksandr Kucherenko14-May-02 2:14
Oleksandr Kucherenko14-May-02 2:14 
GeneralRe: Security hole or feature? (IIS related) Pin
Philip Patrick14-May-02 3:41
professionalPhilip Patrick14-May-02 3:41 
GeneralVisual Studio and Norton Anti-Virus Pin
Blade[DMS]13-May-02 23:25
Blade[DMS]13-May-02 23:25 

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.