Where is main- continue

A

Allen Maki

I am new to form and controls. I do C++ programming for more than 10 years.
I noticed that there is no main function. Can anybody explain what I am
missing.

I am sure there is some kind of philosophy out there

I would be pleased if you could tell me where I can find more information
about the subject.

Summery of discussion:

John and PvdG42 helped a lot, but I lost them, as follows:

It would help if you'd say which language you're using. I *believe*
(though I'm far from a VB.NET expert and would welcome correction) that
VB.NET can "hide" the Main method. In C# it's always visible.


To add to what John told you, in a C++/CLI Windows Forms project, you'll
find main() in the <ProjectName>.cpp file, whereas your event procedures
will be placed in the <FormName>.h file.

My second question is:

I am sorry. I still use C++ in general and V C++ .NET, in particular.


Thanks for answering my question. You made a good point. In V C++ .net
compiler that I am using, the source file of the form is almost empty, but
the handler is in the bottom of the class block of the form header file.


Thinking more about what you have told me; I do not have <project Name>.cpp
or <ProjectName>.h files, but I do have <FormName>.cpp and <FormNme>.h

Can anybody give some help?
 
M

Mr. Arnold

I like to use the Code Project to find examples of how to code with C# and VB.Net. Maybe, you'll find some example in C++ .Net for what you're looking to do.

http://www.codeproject.com/
I am new to form and controls. I do C++ programming for more than 10 years.
I noticed that there is no main function. Can anybody explain what I am
missing.

I am sure there is some kind of philosophy out there

I would be pleased if you could tell me where I can find more information
about the subject.

Summery of discussion:

John and PvdG42 helped a lot, but I lost them, as follows:

It would help if you'd say which language you're using. I *believe*
(though I'm far from a VB.NET expert and would welcome correction) that
VB.NET can "hide" the Main method. In C# it's always visible.


To add to what John told you, in a C++/CLI Windows Forms project, you'll
find main() in the <ProjectName>.cpp file, whereas your event procedures
will be placed in the <FormName>.h file.

My second question is:

I am sorry. I still use C++ in general and V C++ .NET, in particular.


Thanks for answering my question. You made a good point. In V C++ ..net
compiler that I am using, the source file of the form is almost empty, but
the handler is in the bottom of the class block of the form header file.


Thinking more about what you have told me; I do not have <project Name>.cpp
or <ProjectName>.h files, but I do have <FormName>.cpp and <FormNme>.h

Can anybody give some help?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top