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++] Making an export to call in VB6.

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

Joined: 25 Feb 2007
Posts: 596

PostPosted: Mon Mar 16, 2009 12:03 pm    Post subject: [C++] Making an export to call in VB6. Reply with quote

I searched on google but nothing came up so I was wondering how to do it.
Back to top
View user's profile Send private message
AlbanainRetard
Master Cheater
Reputation: 0

Joined: 02 Nov 2008
Posts: 494
Location: Canada eh?

PostPosted: Mon Mar 16, 2009 12:06 pm    Post subject: Reply with quote

DLL?

Then:

Make a new empty dll and export your function by adding this infront:

__declspec(dllexport)

or use a def file.

_________________
Back to top
View user's profile Send private message Send e-mail
homer_simpson
Grandmaster Cheater
Reputation: 0

Joined: 25 Feb 2007
Posts: 596

PostPosted: Mon Mar 16, 2009 12:13 pm    Post subject: Reply with quote

AlbanainRetard wrote:
DLL?

Then:

Make a new empty dll and export your function by adding this infront:

__declspec(dllexport)

or use a def file.


But then how do I set something on the export? Like the hwnd in this sample:

void Hack1 (HWND hWnd) __declspec(dllexport)
Back to top
View user's profile Send private message
AlbanainRetard
Master Cheater
Reputation: 0

Joined: 02 Nov 2008
Posts: 494
Location: Canada eh?

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

homer_simpson wrote:
AlbanainRetard wrote:
DLL?

Then:

Make a new empty dll and export your function by adding this infront:

__declspec(dllexport)

or use a def file.


But then how do I set something on the export? Like the hwnd in this sample:

void Hack1 (HWND hWnd) __declspec(dllexport)


__declspec(dllexport) void Hack1(HWND hWnd)
{
//Stuff
}

and depending on how you load:

C# = IntPtr
C++ = HWND
VB = ??

_________________
Back to top
View user's profile Send private message Send e-mail
homer_simpson
Grandmaster Cheater
Reputation: 0

Joined: 25 Feb 2007
Posts: 596

PostPosted: Mon Mar 16, 2009 12:17 pm    Post subject: Reply with quote

AlbanainRetard wrote:
homer_simpson wrote:
AlbanainRetard wrote:
DLL?

Then:

Make a new empty dll and export your function by adding this infront:

__declspec(dllexport)

or use a def file.


But then how do I set something on the export? Like the hwnd in this sample:

void Hack1 (HWND hWnd) __declspec(dllexport)


__declspec(dllexport) void Hack1(HWND hWnd)
{
//Stuff
}

and depending on how you load:

C# = IntPtr
C++ = HWND
VB = ??


Ah got it thanks.
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Mon Mar 16, 2009 1:03 pm    Post subject: Reply with quote

in vb u suppose to use long instead IntPtr
Back to top
View user's profile Send private message
BanMe
Master Cheater
Reputation: 0

Joined: 29 Nov 2005
Posts: 375
Location: Farmington NH, USA

PostPosted: Mon Mar 16, 2009 3:10 pm    Post subject: Reply with quote

using __declspec(dllexport) will mangle the name i suggest using the Def File method.. its in the Linker options ..

BanMe

_________________
don't +rep me..i do not wish to have "status" or "recognition" from you or anyone.. thank you.
Back to top
View user's profile Send private message MSN Messenger
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Mon Mar 16, 2009 5:33 pm    Post subject: Reply with quote

4 Bytes=work. Which are all these pointer, handles, long, etc.etc
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