HighTechTalks DotNet Forums  

HELP: Problem, in C#, receiving window message from a native Win32dll

Dotnet Framework (Compact Framework) microsoft.public.dotnet.framework.compactframework


Discuss HELP: Problem, in C#, receiving window message from a native Win32dll in the Dotnet Framework (Compact Framework) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
BesterOfer@gmail.com
 
Posts: n/a

Default HELP: Problem, in C#, receiving window message from a native Win32dll - 12-23-2007 , 05:49 PM






Hello everyone.

I am trying to apply a simple IPC between C# and a native Win32 dll,
on a WinCE 5.0 device.
The C# application is a GUI application using TabControl with three
TabPages.

On dll initiation [the first called function] i pass it a handle to a
C# MessageWindow.
The Dll on it's turn post window message [0x401] to notify the C#
code, using the wParam, on various events.

My problem is that messages invoked only after i change the TabPage,
The dll post the message but the C# application get it only after i
selected a different TabPage.

Does anyone has an idea what am i doing wrong?

Reply With Quote
  #2  
Old   
 
Posts: n/a

Default Re: Problem, in C#, receiving window message from a native Win32 dll - 12-23-2007 , 07:49 PM






With what we know, it's difficult to say what might be going wrong - your
description of the code sounds like you have it right, but the behavior sure
doesn't match up. Without seeing actual code I don't think we're going to
be able to tell what you did wrong.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com



<BesterOfer (AT) gmail (DOT) com> wrote

Quote:
Hello everyone.

I am trying to apply a simple IPC between C# and a native Win32 dll,
on a WinCE 5.0 device.
The C# application is a GUI application using TabControl with three
TabPages.

On dll initiation [the first called function] i pass it a handle to a
C# MessageWindow.
The Dll on it's turn post window message [0x401] to notify the C#
code, using the wParam, on various events.

My problem is that messages invoked only after i change the TabPage,
The dll post the message but the C# application get it only after i
selected a different TabPage.

Does anyone has an idea what am i doing wrong?



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.