Electronics, PCB Design and PCB Layout Daycounter, Inc.
Engineering Services

Custom Firmware, Electronics Design, and PCB Layout

> Lab Book

  Home Company Services Products Partners Clients Site Map Contact Us


Electronics Design
Firmware Development
Software Development
Embedded Design
PCB Layout
Digital Signal Processing (DSP)
Reverse Engineering
Device Driver Development
Motor Controllers
Data Acquisition Systems
Palm OS Software
Windows CE Software
Pocket PC Software
Design for Manufacturing
Through Hole to Surface Mount (SMT) Conversion 
Microchip PIC Consultant
MSP430 Development
DSP56 Development
RoHs Redesign
Design for USB


CreateProcess Example

The CreateProcess function command line is parameter is non-intuitive.  For typical C style functions, the first parameter is normally the name of the program.  Therefore when you invoke a program with arguments, the command line parameter doesn't start with an argument but should start with the name of  the program. 


Code Example:


    si.cb= sizeof(si);
    _tcscpy(cmdline,_T("MyProgram.exe /param1"));        // note the non-intuitive first parameter. 
    if(!CreateProcess(programpath, cmdline, NULL, NULL, false, 0, NULL,NULL,&si,&pi)) {
        AfxMessageBox(_T("Could not run the program."));
        return false;


Daycounter specializes in contract electronics design.  Do you need some help on your project?  Contact us to get a quote. 


[Employment] [Downloads][Articles] [Contact Us]

Call us now at 1.801.938.4264

Copyright 2015 Daycounter, Inc.  All rights Reserved.

Soil Moisture Sensor Probe

Water Level Sensor