Hi guys, I have asked this question on other forums and no one seems to know the answer...
I wrote a dll in assembly to test the functionallity between ASM dll's and C++. I am however lost. After compiling the following ASM code into a DLL :
Code:
.386
.model flat,stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\user32.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
.data
.code
MyTest Proto :DWORD
DllMain proc hInstance:HINSTANCE, reason:DWORD, reserved1:DWORD
mov eax,TRUE
ret
DllMain Endp
MyTest proc mynum:DWORD
inc [mynum]
ret
MyTest endp
MyTest2 proc
ret
MyTest2 endp
End DllMain
I started a new VC++.NET Console project. I went to msdn and read up on loading dll's. So I went ahead and used LoadLibrary and sure enough the dll was loaded. After this success I used GetProcAddress to find "MyTest2", and everytime it returns NULL.
Is it possible to use ASM dll's in C++? If so, do you know of a resource I could look at or possibly have some source? Any help is appreciated.
-Sean