Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: diffirent between using MFC OpenGL AppWizard and normal text file (Using VC++)

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2002
    Location
    Port Dickson, Negeri Sembilan, Malaysia
    Posts
    13

    diffirent between using MFC OpenGL AppWizard and normal text file (Using VC++)

    I try to compile the tutorial 6 from NeHe Tutorial by using MFC Wizard and normal text file, unfortunately, by using MFC Wizard, it was no errors messages when compiling, but when run it, I couldn't get the output of the program. By the way, it pop up with error message "Unhndled exception in <filename.exe>(I81XGDEV.DLL):0xCD000010:Illegal Instruction". What is this mean?
    But it still can continue with selection for the window MODE, but it pop up an error message with "<filename> has caused an error in I81XGDEV.DLL. <filename> will now close".

    For normal text file, there are 2 errors message with "LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
    Debug/Lesson5.exe : fatal error LNK1120: 1 unresolved externals"

    I still couldn't find out what is all this about. Please hep.
    Thanks you

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Feb 2002
    Location
    Bonn, Germany
    Posts
    1,633

    Re: diffirent between using MFC OpenGL AppWizard and normal text file (Using VC++)

    Originally posted by always1:
    I try to compile the tutorial 6 from NeHe Tutorial by using MFC Wizard and normal text file, unfortunately, by using MFC Wizard, it was no errors messages when compiling, but when run it, I couldn't get the output of the program. By the way, it pop up with error message "Unhndled exception in <filename.exe>(I81XGDEV.DLL):0xCD000010:Illegal Instruction". What is this mean?
    But it still can continue with selection for the window MODE, but it pop up an error message with "<filename> has caused an error in I81XGDEV.DLL. <filename> will now close".
    That's Intel 810 or 815 integrated graphics, right? Try getting updated graphics drivers for it.

    For normal text file, there are 2 errors message with "LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
    Debug/Lesson5.exe : fatal error LNK1120: 1 unresolved externals"
    If you chose to create a console app when creating the project, you need to supply a main function. If you only have a WinMain function, recreate the project again, this time selecting 'Win32 application'. There's also a linker switch for that but I can't remember right now...

  3. #3
    Senior Member Regular Contributor
    Join Date
    Mar 2001
    Posts
    184

    Re: diffirent between using MFC OpenGL AppWizard and normal text file (Using VC++)

    yes, to use most (if not all) NeHe tutorials use the Win32 Application project. You will need to add the following libraries to the Link section of the project settings:

    opengl32.lib
    glu32.lib
    glaux.lib
    glut32.lib

    you may not need the last 2, depends on what you're trying to do. you'll also need the headers. (i think MSVC comes with all of the libraries and headers except for GLUT)

    // edit
    actually, i don't believe glaux is supported anymore. anyone correct me on this?
    // edit

    b

    [This message has been edited by coredump (edited 04-10-2002).]

  4. #4
    Junior Member Newbie
    Join Date
    Apr 2002
    Location
    Port Dickson, Negeri Sembilan, Malaysia
    Posts
    13

    Re: diffirent between using MFC OpenGL AppWizard and normal text file (Using VC++)

    that means i must to update the driver?
    Originally posted by zeckensack:
    Originally posted by always1:
    I try to compile the tutorial 6 from NeHe Tutorial by using MFC Wizard and normal text file, unfortunately, by using MFC Wizard, it was no errors messages when compiling, but when run it, I couldn't get the output of the program. By the way, it pop up with error message "Unhndled exception in <filename.exe>(I81XGDEV.DLL):0xCD000010:Illegal Instruction". What is this mean?
    But it still can continue with selection for the window MODE, but it pop up an error message with "<filename> has caused an error in I81XGDEV.DLL. <filename> will now close".
    That's Intel 810 or 815 integrated graphics, right? Try getting updated graphics drivers for it.

    For normal text file, there are 2 errors message with "LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
    Debug/Lesson5.exe : fatal error LNK1120: 1 unresolved externals"
    If you chose to create a console app when creating the project, you need to supply a main function. If you only have a WinMain function, recreate the project again, this time selecting 'Win32 application'. There's also a linker switch for that but I can't remember right now...

  5. #5
    Junior Member Newbie
    Join Date
    Apr 2002
    Location
    Port Dickson, Negeri Sembilan, Malaysia
    Posts
    13

    Re: diffirent between using MFC OpenGL AppWizard and normal text file (Using VC++)

    this time i included the
    glut32.lib
    but still error "cannot openfile glut32.lib"
    Originally posted by coredump:
    yes, to use most (if not all) NeHe tutorials use the Win32 Application project. You will need to add the following libraries to the Link section of the project settings:

    opengl32.lib
    glu32.lib
    glaux.lib
    glut32.lib

    you may not need the last 2, depends on what you're trying to do. you'll also need the headers. (i think MSVC comes with all of the libraries and headers except for GLUT)

    // edit
    actually, i don't believe glaux is supported anymore. anyone correct me on this?
    // edit

    b

    [This message has been edited by coredump (edited 04-10-2002).]

  6. #6
    Senior Member Regular Contributor
    Join Date
    Mar 2001
    Posts
    184

    Re: diffirent between using MFC OpenGL AppWizard and normal text file (Using VC++)

    as i mentioned above, you'll need to download GLUT if you want to use anything in it. VC++ does not come with GLUT. you can download GLUT from this site.

    b

  7. #7
    Senior Member Regular Contributor
    Join Date
    May 2000
    Location
    Oxford, England
    Posts
    472

    Re: diffirent between using MFC OpenGL AppWizard and normal text file (Using VC++)

    Originally posted by always1:
    this time i included the
    glut32.lib
    but still error "cannot openfile glut32.lib"
    To get a nehe tutorial to compile in a new project, all you have to do is this :

    Create a new Win32 Application project (not a win32 console Application or an MFC project!!)

    goto the project settings and link to the following :

    opengl32.lib
    glu32.lib
    glaux.lib

    There is no need to link to glut32.lib because nehe never uses it. It's only really used if you dont want the hassle of doing a win32 project, and prefer using console apps. I'm not suprised you dont have the lib or dll required because it doesn't come with VC6. Don't need them anyway so don't bother.....

    If after doing the above, you still can't get it to run, then it is the graphics card driver that needs updating.

    coredump, glaux hasn't gone under any development for ages, but it is used in some of the nehe demos for a few basic primitives and some of the simpler texture loading tutorials.

  8. #8
    Junior Member Newbie
    Join Date
    Apr 2002
    Location
    Port Dickson, Negeri Sembilan, Malaysia
    Posts
    13

    Re: diffirent between using MFC OpenGL AppWizard and normal text file (Using VC++)

    by using empty project right? but it doesn't work. My had updated my graphic card driver, but still the same. But if i use the MFC App, was the different output.
    Originally posted by Rob The Bloke:
    To get a nehe tutorial to compile in a new project, all you have to do is this :

    Create a new Win32 Application project (not a win32 console Application or an MFC project!!)

    goto the project settings and link to the following :

    opengl32.lib
    glu32.lib
    glaux.lib

    There is no need to link to glut32.lib because nehe never uses it. It's only really used if you dont want the hassle of doing a win32 project, and prefer using console apps. I'm not suprised you dont have the lib or dll required because it doesn't come with VC6. Don't need them anyway so don't bother.....

    If after doing the above, you still can't get it to run, then it is the graphics card driver that needs updating.

    coredump, glaux hasn't gone under any development for ages, but it is used in some of the nehe demos for a few basic primitives and some of the simpler texture loading tutorials.

  9. #9
    Senior Member Regular Contributor
    Join Date
    May 2000
    Location
    Oxford, England
    Posts
    472

    Re: diffirent between using MFC OpenGL AppWizard and normal text file (Using VC++)

    Yes, it should be in an empty project. What are the errors you get now? Can you compile it? If yes have you tried stepping through it with the debugger?

    Mail me the project if you still can't get it to work.

    [This message has been edited by Rob The Bloke (edited 04-11-2002).]

  10. #10

    Re: diffirent between using MFC OpenGL AppWizard and normal text file (Using VC++)

    All of the NeHe tutorials come with a VC++ workspace (*.dsw) file and all you have to do is double click on that file to bring up the app and the IDE and build the application. The only problem maybe the glut lib and as mentioned previously download and install. If you insist on building your own NeHE app with the APP wizard build a win32 app and make sure that the windows.h header comes before all other header files

Page 1 of 2 12 LastLast

Similar Threads

  1. How To Open a text file
    By Numan Ali in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 02-28-2018, 09:17 AM
  2. Exporting OpenGL Text as an OBJ File
    By dvmorris in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-11-2010, 01:49 AM
  3. Replies: 7
    Last Post: 11-15-2003, 07:52 PM
  4. OpenGL Appwizard
    By Deiussum in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 11-22-2000, 07:23 AM
  5. OpenGL Appwizard
    By Deiussum in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 11-21-2000, 04:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean