embedded dll

  • Thread starter Thread starter Franz
  • Start date Start date
F

Franz

I have a unmanaged dll, I use the functions of it by declaring its functions
as [DllImport(abc.dll)].
I want to embed this unmanaged dll to my application. But I don't know how
can the application load it, and what kind of parameters is needed for
DllImport?
Thanks.
 
But the unmanaged dll is embedded as a resource in the managed dll.
I can't use DllImport("abc.dll") in that managed dll.

--
My C++ and C# (Traditional Chinese) Site :
http://www.franzwong.com/Programming


Mitch Ruebush said:
See
http://msdn.microsoft.com/library/d.../html/cpconconsumingunmanageddllfunctions.asp
for information on doing this.


Mitch Ruebush
Microsoft Regional Director -
http://www.microsoftregionaldirectors.com
Visual Developer - .NET MVP -
Architect | Evangelist | Teacher
Online Consulting, Inc. - http://www.onlc.com
MCSD, MCAD, MCDBA, MCSE, MCT


Franz said:
I have a unmanaged dll, I use the functions of it by declaring its functions
as [DllImport(abc.dll)].
I want to embed this unmanaged dll to my application. But I don't know how
can the application load it, and what kind of parameters is needed for
DllImport?
Thanks.
 
hooha, that is more difficult...you are going need to write unmanaged code
using C++. I would post to the comp.os.ms-windows.programmer.nt.kernel-mode
or comp.os.ms-windows.programmer.win32
groups for more information.
Franz said:
But the unmanaged dll is embedded as a resource in the managed dll.
I can't use DllImport("abc.dll") in that managed dll.

--
My C++ and C# (Traditional Chinese) Site :
http://www.franzwong.com/Programming


Mitch Ruebush said:
http://msdn.microsoft.com/library/d.../html/cpconconsumingunmanageddllfunctions.asp
for information on doing this.


Mitch Ruebush
Microsoft Regional Director -
http://www.microsoftregionaldirectors.com
Visual Developer - .NET MVP -
Architect | Evangelist | Teacher
Online Consulting, Inc. - http://www.onlc.com
MCSD, MCAD, MCDBA, MCSE, MCT


Franz said:
I have a unmanaged dll, I use the functions of it by declaring its functions
as [DllImport(abc.dll)].
I want to embed this unmanaged dll to my application. But I don't know how
can the application load it, and what kind of parameters is needed for
DllImport?
Thanks.
 
Thanks.
I am looking forward to see your post at
comp.os.ms-windows.programmer.win32.

Mitch Ruebush said:
hooha, that is more difficult...you are going need to write unmanaged code
using C++. I would post to the comp.os.ms-windows.programmer.nt.kernel-mode
or comp.os.ms-windows.programmer.win32
groups for more information.
Franz said:
But the unmanaged dll is embedded as a resource in the managed dll.
I can't use DllImport("abc.dll") in that managed dll.
http://msdn.microsoft.com/library/d.../html/cpconconsumingunmanageddllfunctions.asp
for information on doing this.


Mitch Ruebush
Microsoft Regional Director -
http://www.microsoftregionaldirectors.com
Visual Developer - .NET MVP -
Architect | Evangelist | Teacher
Online Consulting, Inc. - http://www.onlc.com
MCSD, MCAD, MCDBA, MCSE, MCT


I have a unmanaged dll, I use the functions of it by declaring its
functions
as [DllImport(abc.dll)].
I want to embed this unmanaged dll to my application. But I don't
know
how
can the application load it, and what kind of parameters is needed for
DllImport?
Thanks.
 
Back
Top