• Advertisement

Archived

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

OGL .Net problems

This topic is 5104 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Well, i installed .net on my pc, and I''m trying to port the engine I have on Dev c++ to Visual C++ 7(.Net). Now, I made a new Win32 project, a blank project btw, and then added all the files I had into the project. Once I did that, and fixed some errors, I received, when compiling, 517 lines of errors. all of them come from the gl\gl.h header which i just figured doesn''t recognize WINGDIAPI, basically a macro inside this header. I go like "wtf!", so I decided to put, before every include of the gl header, #include <windows.h> ... this solved the hundreds of error problems, but: 1) Isnt there any way I could just include gl/gl.h without having to put windows.h EVERYTIME? shouldn''t the header precompile only once? 2) Im still having some errors: c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\WinDef.h(143): warning C4114: same type qualifier used more than once c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\WinDef.h(143): error C2632: ''char'' followed by ''char'' is illegal c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\WinDef.h(143): warning C4091: ''typedef '' : ignored on left of ''unsigned char'' when no variable is declared If anyone can help me, I''d really apreciate it.

Share this post


Link to post
Share on other sites
Advertisement
weird, I have to put this windows.h in devc++ everytime to use gl/gl.h!

Share this post


Link to post
Share on other sites
the offending line is:
typedef unsigned char BYTE;

BYTE is probably #define''d to char somewhere before #include <windows.h>.

Share this post


Link to post
Share on other sites

  • Advertisement