Using SMTPCT.OCX without installing Delpi 3

Can anyone tell me which ocx and/or dll files I need (beside mailocx.ocx and smtpct.ocx) to use the mailocx.ocx and smtpct.ocx within for example a Visual Basic script?

I do not want to install Delphi 3 but I only want to create a mailocx object.

LVL 2
eelkoAsked:
Who is Participating?
 
JimBob091197Connect With a Mentor Commented:
The smtpct.ocx file comes with Delphi (along with several other Internet OCXs and DLLs), but I have not got mailocx.ocx on my PC.  Are you sure mailocx.ocx comes with Delphi?

The files you need for smtpct.ocx are listed in nia.hlp (in Windows System folder).  Search for "Distributable Files".

This help file says you need the following for smtpct.ocx:
nmocod.dll
nmorenu.dll
nmsckn.dll
olepro32.dll  (This one is a microsoft file.)

Hope this helps you.
JB
0
 
eelkoAuthor Commented:
I already copied and registered these files but this does not help.
Any other suggestions?

Eelko
0
 
eelkoAuthor Commented:
P.S. Your right that mailocx.ocx does not come with Delphi. I suppose it uses smtpct.ocx to send email. But even if I try to use smtpct.ocx directly it won't work.
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
JimBob091197Commented:
You have to register the OCXs with RegSvr32.exe (found in Windows System folder).

E.g.  From command line, type "regsvr32 smtpct.ocx"

You also have to register nmocod.dll ("regsvr32 nmocod.dll)

RegSvr32 registers the OCX/DLL by creating entries in the Windows registry for the OCX or DLL.
0
 
eelkoAuthor Commented:
As I wrote within my first comment, I did register smtpct.ocx and nmocod.dll but it still does not work!?
0
 
JimBob091197Commented:
Mmm...  The only thing I can think of is that you don't have one of the following files:
ctl3d32.dll
msvcrt40.dll
vb40032.dll (??  Dunno about this one...)
olepro32.dll

If all these are present then there may be another problem.

JB
0
 
JimBob091197Commented:
Mmm...  The only thing I can think of is that you don't have one of the following files:
ctl3d32.dll
msvcrt40.dll
vb40032.dll (??  Dunno about this one...)
olepro32.dll

If all these are present then there may be another problem.

JB
0
 
JimBob091197Commented:
(Sorry, hit Submit twice above...)
0
 
eelkoAuthor Commented:
I added vb40032.dll, the other dll's were already present, but still no result.
An other suggestion?
0
 
JimBob091197Commented:
I'm afraid that I'm all out of suggestions.  There may be another problem.  Does your VB Script definitely work if you have Delphi installed?

0
 
eelkoAuthor Commented:
On an other computer where I have installed Delphi, it works.
0
 
JimBob091197Commented:
Perhaps you could mail me your script (or part thereof) at davekw@iafrica.com.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.