Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Everything posted by sphinx23

  1. sphinx23

    What song are you listening to right......

    Hypocrisy - Craving for Another Killing
  2. sphinx23


    First, you want to use [ source ]-tags or [ code ]-tags (without the spaces). This might work, but i haven't tested it. At least it might give you some ideas ;) int remove_char(int j) { for(; j<20;++j ) { encrypt[j]=encrypt[j+1]; } encrypt[20]=0; } int repeats() { int i, j,z; for(i=0;i<21;i++) { for(j=1;j<21;j++) { if(encrypt[j]==encrypt) { remove_char(j); break; } } } return 0; }
  3. sphinx23

    Inline assembly help!

    Of course you can pass parameters to functions inside DLLs when using LoadLibrary/GetProcAddress, e.g. typedef IDirect3D9* (WINAPI *ddCreateD3D9t)(UINT); ddCreateD3D9t ddCreateD3D9 = NULL; // get procedure address for Direct3DCreate9: ddCreateD3D9 = (ddCreateD3D9t) GetProcAddress( hD3DInstance, "Direct3DCreate9" ); if( !ddCreateD3D9 ) return 0: // // initialize Direct3D9 // Direct3D9 = ddCreateD3D9( D3D_SDK_VERSION ); if( !Direct3D9 ) return 0; or something similar should work.
  4. You should implement it like this in your .cpp file: void Node::recuriteSoldier(Soldier *pSoldier,Node * pHead, Node *pIterator, Node *pNode) { ... }
  5. MSDN . It uses the debugging output to print the leaks. It also provides some mechanism to track down the memory leaks as it associates an ID to every memory allocation which is also printed out. This ID can be used to identify where the memory was allocated. All in all its a bit long winded i think ;), but it should work.
  6. OT: okonomiyaki: Well, it didn't work in my case ;). The list was printed, an then the destructors were called, which i had verified by putting breakpoints in them. The CRT said there was memory leaked whereas in reality this memory was freed...
  7. Regarding the CRT memory functions: I'm not entirely sure, but when you set the _CRTDBG_LEAK_CHECK_DF flag, some memory blocks may be printed at the program end which are freed later, for example the memory allocated by global objects, which is freed in the object's destructor. The problem is that the CRT memory dump function is called prior to the global object's destructor. So they may not be well suited to search for memory leaks, at least in C++.
  8. sphinx23

    Unknown compiler errors

    You have to define the static variables outside of the class, e.g.: class X { static int Y; }; int X::Y = 0; And the constructor (SdlHandle::SdlHandle) seems to have to body (at least not in the code you posted), you also have to define it somewhere, like: SdlHandle::SdlHandle( void ) { // Your code goes here... }
  9. You might want to look up control subclassing, iirc on www.codeproject.com there are a few tutorials. MSDN also has some resources.
  10. sphinx23

    Unknown compiler errors

    You try to use some methods and static variables, but you don't seem to define them anywhere, i.e. you have to define SdlHandle::SdlHandle and SdlHandle::m_pInstance.
  11. You need to link to dxguid.lib.
  12. sphinx23

    Connecting to msn

    Maybe you want to have a look at the Miranda Instant Messanger .
  13. sphinx23

    Windows class

    You have to specify the WinMain function outside of a class. You could do for example: int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { EGWin MyWinClass; return MyWinClass.WinMain( hInstance, hPrevInstance, lpCmdLine, nCmdShow ); } Another possibility would to make the WinMain function static and call it like return EGWin::WinMain( hInstance, hPrevInstance, lpCmdLine, nCmdShow ); You also might want to have a look at this article.
  14. sphinx23

    Game Source Code

    Tenebrae , build on top of the Quake source.
  15. Compuware DevPartner Profiler Community Edition
  16. sphinx23

    Learning assembly

    This might help you.
  17. sphinx23

    very easy question

    What errors does it give you?
  18. sphinx23


    Quote:Original post by LizardCPP Someone said: PRRM -> Prime NMZ -> numbers R -> are What about: ALTAIR -> all there (Crazy guess) PLANIVERSE -> ?? Lizard Yeah, I said that, but I no longer think it's true, because the solution 'R' could be constructed from the corresponding step, so there's nothing in there (at least nothing 'obvious') involving grammar or language. That doesn't mean that these ideas cannot be true, but based on the previous steps, i think it's somehow improbable.
  19. sphinx23


    Just to put it at the end, the current step is http://www.ninebows.com/PRRM/NMZ/R/ALTAIR/PLANIVERSE/ right?
  20. sphinx23

    linking problems

    Here is an entry in some german forum, they basically say: The .lib is not provided with the SDK, but its sources and workspaces are in "..\Samples\C++\DirectShow\BaseClasses" and have to be compiled. That should create a file called "strmbasd.lib" which you can link with your program. hth
  21. sphinx23


    If you take the 7404 hex inverter, and "1 x 0 x 1 x 0 x 1 x 0 x 1 1" as the "input", where the "1" means current, "0" means no current, and "x" means output, you get 010010 as output, if I understood that correctly. 1 at pin 1 -> 0 at pin 2 0 at pin 3 -> 1 at pin 4 1 at pin 5 -> 0 at pin 6 0 at pin 7 [GND] 1 at pin 8 -> 0 at pin 9 0 at pin 10 -> 1 at pin 11 1 at pin 11 -> 0 at pin 13 1 at pin 14 [VCC] Is this the correct explanation?
  22. http://bdn.borland.com/article/0,1410,28893,00.html Windows usually uses the first icon it encounters in an application's resources as the application icon.
  23. sphinx23


    Quote:Original post by queball The x'd digits are 010010, 18 in binary. R is the 18th letter of the alphabet. Thanks, a logical explanation for my illogical guess. [Edited by - sphinx23 on March 29, 2005 1:44:18 AM]
  24. sphinx23


    PRRM -> "Prime" NMZ -> "Numbers" R -> "Are" I just tried that, and it worked, so i don't know if it is the solution to the previous step, nor do i know if this is the next step :)
  25. sphinx23


    http://www.ninebows.com/PRRM/NMZ/R/ Is this the next step?
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!