How Software Gets Done  


(No Login on Secured Page)

Custom Software Buyers
Request new bids
Search Coders
My Account
 
My Buyer 'To Do' List
 
My bid requests
  My escrow account
 
My General Info
 
Help for Buyers
Articles for Buyers
Latest News
 

Custom Software Coders

Newest open work
Browse all work
Search all work
My Account
 
My Coder 'To Do' List
 
My bids
 
My General Info
  My credit account
 
Help for Coders
Articles for Coders
Latest News
 

Affiliates

My account
 
My pipeline
 
My credit account
 
Help for Affiliates
Latest News
 
Newest Open Bid Requests.
Text based file parser
By cpierson on Feb 12
Max Bid: Open to fair suggestions


Database & ASP Guru required
By Handy Productions on Feb 12
Max Bid: $100


login page security
By Porttech on Feb 12
Max Bid: Open to fair suggestions


Purchasing Program
By CityWare on Feb 12
Max Bid: $500


Custom icon design
By Tom A. Holder on Feb 12
Max Bid: $400


backup utility and interface
By Eager Learner on Feb 12
Max Bid: Open to fair suggestions


Click here to put this ticker on your own site

Open Work Categories.
Database 
(156 open)
   Access 
(67 open)
   MySQL 
(83 open)
   Oracle 
(7 open)
   SQL Server 
(50 open)
   Other DB 
(18 open)
Documentation / Tech Writing 
(32 open)
Game Development 
(28 open)
Graphics / Art / Music 
(48 open)
   Graphics 
(50 open)
     3d Animation 
(14 open)
   Art (Misc.) 
(20 open)
   Music 
(16 open)
   3d Modeling 
(12 open)
Language Specific 
(108 open)
   ASP 
(68 open)
   C# 
(37 open)
   C++ / C 
(98 open)
   Carbon (Mac OS) 
(3 open)
   Cocoa / Obj-C 
(2 open)
   Cold Fusion 
(8 open)
   Delphi 
(26 open)
   Java 
(55 open)
   Perl 
(36 open)
   PHP 
(96 open)
   XML/XSL 
(38 open)
   Visual Basic 
(146 open)
   Visual Basic .Net 
(48 open)
   Other 
(40 open)
Misc 
(40 open)
   CAD 
(8 open)
MultiMedia 
(31 open)
Network 
(43 open)
   Network Design 
(8 open)
   Network Implementation 
(13 open)
Platforms 
(66 open)
   Windows 
(143 open)
     MS Exchange 
(8 open)
     MS Office 
(14 open)
     Other 
(3 open)
   Darwin 
(1 open)
   Internet Browser 
(47 open)
   Linux 
(38 open)
   UNIX 
(22 open)
   Hand Held/PDA Programming 
(12 open)
Requirements 
(11 open)
Security 
(38 open)
Testing / Quality Assurance 
(13 open)
Web 
(123 open)
   Page Design 
(58 open)
   Flash 
(31 open)
   Web Services 
(55 open)
   Web (Other) 
(56 open)
Training 
(10 open)
   Computer Based 
(10 open)
 
Other
 
Other Sites

Download the free Rent A Coder IE toolbar!
 
Show Bid Request

Path to DLL - Not AppPath
Bid Request Id: 20431
Bookmark in my 'To Do' list
Posted by: ShoreSide (46 ratings)
(Software buyer rating 9.95)
Posted: Jul 1, 2002
4:12:21 PM EDT
Bidding Closes: Jul 15, 2002
4:14:54 PM EDT
Viewed (by coders): 155 times
Phase:
100% of work was accepted by buyer. Coder account has been credited.
Max Accepted Bid: Bidding is closed
Project Type: Very Small Business Project: under $100 (USD)
Bidding Type: Open Auction
Categories: Windows, Language Specific, Platforms, Visual Basic
Enter chat room for this bid request
(0 active users at Feb 12, 2003 1:36:44 PM EDT)

Description:
Hi,
I have created a DLL - which is a plugin for another progam.

My Problem - Getting the DLL Path (from within the dll).

Assume the main program is located c:\someprogram\main.exe
Assume that my dll is located c:\addons\mydll.dll

Now when main.exe triggers to call mydll.dll - mydll.dll looks for it's own path.

However - it keeps returning the path of the calling program (main.exe).

Need someone help me - what api do I need - for
the dll - to find itself?

Please use a VB - API(only) Example.

Many of you are stating to use the GetModuleFileName Function - In this case - It will not work!

GetModuleFileName will only return the path to the Application that calling the dll!

What I want - is a function in the dll - to find it's own path. This should be relatively simple, but so far - everyone is stump! (accept for the registry) - which I tend to avoid - due to different windows versions!

Thanks


Deliverables:
Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

Complete copyrights to all work purchased.


Platform:
Windows (all version)



Special Conditions / Other:
Need this ASAP! or (as soon as possible).

Thanks



Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements. We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation. If you notice a violation, you can report it to: abuse@rentacoder.com.
 
Bidding/Comments:
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests.

See all rejected bids (and all comments)
Name   Bid Amount 
 
Date   Coder Rating  
PSergei
(34 ratings)
in Kharkov, Ukraine
Ukraine
 
$50 (USD) Jul 1, 2002
4:49:46 PM EDT
 9.71
(Excellent)
   
Hello,

You just have to use Win32 API function GetModuleFileName

Regards,
Sergei
 
 
 
 
  See 1 private reply(ies)
to/from PSergei.
 

This bid was accepted by the buyer!
PSergei
(34 ratings)
in Kharkov, Ukraine
Ukraine
 
$50 (USD) Jul 1, 2002
5:07:51 PM EDT
 9.71
(Excellent)
   
In more details :

hDLL = GetModuleHandle('mydll.dll')

GetModuleFileName(hDll, ...)

Or better save the hInstance of the MyDLL in the DllMain entry point (I'm not sure about how this can be done in VB)
And then pass this hInstance to GetModuleFileName

Hope this will help

Regards,
Sergei
Regards,
Sergei
 




Quick Search
 

 Advanced Search
Newest Open Work
Latest News

 
Credentials


 

 
Rent A Coder upholds the rigorous business practices required to be both a BBB member and Square Trade vendor.
  • All customer issues addressed within 2 days
  • Openly disclosed pricing and return policies
  • Participation in mediation at buyer request
  • Superior selling track record
This site is verified through its parent company, Exhedra Solutions, Inc.
 

Rent A Coder Top Coders.


Anuj Gakhar
Rated a 9.98 on 80 jobs 
Michael Sharp
Rated a 9.97 on 152 jobs 
teleCODERS
Rated a 9.93 on 62 jobs 
Simon Price
Rated a 10 on 6 jobs 
RNA
Rated a 9.91 on 28 jobs 
Securenext
Rated a 9.97 on 60 jobs 
Buddies
Rated a 9.82 on 53 jobs 
Codman
Rated a 9.96 on 111 jobs 
markesh
Rated a 10 on 17 jobs 
Andrei Remenchuk
Rated a 10 on 9 jobs 

See all top coders...

(What makes a top coder?)

Top Exam Scorers
 
Other
Rent A Coder is PayPal verified through it's parent company, Exhedra Solutions, Inc.

Created in partnership with:

 


Affiliate Sites



Latest News | About Us | Kudos | Feedback/Contact    Affiliates | Advertise    Privacy | Legal

Copyright © 2001, Exhedra Solutions, Inc. All rights reserved.
By using this site you agree to its Terms and Conditions.
"Rent A Coder" (tm), "Safe Project Escrow" (tm) and "How Software Gets Done" (tm)
are trademarks of Exhedra Solutions, Inc.