Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / June 2005

Tip: Looking for answers? Try searching our database.

getting window handle..

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ve - 13 Jun 2005 21:33 GMT
Hi,

i am developing an  application which me to call c++ code from c#. basically
i have created idl for that in c++ and it worked fine. Now i want to pass
window handle to the c++ code. I got the handle then i am passing
Handle.IntPtr() to the c++ code. Basically in the c++ code i need to do

GetWindowDC(). so i am pasing the integer instead of the HWIND. is this the
correct way to do.

and also i want to know the height and width of the passed window handle in
c++. how can i do that...
Mattias Sjögren - 14 Jun 2005 06:28 GMT
>I got the handle then i am passing
>Handle.IntPtr() to the c++ code. Basically in the c++ code i need to do
>
>GetWindowDC(). so i am pasing the integer instead of the HWIND. is this the
>correct way to do.

I don't understand your motivation for passing an integer instead of
the HWND.

>and also i want to know the height and width of the passed window handle in
>c++. how can i do that...

GetWindowRect

Mattias

Signature

Mattias Sjögren [MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.