Click here to Skip to main content
15,908,264 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How To Execute Raw Binary From Within A Binary Pin
V3RO19-Feb-09 13:30
V3RO19-Feb-09 13:30 
QuestionPlease please help with this simple Q from a C++ newbie Pin
meixiang619-Feb-09 10:11
meixiang619-Feb-09 10:11 
AnswerRe: Please please help with this simple Q from a C++ newbie Pin
Stuart Dootson19-Feb-09 10:35
professionalStuart Dootson19-Feb-09 10:35 
GeneralRe: Please please help with this simple Q from a C++ newbie Pin
meixiang619-Feb-09 10:53
meixiang619-Feb-09 10:53 
GeneralRe: Please please help with this simple Q from a C++ newbie Pin
Stuart Dootson19-Feb-09 11:42
professionalStuart Dootson19-Feb-09 11:42 
GeneralRe: Please please help with this simple Q from a C++ newbie Pin
meixiang619-Feb-09 12:00
meixiang619-Feb-09 12:00 
GeneralRe: Please please help with this simple Q from a C++ newbie Pin
Stuart Dootson19-Feb-09 12:17
professionalStuart Dootson19-Feb-09 12:17 
GeneralRe: Please please help with this simple Q from a C++ newbie [modified] Pin
meixiang619-Feb-09 14:39
meixiang619-Feb-09 14:39 
Thanks Stuart, I got it working with this, not sure if the code is right thou but it works...


#include <stdio.h>
#include <string.h>

int main()
{
FILE *f;
char string[1000];
char str[1000];
f = fopen("file.txt", "r");
if(!f) {
printf("Couldn't open file.txtn");
return 1;
}
while(fgets(str, 1000, f)) {
/* printf("%s", str); */
strcpy (string, "ls -la ");
strcat (string, str);
system (string);

}
fclose(f);
return 0;
}

<div class="ForumMod">modified on Thursday, February 19, 2009 8:56 PM</div>
GeneralRe: Please please help with this simple Q from a C++ newbie Pin
David Crow19-Feb-09 17:08
David Crow19-Feb-09 17:08 
GeneralRe: Please please help with this simple Q from a C++ newbie Pin
Stuart Dootson19-Feb-09 21:43
professionalStuart Dootson19-Feb-09 21:43 
Questionurgent : I need help Pin
D_Isaac19-Feb-09 9:38
D_Isaac19-Feb-09 9:38 
AnswerRe: urgent : I need help Pin
CPallini19-Feb-09 11:01
mveCPallini19-Feb-09 11:01 
GeneralRe: urgent : I need help Pin
Luc Pattyn19-Feb-09 11:41
sitebuilderLuc Pattyn19-Feb-09 11:41 
GeneralRe: urgent : I need help Pin
led mike19-Feb-09 11:44
led mike19-Feb-09 11:44 
GeneralRe: urgent : I need help Pin
Luc Pattyn19-Feb-09 11:54
sitebuilderLuc Pattyn19-Feb-09 11:54 
GeneralRe: urgent : I need help Pin
led mike19-Feb-09 11:56
led mike19-Feb-09 11:56 
GeneralRe: urgent : I need help Pin
Luc Pattyn19-Feb-09 12:01
sitebuilderLuc Pattyn19-Feb-09 12:01 
GeneralRe: urgent : I need help Pin
CPallini19-Feb-09 12:22
mveCPallini19-Feb-09 12:22 
GeneralRe: urgent : I need help Pin
led mike20-Feb-09 5:28
led mike20-Feb-09 5:28 
GeneralRe: urgent : I need help Pin
Rick York19-Feb-09 12:55
mveRick York19-Feb-09 12:55 
GeneralRe: urgent : I need help Pin
Luc Pattyn19-Feb-09 13:19
sitebuilderLuc Pattyn19-Feb-09 13:19 
GeneralRe: urgent : I need help Pin
CPallini19-Feb-09 21:51
mveCPallini19-Feb-09 21:51 
GeneralRe: urgent : I need help Pin
CPallini19-Feb-09 12:11
mveCPallini19-Feb-09 12:11 
AnswerRe: urgent : I need help Pin
Snorri Kristjansson19-Feb-09 23:52
professionalSnorri Kristjansson19-Feb-09 23:52 
QuestionHow to access a document element using ActiveX control written in C++ Pin
SIJUTHOMASP19-Feb-09 8:35
professionalSIJUTHOMASP19-Feb-09 8:35 

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.