Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Register OCX components in the exe file
#1
I want to, in the exe file, only register the OCX component when loading fails.

The Mac01 code always works, but it registers the OCX every time it runs.

The Mac02 code, which I modified according to the QM help file, does not work

Macro Mac01
Code:
Copy      Help
RegisterComComponent "$qm$\GdPicture.NET.14.tlb" 2|4
typelib GdPicture_NET_14 "$qm$\GdPicture.NET.14.tlb"

Macro Mac02
Code:
Copy      Help
typelib GdPicture_NET_14 "$qm$\GdPicture.NET.14.tlb"

#err 1
if(RegisterComComponent("$qm$\GdPicture.NET.14.tlb" 2|4)!=1) out "Registration failed"; ret


Messages In This Thread
Register OCX components in the exe file - by Davider - 03-17-2024, 12:03 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)