entry point for exe

Hi
I’m newbie in Visual C++ and I need to find the entry point in a quite large exe project.
How can I find which function or method is called first?
How do you set the entry point?
LVL 1
brabchevAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jkrCommented:
The entry point usually is 'main()' or in case of a GUI applicaion 'WinMain()'
0
GloomyFriarCommented:
Find class named xxxxxxxxxApp and derived from CWinApp.
0
GloomyFriarCommented:
Constructor of the class is executed firstly, then InitInstance if exists.
0
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

GloomyFriarCommented:
My recommendations are for MFC application.
If the application does not use the MFC, then follow the hint from jkr.
0
brabchevAuthor Commented:
The program actually is a game and it doesn’t use MFC neither GUI.
I already looked for main() but did not find any.
Is it possible to specify the entry point in the compiler options or the project settings?
0
jkrCommented:
>>Is it possible to specify the entry point in the compiler options or the project settings?

Yes, using the '/entry:<function>' linker option, but this is a 'low level' entry point that also performs some initialization. What kind of program is this? Is there a 'WinMain()'?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GloomyFriarCommented:
If you use MSVC - just press F11 "Step Into".
If you use other compiler - use the key with the same assignment.
0
tinchosCommented:
No comment has been added lately, so it's time to clean up this question.
I will leave the following recommendation for this question in the Cleanup topic area:

Split: jkr {http:#9636433} & GloomyFriar {http:#9640432}

Please leave any comments here within the next four days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Tinchos
EE Cleanup Volunteer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.