-
[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;
}
-
Re: C++ Underline
fixed it was ;{ that i make wrong
-
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.
-
Re: C++ Underline