Hello

I'm normally a .NET-Coder für CF, so I am kind'a new to eVC.
I need a very small application which only function is:

Start
executing another application
writing a string "done" to a file in the same directory as the application
is
exiting...

in .NET it would be some few lines of code, but I just dont know enough C++
to do it in eVC...

If someone could give me the code for this, I would be veeeery happy and
thankful!

Sven

Re: Starting other app and writing a file by ctacke/>

ctacke/>
Thu Oct 19 07:29:46 CDT 2006

CreateProcess
CreateFile
WriteFile
CloseHandle


--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


"Sven Rutten" <sven(at)ruttensoft.com> wrote in message
news:ek%23aoD18GHA.1560@TK2MSFTNGP04.phx.gbl...
> Hello
>
> I'm normally a .NET-Coder für CF, so I am kind'a new to eVC.
> I need a very small application which only function is:
>
> Start
> executing another application
> writing a string "done" to a file in the same directory as the application
> is
> exiting...
>
> in .NET it would be some few lines of code, but I just dont know enough
> C++ to do it in eVC...
>
> If someone could give me the code for this, I would be veeeery happy and
> thankful!
>
> Sven
>
>



Re: Starting other app and writing a file by Martin

Martin
Thu Oct 19 07:49:13 CDT 2006

> CreateProcess
> CreateFile
> WriteFile
> CloseHandle
WinMain // he is a .net coder :-)
CreateProcess
CreateFile
WriteFile
CloseHandle

fmso.de
yehhh :-)



Re: Starting other app and writing a file by Sven

Sven
Thu Oct 19 09:57:36 CDT 2006

Thanks, unfortunately I just can't get used to C++...
Can anyone give me a step by step of this with a eVC-Project?

That would be very nice, cause it's just a small thing I want to have in
C++...

Thanks so much

"Martin Bauer" <xy@ungeloest.de.kommisar> schrieb im Newsbeitrag
news:O$2rZ038GHA.1252@TK2MSFTNGP04.phx.gbl...
>> CreateProcess
>> CreateFile
>> WriteFile
>> CloseHandle
> WinMain // he is a .net coder :-)
> CreateProcess
> CreateFile
> WriteFile
> CloseHandle
>
> fmso.de
> yehhh :-)
>
>



Re: Starting other app and writing a file by ctacke/>

ctacke/>
Thu Oct 19 10:45:09 CDT 2006

1. Install eVC or Studio 2005.
2. Create a new application project
3. Either choose a Hello World app and modify it, or start with an empty
project and add your own WinMain
4. Open up Help and look at the aforementioned APIs
5. Copy/implement them in your own app.

While this app is probably going to less than 20 lines of code, you
shouldn't expect anyone to write it for you. If you're going to use C, you
should learn to be at least familiar with the tool and the process for
creating apps and calling APIs. All of these functions are available on the
desktop as well, so any examples on the web for the desktop would also be
directly applicable.


--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--



"Sven Rutten" <sven(at)ruttensoft.com> wrote in message
news:%233tws748GHA.4224@TK2MSFTNGP02.phx.gbl...
> Thanks, unfortunately I just can't get used to C++...
> Can anyone give me a step by step of this with a eVC-Project?
>
> That would be very nice, cause it's just a small thing I want to have in
> C++...
>
> Thanks so much
>
> "Martin Bauer" <xy@ungeloest.de.kommisar> schrieb im Newsbeitrag
> news:O$2rZ038GHA.1252@TK2MSFTNGP04.phx.gbl...
>>> CreateProcess
>>> CreateFile
>>> WriteFile
>>> CloseHandle
>> WinMain // he is a .net coder :-)
>> CreateProcess
>> CreateFile
>> WriteFile
>> CloseHandle
>>
>> fmso.de
>> yehhh :-)
>>
>>
>
>



Re: eVC: Starting other app and writing a file by JDeats

JDeats
Sun Oct 22 22:58:19 CDT 2006

Yet another example of how the Compact Framework 2 team failed.... In
almost every application I have attempted with CF2 I have hit a wall
and had to resort to C++..... I have only had to do this with the
Windows .NET Framework once.

With just a little more effort on the part of the CF2 things could have
been much better.

I have found a great deal of comfort in J2ME MIDP 2 as a CF2
alternative... It turns out the Windows Mobile 5 J2ME implementation is
well featured. J2ME is an extreemly well thought out framework that
caters to the developer, it is the standard mobile development platform
and the SDK and the "enterprise grade" Eclipse IDE are free. Not to
mention the emulator "just works" runs at device speed and starts up in
less than 3 seconds... Want to do Bluetooth, stream media, play a
sound, record a sound, etc.... its all there. Microsoft offers DirectX
wrappers for CF2, Sun offers a Game API as part of the J2ME MIDP 2
standard.

As nice and portable as J2ME MIDP 2 is, as a C# developer using .NET on
the desktop I would perfer to CF2, for some applications as in your
case you have no choice but to use C++ or build a series of wrappers
around native API calls for CF2. It just plan sucks.



Sven Rutten (at) wrote:
> Hello
>
> I'm normally a .NET-Coder f=FCr CF, so I am kind'a new to eVC.
> I need a very small application which only function is:
>
> Start
> executing another application
> writing a string "done" to a file in the same directory as the application
> is
> exiting...
>
> in .NET it would be some few lines of code, but I just dont know enough C=
++
> to do it in eVC...
>
> If someone could give me the code for this, I would be veeeery happy and
> thankful!
>=20
> Sven


Re: eVC: Starting other app and writing a file by Daniel

Daniel
Mon Oct 23 03:23:42 CDT 2006

JDeats,

The only reason I have to us C++ for this very small application is the
speed. .NET-Application is too slow starting up in that case, but you can do
so much things in .NET CF!

Your laming in this Newsgroup about .NET CF beeing so bad is just
ridiculous!

Sven


"JDeats" <Jeremy.Deats@gmail.com> schrieb im Newsbeitrag
news:1161575899.064034.11450@f16g2000cwb.googlegroups.com...
Yet another example of how the Compact Framework 2 team failed.... In
almost every application I have attempted with CF2 I have hit a wall
and had to resort to C++..... I have only had to do this with the
Windows .NET Framework once.

With just a little more effort on the part of the CF2 things could have
been much better.

I have found a great deal of comfort in J2ME MIDP 2 as a CF2
alternative... It turns out the Windows Mobile 5 J2ME implementation is
well featured. J2ME is an extreemly well thought out framework that
caters to the developer, it is the standard mobile development platform
and the SDK and the "enterprise grade" Eclipse IDE are free. Not to
mention the emulator "just works" runs at device speed and starts up in
less than 3 seconds... Want to do Bluetooth, stream media, play a
sound, record a sound, etc.... its all there. Microsoft offers DirectX
wrappers for CF2, Sun offers a Game API as part of the J2ME MIDP 2
standard.

As nice and portable as J2ME MIDP 2 is, as a C# developer using .NET on
the desktop I would perfer to CF2, for some applications as in your
case you have no choice but to use C++ or build a series of wrappers
around native API calls for CF2. It just plan sucks.



Sven Rutten (at) wrote:
> Hello
>
> I'm normally a .NET-Coder für CF, so I am kind'a new to eVC.
> I need a very small application which only function is:
>
> Start
> executing another application
> writing a string "done" to a file in the same directory as the application
> is
> exiting...
>
> in .NET it would be some few lines of code, but I just dont know enough
> C++
> to do it in eVC...
>
> If someone could give me the code for this, I would be veeeery happy and
> thankful!
>
> Sven



Re: eVC: Starting other app and writing a file by ctacke/>

ctacke/>
Mon Oct 23 09:09:42 CDT 2006

What does this have to do with you're rants about failures of the CF? He
asked how to do this in C/C++. There's no "failure" except, apparently,
your ability to understand. The exact same thing is possible in the CF - use
the Process class to launch the process and then any one of the IO classes,
like a TextWriter, to write the data. We get it, you think Java has saved
the world and the CF sucks. Fine. Quit interjecting your opinion when it's
clearly off topic.


--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--






"JDeats" <Jeremy.Deats@gmail.com> wrote in message
news:1161575899.064034.11450@f16g2000cwb.googlegroups.com...
Yet another example of how the Compact Framework 2 team failed.... In
almost every application I have attempted with CF2 I have hit a wall
and had to resort to C++..... I have only had to do this with the
Windows .NET Framework once.

With just a little more effort on the part of the CF2 things could have
been much better.

I have found a great deal of comfort in J2ME MIDP 2 as a CF2
alternative... It turns out the Windows Mobile 5 J2ME implementation is
well featured. J2ME is an extreemly well thought out framework that
caters to the developer, it is the standard mobile development platform
and the SDK and the "enterprise grade" Eclipse IDE are free. Not to
mention the emulator "just works" runs at device speed and starts up in
less than 3 seconds... Want to do Bluetooth, stream media, play a
sound, record a sound, etc.... its all there. Microsoft offers DirectX
wrappers for CF2, Sun offers a Game API as part of the J2ME MIDP 2
standard.

As nice and portable as J2ME MIDP 2 is, as a C# developer using .NET on
the desktop I would perfer to CF2, for some applications as in your
case you have no choice but to use C++ or build a series of wrappers
around native API calls for CF2. It just plan sucks.



Sven Rutten (at) wrote:
> Hello
>
> I'm normally a .NET-Coder für CF, so I am kind'a new to eVC.
> I need a very small application which only function is:
>
> Start
> executing another application
> writing a string "done" to a file in the same directory as the application
> is
> exiting...
>
> in .NET it would be some few lines of code, but I just dont know enough
> C++
> to do it in eVC...
>
> If someone could give me the code for this, I would be veeeery happy and
> thankful!
>
> Sven