problem of using Marvin component in a .NET application

User c1a2609b08

28-09-2006 03:55:06

Dear


I download .NET GUI example for using Marvin component in a .NET application,According to the explanation of .NET surpport web,I modify the configfile and set the libs.So .NET GUI example can run.Now I will copy the source of .NET GUI example to .NET environment and add JNBShare.DLL,JNBSharedMem.DLL,marvin4.1.1_JnbProxies_2.0.dll to the project,but can not build,an object can not new.


Example:


public class MSketch : Form, PropertyChangeListener


{


......


}


Now mSketch = Null;


So mSketch = new MSketchAdapter();failture


can not success..NET GUI example can not run in .NET environment.


Can you tell me the cause.





Thank you very much!

ChemAxon aa7c50abf8

28-09-2006 21:23:26

What was the error message you got?

User c1a2609b08

29-09-2006 03:07:19

Thank you for your replay.


Now problem is solutioned.


I add and set the configfile in the project ,then put the configfile to the path(.../bin/debug)


so success,but why.

ChemAxon aa7c50abf8

29-09-2006 20:02:48

Quote:
put the configfile to the path(.../bin/debug)


so success,but why.
I recommend www.msdn.com to get familiar with basic principles and mechanisms of the .NET environment. For example at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet04222003.asp you can find:
Quote:
It turns out that every .NET application can have an XML configuration file. [...] if the application name is myprogram.exe, then the configuration file name will be myprogram.exe.config. This file must be in the same directory as myprogram.exe.



Obviously, your project is in debug mode, so the IDE will generate the exe in the [...]/bin/debug directory (and will try to start the application from there).