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

Custom Firmware, Electronics Design, and PCB Layout

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

Silver Board Contract Assembly


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]

Salt Lake City, UT, USA

Disclaimer: Daycounter, Inc. doesn't guarantee the accuracy of any of it's content. Use at your own risk.

© Copyright 2016 Daycounter, Inc. All rights Reserved.

Soil Moisture Sensor Probe

Water Level Sensor