Jump to content

Recommended Posts

Posted (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 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]

Posted

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

Posted

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]

Posted

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.

Posted

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]

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...