|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
Hi
I am trying to run the regsvr32.exe to register a Home made dll. Every time it throws the following error: The Specifed module cannot be found. I have set the PATH variable as PATH=whatever;C:\C2p3\;. C:\C2p3 is where my dll is. But for my other dlls in the same path it is atleast able to find it. Can anybody throw some light on this ? How does VB searched the path for the DLL at runtime ? TIA KK VB's Shell command is pretty dumb. If I remember correctly, it doesn't even
have a path search strategy. Either provide absolute paths for both the exe (regsvr32) and the dll, or try using the ShellExecute API call - it's smarter. Hope that helps Robert <kunal.kis***@gmail.com> wrote in message Show quoteHide quote news:1141626819.332991.310330@i40g2000cwc.googlegroups.com... > Hi > > I am trying to run the regsvr32.exe to register a Home made dll. > > Every time it throws the following error: The Specifed module cannot be > found. > I have set the PATH variable as PATH=whatever;C:\C2p3\;. > C:\C2p3 is where my dll is. But for my other dlls in the same path it > is atleast able to find it. > Can anybody throw some light on this ? > How does VB searched the path for the DLL at runtime ? > > > TIA > KK > <kunal.kis***@gmail.com> wrote in message
news:1141626819.332991.310330@i40g2000cwc.googlegroups.com... Is it regsvr32 that's raising the error, or your own code /after/ the> I am trying to run the regsvr32.exe to register a Home made dll. > The Specifed module cannot be found. > I have set the PATH variable as PATH=whatever;C:\C2p3\;. DLL is [supposedly] registered? The DOS Path variable has /no meaning/ to VB Dll's, which are COM DLL's and their location is stored in the Registry (by regsvr32). > How does VB searched the path for the DLL at runtime ? For COM DLL's, it doesn't. It relies totally on the Registry.For Native Windows DLL's, which are quite difficult to write with VB, I believe it uses current directory, then Windows\System, then the DOS path. HTH, Phill W. The OS searches for the regsver32.exe file in the defined path
variable, NOT the DLL in question. Change to the folder where the DLL is located and from there run the regsvr32 utility. Having C2P3 in the path won't help or benefit. Good luck! Saga <kunal.kishanNON@SPAMMEgmail.com> wrote in message Show quoteHide quote news:1141626819.332991.310330@i40g2000cwc.googlegroups.com... > Hi > > I am trying to run the regsvr32.exe to register a Home made dll. > > Every time it throws the following error: The Specifed module cannot > be > found. > I have set the PATH variable as PATH=whatever;C:\C2p3\;. > C:\C2p3 is where my dll is. But for my other dlls in the same path it > is atleast able to find it. > Can anybody throw some light on this ? > How does VB searched the path for the DLL at runtime ? > > > TIA > KK > I have tried all. The problem is the code is working on some of the PCs
without any tunings. But why the heck it is not working on my PC is a Big Question. Crazy Windows. ....... Please pour in more solutions. Thanks In Advance Kunal Kishan |
|||||||||||||||||||||||