windows service in c#

  • Thread starter Thread starter Ankit Aneja
  • Start date Start date
A

Ankit Aneja

Hello to all
I have to make windows service(in C#.NET) and use (ATL Com dll made in
visual studio 6) in my service
How can i use that.Is by just add reference or there is some other way
I am using visual studio.net 2003
Please help
 
Ankit Aneja said:
Hello to all
I have to make windows service(in C#.NET) and use (ATL Com dll made in
visual studio 6) in my service
How can i use that.Is by just add reference or there is some other way
I am using visual studio.net 2003
Please help

Well for starters wll you need to do is create a Windows Service project and
add a reference to thte COM component (which will generate the Runtime
Callable Wrapper - RCW) for the COM component. Are all the COM interfaces
marshalled via the typelib marshaller?

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
 
thanks for ur reply sir
Are all the COM interfaces
marshalled via the typelib marshaller?
i am having dll and its code also now how can i know its interfaces are
marshalled or not its in vc++
"Richard Blewett [DevelopMentor]" <richard at nospam dotnetconsult dot co
dot uk> wrote in message news:#[email protected]...
 
They are marked Dual
what if they are marked "Dual" and what if "oleautomation"


"Richard Blewett [DevelopMentor]" <richard at nospam dotnetconsult dot co
dot uk> wrote in message news:#[email protected]...
 
Ankit Aneja said:
They are marked Dual
what if they are marked "Dual" and what if "oleautomation"

In both cases it means that the tools will get their definitions from the
typelibrary that descibes them and build the appropriate wrapper classes for
you which means your life from a build perspective should be
straightforward. There are numerous issues with COM Interop in some of the
darker corners however. Which of these are relevant to you depends on the
kind of thing you are doing with the COM components.

Regards



Richard Blewett - DevelopMentor

http://www.dotnetconsult.co.uk/weblog

http://www.dotnetconsult.co.uk




Regards



Richard Blewett - Deve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top