🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.comp.lang.csharp
Article #275

Re: Interop

#275
From: Pawel Zabza
Date: Wed, 03 Dec 2003 14:24
21 lines
1542 bytes
Krzysztof wrote:

[...]
> typedef (__stdcall *ExecuteTaskFromXML)( const string& input, string&
> output, DWORD& dwSize, LPVOID& pCtx );
> 
> string to oczywiscie std::string

Marshaller CLR nie rozumie STLowych stringow, tylko BSTR albo LPSTR / 
LPWSTR.

[...]
> Jak to obejsc?

Jesli ten DLL jest Twoj, to przepisujac go, tak zeby funkcje wolane z C# 
uzywaly parametrow strawnych dla marshallera.  Jesli nie, to piszac 
"wrapper", ktory bedzie eksportowal takie "strawne" funkcje a sam 
zajmowal sie konwersja parametrow i wolal te "prawdziwe".

Pozdrawiam,
Mlodszy interopniczy
Technical Details
Message-ID: <bqkrn4$ns6$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
References: <bqkluu$8sg$1@news.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
From: Pawel Zabza <pza...@poczta.onet.pl>
Newsgroups: alt.pl.comp.lang.csharp
Subject: Re: Interop
Date: Wed, 03 Dec 2003 16:24:35 +0200
Organization: .
Lines: 23
Sender: pzabza@poczta.onet.pl@cbl217-132-143-163.bb.netvision.net.il
Message-ID: <bqkrn4$ns6$1@news.onet.pl>
References: <bqkluu$8sg$1@news.onet.pl>
NNTP-Posting-Host: cbl217-132-143-163.bb.netvision.net.il
Mime-Version: 1.0
X-Trace: news.onet.pl 1070461476 24454 217.132.143.163 (3 Dec 2003 14:24:36 GMT)
X-Complaints-To: ab...@onet.pl
NNTP-Posting-Date: 3 Dec 2003 14:24:36 GMT
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3
X-Accept-Language: en-us, en
In-Reply-To: <bqkluu$8sg$1@news.onet.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit