Re: Prorgram to launch 'cemgrc.exe'



Hi Chris,

Thanks very much for the input. I have tried launching
from the program as well as just launching using the
windows->run command line. They will not connect and I get
no useful error messages. I can activesync over serial OK,
platform builder works over the ethernet OK. My network is
a simple WORKGROUP. Does this method require a DNS server
or something else special? My computer is running win2000.

Thanks in advance for any help, -Jeff S


>-----Original Message-----
>If you're attempting to connect back to eVC 4.0, use the
command line it's
>telling you, not the long thing you're constructing. That
was for eVC 3.0
>only.
>
>-Chris
>
>
>"jeffs" <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message
>news:022601c53f0c$f9f9eaf0$a601280a@xxxxxxxxxx
>> Hi Paul,
>>
>> Think I am almost there. From evc++, the command line I
>> need is :
>>
>> CEMGRC.EXE /S /T:TCPIPC.DLL /Q /D:192.168.1.69:5000
>>
>> My code for writing the parameter line is:
>>
>> _stprintf(params,L"/S /T:tcpipc.dll /Q
>> /D:88133139322e3136382e312e36393A3530303000");
>>
>> Note I included the ":5000" part at the end. (I tried it
>> with & without this). I must still be missing something in
>> the format. What do the first 2 ascii codes "8813" mean?
>>
>> Thanks very much for all the help, -Jeff S
>>
>>
>>>-----Original Message-----
>>>The format of the command line differs between earlier
>> versions of the
>>>Platform Manager and the current version. Arrange it so
>> that the command
>>>line you send matches what the dialog that pops up on the
>> PC side tells you
>>>to send. Your command line looks right for the 3.0
version...
>>>
>>>Paul T.
>>>
>>>"jeffs" <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
>> message
>>>news:20ed01c53eef$f05a4200$a401280a@xxxxxxxxxx
>>>> Hi Paul,
>>>>
>>>> Thanks for the detailed reply. A simple question on the
>>>> parameter line. I saw another posting where you describe
>>>> how to put this together. In your example you used a
>>>> typical IP address of 22.33.44.55 at port 5000. You then
>>>> convert these to the corresponding ascii codes. My simple
>>>> console App is below. Is the way I handled the parameter
>>>> line OK or am I getting confused on the ASCII code
portion?
>>>>
>>>> Thanks very much in advance for the help! -Jeff S
>>>>
>>>> int main(int argc,char *argv[], char *envp[])
>>>> {
>>>> PROCESS_INFORMATION pi;
>>>> TCHAR params[60];
>>>>
>>>> _stprintf(params,L"/S /T:tcpipc.dll
>>>> /D:881332322e33332e34342e353500");
>>>>
>>>> while ( 1 )
>>>> {
>>>> CreateProcess( _T( "cemgrc.exe" ), params, NULL,
>>>> NULL, NULL, 0, NULL, NULL, NULL, &#960; );
>>>> WaitForSingleObject( pi.hProcess, INFINITE );
>>>> CloseHandle( pi.hThread );
>>>> CloseHandle( pi.hProcess );
>>>> }
>>>> return 0;
>>>> }
>>>>
>>>>
>>>>
>>>>>-----Original Message-----
>>>>>Well, I should close the process handle...
>>>>>
>>>>>while ( 1 )
>>>>>{
>>>>> CreateProcess( _T( "cemgrc.exe" ), _T( "<parameters>"
>>>> ), NULL, NULL,
>>>>> NULL, 0, NULL, NULL, NULL, &#960; );
>>>>>
>>>>> // You need pi so that you can get the process
handle...
>>>>>
>>>>> WaitForSingleObject( pi.hProcess, INFINITE );
>>>>>
>>>>> // Close thread and process handles to avoid leaking
>> them.
>>>>> CloseHandle( pi.hThread );
>>>>>
>>>>> CloseHandle( pi.hProcess );
>>>>>}
>>>>>
>>>>>In my case, I can configure multiple target desktop
>>>> machines, so I'm using
>>>>>WaitForMultipleObjects, etc.
>>>>>
>>>>>Paul T.
>>>>>
>>>>>"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no
>>>> spam DOT com>
>>>>>wrote in message
>> news:eWhxKftPFHA.2520@xxxxxxxxxxxxxxxxxxxxxxx
>>>>>> The code is virtually trivial, other than building the
>>>> command line string
>>>>>> and you'll have to decide how to do that on your
>>>> machine. Something like:
>>>>>>
>>>>>> while ( 1 )
>>>>>> {
>>>>>> CreateProcess( _T( "cemgrc.exe" ), _T( "<parameters>"
>>>> ), NULL, NULL,
>>>>>> NULL,
>>>>>> 0, NULL, NULL, NULL, &#960; );
>>>>>>
>>>>>> // You need pi so that you can get the process
>> handle...
>>>>>>
>>>>>> WaitForSingleObject( pi.hProcess, INFINITE );
>>>>>> }
>>>>>>
>>>>>> Obviously, you need a way out of the loop and you need
>>>> to check for
>>>>>> errors, but that's basically all there is to it.
>>>>>>
>>>>>> Paul T.
>>>>>>
>>>>>>
>>>>>> "jeffs" <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
>>>> message
>>>>>> news:1fcf01c53ed5$de5fe5b0$a401280a@xxxxxxxxxx
>>>>>>> Paul Tobey did a nice writeup (see text below) for
how to
>>>>>>> run evc++ over ethernet usings 'manual server'. In the
>>>>>>> writeup he spoke a small program that would watch for
>>>>>>> incoming connections and launch 'cemgrc.exe'
>> appropriately
>>>>>>> (creating a hassle free debug environment). Does
anyone
>>>>>>> have a program like this they might be willing to
>> share. I
>>>>>>> am a hardware engineer that does a little software so
>> I am
>>>>>>> not sure how to write it myself.
>>>>>>>
>>>>>>> Thanks very much in advance for any help -Jeff S.
>>>>>>>
>>>>>>>
>>>>>>> Original Writeup from 2001 discussing automating the
>>>>>>> 'manual server' process from evc++ & windows ce :
>>>>>>> The program loads the IP addresses of those machines
>> which
>>>>>>> you might want to talk to the unit with. That is, the
>>>>>>> machines where you want to run the Remote File
>> Viewer. It
>>>>>>> keeps CEMGRC.exe running by waiting on the handle
of the
>>>>>>> process that it forks off to run CEMGRC. That is, it
>> calls
>>>>>>> CreateProcess( _T( "CEMGRC.exe" ), "<parameters>" ) and
>>>>>>> then calls WaitForSingleObject( handle ); on the handle
>>>>>>> returned. When that Wait is finished, it starts the
>>>>>>> process again...
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>.
>>>>>
>>>
>>>
>>>.
>>>
>
>
>.
>
.



Relevant Pages

  • Re: EnableShellOpen() for windows mobile
    ... on the command line (assuming that's where you're ... launching it from, of course). ... Paul T. ... Remote Registry Editor, as what you have there doesn't tell me what I ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: EnableShellOpen() for windows mobile
    ... // Parse command line for standard shell commands, DDE, file open ... Paul T. ... DOT com> a écrit dans le message de news: ... launching it from, of course). ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: EnableShellOpen() for windows mobile
    ... Paul T. ... on the command line (assuming that's where you're ... launching it from, of course). ... Remote Registry Editor, as what you have there doesn't tell me what I ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: EnableShellOpen() for windows mobile
    ... on the command line (assuming that's where you're ... launching it from, of course). ... Paul T. ... Remote Registry Editor, as what you have there doesn't tell me what I ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: " But I suffer not a woman to teach, nor to usurp authority over the man, but to be in silence."
    ... ordained Paul who was issuing the Lord's command on women's silence in His ... The church's have gone completely astray on such women's issues and instead of following inspired Christ ordained Paul, they prefer the teachings of men and women who have no real enthusiasm for adhering to what Paul the great Apostle commanded, thus they bring themselves into sinful condemnation and rebellion and so disobedience to God. ... The proof is shown just which 'interpretation' is correct, is if the women cover or shave their heads before praying as Paul instructed, and that women remain silent in the churches as commanded by the Lord. ...
    (uk.religion.christian)

Loading