• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 177
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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