Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: TMS InnerView 2.1 Pin
Alexander M.,20-Sep-05 8:35
Alexander M.,20-Sep-05 8:35 
QuestionRetrive previously selected index in a CListbox control when ON_LBN_SELCHANGE is fired Pin
Liu Shuai20-Sep-05 7:34
Liu Shuai20-Sep-05 7:34 
AnswerRe: Retrive previously selected index in a CListbox control when ON_LBN_SELCHANGE is fired Pin
Alexander M.,20-Sep-05 8:38
Alexander M.,20-Sep-05 8:38 
GeneralRe: Retrive previously selected index in a CListbox control when ON_LBN_SELCHANGE is fired Pin
Liu Shuai20-Sep-05 9:21
Liu Shuai20-Sep-05 9:21 
QuestionSlidder Display Pin
P.Sunitha Kiranmaye20-Sep-05 6:20
P.Sunitha Kiranmaye20-Sep-05 6:20 
AnswerRe: Slidder Display Pin
David Crow20-Sep-05 7:03
David Crow20-Sep-05 7:03 
AnswerRe: Slidder Display Pin
PJ Arends20-Sep-05 7:50
professionalPJ Arends20-Sep-05 7:50 
QuestionRunning a batch file Pin
Camron20-Sep-05 5:26
Camron20-Sep-05 5:26 
I'm trying to write a program that will initiate a batch file. For some reason the program keeps crashing. I'm not too familiar with the createprocess function so I figure I'm doing something wrong with that. To run the program in a DOS prompt I must be in the path U://telmage/ To run the process I type telmage 09 19 05 or the previous days date. Does anyone have any idea what I might be doing wrong?

[CODE]
void main()
{
char path_buffer[_MAX_PATH];
char GTime[80];
time_t now;
UINT value;

now = time(NULL);
time_t yesterday = now - 86400;

strftime(GTime,sizeof GTime,"telmage %m %d %y",localtime(&yesterday));

_makepath( path_buffer, "U", "\\telmage", GTime, "" );

cout<
AnswerRe: Running a batch file Pin
David Crow20-Sep-05 5:37
David Crow20-Sep-05 5:37 
GeneralRe: Running a batch file Pin
Camron20-Sep-05 5:49
Camron20-Sep-05 5:49 
GeneralRe: Running a batch file Pin
David Crow20-Sep-05 6:04
David Crow20-Sep-05 6:04 
AnswerRe: Running a batch file Pin
bugDanny20-Sep-05 7:16
bugDanny20-Sep-05 7:16 
AnswerRe: Running a batch file Pin
Christopher Lloyd20-Sep-05 12:47
Christopher Lloyd20-Sep-05 12:47 
AnswerRe: Running a batch file Pin
Johann Gerell20-Sep-05 19:41
Johann Gerell20-Sep-05 19:41 
QuestionCListCtrl custom draw problem Pin
followait20-Sep-05 4:48
followait20-Sep-05 4:48 
AnswerRe: CListCtrl custom draw problem Pin
Alexander M.,20-Sep-05 8:35
Alexander M.,20-Sep-05 8:35 
QuestionHow to show the Bitmap at top ? Pin
Amarelia20-Sep-05 4:22
Amarelia20-Sep-05 4:22 
AnswerRe: How to show the Bitmap at top ? Pin
Eytukan20-Sep-05 4:40
Eytukan20-Sep-05 4:40 
GeneralRe: How to show the Bitmap at top ? Pin
ThatsAlok20-Sep-05 20:02
ThatsAlok20-Sep-05 20:02 
AnswerRe: How to show the Bitmap at top ? Pin
Neagoe Gabriel20-Sep-05 5:40
Neagoe Gabriel20-Sep-05 5:40 
QuestionOCX link to DLL Pin
honae20-Sep-05 4:01
honae20-Sep-05 4:01 
QuestionCode To Terminate Application Using Key ? Pin
Amarelia20-Sep-05 3:44
Amarelia20-Sep-05 3:44 
AnswerRe: Code To Terminate Application Using Key ? Pin
BlackDice20-Sep-05 4:22
BlackDice20-Sep-05 4:22 
AnswerRe: Code To Terminate Application Using Key ? Pin
Neagoe Gabriel20-Sep-05 5:49
Neagoe Gabriel20-Sep-05 5:49 
QuestionHow to color the dialog leaving some user defined border? Pin
Amarelia20-Sep-05 3:30
Amarelia20-Sep-05 3:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.