简体   繁体   中英

Loading another exe as assembly and creating its startup object (main form). Is that possible?

I have a program written in .net language. I don't have sources for it. I added it to my program as assembly and all is fine unless I try to create it's main form:

GCRebuilder.MainForm main_wnd = new GCRebuilder.MainForm();

Here I getting exception FileNotFoundexception. Unable to load a file or assembly "gcr, Version=1.0.3480.29421, Culture=neutral, PublicKeyToken=null" or one of it's dependencies. Unable to find specified file. That program that I trying to load is a single exe only.

It there anything can be done or this is waste of time? I need this to use program functionality through invoking needed for me methods of main form.

您可能需要检查DotPeek(免费软件)以查看程序集的源代码。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM