win32 message to compact framework lib

  • Thread starter Thread starter Rick Elbers
  • Start date Start date
R

Rick Elbers

Dear fellow developers,

I know I have seen some reusable library from Yoa and Durant
for dispatching win32 messages to compact framework, but I cant
find it anymore. Does anybody know where it is ? It gives you the
possibility to register the messages you want to have from win32
like the tab_changing event in a more robust way then the
library from opennet cf which does the same.

Regards,
Rick Elbers
 
Alex,

Thanks for your update..but I looked already through the Yao sample
files, and I remember their where 2 dll's, 1 for arm and 1 for intel,
but I cant find them anymore..

About OpenNETCF Lib: I ment the callbacks library which seems no
longer part of the standard OpenNetCF package..it does bark on some
intermec. It uses arm and intel assembly language for thunking which
doesnt seem necessary and might be the reason of the problem.

When you say that opennetcf has a managed solution how can that
be possible if we talk about native windows messages which are
normally not received by managed code ?

Regards,

Rick
 
The OpenNETCF.ApplicationEx namespace contains the IMessageFilter interface.
When coupled with ApplicationEx.Run you can get every message sent to your
app.

-Chris
 
Chris,

OpenNETCF is great. I have a little problem when someone answers a q
like this:

With this
The OpenNETCF.ApplicationEx namespace contains the IMessageFilter interface.
When coupled with ApplicationEx.Run you can get every message sent to your
app.

-Chris


Either my english it too bad, or your reading. I was *not* talking
about messages which are sent to my app from win32 normally. Its about
messages like tab_change which are *not* send fron win32 to managed
code

Rick
 
messages like tab_change which are *not* send fron win32 to managedSo where are those sent from then?

More importantly, can you show your attempt with ApplicationEx that fails to
catch the tab_change? Searching the archives for IMessageFilter will produce
numerous results where it is used for handling messages sent to controls...

Cheers
Daniel
 
What problem? Your question says "not normally received" I proposed that
you use the IMessageFilter, which *does* receive them (with ShowDialog being
a partial exception - you must use our ShowDialog if you want messages
there).

You're assuming that the CF has some inherent limitation where messages
don't go to managed apps. That's not true - there just isn't an exposed way
to get them. The IMessageFilter provides that mechanism. Take a look at
the source to see how I did it.

-Chris
 
Chris,

This is strange, are we talking about the same thing ?
Are you telling me that with simple AppEx MessageFilter you can get
TCN_SELCHANGING ?

Can you show me how ?

Regards,
Rick Elbers
 
I'm saying that the IMessageFilter allows you to get all messages to your
application. It replaces the standard message pump, so you can get anything
you want for any of the controls. Take a look at any of the other CF or
desktop samples for how it's used. There probably won't be one for this
message specifically, but most any sample should be easily adaptable.

-Chris
 
TCN_SELCHANGING

I'm saying that the IMessageFilter allows you to get all messages to your
application. It replaces the standard message pump, so you can get anything
you want for any of the controls. Take a look at any of the other CF or
desktop samples for how it's used. There probably won't be one for this
message specifically, but most any sample should be easily adaptable.

-Chris
 
Sergey,

From this reaction I think it is not
For the third time I am trying to say:
when the app dont get it from windows
how will you filter it ???

Rick
 
At this point you're being argumentative but not overly helpful and we're
trying to help you.

What leads you to believe that the app doesn't get the message at all?
You've implemented a filter and you don't see the message at all? Show us
the code you're using. Is this control on a modal form? Is the tab change
done through UI interaction (as opposed to setting a different tab in code)?

-Chris
 
Back
Top