Results 1 to 6 of 6

Thread: *.dsw file

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

    *.dsw file

    in NeHe tutorial, why couldn't get the output if *.dsw file is not open?
    what is *.dsw file about?
    and how to get this file?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Jan 2002
    Posts
    292

    Re: *.dsw file

    dws files are the project files... That is the file you open to get to the entire project... You need visual C++...

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: *.dsw file

    This is just a technicallity, but the dsw file is actually the workspace file. Basically it contains which projects are in the workspace,etc. The dsp files are the project files and that contains things like which libraries to link in, compiler settings, etc.

    My question is, if you have VC++ and a dsw file why would you NOT want to use it? It's a lot easier than setting up your own project then going in to add libraries, make sure you have the right compiler settings, etc.

    If you're trying to use just the .cpp files, my guess is that you are probably getting linker errors. If the route you really wanna go is setting it up manually, you'll have to go into the link tab of the project properties, and add the missing libraries. (Most likely you'll need opengl32.lib, and possibly glu32.lib.)

    If you get errors about a missing main() or WinMain(), then you have to change the compiler settings. I don't remember which flag that was exactly offhand, though. There are basically 3 types of apps you can create. A Win32 app which uses WinMain as the entry point, a Win32 console which uses main as the entry point, and an MFC app which creates a global instance of CWinApp and basically uses a hidden WinMain that passes stuff to that.
    Deiussum
    Software Engineer and OpenGL enthusiast

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

    Re: *.dsw file

    ya, im using VC++, but when i trying to compile the NeHe tutorial by using a different file name, but there is still error..
    the error message was "cannot execute program" pop up in a small window.
    by the way, i used win32 App.

    Originally posted by Deiussum:
    This is just a technicallity, but the dsw file is actually the workspace file. Basically it contains which projects are in the workspace,etc. The dsp files are the project files and that contains things like which libraries to link in, compiler settings, etc.

    My question is, if you have VC++ and a dsw file why would you NOT want to use it? It's a lot easier than setting up your own project then going in to add libraries, make sure you have the right compiler settings, etc.

    If you're trying to use just the .cpp files, my guess is that you are probably getting linker errors. If the route you really wanna go is setting it up manually, you'll have to go into the link tab of the project properties, and add the missing libraries. (Most likely you'll need opengl32.lib, and possibly glu32.lib.)

    If you get errors about a missing main() or WinMain(), then you have to change the compiler settings. I don't remember which flag that was exactly offhand, though. There are basically 3 types of apps you can create. A Win32 app which uses WinMain as the entry point, a Win32 console which uses main as the entry point, and an MFC app which creates a global instance of CWinApp and basically uses a hidden WinMain that passes stuff to that.

  5. #5
    Senior Member Regular Contributor
    Join Date
    Jan 2002
    Posts
    292

    Re: *.dsw file

    Well, it never compiles???
    I get that message when I compile and run my program through VC++ (e.g. ctrl+F5), and then try to run it again without closing my already opened one...!
    I dont know if this makes much sense...

    I have used a few of nehes programs and never had a problem...

    Which nehes program are you trying to compile? I will download it and see if it gives me the same error...


  6. #6
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: *.dsw file

    Originally posted by always1:
    ya, im using VC++, but when i trying to compile the NeHe tutorial by using a different file name, but there is still error..
    the error message was "cannot execute program" pop up in a small window.
    by the way, i used win32 App.

    Are you actually adding the .cpp files to the project, or just opening them? A project with no code in it cannot make an .exe to run. You need to go to Project->Add to Project->Files, not File->Open.

    Just did a quick test with an empty Win32 App project, and it gives me that same "cannot execute program" window, so I'm guessing that is probably where your problem is.
    Deiussum
    Software Engineer and OpenGL enthusiast

Similar Threads

  1. txt file 2 NVIDIA scenegraph file format (.nbf)
    By Giancarlo in forum OpenGL: General
    Replies: 1
    Last Post: 07-20-2009, 06:37 PM
  2. Replies: 12
    Last Post: 05-25-2005, 12:42 PM
  3. Replies: 3
    Last Post: 07-01-2002, 01:45 AM
  4. Replies: 1
    Last Post: 06-30-2002, 11:46 AM
  5. Replies: 5
    Last Post: 12-14-2000, 03:19 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