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 


C++ DLL to VB

 
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: Sun Mar 29, 2009 10:01 pm    Post subject: C++ DLL to VB Reply with quote

I swear I'm going to go nuts.

I've written DLLs in MSVC++ 2008 with no problem.

VB Returns "cannot find entry point" when it is clearly in my fucking exports.

Can you not return a "float" type into VB?

I'm using __stdcall to export, and a .def file.

I CANNOT FIGURE THIS OUT.
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Mon Mar 30, 2009 9:13 am    Post subject: Reply with quote

Have you tried using other programs and loading the dll?
Back to top
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Mon Mar 30, 2009 6:12 pm    Post subject: Reply with quote

I've called tons of dlls written in C++ in visual basic 6.0 and they worked excellent

here is some tips..

if your call has pointers like char* input; then in vb6 it would be

ByVal input as String

Now if you want to pass a pointer of like a structure you have to do

ByRef input as structure

and structure would be like

Private Type structure
win As Single
tie As Single
lose As Single
End Type


Also the basics which you probably know if your C/C++ function has to return something then make it a

Private Declare Function NameOfCall Lib "dllName.dll" (...stuff) as Whatever

But in most cases like I do it I dont use functions just replace the stuff..


Private Declare Sub NameOfCall Lib "dllName.dll" (...stuff)

_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
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