Why Won’t My Mapi OCX Work On A Server Without VB Installed?

BillyT
08-14-2002, 03:58 PM
I have an app that sends email using the Microsoft Mapi Controls 6.0 (msmapi32.ocx).
This app runs fine on my machine that has VB and Office as well as Outlook on it.

I’m trying to run it from a machine that only has Outlook on it (configured identical to mine), and its not working.
Outlook can send emails from that machine just fine on it’s own.
I registered msmapi32.ocx on that machine successfully.
And even created a setup.exe using the Setup Wizard included in VB6, and ran it on the client machine successfully.

The error I get is "ActiveX component can't create object"

On this line: Set m_objMapiSession = CreateObject("MSMAPI.MAPISession")

Shouldn’t I be able to use the msmapi32.ocx with only Outlook installed on the computer considering all my VB components have been copied over, and registered?

sl8rz
08-14-2002, 06:37 PM
Are you sure you've got all the dll's, ocx's, etc.? It sounds like one may be missing.

BillyT
08-14-2002, 08:23 PM
Yeah I'm pretty sure, especially considering I used the Setup Wizard.

Robby
08-15-2002, 12:20 AM
Do both machines have the same OS, and which one?

BillyT
08-15-2002, 07:43 AM
Both are running WIN2K

Thinker
08-16-2002, 09:27 AM
How does this line...
Set m_objMapiSession = CreateObject("MSMAPI.MAPISession")
relate to installing and registering the OCX?
Normally, you don't create objects from an OCX (there are times
when you do). My guess is there is one or more DLL files you also
need.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum