Results 1 to 4 of 4

Thread: [RESOLVED] C++ Underline

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2009
    Posts
    524

    Resolved [RESOLVED] C++ Underline

    Can someone tell me where is my mistake , i will color the words that are underlined for me
    Maybe i forgot:
    {
    }
    close tags somewhere

    Code:
    #include "tools.h"
    
    void LogLine(char *formatstring, ...){
    	va_list args;
    	va_start(args, formatstring);
    	char msg[0x1770];
    	memset(msg, 0, sizeof(msg));
    	FILE *logfile = fopen(".\\LOG\\MFS.log", "+a");
    	_vsnprintf(msg, sizeof(msg), formatstring, args);
    	fputs(msg, logfile);
    	fclose(logfile);
    }
    void ToHex(unsigned char * out, unsigned char * data, int c_len);
    string s,t;
    char cBuff[5001];
    c_len = c_len & 0xff;
    memset(cBuff, 0, 5000);
    for(int i=0;i<c_len;i++){
    	wsprintf(cBuff+(i*3), "%02X,",data[i]);
    }
    strcat(cBuff, "\r\n");
    memcpy(out,cBuff,(c_len*3)+2);
    }
    void HookThis(DWORD dwMyFuncOffset, DWORD dwJmpOffset){
    *(DWORD*)(dwJmpOffset+1) = dwMyFuncOffset - (dwJmpOffset+5);
    }
    void SetNop(DWORD dwOffset, int Size){
    	for(int n=0;n < Size; n++){
    		*(BYTE*)(dwOffset+n) = 0x90;
    	}
    }
    void SetRetn(DWORD dwOffset){
    	*(BYTE*)(dwOffset) = 0xC3;
    }
    void SetByte(DWORD dwOffset, BYTE btValue){
    	*(BYTE*)(dwOffset) = btValue;
    }

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2009
    Posts
    524

    Re: C++ Underline

    fixed it was ;{ that i make wrong

  3. #3

    Re: C++ Underline

    You do realize that this is a VB.net forum, not C++, right? Anyway, since you've fixed your issue, go ahead and mark your topic as "Resolved" from the Thread Tools Menu.

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: C++ Underline

    Thread moved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width