Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Active X component 1

Status
Not open for further replies.

Aladdin420

Programmer
Jan 5, 2001
33
0
0
US
I wanted to push my VBScripts to the next level and wanted to learn about Active X components. I have an idea now. A friend told me that I would have to register, not sure what that meant. Went to the Active-x.com, but I'm still lost. Does anyone know where to register, and how would only registering will give me access to the Active X Components?
Thanks folks!
 
I understand, I have it working now.

The path was "c:\winnt\system32\Regsvr32.exe"

Now to register for example "msmapi32.ocx", because I wanted to use the mapi feature, all i did was
in the dos prompt run:

C:\winnt\system32\>regsvr32 msmapi32.ocx

Then a msg box pops up and says "DllRegisterServer in msmapi32.ocx succeeded."

However, then I try running a script:

Dim MAPI, oShell
Set oShell = CreateObject("Wscript.Shell")

Set MAPI = CreateObject("MAPI.MAPISession")

The code craps out on the 'Set MAPI = CreateObject("MAPI.MAPISession")'

So what am I doing wrong? :-(

Thanks all,

Aladdin420


 
Set MAPI = CreateObject("MSMAPI.MAPISession") Jon Hawkins
 
Very cool, thanx a million, I just tried it, it's working like charm. :)

Aladdin420
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top