Solved

nt service that uses com

Posted on 2000-03-27
5
161 Views
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)

0
Comment
Question by:rany
  • 2
  • 2
5 Comments
 
LVL 1

Expert Comment

by:majorjohn
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?
0
 

Accepted Solution

by:
MurRaj earned 25 total points
ID: 2663340
Before Creating dispatch we need to initialize the Ole..like
OleInitialize(NULL)..
You might have missed out this..please check out...
0
 

Author Comment

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

Can you recommend me a good COM book?

Rany
0
 

Expert Comment

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

Author Comment

by:rany
ID: 2664411
Thanks
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
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. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now