[英]Loading another exe as assembly and creating its startup object (main form). Is that possible?
我有一個用.net語言編寫的程序。 我沒有資料。 我將其作為程序集添加到程序中,除非我嘗試創建它的主要形式,否則一切都很好:
GCRebuilder.MainForm main_wnd = new GCRebuilder.MainForm();
在這里,我得到異常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.
我嘗試加載的程序僅是一個exe。
有什么可以做的還是浪費時間? 我需要它通過調用主要形式的方法來使用程序功能。
您可能需要檢查DotPeek(免費軟件)以查看程序集的源代碼。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.