Article View: comp.lang.pascal.delphi.misc
Article #8Re: Delphi calls to a C++ DLL
From: helicon
Date: Sat, 03 Feb 1996 22:09
Date: Sat, 03 Feb 1996 22:09
39 lines
1591 bytes
1591 bytes
In article <3112841B.5D2F@allaire.com>, jlund@allaire.com says...
>
>helicon wrote:
>>> nIndex:= GetFieldsForTable(strpcopy(pcharBuiffer,'Test'),
>>> strpcopy(pcharBuiffer,''),
>>> strpcopy(pcharBuiffer,''),
>>> strpcopy(pcharBuiffer,'Employees'));
>>
>> I think the problem is, that you use the same Buffer for
>> each parameter.
>
>I wish that were the problem, but I'm afraid that's my clumsy
>typing. "pcharBuiffer" is a typo. I use a different variable
>for each buffer in the actual code.
>
>I should mention that I'm running using 32 bit flavors of Delphi (2.0
>beta), and Visual C++ 4.0 on both Windows 95 and Windows NT.
>
>Thanks for responding, Andreas.
>
No problem :-)
I remember that you declare a method as external. Have you ever tried to call the function outside a class?
For Instance:
function _GetFieldsForTable ({...}) external {...}
TODBCInformant.GetFieldsForTable ({...});
begin
Result := _GetFieldsForTable ({...});
end;
The problem could be that delphi use the implicit paremter "self" in each method.
Bye and Good Luck
Andreas
Technical Details
Message-ID:
<4f0meu$404@newsfeed.via.at>Path:
arc1-ca.pugleaf.net!news.via.at!usenetReferences:
<310FD68B.208B@allaire.com> <4erttn$l9v@newsfeed.via.at> <3112841B.5D2F@allaire.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.via.at!usenet From: helicon@helicon.co.at (helicon) Newsgroups: comp.lang.pascal.delphi.misc,comp.lang.c++ Subject: Re: Delphi calls to a C++ DLL Date: 3 Feb 1996 22:09:34 GMT Organization: helicon software development Message-ID: <4f0meu$404@newsfeed.via.at> References: <310FD68B.208B@allaire.com> <4erttn$l9v@newsfeed.via.at> <3112841B.5D2F@allaire.com> NNTP-Posting-Host: helicon.via.at Mime-Version: 1.0 X-Newsreader: WinVN 0.99.2