CyRius Posted June 22, 2009 Share Posted June 22, 2009 (edited) Heya. I have a strange question. I have a function ObjCreate(). How could i change the wroking directory? I want to use the ObjCreate("winhttp.winhttprequest.5.1") in a script, and i must be sure that i can access the winhttp.dll, so i put the dll file near the script (in case of the missing winhttp.dll). But the ObjCreate() searches for the dll in the system32 folder. How could i change the working dir for this function or how could i open the dll from an other folder? Greetz, CyRius Edited June 22, 2009 by CyRius [font="Courier New"][size="3"]CyRius Developments[/size][/font][list][*]CO Proxy[*]CO Assembly tool[*]CO PacketSniffer[*]Larkinor proxy[*]BoIM Messenger[*]Encrypt/Decrypt[*]Hashtables[*]Slowest, but greatest skins ever xD[/list] Link to comment Share on other sites More sharing options...
Xand3r Posted June 22, 2009 Share Posted June 22, 2009 the working directory dosen't matter all that matters is if the dll is registered... Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 23, 2009 Share Posted June 23, 2009 There is no such thing. Dlls are loaded in the order specified by Windows. More importantly, you can only create registered objects. Registered objects require the dll to already exist somewhere. Link to comment Share on other sites More sharing options...
CyRius Posted June 23, 2009 Author Share Posted June 23, 2009 Hmm, i see, but is it imposible to do this? There is no other way? (i want ObjCreate() not DllOpen/Call/Close) [font="Courier New"][size="3"]CyRius Developments[/size][/font][list][*]CO Proxy[*]CO Assembly tool[*]CO PacketSniffer[*]Larkinor proxy[*]BoIM Messenger[*]Encrypt/Decrypt[*]Hashtables[*]Slowest, but greatest skins ever xD[/list] Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 23, 2009 Share Posted June 23, 2009 If you want ObjCreate, you need to register it. If you are registering it, it should be somewhere for other programs to access it. I wonder though, why would you run into a computer without that object? That's one of the standard things that people will just have. Link to comment Share on other sites More sharing options...
CyRius Posted June 24, 2009 Author Share Posted June 24, 2009 I want to create a messenger, but in my school i dont have admin rights and the winhttp.dll is missing (and few other), and i dont have permission the copy it to system32. The messenger must work on every computer (even the user dont have admin rights and dont have the required .dlls). [font="Courier New"][size="3"]CyRius Developments[/size][/font][list][*]CO Proxy[*]CO Assembly tool[*]CO PacketSniffer[*]Larkinor proxy[*]BoIM Messenger[*]Encrypt/Decrypt[*]Hashtables[*]Slowest, but greatest skins ever xD[/list] Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 24, 2009 Share Posted June 24, 2009 If you don't have the user rights to do this, then it is against the rules to do it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now