• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 174
  • Last Modified:

nt service that uses com

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
rany
Asked:
rany
  • 2
  • 2
1 Solution
 
majorjohnCommented:
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
 
MurRajCommented:
Before Creating dispatch we need to initialize the Ole..like
OleInitialize(NULL)..
You might have missed out this..please check out...
0
 
ranyAuthor Commented:
So simple and so true.
Thank you.

Can you recommend me a good COM book?

Rany
0
 
MurRajCommented:
I would suggest you to go through InsideCOM by Dale Rogerson.Its really a nice book
0
 
ranyAuthor Commented:
Thanks
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now