Hi,

Is there a template for a dialog based application (MFC/win32) in
platformbuilder ce6 available ?
I want to create such an application as a subproject in an OSDesign to
debug both (OS an application) at the same time.

TJ

Re: ce6.0 subproject templates by Valter

Valter
Thu Mar 27 04:00:56 PDT 2008

swaldraf@web.de wrote in
news:e711ae06-5a4d-4f2d-8b5c-03bf2732ccee@b1g2000hsg.googlegroups.com
:

> Hi,
>
> Is there a template for a dialog based application (MFC/win32) in
> platformbuilder ce6 available ?
> I want to create such an application as a subproject in an
> OSDesign to debug both (OS an application) at the same time.

ATL and MFC development is not supported inside Platform Builder
subprojects but if you put debugging symbols of your application
inside the flatreleasedir (if your exe is included in the OS image) or
give their path to PB when it prompts for them you should be able to
debug it.
If you wanto to be able to rebuild it inside PB you can create a PB
sources file to compile it adding MFC defines, include paths and
libraries (you may be able to find them by looking at the compiler
command-line inside the "advanced" options panels of your VS2005
project).


--
Valter Minute
www.fortechembeddedlabs.it
Training, support and development for Windows CE
(the reply address of this message is invalid)

Re: ce6.0 subproject templates by Dean

Dean
Thu Mar 27 06:09:01 PDT 2008

You can also run a second instance of VS2005 to do your application
development...

--
Dean Ramsier - eMVP
BSQUARE Corporation


"Valter Minute" <v_a_l_t_e_r.m_i_n_u_t_e@g_m_a_i_l.com> wrote in message
news:Xns9A6E7A3A367D9VALTERMINUTE@207.46.248.16...
> swaldraf@web.de wrote in
> news:e711ae06-5a4d-4f2d-8b5c-03bf2732ccee@b1g2000hsg.googlegroups.com
> :
>
>> Hi,
>>
>> Is there a template for a dialog based application (MFC/win32) in
>> platformbuilder ce6 available ?
>> I want to create such an application as a subproject in an
>> OSDesign to debug both (OS an application) at the same time.
>
> ATL and MFC development is not supported inside Platform Builder
> subprojects but if you put debugging symbols of your application
> inside the flatreleasedir (if your exe is included in the OS image) or
> give their path to PB when it prompts for them you should be able to
> debug it.
> If you wanto to be able to rebuild it inside PB you can create a PB
> sources file to compile it adding MFC defines, include paths and
> libraries (you may be able to find them by looking at the compiler
> command-line inside the "advanced" options panels of your VS2005
> project).
>
>
> --
> Valter Minute
> www.fortechembeddedlabs.it
> Training, support and development for Windows CE
> (the reply address of this message is invalid)



Re: ce6.0 subproject templates by Valter

Valter
Thu Mar 27 07:09:05 PDT 2008

"Dean Ramsier" <ramsiernospam@nospam.com> wrote in
news:eqZ96uAkIHA.1744@TK2MSFTNGP05.phx.gbl:

> You can also run a second instance of VS2005 to do your application
> development...
>

I forgot about that option... or my memory removed the experience of
running two instances of Visual Studio 2005 on my laptop as somehing
so painful that deserves to be forgotten :)

I'm joking, this is the right solution, mostly if you don't need to do
this sort of "double" debugging often.

You should run VS2005 debugger client (ConnManClient2) on the device
and be able to activate and ActiveSync or network connection (even
over KITL if you have VMINI enabled) and you may experience some kind
of "interactions" between the two debuggers during module loading
(usually PB will ask for symbols and the VS debugger seems to be
frozen) or when an exception happens inside your application.

--
Valter Minute
www.fortechembeddedlabs.it
Training, support and development for Windows CE
(the reply address of this message is invalid)

Re: ce6.0 subproject templates by swaldraf

swaldraf
Mon Mar 31 05:49:25 PDT 2008

On 27 Mrz., 15:09, Valter Minute
<v_a_l_t_e_r.m_i_n_u_t_e@g_m_a_i_l.com> wrote:
> "Dean Ramsier" <ramsiernos...@nospam.com> wrote innews:eqZ96uAkIHA.1744@TK=
2MSFTNGP05.phx.gbl:
>
> > You can also run a second instance of VS2005 to do your application
> > development...
>
> I forgot about that option... or my memory removed the experience of
> running two instances of Visual Studio 2005 on my laptop as somehing
> so painful that deserves to be forgotten :)
>
> I'm joking, this is the right solution, mostly if you don't need to do
> this sort of "double" debugging often.
>
> You should run VS2005 debugger client (ConnManClient2) on the device
> and be able to activate and ActiveSync or network connection (even
> over KITL if you have VMINI enabled) and you may experience some kind
> of "interactions" between the two debuggers during module loading
> (usually PB will ask for symbols and the VS debugger seems to be
> frozen) or when an exception happens inside your application.
>
> --
> Valter Minutewww.fortechembeddedlabs.it
> Training, support and development for Windows CE
> (the reply address of this message is invalid)

Hi,
First of all thanks for all your answers.

I have changed sources-file so that it links the mfc-libs, modified
the makefile an got a running MFC-App with a Resource-File (incl
dialog) as a subproject.
After working a while at the code and the dialog, the dialog-wizard
doesnt work anymore (cant add event handler for buttons ....).
I can build the project but without dialog-wizard it isnt funny to
work with.

Then I tried to use a second vs2005 instance using ConnManClient2.
This worked fine on one PC, but the same projct doesnt work on another
PC.
There is a successful connection, but a deploy failed with following
message:

"Deployment and/or registration failed with error: 0x8973190e. Error
writing file '\Test.exe'. Error 0x8007274c: Ein Verbindungsversuch ist
fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne
nicht ordnungsgem=E4=DF reagiert hat, oder die hergestellte Verbindung war
fehlerhaft, da der verbundene Host nicht reagiert hat."

Any suggestions ?

Re: ce6.0 subproject templates by Valter

Valter
Mon Mar 31 06:07:33 PDT 2008

swaldraf@web.de wrote in
news:12a4e52f-93a4-4452-ae84-53dd291ecfd9
@m71g2000hse.googlegroups.co
m:

[...]
> I have changed sources-file so that it links the mfc-libs,
> modified the makefile an got a running MFC-App with a
> Resource-File (incl dialog) as a subproject.
> After working a while at the code and the dialog, the
> dialog-wizard doesnt work anymore (cant add event handler for
> buttons ....). I can build the project but without dialog-wizard
> it isnt funny to work with.

As I told PB does not support MFC development and so it does not
support the MFC (and ATL/WTL) wizards. You may use them inside
VS2005 and then build the sources inside PB if you need to debug
them. But you'll have to keep both projects up to date.
To simply include your MFC app inside the image (without building
int) you may use Mike Hall's CEFileWiz.

> Then I tried to use a second vs2005 instance using ConnManClient2.
> This worked fine on one PC, but the same projct doesnt work on
> another PC.
> There is a successful connection, but a deploy failed with
> following message:
>
> "Deployment and/or registration failed with error: 0x8973190e.
> Error writing file '\Test.exe'. Error 0x8007274c: Ein
> Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach
> einer bestimmten Zeitspanne nicht ordnungsgemäß reagiert hat, oder
> die hergestellte Verbindung war fehlerhaft, da der verbundene Host
> nicht reagiert hat."
>
> Any suggestions ?
>

I don't speak german (I'm Italian and also my english isn't that
good...) but I think that the system can't access the destination
file.
Do you stop the exe and debugger on the first machine before trying
with the second one?

Are both development machine installed in german?
The OS image is in english or in german?




--
Valter Minute
www.fortechembeddedlabs.it
Training, support and development for Windows CE
(the reply address of this message is invalid)

Re: ce6.0 subproject templates by swaldraf

swaldraf
Mon Mar 31 07:43:00 PDT 2008

On 31 Mrz., 14:07, Valter Minute
<v_a_l_t_e_r.m_i_n_u_t_e@g_m_a_i_l.com> wrote:
> swald...@web.de wrote in
> news:12a4e52f-93a4-4452-ae84-53dd291ecfd9
> @m71g2000hse.googlegroups.co
> m:
>
> [...]
>
> > I have changed sources-file so that it links the mfc-libs,
> > modified the makefile an got a running MFC-App with a
> > Resource-File (incl dialog) as a subproject.
> > After working a while at the code and the dialog, the
> > dialog-wizard doesnt work anymore (cant add event handler for
> > buttons ....). I can build the project but without dialog-wizard
> > it isnt funny to work with.
>
> As I told PB does not support MFC development and so it does not
> support the MFC (and ATL/WTL) wizards. You may use them inside
> VS2005 and then build the sources inside PB if you need to debug
> them. But you'll have to keep both projects up to date.
> To simply include your MFC app inside the image (without building
> int) you may use Mike Hall's CEFileWiz.
>
> > Then I tried to use a second vs2005 instance using ConnManClient2.
> > This worked fine on one PC, but the same projct doesnt work on
> > another PC.
> > There is a successful connection, but a deploy failed with
> > following message:
>
> > "Deployment and/or registration failed with error: 0x8973190e.
> > Error writing file '\Test.exe'. Error 0x8007274c: Ein
> > Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach
> > einer bestimmten Zeitspanne nicht ordnungsgem=E4=DF reagiert hat, oder
> > die hergestellte Verbindung war fehlerhaft, da der verbundene Host
> > nicht reagiert hat."
>
> > Any suggestions ?
>
> I don't speak german (I'm Italian and also my english isn't that
> good...) but I think that the system can't access the destination
> file.
> Do you stop the exe and debugger on the first machine before trying
> with the second one?
>
> Are both development machine installed in german?
> The OS image is in english or in german?
>
> --
> Valter Minutewww.fortechembeddedlabs.it
> Training, support and development for Windows CE
> (the reply address of this message is invalid)

the OS image and the application is english. the OS of the PC is
german.
I have done more tests. When I deploy the app, the exe-file is
downloaded to the device but its size is zero.
When I want to download the file over ftp I have the same behaviour, I
see the file on the device but size is zero.

When I copy/create a file inside the device there is no problem. It
seems to be a problem with the network transfer.