For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > January 2006 > DLL Problem - Calling a DLL









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author DLL Problem - Calling a DLL
ajayden

2006-01-15, 4:00 am

I have a DLL that I need to call from Vb.net 2005.
I have use the declare statement to include the DLL in the project and I
have declared one of the functions in the DLL.

But when I call the function, It gives me an exception.

Why does that happen??
Peter Foot [MVP]

2006-01-15, 7:16 pm

Probably because you have something wrong in your declaration. If you can
post your code and ideally the method signature from your .h file we can
help you get it right for your particular function (also knowing what type
of exception is thrown would be useful).

Peter

--
Peter Foot
Windows Embedded MVP
www.peterfoot.net | www.inthehand.com

"ajayden" <ajayden@discussions.microsoft.com> wrote in message
news:49914BA2-59E0-4528-B18A-99C2FB69ADB5@microsoft.com...
>I have a DLL that I need to call from Vb.net 2005.
> I have use the declare statement to include the DLL in the project and I
> have declared one of the functions in the DLL.
>
> But when I call the function, It gives me an exception.
>
> Why does that happen??



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com