Hi
I was looking to pass a class as an argument to a secondary program. Basically program 1 is a menu holding certain core variables and any item selected from the menu runs on its own but needs certain values that I hoped to contain in a class. A subquestion would be under what would I build the called program. In 6 I know it would be a DLL but is the equivlant a windows control library?
Thanks,
Robin
Eric Cadwell - 20 Feb 2004 20:35 GMT
Does it need to be it's own process? If it's it's own process you create
another EXE (windows application) but this would make transferring the data
a matter of serialization and deserialization. That would involve remoting
or XML.
Alternatively, you can build sub-forms in a DLL (control library or class
library) and display them from the main EXE. The EXE just references the DLL
and has access to any public classes. A control library is just a class
library with a few extra dependencies (System.Windows.Forms,
System.Drawing). The output type of an assembly is determined by a compiler
switch and can be changed in VS.NET via the project properties. You can go
back and forth between EXE and DLL, if you so choose.
HTH;
Eric Cadwell
http://www.origincontrols.com