How to Call a VB DLL from a Windows Service written in VB6 ?

A

Angshuman Agarwal

Hello,
I have written a Windows Service in VB6 and a VB Dll separately. When
I call the DLL normally in VB (i.e. by adding the reference in some
other form) it works fine , but if I try calling the same DLL by
referencing it in my VB6 WINDOWS SERVICE APPLICATION it does not work
out?

Can nebody present his/her views regarding this problem ?

Thx in Advance.
Angshuman Agarwal
 
G

Guest

How have you managed to create a windows service application in VB6? I didn't
know that was possible...



Cheers
 
A

Angshuman Agarwal

Hello,
Thanks for reply...
My service is a normal windows service application ( the way we write
in C/C++ ). Its not an ActiveX exe.
Somebody has already written a VB service without using NTSVC.ocx
control. I got the help from that only

I am trying to spawn an EXE from my service and then that SPAWNED exe
is in turn having a reference to a DLL. So when the service runs , it
gives
RunTime ERROR 48 "Error Loading DLL"

I tried using CreateProcess as well as VB Shell command.. but dint get
ne success

Ne Idea???
Thanks
Angshuman Agarwal
in4Velocity Systems Pvt Ltd
Bangalore, India
 

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

Top