A rather dumb question...

  • Thread starter Thread starter Derek Martin
  • Start date Start date
D

Derek Martin

Not like I haven't asked dumb ones before, but I want to take my API that I
designed and create a DLL out of it, instead of it sitting inside my main
form. In VS2K3, how do I go about doing that??? Is that a seperate project
and if so, what kind, Class Library Project, or something else?

Thanks,
Derek
 
* "Derek Martin said:
Not like I haven't asked dumb ones before, but I want to take my API that I
designed and create a DLL out of it, instead of it sitting inside my main
form. In VS2K3, how do I go about doing that??? Is that a seperate project
and if so, what kind, Class Library Project, or something else?

A class library project will be compiled into a DLL, but notice that
this is a .NET assembly, not a standard DLL that exports functions like
Win32 DLLs do.
 
Great, thank you both!

Derek


Mark said:
AFAIK, there is no way to create a dll with an API interface via VB .NET,
but I admit I've been away from the .NET world for quite a few months. API
is just another interface as COM is or a .NET assembly. You could create a
C++ Win32 dll or a C++ Class Library project with your function. Mark your
function with __declspec calling convention, create a .def file and you're
good to go.
 
Back
Top