Re: C++ exception before WinMain

Tech-Archive recommends: Fix windows errors by optimizing your registry



"Remi de Gravelaine" <gravelaine at aton dash sys dot fr> wrote in
news:upAWCHLZHHA.3968@xxxxxxxxxxxxxxxxxxxx:

Grazzie mille for your answers, Valter.

De rien, Remi.

You may have some link warning related to debugging symbols with
EVC++ and wince 5.0 system files because some parts of the OS are
built with the VS2005 compiler IIRC.

Do you think it is the case here?

Usually you have warning when building with EVC++ and a 5.0 SDK.
I do most of my development in Platform Builder and VS2005 so I don't
remember the exact warning code. The first time I saw them I did a
quick search on google groups and find that explanation.

The omni_thread warning are a bit more cryptic. It seems that
your module both imports (from an external lib) an exports those
simbols. Did you link some external libs? If the symbol is seen
also as export it may be that you should #define something to
change the way it's declared in . file.

You are probably right. I shall investigate on this point.

Good luck :)

[...]
You were right: I had missed a "static omni_thread::init_t
omni_thread_init;" class instanciation not showing in the
ClassView tab globals. Reading you helped me to focus on this
point :-) Actually, the exception was raised because of
DuplicateHandle call for a thread handle, which is not allowed
under CE.

I'm happy to hear that you found your problem.

Looking from the filename it seems a sort of VNC viewer. If it's
public domain and you can provide a link to the source code, I
can try it on my own device (but I'm not a C++ or WinCE guru at
all, so don't expect too much from me!).

Yes Sherlock ;-), it is a VNC Viewer, based on TightVNC
(http://prdownloads.sourceforge.net/vnc-tight/tightvnc-1.3.8_winsrc
.tar.bz2?download). Unfortunately, the porting to CE is not that
easy and quite a lot of the original code had to be changed for
the whole thing to compile - and link in this clumsy way. I can't
imagine yet what I am going to discover when tracing the code...

One of my customers ported an implementation of VNC server on CE.
It has to work out some issues on compilation and find a way to send
updates only when needed but it seems to work fine.
He told me about a "libVNC" that was released after he did his porting
and should be a simpler way to re-implement VNC on devices.
It should handle the protocol and let you re-implement the UI.
I never checked it... but it may be worth a look
(http://libvncserver.sourceforge.net/).

--
Valter Minute
(the reply address of this message is invalid)
(l'indirizzo di reply di questo messaggio non è valido)
.



Relevant Pages

  • Re: C++ exception before WinMain
    ... EVC++ and wince 5.0 system files because some parts of the OS are ... built with the VS2005 compiler IIRC. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: help need in develop dll for use in pocket pc
    ... Yeah, you'll have to make some decisions. ... I think the Dinkumware library (w/ STL) is around $600. ... Intel has a compiler for eVC which is better than the one ...
    (microsoft.public.pocketpc.developer)
  • Re: choose evc or vs2005
    ... about is what I actually use, not whether the compiler and library meet some ... headers before your SDK headers. ... Some template construction from VS2005 do not compile with eVC. ...
    (microsoft.public.windowsce.embedded.vc)
  • Deployment and/or registration failed with error
    ... I made a DLL that I ported over from evc 3.0. ... of the compiler and linker errors and when I try to deploy this to the ...
    (microsoft.public.pocketpc.developer)
  • Re: replacing MS Compiler by IBM or Keil ARM Compiler?
    ... performance tests on them. ... Dhrystone. ... just with eVC, so I don't know what effect the compiler has on the OS ...
    (microsoft.public.windowsce.platbuilder)