Link to home
Start Free TrialLog in
Avatar of eelko
eelko

asked on

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.

ASKER CERTIFIED SOLUTION
Avatar of JimBob091197
JimBob091197

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of eelko
eelko

ASKER

I already copied and registered these files but this does not help.
Any other suggestions?

Eelko
Avatar of eelko

ASKER

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.
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.
Avatar of eelko

ASKER

As I wrote within my first comment, I did register smtpct.ocx and nmocod.dll but it still does not work!?
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
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
(Sorry, hit Submit twice above...)
Avatar of eelko

ASKER

I added vb40032.dll, the other dll's were already present, but still no result.
An other suggestion?
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?

Avatar of eelko

ASKER

On an other computer where I have installed Delphi, it works.
Perhaps you could mail me your script (or part thereof) at davekw@iafrica.com.