PDA

Click to See Complete Forum and Search --> : Create MSCommLib object


cocoon_wls
Jul 29th, 2007, 10:34 PM
Hi all,

I am developing a app that using MSComm object to communicate with third part device via com port. I would like to create a MSComm object in ActiveX exe, but i have not idea about it(using get/set property to get the comm object from form or create it in the ActiveX?)

I have tried to add form in the ActiveX exe then put the Comm object on it, but the problem is i cant even add a form to the ActiveX.

Can somebody guide me over this problem..

Thanks in advance
cocoonwls

cocoon_wls
Jul 30th, 2007, 02:16 AM
Hi all,
I have found out the way to add form in ActiveX EXE component, which is select "Upgrade ActiveX controls" in the ActiveX properties instead of select "Unattended Execution",then you can easily add form to project.

Now,i have 2 questions would like to ask,there are:

1) What are the differences between "Upgrade ActiveX controls" and "Unattended Execution"?

2) Isn't the way to call Comm object in form is same as the way we are using in standard EXE?

any tips are welcome

thanks in advance
cocoonwls