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 


why DBK32Initialize is error?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source
View previous topic :: View next topic  
Author Message
hlzy
Advanced Cheater
Reputation: 0

Joined: 13 Jun 2011
Posts: 56

PostPosted: Tue Jun 14, 2011 9:30 pm    Post subject: why DBK32Initialize is error? Reply with quote

I call the procedure DBK32Initialize is error.program can not run normally
in .dll file i export like this:

{$R *.res}
exports
OP,RPM,WPM,DBK32Initialize;
begin
end.

in .exe program i import DBK32Initialize like this:
procedure DBK32Initialize;external '.\project1.dll';

when i call the procedure DBK32Initialize it make error immediately
it show that 'Access violation';

but compile .dll and .exe does not have error.
i have copy dbk32.sys to the .exe file directory.

if it can not load the .sys drive
that means it can not read/write memory by drive?
only use windows API readprocessmemory/writeprocessmemory?
how to solve?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25791
Location: The netherlands

PostPosted: Wed Jun 15, 2011 7:39 am    Post subject: Reply with quote

try adding some debug messages in dbk32initialize to find out where it goes wrong

also, if you're using the 64-bit compiler, make sure you do not use any jedi defined functions (only structures are useful)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
hlzy
Advanced Cheater
Reputation: 0

Joined: 13 Jun 2011
Posts: 56

PostPosted: Wed Jun 15, 2011 7:46 am    Post subject: Reply with quote

No.i am use 32bit compiler.
and i am sorry to say i do not know how to add debug message to a dll project.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25791
Location: The netherlands

PostPosted: Wed Jun 15, 2011 7:51 am    Post subject: Reply with quote

get dbgview and use outputdebugstring in the dll to see where it goes wrong

if you've got an debugger attached, check the debug messages in your debugger (dbgview won't show it then)

or just use showmessage

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
hlzy
Advanced Cheater
Reputation: 0

Joined: 13 Jun 2011
Posts: 56

PostPosted: Wed Jun 15, 2011 8:03 am    Post subject: Reply with quote

try
configure_vmx(strtoint('$'+vmx_p1_txt), strtoint('$'+vmx_p2_txt) );
except
//couldn't parse the password

end;

the program can not run pass here.
it is in the procedure DBK32Initialize
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25791
Location: The netherlands

PostPosted: Wed Jun 15, 2011 8:10 am    Post subject: Reply with quote

does it get past there when NOT debugging ? (debuggers generally don't handle vmx well when there is no vmx running)

anyhow, seeing you don't have much experience with this doubt you would even know how to use dbvm effectively. Add -dNOVMX to the compile parameters (or just comment it out)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
hlzy
Advanced Cheater
Reputation: 0

Joined: 13 Jun 2011
Posts: 56

PostPosted: Wed Jun 15, 2011 8:21 am    Post subject: Reply with quote

Yes ,my experience is not enough
thank you. I comment it out can pass.
but if do not comment it out only need to set -dNOVMX to the compile parameters?
and i also do not know what is vmx use to?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25791
Location: The netherlands

PostPosted: Wed Jun 15, 2011 11:35 am    Post subject: Reply with quote

if you use -dNOVMX you won't need to comment it out as the special code won't get executed then anyhow

as for what vmx is used for:
Hiding physical memory
preventing ce from being read
faking parts of memory
Hooking interrupts in 64-bit
changing the hardware id of your system
ability to watch taskswitches
profiler functions
kernelmode access whenever you feel like it
easy routines to ignore data pagefaults
etc...

Nothing that important if you only want to read memory using kernelmode read/write memory

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
hlzy
Advanced Cheater
Reputation: 0

Joined: 13 Jun 2011
Posts: 56

PostPosted: Thu Jun 16, 2011 4:50 am    Post subject: Reply with quote

en,may be i have no chance to use vmx.i only want to use read/write memory.
at last, thank you very very much
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source 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