Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Ok, I really need some help on this one guys...

 

I am attempting to make a DLL in assembly and use it in VC++.net, my only problem thus far has been my lack or using external DLL's in VC++.net. I searched around and found there are two ways, implicit and explicit. I tried using explicit and loading the file on runtime, but it always gave me a null return for the function address using getprocaddress. I am stuck and have no idea what to do I have included all source and dll (in assembly) in the zip file below. If someone could help me out and give some source that actually works and calls the function it'd be greatly appreciated .

 

What this is going to eventually used for is an interface for a 4x4 keypad. I want to get this to work before I go typing out all of the assembly code i'll need in order for it to work. Basically all the DLL is going to do is return which key is pressed (actually the assembly will return it, but I have to somehow return it from the dll to VC++.NET).

 

Edit:

 

Ok, I attempted to use LoadLibrary and GetProcAddress. I call LoadLibrary and it loads it perfectly fine. When I call GetProcAddress though, I always get a NULL returned :( So I don't know what else to do...

IFACEKEY.zip

-Sean

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...