seckel
asked on
429: ActiveX Component can't create object - MAPI
I'm using the following:
Set mapisession1 = CreateObject("msMAPI.mapiS ession")
Set mapimessages1 = CreateObject("msMAPI.mapiM essages")
I get "429: ActiveX Component can't create object" when I run the program after installing it on a desktop without VB.
What reference am I missing that I need to include in the distributed package?
Set mapisession1 = CreateObject("msMAPI.mapiS
Set mapimessages1 = CreateObject("msMAPI.mapiM
I get "429: ActiveX Component can't create object" when I run the program after installing it on a desktop without VB.
What reference am I missing that I need to include in the distributed package?
You probably have to install the data access compnents separately.
Running the Mdac_typ.exe shoud install everything you need.
What do you have set in references in VB?
Running the Mdac_typ.exe shoud install everything you need.
What do you have set in references in VB?
ASKER
Idarac:
Do I run Mdac_typ.exe on the desktop before I run the setup.exe for my application?
Do I run Mdac_typ.exe on the desktop before I run the setup.exe for my application?
ASKER
RanjeetRain:
How will that fix my problem?
How will that fix my problem?
Did you install the program, or just copied it to the machine's desktop? It looks like it missing the MSMAPI32.OCX, which should be included in the installation package. Did you create one at all?
S
S
Run Mdac_typ.exe on the desktop after your setup.
If you used the VB deployment wizard sometimes it misses the data access components.
If you used the VB deployment wizard sometimes it misses the data access components.
ASKER
Shauli
I installed using setup.exe created by the package & deployment wizard. How do I add MSMAPI32.OCX to the package for deployement?
I installed using setup.exe created by the package & deployment wizard. How do I add MSMAPI32.OCX to the package for deployement?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
A word for everyone if you can help it do not run the deployment package on XP. I have run into all kinds of install problems.
I keep a windows 98 machine to do my packaging on.
I keep a windows 98 machine to do my packaging on.
I tend to agree with that last statement, although win2k is quite safe, no need for win98. With that said, I would prefer innosetup http://www.jrsoftware.org/isinfo.php , much safer, far better and... free.
S
S
ASKER
I included the MSMAPI32.OCX, but I still got the same error. I even ran regsvr32 to register the ActiveX Control.
Any other suggestions?
Any other suggestions?
Show me a list of the references and components in your project?
Do you have a reference to Outlook library? Maybe this is what is missing.
(Priject>reference>Outlook library.....)
S
(Priject>reference>Outlook
S
Good point if you do have the outlook reference it may not match the version on your desktop.
Also the reference to Outlook should not be included in your install as it will already be installed by virtue of Outlook installed on the desktop computer?
Also the reference to Outlook should not be included in your install as it will already be installed by virtue of Outlook installed on the desktop computer?
ASKER
I got it figured out. This was the first time I used MAPI. I was using a set statement and CreateObject statement.
I then discovered that there are MAPI component objects I could place on my form. When I placed the objects on my form, it resolved all issues during the installation.
Thank you for your help - It was a good learning experience.
I then discovered that there are MAPI component objects I could place on my form. When I placed the objects on my form, it resolved all issues during the installation.
Thank you for your help - It was a good learning experience.
Set mapimessages1 = CreateObject("MAPI.mapiMes