Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Wrapper.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
blackmorpheus
Expert Cheater
Reputation: 0

Joined: 05 Apr 2008
Posts: 159

PostPosted: Fri Oct 24, 2008 11:52 am    Post subject: Wrapper. Reply with quote

How can i load an OpenGL Wrapper into a game that doesnt have opengl32.dll in it's directory?
How do i load the wrapper into the game?
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Sat Oct 25, 2008 4:03 am    Post subject: Reply with quote

Just try loading it and Windows will look for it in the path variable also. I suggest you to advice your clients that your program will need OpenGL. You might want to include the redistributable package when distributing the program.

If you want a custom error message eg. on Win32, try LoadLibrary, check the return value and if it fails, throw an error. People usually don't do this, but let the program crash telling the user the default error, which says something like "library opengl32.dll not found." I'd just do 2 different kind of packages:
1) one with everything, your program and the dlls etc.
2) second one with only your program telling the users if they're sure that OpenGL is installed, get this.
Back to top
View user's profile Send private message
blackmorpheus
Expert Cheater
Reputation: 0

Joined: 05 Apr 2008
Posts: 159

PostPosted: Sun Oct 26, 2008 5:24 am    Post subject: Reply with quote

Thanks it works Very Happy
Just have to place my wrapper.dll into the folder of the game and rename it to opengl32.dll

//edit

When i put this opengl32.dll in my folder. The game process starts running, but nothing shows on my screen!

Code:

#include <windows.h>
#include <gl\gl.h>
#include <gl\glu.h>
#include <gl\glaux.h>   

   
void APIENTRY NEWglBegin (GLenum mode)
{
   glBegin(mode);
}


It should do nothing to the screen, but the screen doesn't show up Sad
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites