Re: Digest Number 373

"Kieron Higgs" <[email protected]> Sat, 31 Dec 2005 09:11:58 -0000
Newsgroups gmane.comp.programming.cppug
Message-ID <000701c60dea$410b3640$d2026b83@Kieron>
Hi all

    all compilers write start up code before the main or winmain routines
start. In microsoft visual c (I am using version 6) you can overide the what
start up code is run usually this is default from the crt runtime. In the
project settings dialog box select link  Then in the category combo box
select output. You will see an empty text box called entry point symbol,
this is where you put the routine name that starts up, remember to call your
main routine from this code otherwise it will not be executed.


Hope this helps


Kieron Higgs

> >
> >  At 05:54 2005-12-27, Jitendra Kumar wrote:
> > >Hi all to the members of wonderful forum,
> > >
> > >Y'day i had an interview, this was the qstn:
> > >
> > >Write a program which will execute before the main
> > >function, dont use #pragma or compiler level programs?
> >
> > what language?  If C++, trivial:   write a struct
> > or class with your program in the constructor.
> > define an instance as a global variable.
> >
> > in C?  I have no idea.
> >
> >
> > >Pls post the answer.
> > >Thanku,
> > >
> > >Jitendra
> >
> >
>




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/EbFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/cppug/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/