[Com0com-cvs] com0com/setupc sources, NONE, 1.1 setup.cpp, NONE, 1.1 makefile, NONE, 1.1
The virtual serial port driver for Windows.
Brought to you by:
vfrolov
From: Vyacheslav F. <vf...@us...> - 2007-10-25 14:25:37
|
Update of /cvsroot/com0com/com0com/setupc In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv13478 Added Files: sources setup.cpp makefile Log Message: Initial revision --- NEW FILE: sources --- TARGETNAME=setupc TARGETTYPE=PROGRAM TARGETPATH=.. UMTYPE=console UMENTRY=main UMBASE=0x400000 MSC_WARNING_LEVEL=/W4 SOURCES= \ setup.cpp \ !IF "$(BUILD_DEFAULT_TARGETS)" == "-386" TARGET_CPU=i386 !ELSE !IF "$(BUILD_DEFAULT_TARGETS)" == "-IA64" TARGET_CPU=ia64 !ELSE !IF "$(BUILD_DEFAULT_TARGETS)" == "-AMD64" TARGET_CPU=amd64 !ENDIF !ENDIF !ENDIF TARGETLIBS= \ ..\$(TARGET_CPU)\setup.lib \ --- NEW FILE: setup.cpp --- /* * $Id: setup.cpp,v 1.1 2007/10/25 14:25:34 vfrolov Exp $ * * Copyright (c) 2007 Vyacheslav Frolov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * * $Log: setup.cpp,v $ * Revision 1.1 2007/10/25 14:25:34 vfrolov * Initial revision * * */ #include <windows.h> int CALLBACK MainA(const char *pProgName, const char *pCmdLine); int _cdecl main(int argc, char *argv[]) { char cmd[200] = ""; for (int i = 1 ; i < argc ; i++) { int lenCmd = lstrlen(cmd); if (sizeof(cmd)/sizeof(cmd[0]) < lenCmd + 1 + lstrlen(argv[i]) + 1) break; lstrcpy(cmd + lenCmd, " "); lenCmd++; lstrcpy(cmd + lenCmd, argv[i]); } return MainA(argv[0], cmd); } --- NEW FILE: makefile --- !INCLUDE $(NTMAKEENV)\makefile.def |