I have built an Activex exe file which uses MSComm & MSWinsck only. I have built an install program and run the install but when I start main program which calls this exe, I get run-time rror 429, ActiveX component can't create object.
I temporarliy installed VB6 in this PC and even when I run the app under debug mode, I get the same error and it seems to relate to MSComm or at leats that's where it stops.
Can anyone help me wit where I ma going wrong as this is first time I have built and used an ActiveX exe file.
Anyone I ever knew that needed a "professional" program to utilize the COM ports has skipped the MSComm control and learned how to use the Windows API to control the COM port (which of course requires many more steps than it does with MSComm.
I never did any professional work with MSComm myself (so I don't have an example of how to use the API). But I have programmed a home project with MSComm and found that at a minimum, the COM did not behave reliably (requiring many reboots to get the COM ports reset).
Otherwise, it is most likely that you are getting the dreaded "can't create object" because either a control is missing from the machine you're trying to run the control on, OR the version number of the control you are trying to run against is different than the version you compiled against (frequently known as DLL hell). In the case where you are trying to run the project from the debugger and it is still failing, you would need to verify that all controls referenced by your project are on the same version number on both machines. Actually, if the problem is with a version number of one of the controls you are referencing directly (as opposed to something that is created dynamically or is a dependancy of your dependancy) the project usually fails to properly open until you get the version numbers in sync. I've personally had a devil of a time trying to make that happen when it turns out that you built the project using an earlier version of a control than the version on the machine you are trying to run on. In which case, you've got to either update the control on your developement machine, or compeletely delete all traces of it (including in the registry) on the target machine so that your installer will install the older version of the control. When the installer sees a later version of a control, it won't overwrite the newer version (under the assumption the newer one is going to be compatable).