🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7012

Re: convert static dll function load to dynamic load

#7012
From: Remy Lebeau (TeamB)
Date: Tue, 22 Mar 2005 20:33
28 lines
1789 bytes
"Jens Harms" <jens@harms.ch> wrote in message
news:424005d5@newsgroups.borland.com...

> How did you find out the right declaration.

The download for the DLL includes documentation.

>    String file = ExtractFileName(Application->ExeName) +

You should be using ExtractFilePath(), not ExtractFileName().

> AnsiString("\\test.zip");

Get rid of the backslash.  ExtractFilePath() will always include a trailing
backslash.

> Title: project1.exe - component not found
>
> text: the application could not run, because project1.dll was not found.
> a new installation of the application could solve that problem.

You did not put the DLL in a folder on the hard drive where the OS could
find it.  Look at the documentation for the LoadLibrary() function in the
Win32 API for details about where the OS looks for DLLs.


Gambit
Technical Details
Message-ID: <424080d8@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <423f6f04@newsgroups.borland.com> <423f80c3$1@newsgroups.borland.com> <424005d5@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2efce2d5e2a3801f
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <423f6f04@newsgroups.borland.com> <423f80c3$1@newsgroups.borland.com> <424005d5@newsgroups.borland.com>
Subject: Re: convert static dll function load to dynamic load
Date: Tue, 22 Mar 2005 12:33:24 -0800
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <424080d8@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1111523544 68.69.17.41 (22 Mar 2005 12:32:24 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail