• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 270
  • Last Modified:

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?
0
brabchev
Asked:
brabchev
2 Solutions
 
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
Cloud Class® Course: 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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now