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

  • Thread starter Thread starter Angshuman Agarwal
  • Start date Start date
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
 
How have you managed to create a windows service application in VB6? I didn't
know that was possible...



Cheers
 
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
 
Back
Top