🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Compatibility with .NET

#1466
From: Old Wolf
Date: Thu, 09 Aug 2007 02:33
14 lines
1486 bytes
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:
>"Old Wolf" <oldwolf@inspire.net.nz> wrote:
>
>> I want to write a function using C++Builder2006,
>> that can be called from a third party .NET application.
>
>The only way to do that is to either write a COM object that .NET
>can load, or export the function as a C-style function from a DLL
>that .NET can use PInvoke to call.

If I go with the latter, then how does memory management
work? My function needs to return a string of characters
to the caller, how should this memory be allocated and freed?
Technical Details
Message-ID: <46ba7cf7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <46ba41a9@newsgroups.borland.com> <46ba70cc$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,98d274f81ea99207
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Old Wolf" <oldwolf@inspire.net.nz>
Sender: "Old Wolf" <oldwolf@inspire.net.nz>
Reply-To: "Old Wolf" <oldwolf@inspire.net.nz>
Subject: Re: Compatibility with .NET
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 202.27.209.14     
References: <46ba41a9@newsgroups.borland.com> <46ba70cc$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <46ba7cf7$1@newsgroups.borland.com>
Date: 8 Aug 2007 19:33:27 -0700
X-Trace: newsgroups.borland.com 1186626807 207.105.83.66 (8 Aug 2007 19:33:27 -0700)
Lines: 14
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail