| View previous topic :: View next topic |
| Author |
Message |
homer_simpson Grandmaster Cheater
Reputation: 0
Joined: 25 Feb 2007 Posts: 596
|
Posted: Mon Mar 16, 2009 12:03 pm Post subject: [C++] Making an export to call in VB6. |
|
|
| I searched on google but nothing came up so I was wondering how to do it.
|
|
| Back to top |
|
 |
AlbanainRetard Master Cheater
Reputation: 0
Joined: 02 Nov 2008 Posts: 494 Location: Canada eh?
|
Posted: Mon Mar 16, 2009 12:06 pm Post subject: |
|
|
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 |
|
 |
homer_simpson Grandmaster Cheater
Reputation: 0
Joined: 25 Feb 2007 Posts: 596
|
Posted: Mon Mar 16, 2009 12:13 pm Post subject: |
|
|
| 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 |
|
 |
AlbanainRetard Master Cheater
Reputation: 0
Joined: 02 Nov 2008 Posts: 494 Location: Canada eh?
|
Posted: Mon Mar 16, 2009 12:16 pm Post subject: |
|
|
| 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 |
|
 |
homer_simpson Grandmaster Cheater
Reputation: 0
Joined: 25 Feb 2007 Posts: 596
|
Posted: Mon Mar 16, 2009 12:17 pm Post subject: |
|
|
| 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 |
|
 |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
Posted: Mon Mar 16, 2009 1:03 pm Post subject: |
|
|
| in vb u suppose to use long instead IntPtr
|
|
| Back to top |
|
 |
BanMe Master Cheater
Reputation: 0
Joined: 29 Nov 2005 Posts: 375 Location: Farmington NH, USA
|
Posted: Mon Mar 16, 2009 3:10 pm Post subject: |
|
|
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 |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Mon Mar 16, 2009 5:33 pm Post subject: |
|
|
| 4 Bytes=work. Which are all these pointer, handles, long, etc.etc
|
|
| Back to top |
|
 |
|