OpenNetCF Callback libary???

  • Thread starter Thread starter JustMe
  • Start date Start date
J

JustMe

Hello:

I'm trying to find the OpenNetCF Callback library that's mentioned many
times in this newsgroup, and can't find it anywhere. I'm probably either
blind or haven't had enough coffee yet this morning.

Can anyone point me in the right direction?

Thanks.
-Terry
 
Thanks for your reply. The page doesn't appear to have anything called
"Callback". Is this libray included in some other project?
 
Terry,

This library has never made it into OpenNETCF distribution because it has an
unresolved issue.
The current build is available from
http://www.alexfeinman.com/download.asp?doc=CallbackDemo.zip. It uses an
older and somewhat customized OpenNETCF.WinAPI.dll which would conflict with
the current distribution.
The issue I alluded to earlier is that it won't work for some reason on a
range of device, currently believed to include some new XScale WM2003
devices like i5555 and such. I'm working on the fix but no promises
 
Thanks Alex for your response.

Is there no other way of obtaining the fonts on a device? Do all PocketPC's
have the same 4 fonts that my test devices have (ie. Bookings, Courier New,
Frutiger Linotype, Tahoma)? If so, could/should I just hardcode this into
my application?

What would the ramifications be for non-local devices (ie. German, French,
etc..)? Do they have these same 4 fonts?

Thanks again.
--Terry
 
If that's all you need to do, simply write a C++ DLL which you can P/Invoke
from your .NET CF code and have the DLL get the list of fonts using a
callback and then return it in some form to the .NET CF code.

Paul T.
 
Hi Paul:

It all sounds sooooo easy ... unfortunately I know 'zero' about C++. Any
other suggestions?

--Terry
 
So what are you using now? C#? If so, other than the strange decorations
on the functions to tell the environment about them (imported from this or
that or whatever), the syntax is virtually identical. There are *tons* of
sample C/C++ DLLs out there and the eVC wizard will generate a thoroughly
workable one for you right out of the box. All you'd have to do is modify
the parameter list, arrange for it to be exported without a funny C++
function name, and compile it.

If VB.NET is your thing, this would be a good time to learn C. There's
virtually nothing which the OS can do which you can't do from a C program
and there are just too many things that you can't do from managed code to be
totally in the dark when C comes up.

Paul T.
 
Back
Top