Home > database >  PB call MFC VC wrote the ActiveX control problem
PB call MFC VC wrote the ActiveX control problem

Time:09-19

Problem a:
In c + + made a ActiveX controls in the window of the PB insert ole controls: ole_1, can pass ole_1. Object. The Function () call control method, everything is normal,
But when I use the following method invocation is wrong
OleObject obj_ole
Obj_ole=create oleObject
Long li_ret
Li_ret=obj_ole. Connecttonewobject (" MyActiveName ")
If li_ret & lt;> 0 then
MessageBox (' ', a string (li_ret))
Return
End the if
Obj_ole. The Function () * * * * *
Execution time, and then mark "* * * * *" position error,
I'd like to know how I can not through the window into the ole control can adjust my ActiveX control, please let us know which master know, thanked first,





CodePudding user response:

The
refer to the original poster bjchenzihong response:
problem a:
In c + + made a ActiveX controls in the window of the PB insert ole controls: ole_1, can pass ole_1. Object. The Function () call control method, everything is normal,
But when I use the following method invocation is wrong
OleObject obj_ole
Obj_ole=create oleObject
Long li_ret
Li_ret=obj_ole. Connecttonewobject (" MyActiveName ")
If li_ret & lt;> 0 then
MessageBox (' ', a string (li_ret))
Return
End the if
Obj_ole. The Function () * * * * *
Execution time, and then mark "* * * * *" position error,
I'd like to know how I can not through the window into the ole control can adjust my ActiveX control, please let us know which master know, thanked first.


Activex controls are used to call, only by inserting if you don't want to insert activex control, you can use the VC encapsulated into a DLL call, direct statement and then call
  • Related