thanks for the help friend
robsons2007
Posts
-
help -
helpGo to Parentwhen they procure step QuarkInit ( TCHAR * connect) he did not correct me back the main error plus it returns these errors in my function and do not know how to fix excuse the English BR error C2664: 'int printf(const char *,...)': não é possível converter um argumento 1 de 'TCHAR *' em 'const char *' Tipos apontados não são relacionados; conversão requer reinterpret_cast, conversão C-style ou conversão function-style if I send to you the code is how you correct for me the code and an online game emulator
-
helpwhere this error if ( printf(connect, "quark:served", strlen("quark:served")) == 0) { int port; char game[256], match[256];
-
helpwhen they procure step QuarkInit ( TCHAR * connect) he did not correct me back the main error plus it returns these errors in my function and do not know how to fix excuse the English BR error C2664: 'int printf(const char *,...)': não é possível converter um argumento 1 de 'TCHAR *' em 'const char *' Tipos apontados não são relacionados; conversão requer reinterpret_cast, conversão C-style ou conversão function-style
-
helppart of the .h // fba_quark.cpp bool QuarkInit(CHAR *connect); bool QuarkNetworkGame(); bool QuarkDumpSprites();
-
helppart of the main.cpp else if (_tcsncmp(szName, _T("quark:"), 6) == 0) { QuarkInit(szName);
-
helppart of the .cpp QuarkInit(CHAR *connect) { GGPOSessionCallbacks cb = { 0 }; bNetGame = TRUE; cb.begin_game = ggpo_begin_game_callback; cb.load_game_state = ggpo_load_game_state_callback; cb.save_game_state = ggpo_save_game_state_callback; cb.log_game_state = ggpo_log_game_state_callback; cb.free_buffer = ggpo_free_buffer_callback; cb.advance_frame = ggpo_advance_frame_callback; cb.on_event = ggpo_on_event_callback; //cb.Alert = QuarkAlert; if (printf(connect, "quark:served", strlen("quark:served")) == 0) { int port; TCHAR game[256], match[256]; sscanf(connect, "quark:served,%[^,],%[^,],%d", game, match, &port); //ggpo = ggpo_client_connect(&cb, game, match, port); } else if (strncmp(connect, "quark:direct", strlen("quark:direct")) == 0) { int localPort, remotePort, p1 = 0; char ip[128], game[128]; sscanf(connect, "quark:direct,%[^,],%d,%[^,],%d,%d", game, &localPort, ip, &remotePort, &p1); ggpo = ggpo_start_session(&cb, game, localPort, ip, remotePort, p1); } else if (strncmp(connect, "quark:synctest", strlen("quark:synctest")) == 0) { int frames; char game[128]; sscanf(connect, "quark:synctest,%[^,],%d", game, &frames); ggpo = ggpo_start_synctest(&cb, game, frames); } else if (strncmp(connect, "quark:stream", strlen("quark:stream")) == 0) { char game[256], matchid[256]; int port; sscanf(connect, "quark:stream,%[^,],%[^,],%d", game, matchid, &port); ggpo = ggpo_start_streaming(&cb, game, matchid, port); } else if (strncmp(connect, "quark:replay", strlen("quark:replay")) == 0) { ggpo = ggpo_start_replay(&cb, connect + strlen("quark:replay,")); } VidSSetQuarkShowLogo(true); }
-
helpLinking executable ggpofba-ng.exe... main.o : error LNK2001: símbolos externos indefinidos "void __cdecl QuarkInit(wchar_t *)" (?QuarkInit@@YAXPA_W@Z) ggpofba-ng.exe : fatal error LNK1120: 1 externo não resolvidos makefile.vc:313: recipe for target 'ggpofba-ng.exe' failed mingw32-make[2]: *** [ggpofba-ng.exe] Error 1120 this error is happening at the end of compilation I already posted something about it helped me include everything right in .he cpp I discovered that for this error does not appear I have to change in cpp put TCHAR more if I do more error appears in the .cpp then he is char how do I corrigiri so I will let the three files containing this function I grasped C ++ now vlw
-
helpThanks buddy that was the error
-
helphelp at the time of compiling this error appears at the end
by compiling visual studio 2013 through the makefile.vc<pre lang="vb">fba_ggpo.o : error LNK2001: símbolos externos indefinidos "bool __cdecl VidSSetQuarkConnectStatus(wchar_t const *)" (?VidSSetQuarkConnectStatus@@YA_NPB_W@Z)
fba_ggpo.o : error LNK2001: símbolos externos indefinidos "int __cdecl VidSSetQuarkShowLogo(bool)" (?VidSSetQuarkShowLogo@@YAH_N@Z)
fba_ggpo.o : error LNK2001: símbolos externos indefinidos "int nAcbVersion" (?nAcbVersion@@3HA)
</pre>