Article View: borland.public.cppbuilder.nativeapi
Article #2974Re: Calling .Net code
From: Remy Lebeau (TeamB)
Date: Wed, 25 Oct 2006 17:14
Date: Wed, 25 Oct 2006 17:14
17 lines
1721 bytes
1721 bytes
"Bob Piskac" <bob@pbsoftware.com> wrote in message news:453f5c29$1@newsgroups.borland.com... > From my unmanaged CPP application I call PInvoke and pass > my window handle. PInvoke is a .NET function for calling unmanaged APIs. The .NET code will have to use PInvoke in order to call SetParent() from the managed environment. Your unmanaged environment has direct access to SetParent(). Your .NET code will have to export its own function that the unmanaged code can call. Unless you have access to the .NET Control object in your unmanaged code, in which case the unmanaged code can access the Control.Handle property and then make the call to SetParent(). Gambit
Technical Details
Message-ID:
<453f9b9d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.maxwell.syr.edu!news-han1.dfn.de!news-nue1.dfn.de!news-stu1.dfn.de!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45319f54$1@newsgroups.borland.com> <4533c3b4$1@newsgroups.borland.com> <453e737f$1@newsgroups.borland.com> <453e7b63$1@newsgroups.borland.com> <453f5c29$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,930b64d8f249fdd6 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <45319f54$1@newsgroups.borland.com> <4533c3b4$1@newsgroups.borland.com> <453e737f$1@newsgroups.borland.com> <453e7b63$1@newsgroups.borland.com> <453f5c29$1@newsgroups.borland.com> Subject: Re: Calling .Net code Date: Wed, 25 Oct 2006 10:14:26 -0700 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 69.169.4.232 Message-ID: <453f9b9d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1161796509 69.169.4.232 (25 Oct 2006 10:15:09 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.maxwell.syr.edu!news-han1.dfn.de!news-nue1.dfn.de!news-stu1.dfn.de!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail