Plz help me!!
hihi, everyone! I''m a second year student in Hong Kong Polytechnic University. I have some problems about C++ with OpenGL.
How can I send my work to my friend who don''t have c++ or OpenGL as well. I''ve tried to send all the source code and executable code to my friend but it doesn''t work. How can I do? Please help me to solve this problem. Thanks very much!!
Well, you say your friend doesn''t have C++ or OpenGL. I''d like to point out for you that C++ is not a program, it''s only a language in which you write a program. What your friend doesn''t have is probably a C++ compiler, which is the program that builds the exe file from your C++ code. Your friend should be able to look at your C++ code from any simple editor, like the windows notepad. There are plenty of free C++ compilers out there. The Borland compiler for example, bloodshed c, etc. Just do a little search with google for example for free compilers. The OpenGL libraries are most times included afaik, if not, you can always download them somewhere.
Newbie programmers think programming is hard.Amature programmers think programming is easy.Professional programmers know programming is hard.
I think that almost everyone has opengl. Unless you expect you''re friend to be editing you''re program, all you need is the exe, and any files that you load, such as graphics and sound. (It''s often very convenient to include these as resources, and they get compiled into you''re program and it''s all right where you want them.) If you really want to be safe though, you can package opengl32.dll, glu32.dll. If you use windows, you can almost always find them in
You don''t have to put these files in the windows system directory, mainly because you could overwrite newer versions, and that would be bad. You can have them in the same directory as your program. It checks there first anyway. I''m sure that''s all you need to do to ensure you''re program works on a computer with windows for it''s operating system.
It''s possible to have the librarys compiled into you''re program, but then you have to load it yourself, and it''s a pain in the ass. I think the above is good enough.
*About the source code being able to be read in windows notepad:
This is usually true, but on unix like operating systems (including linux), a return character is ''/n'' and in windows it''s ''/r/n''. Without the return character, the newline character gets turned into a funky circle thing, and everything is on one line. DOSes ''edit.exe'', which can usually be found in
c:\windows\system\
. You should always package glut32.dll with you''re program if you use glut, because it''s alot more likely that the average user doesn''t have it.You don''t have to put these files in the windows system directory, mainly because you could overwrite newer versions, and that would be bad. You can have them in the same directory as your program. It checks there first anyway. I''m sure that''s all you need to do to ensure you''re program works on a computer with windows for it''s operating system.
It''s possible to have the librarys compiled into you''re program, but then you have to load it yourself, and it''s a pain in the ass. I think the above is good enough.
*About the source code being able to be read in windows notepad:
This is usually true, but on unix like operating systems (including linux), a return character is ''/n'' and in windows it''s ''/r/n''. Without the return character, the newline character gets turned into a funky circle thing, and everything is on one line. DOSes ''edit.exe'', which can usually be found in
c:\dos\
or c:\windows\command\
can read such files correctly, but if you use MSVC, this probably doesn''t apply to you.
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other player's eyes with his King.
Oh! I''m sorry that I make a mistake for saying C++ is a program. I mean my friend doesn''t have any c++ compiler. Sorry for saying such stupid.
Thank you for your help. I will try if it works.
Anyway, thanks a lot.
Thank you for your help. I will try if it works.
Anyway, thanks a lot.
Perhaps you have included the MFC Libary then
1. Try not to include the MFC ;-)
2. It could be that your friend does not have the mfc dlls so watch out that you bind MFC as a static libary binded to your exe-file.
Good Luck
1. Try not to include the MFC ;-)
2. It could be that your friend does not have the mfc dlls so watch out that you bind MFC as a static libary binded to your exe-file.
Good Luck
December 03, 2001 10:19 AM
Sorry Sir, I don''t know what MFC is. I use MSVC to compile my cpp program. So would you mind explaining to me more detailed, please?
It probably means you need msvcrt.dll in addition to opengl32.dll and glu32.dll. I'm guessing it's short for 'micro soft visual c run time dynamic link library'. Sucker! I don't use MSVC, so I don't need it!
Edited by - smart_idiot on December 4, 2001 9:27:19 AM
Edited by - smart_idiot on December 4, 2001 9:27:19 AM
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other player's eyes with his King.
msvcrt comes with windows ^_^
-----------------------"When I have a problem on an Nvidia, I assume that it is my fault. With anyone else's drivers, I assume it is their fault" - John Carmack
You do not have to include the MFC library with an msvc project, and i doubt its a necessety to an opengl program.
www.EberKain.comThere it is, Television, Look Listen Kneel Pray.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement