Solved

Using SMTPCT.OCX without installing Delpi 3

Posted on 1997-10-08
12
215 Views
Last Modified: 2010-04-04
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.

0
Comment
Question by:eelko
  • 7
  • 5
12 Comments
 
LVL 5

Accepted Solution

by:
JimBob091197 earned 200 total points
ID: 1347012
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
 
LVL 2

Author Comment

by:eelko
ID: 1347013
I already copied and registered these files but this does not help.
Any other suggestions?

Eelko
0
 
LVL 2

Author Comment

by:eelko
ID: 1347014
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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 5

Expert Comment

by:JimBob091197
ID: 1347015
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
 
LVL 2

Author Comment

by:eelko
ID: 1347016
As I wrote within my first comment, I did register smtpct.ocx and nmocod.dll but it still does not work!?
0
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1347017
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
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1347018
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
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1347019
(Sorry, hit Submit twice above...)
0
 
LVL 2

Author Comment

by:eelko
ID: 1347020
I added vb40032.dll, the other dll's were already present, but still no result.
An other suggestion?
0
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1347021
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
 
LVL 2

Author Comment

by:eelko
ID: 1347022
On an other computer where I have installed Delphi, it works.
0
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1347023
Perhaps you could mail me your script (or part thereof) at davekw@iafrica.com.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question