Jump to content
Sign in to follow this  
CyRius

ObjCreate working dir

Recommended Posts

CyRius

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]

Share this post


Link to post
Share on other sites
Xand3r

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

Share this post


Link to post
Share on other sites
Richard Robertson

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.

Share this post


Link to post
Share on other sites
CyRius

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]

Share this post


Link to post
Share on other sites
Richard Robertson

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.

Share this post


Link to post
Share on other sites
CyRius

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]

Share this post


Link to post
Share on other sites
Richard Robertson

If you don't have the user rights to do this, then it is against the rules to do it.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.