Article View: borland.public.delphi.language.objectpascal
Article #32461Re: Problems calling a function from a DLL file
From: Adams
Date: Sun, 24 Nov 2002 01:17
Date: Sun, 24 Nov 2002 01:17
23 lines
1777 bytes
1777 bytes
I already asked the programmer to provide me PChar version instead of CString, but can you tell me what is an MFC type CString plz? Rudy Velthuis (TeamB) wrote: > 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.
Technical Details
Message-ID:
<3ddf9c20@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mailReferences:
<3ddf8143@newsgroups.borland.com> <3ddf8f51@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 08:16:05 PST Date: Sat, 23 Nov 2002 17:17:54 -0800 From: Adams <lonereck@hotmail.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.delphi.language.objectpascal Subject: Re: Problems calling a function from a DLL file References: <3ddf8143@newsgroups.borland.com> <3ddf8f51@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 212.118.5.204 Message-ID: <3ddf9c20@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1038064672 212.118.5.204 (23 Nov 2002 07:17:52 -0800) Lines: 24 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail