Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 14:04

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



dll in externem Ordner

Discussion on dll in externem Ordner within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
Pumba98's Avatar
 
elite*gold: 55
Join Date: Jan 2011
Posts: 1,240
Received Thanks: 1,184
dll in externem Ordner

Hallo zusammen,
ich möchte auf eine .dll zugreifen, welche in einem anderen Ordner liegt als meine .exe.
Ist das realisierbar? Und wenn ja wie?

Danke schonmal
Pumba98 is offline  
Old 09/14/2015, 18:28   #2


 
elite*gold: 1091
Join Date: Jun 2007
Posts: 19,836
Received Thanks: 7,180
Klar ist das realisierbar aber ohne Kontext kann dir keiner sagen wie es geht.
Mostey is offline  
Old 09/14/2015, 18:38   #3
 
Pumba98's Avatar
 
elite*gold: 55
Join Date: Jan 2011
Posts: 1,240
Received Thanks: 1,184
Ich nutze die Interop.IWshRuntimeLibrary.dll um mit meinem Programm eine Verknüpfung auf dem Desktop zu erstellen. Die dll lade ich runter, momentan noch in den Ordner in dem auch mein Programm liegt, ich würde sie aber lieber in einen externen Ordner laden damit sie halt nicht auf den Desktop rumliegt. Ich weiß nur nicht wie ich sie dann verwenden kann
Pumba98 is offline  
Old 09/14/2015, 22:08   #4
 
coladose's Avatar
 
elite*gold: 106
Join Date: Jun 2010
Posts: 2,256
Received Thanks: 3,866
Wie wäre es, wenn du ein Programmverzeichnis im Nutzerverzeichnis anlegst und dann nur eine Verknüpfung auf den Desktop packst?
coladose is offline  
Thanks
1 User
Old 09/14/2015, 22:18   #5
 
Pumba98's Avatar
 
elite*gold: 55
Join Date: Jan 2011
Posts: 1,240
Received Thanks: 1,184
Quote:
Originally Posted by coladose View Post
Wie wäre es, wenn du ein Programmverzeichnis im Nutzerverzeichnis anlegst und dann nur eine Verknüpfung auf den Desktop packst?
Publishe nur die exe, hab daher keinen Einfluss darauf wo sie liegt und gehe davon aus, dass mein Tool vermutlich auf den Desktop gepackt wird
Pumba98 is offline  
Old 09/15/2015, 10:58   #6
 
elite*gold: 67
Join Date: Aug 2014
Posts: 1,321
Received Thanks: 927
In App.Config

Code:
<runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <probing privatePath="3rd Party Libraries" /> <--- Pfad wo deine DLLs sind (Debug/3rd Party Libraries/ in diesem fall)
      </assemblyBinding>
<runtime>
Xio. is offline  
Old 09/15/2015, 18:42   #7
 
coladose's Avatar
 
elite*gold: 106
Join Date: Jun 2010
Posts: 2,256
Received Thanks: 3,866
Quote:
Originally Posted by Pumba98 View Post
Publishe nur die exe, hab daher keinen Einfluss darauf wo sie liegt und gehe davon aus, dass mein Tool vermutlich auf den Desktop gepackt wird
Dann einfach einen kleinen "Installer" bauen und die DLL mit ausliefern (solange das lizenztechnisch erlaubt ist) und dann meine oben genannte Prozedur...
coladose is offline  
Old 09/16/2015, 18:39   #8
 
elite*gold: 2091
Join Date: Jun 2007
Posts: 13
Received Thanks: 2


Falls die dll mit deiner exe ausgeliefert wird sollte dir noch:

Code:
Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName);
helfen
maxGOLDS is offline  
Reply


Similar Threads Similar Threads
[Rsro] Fully working ibot folder with folder + tut
05/06/2011 - SRO Hacks, Bots, Cheats & Exploits - 45 Replies
Ok, this is the first time im making a tutorial so dont be harsh on the comments. Download link: MEGAUPLOAD - The leading online storage and file delivery service Mirror:http://hotfile.com/dl/83017772/eb1dacc/rsr obot.7z.html PS: you need 7zip + i accidently copied 2 ibot_necessities inside it, so just delete one of them. PPS: ive realised that there are options for ma chars too so, u can delete them if you want :D



All times are GMT +2. The time now is 14:04.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.