Article View: borland.public.delphi.language.objectpascal
Article #32459Re: Problems calling a function from a DLL file
From: Rudy Velthuis (TeamB)
Date: Sat, 23 Nov 2002 14:23
Date: Sat, 23 Nov 2002 14:23
20 lines
1637 bytes
1637 bytes
In article <3ddf8143@newsgroups.borland.com>, Adams says... > Hi, am having a problem with calling a function located in a DLL file, > Here are the declaration in C: > > extern "C" BOOL __declspec(dllexport)StartLinkFile(CString > strFile,CString port); CString seems to be an MFC type. Not very clever to export that from a DLL to be used by different languages. > I tried porting this code into Delphi but was unable to! anybody can help? No, I'm afraid this is too specific for VC++. They should have used char* (PChar) instead. -- Rudy Velthuis (TeamB) "We should leave our minds open, but not so open that our brains fall out." - Alan Ross Anderson
Technical Details
Message-ID:
<3ddf8f51@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.stealth.net!news.stealth.net!ngpeer.news.aol.com!newsfeed1.cidera.com!Cidera!news.uni-x.net!newsgroups.borland.com!not-for-mailReferences:
<3ddf8143@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109d30,4439140b96f8435d X-Google-Attributes: gid109d30,public X-Google-ArrivalTime: 2002-11-23 07:15:38 PST From: "Rudy Velthuis (TeamB)" <rvelthuis@gmx.de> Newsgroups: borland.public.delphi.language.objectpascal Subject: Re: Problems calling a function from a DLL file Date: Sat, 23 Nov 2002 15:23:39 +0100 References: <3ddf8143@newsgroups.borland.com> Organization: TeamB X-Newsreader: MicroPlanet Gravity v2.60 NNTP-Posting-Host: 80.135.222.152 Message-ID: <3ddf8f51@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1038061393 80.135.222.152 (23 Nov 2002 06:23:13 -0800) Lines: 20 X-Authenticated-User: rvelthuis Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.stealth.net!news.stealth.net!ngpeer.news.aol.com!newsfeed1.cidera.com!Cidera!news.uni-x.net!newsgroups.borland.com!not-for-mail