nt service that uses com

Posted on 2000-03-27
Last Modified: 2013-11-25
Hi all
I have written a program that uses a com object to send e-mails.

The program has been working great.
When I converted this program to a nt-service the program didn't work.
The dispatch method returned false.
I don't understand what happened since
I ran both programs on the same machine.

Could someone help me?

(Note: I have limited knowledge in com so please take this into consideration while answering me)

Question by:rany
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Expert Comment

ID: 2663207
Can u explain how u convert it to COM to NT Services. Have u made it via ATL COM? Pl detail ur procedure how u have made it?

Accepted Solution

MurRaj earned 25 total points
ID: 2663340
Before Creating dispatch we need to initialize the
You might have missed out this..please check out...

Author Comment

ID: 2664103
So simple and so true.
Thank you.

Can you recommend me a good COM book?


Expert Comment

ID: 2664201
I would suggest you to go through InsideCOM by Dale Rogerson.Its really a nice book

Author Comment

ID: 2664411

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
twoTwo  challenge 35 121
Having a different time zone on your task bar 3 83
What .NET website keeps me current? 9 81
"Video DataSource is Offline or not responding"  - why? 1 170
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…

710 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