vj#:
[quoted text, click to view] "Roger Garrett" <RogerGarrett@discussions.microsoft.com> wrote in message
news:EAC600D1-257A-4D42-96C8-BAB75E43A016@microsoft.com...
> Suppose that I write a J# class library. When that gets
> compiled it produces a .DLL file. Is that .DLL file a
> standard, regular type of .DLL?
Well, not really. It is an assembly. The classes in that assembly can be
"consumed" by other .Net components, but in general an assembly is not going
to "export" free functions in the traditional Win32 API sense of the term.
[quoted text, click to view] > In particular, can I reference that .DLL file from a C++ program?
You can use one of the interop methods. Dot Net classes can be wrapped up as
COM objects and the C++ program can consume them as any other COM object.
[quoted text, click to view] > And most importantly, when that C++ program runs on a computer, and
> invokes methods
> within that J# .DLL, does that computer also have to have the .NET
yes
[quoted text, click to view] > and the J# redistributables installed,
yes
[quoted text, click to view] > or will that C++ program be able to run just fine
> without those redistributables?
no
[quoted text, click to view] > My hope is that I can write the majority of my application as a J# class
> library, and then just have a small C++ program that invokes the main
> functionality within the J# class library's .DLL file, thereby avoiding
> the
> need to have my potential customers also install the .NET and J#
> redistributables.
There are third party tools, with which I have no experience, such as these:
http://thinstall.com/help/?_netsupport.htm http://www.remotesoft.com/linker/ which purport to do this. You may want to do some research.
Regards,
Will