[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.interop

Define pinvoke interop to marshal a c type of char***

paul.welter

8/30/2007 5:14:00 AM

There is a dll that has a definition of ...

int suggest(spell *pMS, char *word, char ***slst);

I'm trying to figure out how to marshal the char*** type to c#. This
is what i have so far but doesn't work ...

[DllImport(dllName, EntryPoint = "suggest", CharSet = CharSet.Auto,
SetLastError = true)]
public static extern int suggest(
IntPtr pMS,
[MarshalAs(UnmanagedType.LPStr)]
string word,
[MarshalAs(UnmanagedType.LPArray, ArraySubType =
UnmanagedType.LPStr)]
out string[] slst);

I assume that char*** is an array of strings. How do I marshal this?

thanks,
Paul

9 Answers

Uncle Vic

2/9/2013 3:54:00 AM

0

Jim <garekmolo@ymail.com> wrote in news:d0557d57-951b-4ac8-96a3-
f4610324f440@x13g2000vby.googlegroups.com:

> If only we had forced people to keep married, like in the good old
> days.

Exactly! Let's bring back torture devices! Burnings at the stake! Yeah,
the good old days, when the Church still had POWER!

Excuse me, I think I need a shower now. I feel dirty.

--
Uncle Vic
aa# 2011
The meaning of life is to find your gift.
The purpose of life is to give it away.

Visit my You Tube Channel!
http://www.youtube.com/user/Vicman6311?fe...

DCI

2/9/2013 6:28:00 AM

0

On Friday, February 8, 2013 7:53:40 PM UTC-8, Uncle Vic wrote:
> Jim <garekmolo@ymail.com> wrote in news:d0557d57-951b-4ac8-96a3-
>
> f4610324f440@x13g2000vby.googlegroups.com:
>
>
>
> > If only we had forced people to keep married, like in the good old
>
> > days.
>
>
>
> Exactly! Let's bring back torture devices! Burnings at the stake! Yeah,
>
> the good old days, when the Church still had POWER!
>
>

Cut -

Forced to remain married? It'll increase domestic violence. Are you aware that when a police officers encounters a situation of domestic violence, he or she does not have the legal discretion other than to make an arrest. In every other suspicion of a criminal act, the officer has to discretion to do nothing other than to note it on his work log.

DCI

Spamßuster

2/9/2013 8:42:00 PM

0

On 2/8/2013 7:51 PM, Fidem Turbare, the non-existent atheist goddess wrote:


--
=====================================================================
SPAMMED INTO NON-RELEVANT GROUPS / COUNTRY
=====================================================================

Spamßuster

2/9/2013 10:11:00 PM

0

On 2/8/2013 9:53 PM, Uncle Vic wrote:


Path: not-for-mail
NNTP-Posting-Date: Fri, 08 Feb 2013 21:57:07 -0600
Newsgroups:
can.politics,soc.culture.african.american,alt.society.liberalism,misc.survivalism,alt.atheism
Subject: Re: Scientist seeks "liberal female" atheist to have
Neanderthal baby
From: Uncle Vic <sorry@noway.com>
References: <XnsA1618A7DA4AFBUBVCYT723@217.119.49.38>
<bc766981-c39a-4f42-9d9d-6cd889647867@i15g2000vbv.googlegroups.com>
<XnsA161C9BF1E9E0sorrynowaycom@216.196.121.131>
Message-ID: <XnsA161CAF257465sorrynowaycom@216.196.121.131>
User-Agent: Xnews/5.04.25
Date: Fri, 08 Feb 2013 21:57:07 -0600
Lines: 30
X-Usenet-Provider: http://www.gi...
X-Trace:
sv3-KcD+ad+VQoZf8q/zZZsRFSsCQPRHl4fWfj7DMEtmOapvxTk3KSQYYuhRYrAR/s3Rx2Fy7udhbYx8Qxu!EgN66sBT7o+fqcvxGzWH4mVu8O0lhB9imngVe8dB3RV/oW27ZW4pD4yeIbYZ8I8hmI7animnA+8=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.gi.../info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
X-Postfilter: 1.3.40
Bytes: 2324
X-Original-Bytes: 2263
X-Received-Bytes: 2404
Xref: Hurricane can.politics:1451811 soc.culture.african.american:252181
alt.society.liberalism:5520000 misc.survivalism:1091453 alt.atheism:5009238

--
=====================================================================
SPAMMED INTO NON-RELEVANT GROUPS / COUNTRY
=====================================================================

Spamßuster

2/9/2013 10:22:00 PM

0

On 2/8/2013 8:21 PM, Jim wrote:
> On Feb 8, 8:51 pm, "Fidem Turbare, the non-existent atheist goddess"
> <godd...@fidemturbare.com> wrote:
>> On 8 Feb 2013 22:36:51 +0100
>>
>> Scott Robbins <robb...@dont-email.me> wrote:
>>> http://www.foxnews.com/science/2013/01/21/scientist-seeks-ad...
>>> woman-to-have-neanderthal-baby/
>>> Where�s Fred Flintstone when you need him?
>>> A professor of genetics at Harvard�s Medical School believes he�s
>>> capable of bringing the long-extinct Neanderthal back to life -- all
>>> he�s lacking is the right mother.
>> It will be more difficult, I suspect, to find a volunteer for this in
>> religious circles because they typically frown on having children
>> outside of marriage, so he'd be best to ask the general public.
>>
>
> The very idea of allowing divorce wasn't the idea of God, it was
> invented by a man who created his own Church.
>
> The great Tudor King, Henry VIII.
>
> If only we had forced people to keep married, like in the good old
> days.
>
> Then Marriages Holy vows would be adhered to, like an ape on a banana.


--
=====================================================================
SPAMMED INTO NON-RELEVANT GROUPS / COUNTRY
=====================================================================

%

2/10/2013 12:40:00 AM

0

Spamβuster wrote:
> On 2/8/2013 9:53 PM, Uncle Vic wrote:
>
>
> Path: not-for-mail
> NNTP-Posting-Date: Fri, 08 Feb 2013 21:57:07 -0600
> Newsgroups:
> can.politics,soc.culture.african.american,alt.society.liberalism,misc.survivalism,alt.atheism
> Subject: Re: Scientist seeks "liberal female" atheist to have
> Neanderthal baby
> From: Uncle Vic <sorry@noway.com>
> References: <XnsA1618A7DA4AFBUBVCYT723@217.119.49.38>
> <bc766981-c39a-4f42-9d9d-6cd889647867@i15g2000vbv.googlegroups.com>
> <XnsA161C9BF1E9E0sorrynowaycom@216.196.121.131>
> Message-ID: <XnsA161CAF257465sorrynowaycom@216.196.121.131>
> User-Agent: Xnews/5.04.25
> Date: Fri, 08 Feb 2013 21:57:07 -0600
> Lines: 30
> X-Usenet-Provider: http://www.gi...
> X-Trace:
> sv3-KcD+ad+VQoZf8q/zZZsRFSsCQPRHl4fWfj7DMEtmOapvxTk3KSQYYuhRYrAR/s3Rx2Fy7udhbYx8Qxu!EgN66sBT7o+fqcvxGzWH4mVu8O0lhB9imngVe8dB3RV/oW27ZW4pD4yeIbYZ8I8hmI7animnA+8=
> X-Complaints-To: abuse@giganews.com
> X-DMCA-Notifications: http://www.gi.../info/dmca.html
> X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
> X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
> complaint properly
> X-Postfilter: 1.3.40
> Bytes: 2324
> X-Original-Bytes: 2263
> X-Received-Bytes: 2404
> alt.society.liberalism:5520000 misc.survivalism:1091453
> alt.atheism:5009238

70.67.20.208@sjrb.ca

2/10/2013 12:56:00 AM

0

On 09 Feb 2013, =?UTF-8?B?U3Bhbc6ydXN0ZXI=?= <SpamBuster@not.can> posted
some news:5LBRs.162462$Sl.76483@newsfe27.iad:

> From: =?UTF-8?B?U3Bhbc6ydXN0ZXI=?= <SpamBuster@not.can>
> Reply-To: Spamβuster@not.can
> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0)
> Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0
> Newsgroups:
> us.politics,soc.culture.african.american,alt.society.liberalism,misc.su
> rvivalism,alt.atheism Subject: Re: Scientist seeks "liberal female"
> atheist to have Neanderthal baby References:
> <XnsA1618A7DA4AFBUBVCYT723@217.119.49.38>
> <20130208175117.de1074630231b83aa15540e2@fidemturbare.com>
> <d0557d57-951b-4ac8-96a3-f4610324f440@x13g2000vby.googlegroups.com>
> In-Reply-To:
> <d0557d57-951b-4ac8-96a3-f4610324f440@x13g2000vby.googlegroups.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed
> Content-Transfer-Encoding: 8bit
> Lines: 33
> Message-ID: <5LBRs.162462$Sl.76483@newsfe27.iad>
> NNTP-Posting-Host: 70.67.20.208
> X-Complaints-To: internet.abuse@sjrb.ca
> X-Trace: 1360455745 70.67.20.208 (Sun, 10 Feb 2013 00:22:25 UTC)
> NNTP-Posting-Date: Sun, 10 Feb 2013 00:22:25 UTC
> Date: Sat, 09 Feb 2013 16:21:58 -0600
> X-Received-Bytes: 2585

--

70.67.20.208@sjrb.ca

2/10/2013 7:00:00 PM

0

On 09 Feb 2013, =?UTF-8?B?U3Bhbc6ydXN0ZXI=?= <SpamBuster@not.can> posted
some news:kABRs.44739$Sq4.10827@newsfe14.iad:

> From: =?UTF-8?B?U3Bhbc6ydXN0ZXI=?= <SpamBuster@not.can>
> Reply-To: Spamβuster@not.can
> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0)
> Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0
> Newsgroups:
> us.politics,soc.culture.african.american,alt.society.liberalism,misc.su
> rvivalism,alt.atheism Subject: giganews SPAMMER -------------------
> Re: Scientist seeks "liberal female" atheist to have Neanderthal
> baby References: <XnsA1618A7DA4AFBUBVCYT723@217.119.49.38>
> <20130208175117.de1074630231b83aa15540e2@fidemturbare.com>
> <d0557d57-951b-4ac8-96a3-f4610324f440@x13g2000vby.googlegroups.com>
> <XnsA161CA5C174D0sorrynowaycom@216.196.121.131> In-Reply-To:
> <XnsA161CA5C174D0sorrynowaycom@216.196.121.131> Content-Type:
> text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding:
> 7bit Lines: 37
> Message-ID: <kABRs.44739$Sq4.10827@newsfe14.iad>
> NNTP-Posting-Host: 70.67.20.208
> X-Complaints-To: internet.abuse@sjrb.ca
> X-Trace: 1360455056 70.67.20.208 (Sun, 10 Feb 2013 00:10:56 UTC)
> NNTP-Posting-Date: Sun, 10 Feb 2013 00:10:56 UTC
> Date: Sat, 09 Feb 2013 16:10:30 -0600
> X-Received-Bytes: 2894

--

70.67.20.208@sjrb.ca

2/10/2013 7:00:00 PM

0

On 09 Feb 2013, =?UTF-8?B?U3Bhbc6ydXN0ZXI=?= <SpamBuster@not.can> posted
some news:nhARs.59467$1l4.46443@newsfe29.iad:

> From: =?UTF-8?B?U3Bhbc6ydXN0ZXI=?= <SpamBuster@not.can>
> Reply-To: Spamβuster@not.can
> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0)
> Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0
> Newsgroups:
> us.politics,soc.culture.african.american,alt.society.liberalism,misc.su
> rvivalism,alt.atheism Subject: Re: Scientist seeks "liberal female"
> atheist to have Neanderthal baby References:
> <XnsA1618A7DA4AFBUBVCYT723@217.119.49.38>
> <20130208175117.de1074630231b83aa15540e2@fidemturbare.com>
> In-Reply-To:
> <20130208175117.de1074630231b83aa15540e2@fidemturbare.com> Lines: 8
> Message-ID: <nhARs.59467$1l4.46443@newsfe29.iad>
> NNTP-Posting-Host: 70.67.20.208
> X-Complaints-To: internet.abuse@sjrb.ca
> X-Trace: 1360449747 70.67.20.208 (Sat, 09 Feb 2013 22:42:27 UTC)
> NNTP-Posting-Date: Sat, 09 Feb 2013 22:42:27 UTC
> Date: Sat, 09 Feb 2013 14:42:00 -0600
> X-Received-Bytes: 1456
> Content-Type: text/plain; charset=UTF-8; format=flowed
> Content-Transfer-Encoding: 7bit

--