ADDY LOOGER HELP

Posts 1–8 of 8 · Page 1 of 1
ADDY LOOGER HELP
this is my log.cpp
Code:
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <fstream>
#include <stdio.h>


using namespace std;

ofstream ofile;
char dlldirectory[320];

char *GetDirectoryFile(char *filename)
{
static char path[320];
strcpy(path, dlldirectory);
strcat(path, filename);
return path;
}

void __cdecl Writelog(const char *fmt, ...)
{
if(ofile != NULL)
{
if(!fmt) { return; }
va_list va_alist;
char logbuf[256] = {0};
va_start (va_alist, fmt);
_vsnprintf (logbuf+strlen(logbuf), sizeof(logbuf) - strlen(logbuf), fmt, va_alist);
va_end (va_alist);
ofile << logbuf << endl;
}}

void logging(HMODULE hDll){
DisableThreadLibraryCalls(hDll);
GetModuleFileName(hDll, dlldirectory, 512);
for(int i = strlen(dlldirectory); i > 0; i--) { if(dlldirectory[i] == '\\') { dlldirectory[i+1] = 0; break; } }
ofile.open(GetDirectoryFile("pongping88.txt"), ios::app);
}

it gives me this error
Code:
1>------ Build started: Project: NoName's Logger, Configuration: Debug Win32 ------
1>  Log.cpp
1>c:\users\jhofer vera\documents\visual studio 2010\projects\noname's logger\log.cpp(16): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\string.h(105) : see declaration of 'strcpy'
1>c:\users\jhofer vera\documents\visual studio 2010\projects\noname's logger\log.cpp(17): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\string.h(110) : see declaration of 'strcat'
1>c:\users\jhofer vera\documents\visual studio 2010\projects\noname's logger\log.cpp(29): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(363) : see declaration of '_vsnprintf'
1>  
1>mt.exe : general error c101008a: Failed to save the updated manifest to the file "Debug\NoName's Logger.dll.embed.manifest". The parameter is incorrect.
1>  
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
what is wrong with my code for addy logger
Recompile with multi byte
Moved to the right section
Set multibyte on and write this code for disable warnings
Code:
#pragma warning ( disable : 4996 )
Finally compile as Release
ok thanks i finally made my own warrock addy logger...

the problem now is how to make nomenu hacks
Quote Originally Posted by nokia6288 View Post
ok thanks i finally made my own warrock addy logger...

the problem now is how to make nomenu hacks
you made a addy logger? and dont know how to make a nomenu hack?
i think is addy logger is more harder than a nomenu hack....
Quote Originally Posted by FlaVour View Post
you made a addy logger? and dont know how to make a nomenu hack?
i think is addy logger is more harder than a nomenu hack....
I think he use's a source maybe. Nomenu is yea much eassier..
For WR INT or WR PH ?
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us