If the window of the operation in the VBP another VBP
Time:10-15
My program is a VBG, contains a number of VBP, such as in the appended drawings:
A: MainExecPp (TopPpExeProject. VBP) B: TopPpExecDll (TopPpExecProject. VBP) - & gt; This is a DLL D: TopPpfanucDll (topppfanucProject. VBP) - & gt; This is a DLL E: toppfanucE264Dll (topppfanucE264Project. VBP) - & gt; This is a DLL
My main job is in E: toppfanucE264Dll (topppfanucE264Project. VBP) in the following class module topppfanucE264 (topppfanucE264. CLS) to write code to do some secondary development, Now I have a question: due to the needs of work, I was in class module topppfanucE264 (topppfanucE264. CLS) to add the registered machine code: if unregistered will terminate the program, originally I use END statement, the VB error said "DLL module does not support this function, so I just want to use other ways to unload the main window FormMain (C) in the appended drawings, but the problem comes again: how the class module F: topppfanucE264 (topppfanucE264. CLS) called B: TopPpExecDll FormMain (TopPpExecProject. VBP) in the window then uninstall it?
Masters have this experience please instruct me,
The younger brother thanked first,
CodePudding user response:
Your DLL, should is ActiveX DLL! The ActiveX DLL at least one of the "public class", you do this operation window "interface" in the appropriate class, With its Public Sub or "transit the" Function, can be very convenient operation window of DLL,
CodePudding user response:
As long as is reference relationship between project, as they are, as a project just cited not directly call the reference code,