for the life of me what is wrong ?

This is a discussion on for the life of me what is wrong ? within the C Programming forums, part of the General Programming Boards category; hey guys, I found this cool program. It takes a a name from the command line and I am trying ...

  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    9

    for the life of me what is wrong ?

    hey guys,
    I found this cool program. It takes a a name from the command line and I am trying to learn c and it is suppose to work but I cannot see any syntax errors.
    Do you guys see anything wrong? It wont compile worth crap!. No rush on this
    I am just trying to play with different code and this code plays with files and strcpy() function and such and I just dont see why it doesnt complie?
    duh on me!
    thanks


    Code:
    #include <stdio.h> 
    #include <string.h> 
    
    //convert integer to a string
    char* itostr(char* str,int i) 
    { 
         sprintf(str,"%d :",i); 
    return str; 
    } 
    
    int main(int argC,char* argV[], char* envp[]) 
    { 
       FILE *f; 
    
       if (argC<=1) { 
        printf("using as: tedsa filename \n"); 
        return(0); 
       } 
    
       // make new file name
       char* filename=argV[]; 
       char* pch=strchr(filename,'.'); 
       int a=strlen(filename); 
       int b=strlen(pch); 
       char dest[255]=""; 
       char* tes=strncpy(dest,filename,a-b); 
        
       char* lis=".lis"; 
       tes= strcat(tes,lis); 
    
       printf(tes); 
    
       f=fopen(filename,"r"); 
         
    FILE* f2=fopen(tes,"w"); 
        fputs("************",f2); 
         fputs(tes,f2); 
         fputs("************\n",f2); 
       if (!f) 
           return 1; 
    
       char str[256]= ""; 
       int index=0; 
    	while (!feof(f)){ 
          
    		fgets(str,256,f); 
    
    		char tempstr[10]=""; 
    		itostr(tempstr,index); 
    		fputs(tempstr,f2); 
    		fputs(str,f2); 
    		printf("%s",str); 
    		index++; 
    	} 
    
       fclose(f); 
       fclose(f2); 
       return 0; 
    }

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    Code:
    char* filename=argV[];
    should be
    Code:
    char* filename=argV[1];
    bit∙hub [bit-huhb] n. A source and destination for information.

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    You have errors from the compiler - great!

    Now read them, and see what they say.

    They're not being given just for the hell of it.

    On an older compiler, you'll have a lot of errors just because several variables are first declared, later than the old standard allowed. If so, just move the declarations up when they belong, and move the if(argC...) if statement, down below the variable declarations.

    Then it compiles OK.
    Last edited by Adak; 10-26-2009 at 02:39 PM.

  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    If it won't compile, you need to pay attention to why it won't compile. Pay attention to warning messages and error messages. Otherwise you'll be a terrible programmer with no hair.


    Quzah.
    Hope is the first step on the road to disappointment.

  5. #5
    Registered User
    Join Date
    Oct 2009
    Posts
    9
    Oops I took the 1 out earlier and forgot to put it back.

    Okay it says this

    dos12.c
    dos12.c(21) : error C2143: syntax error : missing ';' before 'type'
    dos12.c(22) : error C2143: syntax error : missing ';' before 'type'
    dos12.c(23) : error C2143: syntax error : missing ';' before 'type'
    dos12.c(24) : error C2143: syntax error : missing ';' before 'type'
    dos12.c(25) : error C2143: syntax error : missing ';' before 'type'
    dos12.c(26) : error C2143: syntax error : missing ';' before 'type'
    dos12.c(28) : error C2143: syntax error : missing ';' before 'type'
    I looked and another compiler of mine that say missing "}" before char*

    I am not lazy I just went thru it and looked for where it might need the above and nothing worked. I walked thru each line and tried to see where the compiler was telling me at line 21 there is a ; and before that it looks right.
    if you cant help me what do I do when I see the above errors?
    I used miracle c compiler which is cool and it says

    Miracle C Compiler (r4.1), written by bts.
    Compiling c:\code\dos11.c
    itostr
    main

    c:\code\dos11.c: line 21: Parse Error, expecting `'}''
    'char*'
    aborting compile
    I do appreicate you being tough on me..but I did look at it line by line
    thanks anyways

  6. #6
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,791
    Do not use Miracle C. Use a real C compiler such as the one in Visual Studio or gcc.
    Then move up all your variables to the beginning of the function (or use C99 using gcc).
    Now you will get different errors, and they probably are not syntax errors, except for the missing "1" in argv.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #7
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    I haven't run it yet, but Turbo C did compile this version of the program:

    Code:
    #include <stdio.h> 
    #include <string.h> 
    
    //convert integer to a string
    char* itostr(char* str,int i) 
    { 
         sprintf(str,"%d :",i); 
    return str; 
    } 
    
    int main(int argC,char* argV[], char* envp[]) 
    { 
       FILE *f, *f2; 
    
       // make new file name
       char* filename=argV[1]; 
       char* pch=strchr(filename,'.'); 
       char str[256]= ""; 
       char tempstr[10]=""; 
    
       int a=strlen(filename); 
       int b=strlen(pch); 
       
       int index=0; 
    
       char dest[255]=""; 
       char* tes=strncpy(dest,filename,a-b); 
        
       char* lis=".lis"; 
    
       if (argC<=1) { 
        printf("using as: tedsa filename \n"); 
        return(0); 
       } 
    
    
       tes= strcat(tes,lis); 
    
       printf(tes); 
    
       f=fopen(filename,"r"); 
         
        f2=fopen(tes,"w"); 
        fputs("************",f2); 
         fputs(tes,f2); 
         fputs("************\n",f2); 
       if (!f) 
           return 1; 
    
    	while (!feof(f)){ 
          
    		fgets(str,256,f); 
    
    
    		itostr(tempstr,index); 
    		fputs(tempstr,f2); 
    		fputs(str,f2); 
    		printf("%s",str); 
    		index++; 
    	} 
    
       fclose(f); 
       fclose(f2); 
       return 0; 
    }

  8. #8
    Registered User
    Join Date
    Oct 2009
    Posts
    9
    adaka and elysia
    wow thanks yeah I will look for turbo c and GCC i hear they are good
    will try hey thanks for your help. i really like this program
    it is cool to try to real others work to understand code better
    wow thanks for your valuable time what a cool forum
    and I do again appreciate you being hard on me...it is essential.
    that is why you guys have gotten as good as you have.
    thank you so much for your guidance.
    -tbites!
    ps. I hope someday I can help others as much as you guys do!

  9. #9
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,791
    Do NOT use Turbo C. It is another antique that Adak foolishly tends to use anyway, despite the entire board being unified that using it is a Bad Idea™.
    Also try indenting the code more appropriately. Good indentation makes it easy to read.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  10. #10
    Registered User
    Join Date
    Oct 2009
    Posts
    9
    okay thanks yeah I tried to compile it and used visual studio 2008 command line
    and used the cl dos13.c I called it and it compile fine but bugs out darn!
    I dont know what else to do elysia i mean there is no compile errror for this code
    since adak moved the *f2 up to the FILE like this FILE *f, *f2;
    but no more errors but it bugs out at run time? is there a tool
    i can find that will debug at run time? man the code looks okay i am sure it is
    a procedure thing with this code huh? thank you!

  11. #11
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,791
    Visual Studio has a debugger.
    In the IDE, simply use F11 to step into the code. Use your mouse to watch variables. Use F10 to skip over code (otherwise it will enter most functions).
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  12. #12
    Registered User
    Join Date
    Oct 2009
    Posts
    9
    Not to bug you too much and I will try the debugger in vs 2008
    but where can I can info on this debug log that windows xp pushes out
    I ran the program dos13.exe that it compiled to and it
    hung and this debug file was made. I have no clue really what it is ssaying
    where could I get info on this runtime debug infor? thanks
    thank you for your help really cool of you.
    -tbites

    <?xml version="1.0" encoding="UTF-16"?>
    <DATABASE>
    <EXE NAME="dos13.exe" FILTER="GRABMI_FILTER_PRIVACY">
    <MATCHING_FILE NAME="cplus.exe" SIZE="125952" CHECKSUM="0x24824173" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/20/2009 19:57:06" UPTO_LINK_DATE="10/20/2009 19:57:06" />
    <MATCHING_FILE NAME="dos1.exe" SIZE="48128" CHECKSUM="0x59D4A3DD" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/26/2009 16:13:38" UPTO_LINK_DATE="10/26/2009 16:13:38" />
    <MATCHING_FILE NAME="dos13.exe" SIZE="59904" CHECKSUM="0x770CA00A" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/26/2009 21:06:24" UPTO_LINK_DATE="10/26/2009 21:06:24" />
    <MATCHING_FILE NAME="dos2.exe" SIZE="48128" CHECKSUM="0x1E75BF22" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/26/2009 16:26:12" UPTO_LINK_DATE="10/26/2009 16:26:12" />
    <MATCHING_FILE NAME="feof.exe" SIZE="58880" CHECKSUM="0x5C000010" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/26/2009 16:49:00" UPTO_LINK_DATE="10/26/2009 16:49:00" />
    <MATCHING_FILE NAME="struc1.exe" SIZE="48128" CHECKSUM="0xEB6C87DB" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/20/2009 16:24:33" UPTO_LINK_DATE="10/20/2009 16:24:33" />
    <MATCHING_FILE NAME="struc2.exe" SIZE="58880" CHECKSUM="0x2F82F20" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/20/2009 16:26:27" UPTO_LINK_DATE="10/20/2009 16:26:27" />
    <MATCHING_FILE NAME="New Folder\arrays1.exe" SIZE="62976" CHECKSUM="0x8D00CE52" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/17/2009 14:41:12" UPTO_LINK_DATE="09/17/2009 14:41:12" />
    <MATCHING_FILE NAME="New Folder\assignment4.exe" SIZE="48640" CHECKSUM="0x5C9164F2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/07/2009 15:01:11" UPTO_LINK_DATE="10/07/2009 15:01:11" />
    <MATCHING_FILE NAME="New Folder\atm.exe" SIZE="75264" CHECKSUM="0xF3FA3D52" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/29/2009 14:29:09" UPTO_LINK_DATE="09/29/2009 14:29:09" />
    <MATCHING_FILE NAME="New Folder\atm2.exe" SIZE="75776" CHECKSUM="0xF69EDAB2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/29/2009 15:10:28" UPTO_LINK_DATE="09/29/2009 15:10:28" />
    <MATCHING_FILE NAME="New Folder\break.exe" SIZE="50176" CHECKSUM="0x2ED417D9" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/17/2009 17:28:15" UPTO_LINK_DATE="09/17/2009 17:28:15" />
    <MATCHING_FILE NAME="New Folder\bubble.exe" SIZE="48640" CHECKSUM="0xDEFF4709" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/07/2009 15:32:14" UPTO_LINK_DATE="10/07/2009 15:32:14" />
    <MATCHING_FILE NAME="New Folder\bubble1.exe" SIZE="48640" CHECKSUM="0xCB2A4283" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/05/2009 16:17:20" UPTO_LINK_DATE="10/05/2009 16:17:20" />
    <MATCHING_FILE NAME="New Folder\countd.exe" SIZE="48128" CHECKSUM="0xE2AA155" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/15/2009 20:13:17" UPTO_LINK_DATE="09/15/2009 20:13:17" />
    <MATCHING_FILE NAME="New Folder\final5.exe" SIZE="51200" CHECKSUM="0x1A4B2C5B" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/14/2009 17:05:30" UPTO_LINK_DATE="10/14/2009 17:05:30" />
    <MATCHING_FILE NAME="New Folder\func1a.exe" SIZE="48128" CHECKSUM="0xE012B77F" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/17/2009 21:49:53" UPTO_LINK_DATE="09/17/2009 21:49:53" />
    <MATCHING_FILE NAME="New Folder\h2.exe" SIZE="78848" CHECKSUM="0x7AE700E5" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/23/2009 21:31:28" UPTO_LINK_DATE="09/23/2009 21:31:28" />
    <MATCHING_FILE NAME="New Folder\helloworld.exe" SIZE="48128" CHECKSUM="0x2FDF167C" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/15/2009 15:02:02" UPTO_LINK_DATE="09/15/2009 15:02:02" />
    <MATCHING_FILE NAME="New Folder\ispalin.exe" SIZE="48128" CHECKSUM="0x7F4C115B" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/12/2009 17:12:05" UPTO_LINK_DATE="10/12/2009 17:12:05" />
    <MATCHING_FILE NAME="New Folder\ispalin1.exe" SIZE="48128" CHECKSUM="0xE02DD572" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/12/2009 16:40:41" UPTO_LINK_DATE="10/12/2009 16:40:41" />
    <MATCHING_FILE NAME="New Folder\ispalino.exe" SIZE="48128" CHECKSUM="0x8BF9655" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/12/2009 17:17:11" UPTO_LINK_DATE="10/12/2009 17:17:11" />
    <MATCHING_FILE NAME="New Folder\loop.exe" SIZE="48128" CHECKSUM="0xC69DD1A4" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/15/2009 20:41:51" UPTO_LINK_DATE="09/15/2009 20:41:51" />
    <MATCHING_FILE NAME="New Folder\lowerc.exe" SIZE="48128" CHECKSUM="0xC69D0D4F" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/07/2009 21:55:58" UPTO_LINK_DATE="10/07/2009 21:55:58" />
    <MATCHING_FILE NAME="New Folder\module1Program1a.exe" SIZE="55808" CHECKSUM="0xD82B8B2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/17/2009 14:21:34" UPTO_LINK_DATE="09/17/2009 14:21:34" />
    <MATCHING_FILE NAME="New Folder\module1program1b.exe" SIZE="55808" CHECKSUM="0xD82B8B2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/17/2009 21:57:08" UPTO_LINK_DATE="09/17/2009 21:57:08" />
    <MATCHING_FILE NAME="New Folder\nev.exe" SIZE="48128" CHECKSUM="0x65B9D9C" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/01/2009 19:39:22" UPTO_LINK_DATE="10/01/2009 19:39:22" />
    <MATCHING_FILE NAME="New Folder\never.exe" SIZE="48128" CHECKSUM="0xB40ABA39" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/01/2009 19:35:14" UPTO_LINK_DATE="10/01/2009 19:35:14" />
    <MATCHING_FILE NAME="New Folder\off.exe" SIZE="48128" CHECKSUM="0x6950875B" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/12/2009 18:48:17" UPTO_LINK_DATE="10/12/2009 18:48:17" />
    <MATCHING_FILE NAME="New Folder\off2.exe" SIZE="48128" CHECKSUM="0x8DA2C7A1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/12/2009 20:48:17" UPTO_LINK_DATE="10/12/2009 20:48:17" />
    <MATCHING_FILE NAME="New Folder\p9.exe" SIZE="48128" CHECKSUM="0xCE970879" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/01/2009 15:50:44" UPTO_LINK_DATE="10/01/2009 15:50:44" />
    <MATCHING_FILE NAME="New Folder\p9a.exe" SIZE="55808" CHECKSUM="0x16EB307B" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/01/2009 14:36:52" UPTO_LINK_DATE="10/01/2009 14:36:52" />
    <MATCHING_FILE NAME="New Folder\pal.exe" SIZE="51712" CHECKSUM="0x64D4F351" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/14/2009 19:19:39" UPTO_LINK_DATE="10/14/2009 19:19:39" />
    <MATCHING_FILE NAME="New Folder\palin.exe" SIZE="61952" CHECKSUM="0xC51C9D9" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/09/2009 19:32:18" UPTO_LINK_DATE="10/09/2009 19:32:18" />
    <MATCHING_FILE NAME="New Folder\palin1.exe" SIZE="48128" CHECKSUM="0x3E6EDF7A" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/09/2009 20:10:31" UPTO_LINK_DATE="10/09/2009 20:10:31" />
    <MATCHING_FILE NAME="New Folder\palin5.exe" SIZE="48128" CHECKSUM="0xA31A63D" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/09/2009 20:23:36" UPTO_LINK_DATE="10/09/2009 20:23:36" />
    <MATCHING_FILE NAME="New Folder\palinr3.exe" SIZE="52224" CHECKSUM="0x4E349D58" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/12/2009 14:39:59" UPTO_LINK_DATE="10/12/2009 14:39:59" />
    <MATCHING_FILE NAME="New Folder\palinx1.exe" SIZE="48640" CHECKSUM="0x8458F318" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/09/2009 20:04:45" UPTO_LINK_DATE="10/09/2009 20:04:45" />
    <MATCHING_FILE NAME="New Folder\pals.exe" SIZE="48640" CHECKSUM="0xA1650257" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/15/2009 14:07:59" UPTO_LINK_DATE="10/15/2009 14:07:59" />
    <MATCHING_FILE NAME="New Folder\point5.exe" SIZE="55296" CHECKSUM="0x88BE7E33" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/29/2009 16:45:25" UPTO_LINK_DATE="09/29/2009 16:45:25" />
    <MATCHING_FILE NAME="New Folder\pointer3.exe" SIZE="48128" CHECKSUM="0x4980E352" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/24/2009 19:53:19" UPTO_LINK_DATE="09/24/2009 19:53:19" />
    <MATCHING_FILE NAME="New Folder\pointer4.exe" SIZE="48128" CHECKSUM="0xB3D9C592" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/24/2009 22:04:15" UPTO_LINK_DATE="09/24/2009 22:04:15" />
    <MATCHING_FILE NAME="New Folder\pointers.exe" SIZE="62976" CHECKSUM="0x1325BE16" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/16/2009 14:55:36" UPTO_LINK_DATE="09/16/2009 14:55:36" />
    <MATCHING_FILE NAME="New Folder\pointersmore.exe" SIZE="56320" CHECKSUM="0xE17EFA2A" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/17/2009 21:21:23" UPTO_LINK_DATE="09/17/2009 21:21:23" />
    <MATCHING_FILE NAME="New Folder\pointerx1.exe" SIZE="48128" CHECKSUM="0x390BBEDD" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/09/2009 18:47:06" UPTO_LINK_DATE="10/09/2009 18:47:06" />
    <MATCHING_FILE NAME="New Folder\random1.exe" SIZE="48128" CHECKSUM="0xF041E03B" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/05/2009 17:10:41" UPTO_LINK_DATE="10/05/2009 17:10:41" />
    <MATCHING_FILE NAME="New Folder\sign.exe" SIZE="77824" CHECKSUM="0x518AAFFF" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/15/2009 19:58:37" UPTO_LINK_DATE="09/15/2009 19:58:37" />
    <MATCHING_FILE NAME="New Folder\strings1.exe" SIZE="36864" CHECKSUM="0xAE54AFD2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/13/2009 20:54:59" UPTO_LINK_DATE="10/13/2009 20:54:59" />
    <MATCHING_FILE NAME="New Folder\test.exe" SIZE="51200" CHECKSUM="0x24C5BCA2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/14/2009 19:03:58" UPTO_LINK_DATE="10/14/2009 19:03:58" />
    <MATCHING_FILE NAME="New Folder\test2.exe" SIZE="55808" CHECKSUM="0x88CD3177" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/21/2009 16:24:46" UPTO_LINK_DATE="09/21/2009 16:24:46" />
    <MATCHING_FILE NAME="New Folder\test3.exe" SIZE="55808" CHECKSUM="0x6D2B9517" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/21/2009 20:57:57" UPTO_LINK_DATE="09/21/2009 20:57:57" />
    <MATCHING_FILE NAME="New Folder\testoffset.exe" SIZE="48128" CHECKSUM="0xF065DC1D" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/12/2009 18:45:45" UPTO_LINK_DATE="10/12/2009 18:45:45" />
    <MATCHING_FILE NAME="New Folder\tryit.exe" SIZE="45568" CHECKSUM="0x49FBBE6B" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/21/2009 15:51:39" UPTO_LINK_DATE="09/21/2009 15:51:39" />
    <MATCHING_FILE NAME="New Folder\weather.exe" SIZE="73728" CHECKSUM="0x22C88A79" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/19/2009 20:51:40" UPTO_LINK_DATE="10/19/2009 20:51:40" />
    </EXE>
    <EXE NAME="kernel32.dll" FILTER="GRABMI_FILTER_THISFILEONLY">
    <MATCHING_FILE NAME="kernel32.dll" SIZE="989696" CHECKSUM="0x7D737C09" BIN_FILE_VERSION="5.1.2600.5512" BIN_PRODUCT_VERSION="5.1.2600.5512" PRODUCT_VERSION="5.1.2600.5512" FILE_DESCRIPTION="Windows NT BASE API Client DLL" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Windows® Operating System" FILE_VERSION="5.1.2600.5512 (xpsp.080413-2111)" ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xF44A2" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.2600.5512" UPTO_BIN_PRODUCT_VERSION="5.1.2600.5512" LINK_DATE="04/14/2008 00:11:24" UPTO_LINK_DATE="04/14/2008 00:11:24" VER_LANGUAGE="English (United States) [0x409]" />
    </EXE>
    </DATABASE>


  13. #13
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Quote Originally Posted by tbites View Post
    adaka and elysia
    wow thanks yeah I will look for turbo c and GCC i hear they are good
    will try hey thanks for your help. i really like this program
    it is cool to try to real others work to understand code better
    wow thanks for your valuable time what a cool forum
    and I do again appreciate you being hard on me...it is essential.
    that is why you guys have gotten as good as you have.
    thank you so much for your guidance.
    -tbites!
    ps. I hope someday I can help others as much as you guys do!
    I would recommend using microsoft's free visual C compiler or gcc.

    I use Turbo C because I can almost use it blindfolded, after all these years with it, and it has certain headers, like conio.h, that I find very useful.

    Today, it's all about programming in a 32 or 64 bit environment, like Windows or Linux. Turbo C/C++ is just 16 bit, but it has a good running speed, anyway. Limited memory is the main problem I've run across. Oh, and getting the floating point library to link in. That one is funny!

    Turbo C/C++ (plain old Turbo C is buggy, so don't get that versiion, even if you want a Turbo C compiler, get the C/C++, and then just use the C compiler that comes with it)

    You want to use a more modern compiler than turbo C/C++. For anything serious, I use MS Visual C myself. I can't work as quickly, but it's a much better product, especially for working in Windows.

  14. #14
    Registered User
    Join Date
    Oct 2009
    Posts
    9
    adak
    thanks big guy! yeah I can see once you get use to it!
    hee hee; and visual studio is definity a learning curve and really overwhelming wow but yeah someone told me that i need to delcare my variables at the top of the main() cause visual studio 2008 doesnt support c99 standard c?
    does that sound right going to try wow have i learned a lot already from this experience that is why i like to grab code and play with it to learn. i really learn so much more. )) thank you for your valuable time and expereince sir!
    -tbites

  15. #15
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    The program needs a filename, what kind of file does it want?

    what is the purpose of this program?

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Artificial Life: Where to Start?
    By Mr.Sellars in forum General AI Programming
    Replies: 11
    Last Post: 09-22-2007, 02:03 AM
  2. The more intelligent risks you take in life, the more you'll achieve
    By Terrance in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 05-20-2003, 05:23 PM
  3. Life, The Universe, and everything else
    By ZooTrigger1191 in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 03-29-2003, 04:33 PM
  4. God
    By datainjector in forum A Brief History of Cprogramming.com
    Replies: 746
    Last Post: 12-22-2002, 11:01 AM
  5. Half life Problem which I am right and the teacher is wrong
    By Shadow12345 in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 11-06-2002, 03:28 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21