ADDY LOOGER HELP
this is my log.cpp
it gives me this error
what is wrong with my code for addy logger
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 ==========


