🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #10

Re: marshalling char ** from a dll in C#?

#10
From: Ron Sawyer
Date: Fri, 21 Apr 2006 13:27
19 lines
1705 bytes
Thanks for the tip Marc!  I'll give that a try too (I *think* my other solution works...)

Please forgive this awkward phrasing (at least it seems awkward to me):  Where would I have gone to learn this?  That just isn't intuitive.

Over the years I have come to love the fact that I can post on a newsgroup like this and get an answer in a day or two (at most.)  But I also like to learn as much as I can by myself.  It seems to "take" better.

"Marc Rohloff [TeamB]" <"on request"> wrote:
>On 20 Apr 2006 11:36:51 -0700, Ron Sawyer wrote:
>
>> int GetObjects(char **String, int Len)
>> How do I declare that in C#?
>
>Make the parameter of type StringBuilder, create a new StringBuilder
>object, set it's maximum appropriately and pass it in.
>
>-- 
>Marc Rohloff [TeamB]
>marc rohloff -at- myrealbox -dot- com
Technical Details
Message-ID: <4448ddb0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4447d4c3$1@newsgroups.borland.com> <10cyqx51rs1zc$.dlg@dlg.marcrohloff.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,1fbd241866ab483b
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ron Sawyer" <win8128@aol.com>
Sender: "Ron Sawyer" <win8128@aol.com>
Reply-To: "Ron Sawyer" <win8128@aol.com>
Subject: Re: marshalling char ** from a dll in C#?
Newsgroups: borland.public.csharpbuilder.language.csharp
X-User-Info: 20.137.18.51     
References: <4447d4c3$1@newsgroups.borland.com> <10cyqx51rs1zc$.dlg@dlg.marcrohloff.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4448ddb0$1@newsgroups.borland.com>
Date: 21 Apr 2006 06:27:12 -0700
X-Trace: newsgroups.borland.com 1145626032 207.105.83.66 (21 Apr 2006 06:27:12 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail