Click here to Skip to main content
16,015,991 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: VC++.NET [probable bug when using IJW] Pin
Nish Nishant3-May-02 19:16
sitebuilderNish Nishant3-May-02 19:16 
GeneralRe: VC++.NET [probable bug when using IJW] Pin
Albert Pascual6-May-02 10:47
sitebuilderAlbert Pascual6-May-02 10:47 
GeneralRe: VC++.NET [probable bug when using IJW] Pin
Nish Nishant6-May-02 15:24
sitebuilderNish Nishant6-May-02 15:24 
GeneralRe: VC++.NET [probable bug when using IJW] Pin
Albert Pascual7-May-02 5:58
sitebuilderAlbert Pascual7-May-02 5:58 
GeneralRe: VC++.NET [probable bug when using IJW] Pin
Nish Nishant7-May-02 13:53
sitebuilderNish Nishant7-May-02 13:53 
GeneralRe: VC++.NET [probable bug when using IJW] Pin
Albert Pascual7-May-02 14:00
sitebuilderAlbert Pascual7-May-02 14:00 
GeneralRe: VC++.NET [probable bug when using IJW] Pin
Nish Nishant7-May-02 14:12
sitebuilderNish Nishant7-May-02 14:12 
GeneralChoosing between WinMain and main in MC++ Pin
Nish Nishant3-May-02 16:32
sitebuilderNish Nishant3-May-02 16:32 
Hello

If you use main or _tmain then your code will be basically a console app. Even if you use Application::Run to bring up a form, the ugly console will lurk behind.

The solution is to use WinMain() instead of _tmain(). This was all very fine till I started using IJW. I need to #include <windows.h>

But the moment I #include <windows.h> I get the compile error that says :-

d:\Projects\Capture01\Capture01.cpp(22): error C2731: 'WinMain' : function cannot be overloaded

Frown | :( Frown | :( ( Frown | :( ( Frown | :(

Can anyone offer a solution?

Nish


Check out last week's Code Project posting stats presentation from :-
http://www.busterboy.org/codeproject/
Feel free to make your comments.

GeneralRe: Choosing between WinMain and main in MC++ Pin
Nish Nishant3-May-02 16:38
sitebuilderNish Nishant3-May-02 16:38 
GeneralRe: Choosing between WinMain and main in MC++ Pin
Rama Krishna Vavilala4-May-02 9:31
Rama Krishna Vavilala4-May-02 9:31 
GeneralRe: Choosing between WinMain and main in MC++ Pin
Nish Nishant4-May-02 14:52
sitebuilderNish Nishant4-May-02 14:52 
GeneralRe: Choosing between WinMain and main in MC++ Pin
Nish Nishant7-May-02 14:04
sitebuilderNish Nishant7-May-02 14:04 
GeneralRe: Choosing between WinMain and main in MC++ Pin
Rama Krishna Vavilala7-May-02 15:05
Rama Krishna Vavilala7-May-02 15:05 
GeneralRe: Choosing between WinMain and main in MC++ Pin
Nish Nishant7-May-02 15:10
sitebuilderNish Nishant7-May-02 15:10 
GeneralRe: Choosing between WinMain and main in MC++ Pin
Rama Krishna Vavilala7-May-02 15:38
Rama Krishna Vavilala7-May-02 15:38 
GeneralAre there any easy methods to... Pin
Nish Nishant3-May-02 14:04
sitebuilderNish Nishant3-May-02 14:04 
GeneralRe: Are there any easy methods to... Pin
James T. Johnson3-May-02 14:40
James T. Johnson3-May-02 14:40 
GeneralRe: Are there any easy methods to... Pin
Nish Nishant3-May-02 14:42
sitebuilderNish Nishant3-May-02 14:42 
GeneralRe: Are there any easy methods to... Pin
James T. Johnson3-May-02 15:07
James T. Johnson3-May-02 15:07 
GeneralRe: Are there any easy methods to... Pin
Nish Nishant3-May-02 15:15
sitebuilderNish Nishant3-May-02 15:15 
GeneralRe: Are there any easy methods to... Pin
James T. Johnson3-May-02 15:22
James T. Johnson3-May-02 15:22 
GeneralRe: Are there any easy methods to... Pin
Christian Graus5-May-02 20:33
protectorChristian Graus5-May-02 20:33 
GeneralRe: Are there any easy methods to... Pin
Neil Van Note5-May-02 21:24
Neil Van Note5-May-02 21:24 
GeneralRe: Are there any easy methods to... Pin
Neil Van Note5-May-02 22:21
Neil Van Note5-May-02 22:21 
GeneralRe: Are there any easy methods to... Pin
Nish Nishant6-May-02 17:12
sitebuilderNish Nishant6-May-02 17:12 

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.