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 


Solved: vb/c++ dll interfacing. works for me, not for others

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

Joined: 21 Feb 2009
Posts: 107

PostPosted: Sat Jul 18, 2009 2:02 am    Post subject: Solved: vb/c++ dll interfacing. works for me, not for others Reply with quote

Why would a simple VS2008 C++ DLL, and VB6 interface work for me, but not someone else.

Put dll in windows\system32 folder, and on my computer it calls it just fine. on others computers it friggen "file not found..."


any ideas? plais?


*Solved: I had the compiler in Debug mode, not Release. I'm retarded. (thanks Slug)


Last edited by mStorm on Tue Jul 21, 2009 11:58 am; edited 1 time in total
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sat Jul 18, 2009 2:11 am    Post subject: Reply with quote

did you compile as release, not debug ? try putting the dll in the same folder as the main application
Back to top
View user's profile Send private message
mStorm
Expert Cheater
Reputation: 0

Joined: 21 Feb 2009
Posts: 107

PostPosted: Sat Jul 18, 2009 2:16 am    Post subject: Reply with quote

I've been using the dll generated after hitting "compile" and it's in the Debug directory.

How to change project to Release in vs2008?
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sat Jul 18, 2009 2:31 am    Post subject: Reply with quote

build >> configuration manager
Back to top
View user's profile Send private message
mStorm
Expert Cheater
Reputation: 0

Joined: 21 Feb 2009
Posts: 107

PostPosted: Sat Jul 18, 2009 2:33 am    Post subject: Reply with quote

now getting errors never seen before, egh.


error C2664: '_wcsicmp' : cannot convert parameter 2 from 'const char [13]' to 'const wchar_t *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

worked before doing release

how to use:
if(_tcsicmp(pe32.szExeFile, "game.exe") == 0)


Last edited by mStorm on Sat Jul 18, 2009 2:38 am; edited 1 time in total
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sat Jul 18, 2009 2:36 am    Post subject: Reply with quote

show code + errors and i'll tell you how to fix them
Back to top
View user's profile Send private message
mStorm
Expert Cheater
Reputation: 0

Joined: 21 Feb 2009
Posts: 107

PostPosted: Sat Jul 18, 2009 2:39 am    Post subject: Reply with quote

edited post

i tried castin (LPCSTR)"game.exe"

but it doesnt work.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sat Jul 18, 2009 2:42 am    Post subject: Reply with quote

how about :

TCHAR szGame[9] = TEXT("game.exe");

post your whole source if there are more errors.. i'll be able to fix it much quicker if i have a version i can keep compiling, i'm new to strings like that. in C i just use arrays of bytes
Back to top
View user's profile Send private message
mStorm
Expert Cheater
Reputation: 0

Joined: 21 Feb 2009
Posts: 107

PostPosted: Sat Jul 18, 2009 3:03 am    Post subject: Reply with quote

damn, thanks man.

dll works, now the results to the game are diff on my comp than the other guys. lol :[
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sat Jul 18, 2009 3:18 am    Post subject: Reply with quote

show code and i might be able to help. otherwise 'debug' values with messagebox or allocconsole or something
Back to top
View user's profile Send private message
bahblah
Grandmaster Cheater
Reputation: 0

Joined: 27 Sep 2005
Posts: 633

PostPosted: Tue Jul 21, 2009 1:50 am    Post subject: Reply with quote

I'm guessing they don't have the VS2008 runtime files. Common problem.
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