Home > Software engineering >  VB6 ActiveX DLL with VC development of DLL have to differ
VB6 ActiveX DLL with VC development of DLL have to differ

Time:12-11

VB6 ActiveX DLL with VC development of DLL,

VB6 development ActiveX DLL in VC software, such as how to use, is directly DECLARE use, or not can use, can only be used in the form of import or reference,

CodePudding user response:

Activex DLL is a special case of the DLL, and the development of vb activex DLL is a special case of the activex DLL, vb program, including the DLL, are heavily dependent on vb virtual machine, informal ways can write vb add activex DLL export table, to declare the way calls, but the DLL cannot be used in the vb language, because these languages without initialization VBVM mechanism,

CodePudding user response:

ActiveX DLL is a COM interface, use reference way,
Standard (stdcall) Dll is API interface, use DECLARE way,

As for the # 1 says "vb virtual machine" is not correct,
Not rely on virtual machine, but loading and running environment of the base cla library's types of initialization,
Because of VB to design only provides the COM interface, the default is initialized automatically, if abnormal way to make the "standard" DLL, because there is no initialization, cannot be executed correctly,

CodePudding user response:

ActiveX DLL is standard DLL
  •  Tags:  
  • API
  • Related