Google Answers Logo
View Question
 
Q: Computer programming ( No Answer,   0 Comments )
Question  
Subject: Computer programming
Category: Computers
Asked by: g7steve-ga
List Price: $20.00
Posted: 20 Sep 2004 12:49 PDT
Expires: 20 Oct 2004 12:49 PDT
Question ID: 403856
how can I Passing Window Handle from unmanaged code to COM(written in
c#).  In one of the old unmanaged code(c++) function, it gets a
paramter as hwnd, and the com componenent need to access the hwnd. 
Here is the sample code that I wrote in C#(com part)
public void Example(IntPtr parentForm)
{
		System.Windows.Forms.NativeWindow
testwin=System.Windows.Forms.NativeWindow.FromHandle(parentForm);
......

However, the testwind has undefined value.

Clarification of Question by g7steve-ga on 20 Sep 2004 12:51 PDT
I missed posting the interface 
void SccRunScc(IntPtr parentForm);

And from the Unmanaged Code

EXTFUN example(HWND hWnd, )
{
	if (g_ISCC!= NULL)
	{
		g_ISCC->SccRunScc((long)hWnd);
....
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy