Archived

This topic is now archived and is closed to further replies.

McMike2099

Won't execute after more files are added to workspace

Recommended Posts

I''m using Visual C++ 6.0, and my OpenGL programs have always worked; but for this one, I decided to add some more files to the workspace. Each file has a class in it. As soon as I add them though, when I hit execute, nothing happens. I think it''s because it doesn''t call WinMain anymore... When I delete the other files from the workspace it works again. Any ideas? Thanks!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Yes; it compiles and builds.

But when I hit execute, nothing happens.

Share this post


Link to post
Share on other sites
Ok, I''m pretty sure now that the problem is that it doesn''t call the WinMain function.

I put an ifstream right before the int WINAPI WinMain and it created the file. But then when I put the ifstream in the first line of the WinMain function it didn''t create the file...

I think it might be because the other files I included are based on DOS so use cout, and there''s a void main in there too. I commented out that main and all of the couts though...

Any ideas?

Thanks

Share this post


Link to post
Share on other sites