Disable QoS Packet Sheduler

qpedit.msc ->

Source: http://www.tech-forums.net/computer/topic/70364.html

Advertisements
Posted in Connection Troubleshoting | Leave a comment

Game hacking hints

– Avoiding linker errors when using different SDK.
When you wanna use a wrong version of a SDK for a game, which uses the same engine, but you know they are very similar, add the SDK header files into your project. When you want to use a specific method first write “virtual” before the method and feel free to use it. If you not do it, the compiler will show a linker error which isn’t benefit for us, since we wanna use the method from the game itself, not from a source file.

Posted in Game Hacking | Leave a comment

C++ inline functions troubleshooting

– inline functions should be declared inside header file

error LNK2001: unresolved external symbol “unsigned long __cdecl FindPattern(unsigned long,unsigned long,unsigned char *,char const *)”

Posted in C++ Troubleshoting | Leave a comment

UnicodeToAnsiString() function

//
// C/C++
//

#define MAX_LINE_LENGTH 1024
int UniToAnsi(const wchar_t* UniStr, char* AnsiStr){
int u=0, a=0;
char* paUniStr = (char*)UniStr;

while( true ){
AnsiStr[a] = paUniStr[u];
u+=2;
a+=1;

if( (paUniStr[u+0]==”) && (paUniStr[u+1]==”) )
break;
if(a>=MAX_LINE_LENGTH)
break;
}
AnsiStr[a]=”;

return a;
}

//
//
//

Posted in Programming Functions | Leave a comment

Como compilar o projeto com um ícone no Visual C++ 2010 Express

1-Na IDE, adicione um novo arquivo texto chamado resources.rc
Obs: depois que tu add esse arquivo, o VC Exp avisa que não oferece suporte a edição de arquivos de resources, mas nao tem problema, basta só voltar pra janela Solution Explorer!

2-abra o resources.rc clicando com o direito do mouse e em “Open with”, na próxima janela selecione o Bloco de Notas!
Obs 1: Se o Bloco de Notas não tiver na lista, basta add ele, é bem simples.

3-Adicione as linhas seguintes no resources.rc:
MeuIcone ICON “icone.ico”
Obs: “icone.ico” neste caso é o teu arquivo .ico que deve estar no dir da solução!

4-Salve o arquivo resources.rc, volte pra IDE e vá nas popriedades do projeto. Procure pela aba “Resources” e em “Resource File Name” digite resources.res

5-OK e Rebuild. Se tudo deu certo teu exe agora vai ta bunitinho!

Posted in Visual Studio IDE | Leave a comment

Compile Troubleshooting for Jupiter System Enterprise (SDK)

Troubleshooting for Jupiter System Enterprise

Lib_UI
cuivectorfont:
error: 1>c:\jupiter_ent\engine\runtime\ui\src\cuivectorfont.cpp(395): error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
fix: const LONG kCharSpacing = 2;

Lib_RezMgr
rezutils.cpp:
1>c:\jupiter_ent\engine\libs\rezmgr\rezutils.cpp(419): error C2065: ‘i’ : undeclared identifier
fix: declare variable i before the for() loop

Lib_Info
outputredir_win32.cpp
1>c:\jupiter_ent\engine\runtime\info\src\sys\win32\outputredir_win32.cpp(86): error C3861: ‘_assert’: identifier not found
fix: remove “_” from begin of _assert() call!

Lib_DShow
ctlutil.h:
1>C:\Jupiter_Ent\Engine\libs\Lib_DShow\ctlutil.h(278): error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
fix: add the type (LONG) before “operator=(LONG);”

streams.h:
1>C:\Jupiter_Ent\Engine\libs\Lib_DShow\streams.h(179): fatal error C1083: Cannot open include file: ‘atlbase.h’: No such file or directory
#define NO_SHLWAPI_STRFCNS
#include <atlbase.h>
fix: ???

LIB_D3DRender
precompile:
1>c:\jupiter_ent\engine\runtime\render_a\src\sys\d3d\precompile.h(28): fatal error C1083: Cannot open include file: ‘d3dx9.h’: No such file or directory
fix: add DirectX SDK include dir!

d3d_utils.h:
1>c:\jupiter_ent\engine\runtime\render_a\src\sys\d3d\d3d_utils.h(12): fatal error C1083: Cannot open include file: ‘dxerr9.h’: No such file or directory
fix: rename dxerr9.h to dxerr.h

1>c:\jupiter_ent\engine\runtime\render_a\src\sys\d3d\d3d_device.cpp(56): error C3861: ‘DXGetErrorString9’: identifier not found
1>c:\jupiter_ent\engine\runtime\render_a\src\sys\d3d\d3d_device.cpp(56): error C3861: ‘DXGetErrorDescription9’: identifier not found
fix: use DXGetErrorString(hr),DXGetErrorDescription(hr)

Still in LIB_D3DRender, some local vars were declared inside for() loops and are not recognized out. just declare them at the begining ofr each function.

butemgr.h compile error:
1>\sdk\libs\butemgr\butemgr.h(144): error C4430: missing type specifier – int assumed. Note: C++ does not support default-int
1>\sdk\libs\butemgr\butemgr.h(144): error C2143: syntax error : missing ‘,’ before ‘&’
1>\sdk\libs\butemgr\butemgr.h(144): error C2535: ‘void CButeMgr::CSymTabItem::Init(CButeMgr &,CButeMgr::SymTypes,int)’ : member function already defined or declared
FIX: Add Jupiter\MFCStub\mfcstub.h in case _NOMFC is set!

fxprop.h

warning C4482: nonstandard extension used: enum ‘FX_PROP::eDataType’ used in qualified name
FIX: remove the enum name (no need EnumName::VALUE)

Posted in Uncategorized | Leave a comment

Hello world!

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!

Posted in Uncategorized | 1 Comment