Article View: borland.public.cppbuilder.nativeapi
Article #6996convert static dll function load to dynamic load
From: Jens Harms
Date: Tue, 22 Mar 2005 01:01
Date: Tue, 22 Mar 2005 01:01
26 lines
1566 bytes
1566 bytes
hi,
i found a dll (http://www.zip-dll.de/download.htm) which may give my
application the possibility to extract zip files.
now i get this dll und use implib to create a lib file which i add to my
project. no i have this code:
extern "C" void __declspec(dllimport) IB_UnZipArchiveFile(const char*
szArchive);
void __fastcall TForm1::Button1Click(TObject *Sender)
{
String file = GetCurrentDir() + AnsiString("\\test.zip");
IB_UnZipArchiveFile(file.c_str());
}
when i compile, i get this error
[Linker Fehler] Unresolved external '_IB_UnZipArchiveFile' referenced from
C:\PROGRAMME\BORLAND\CBUILDER5\PROJECTS\ZIP\UNIT1.OBJ
what does this error mean. may the function works, when i load it dynamical
from the dll? how can i do this?
jens
Technical Details
Message-ID:
<423f6f04@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2efce2d5e2a3801f,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Jens Harms" <jens@harms.ch> Newsgroups: borland.public.cppbuilder.nativeapi Subject: convert static dll function load to dynamic load Date: Tue, 22 Mar 2005 02:01:54 +0100 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 84.137.63.93 Message-ID: <423f6f04@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1111453444 84.137.63.93 (21 Mar 2005 17:04:04 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail