Search:

Type: Posts; User: X PaYnE X

Page 1 of 12 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,575

    figured it out, thanks alot :D.

    figured it out, thanks alot :D.
  2. Replies
    2
    Views
    2,575

    calculate class function vtable offset?

    Im wondering how its done, I notice in directx hooking examples, they usually have the offsets defined as constants. how do they calculate these offsets?
  3. Replies
    5
    Views
    2,313

    yes and yes.

    yes and yes.
  4. Replies
    5
    Views
    2,313

    someclass cannot be accessed from sockclass but...

    someclass cannot be accessed from sockclass but it can be done the other way around.
    change your code to use someclass instead:


    list <someclass_ptr> sockets;

    for (int i = 0; i < 10; i++)...
  5. Replies
    5
    Views
    2,313

    I think (*p)->? would work, iterators are...

    I think (*p)->? would work, iterators are pointers and the list values are pointers aswell.
  6. Replies
    3
    Views
    6,508

    I believe you can just use GetModuleHandle(NULL)...

    I believe you can just use GetModuleHandle(NULL) to get the hInstance.

    edit:

    thats assuming you have the bitmap resource in the same executable. if you want to load a bitmap from file, you...
  7. Replies
    2
    Views
    1,895

    I found a comparison of the different...

    I found a comparison of the different synchronization methods and an implementation of the fastest on MSDN if you're interested:...
  8. Replies
    8
    Views
    1,677

    Sorry for the delayed reply, I had it set to...

    Sorry for the delayed reply, I had it set to notify me by email but for some reason it skipped the last 3 posts.
    Anyway, I just wanted to thank you Cat for the very detailed explanation. It was...
  9. Replies
    8
    Views
    1,677

    Thanks for the reply.

    Thanks for the reply.
  10. Replies
    8
    Views
    1,677

    Localization questions

    Hello,

    Most of the applications Ive worked on have been targetted at English users only. Recently, I wanted to change that and add all (or most) languages.

    I read this article:...
  11. Replies
    2
    Views
    1,397

    Anyone have any idea? I've been looking through...

    Anyone have any idea?
    I've been looking through example static library sources, but none of them seem to use the stl library.
  12. Replies
    2
    Views
    1,397

    Static lib question

    This is the first time I've worked with static libraries and I ran into a little problem, heres the code:

    libTest.h

    #ifndef __LIBTEST_H__
    #define __LIBTEST_H__

    #if _MSC_VER > 1000
    #pragma...
  13. Replies
    6
    Views
    1,363

    i think its meant to be Windows NT instead of...

    i think its meant to be Windows NT instead of Windows BT
  14. Replies
    1
    Views
    2,661

    download/upload speed calculations

    Hi,

    Im trying to calculate download/upload speed based on total data downloaded/uploaded.

    The problem with my current method is that it sometimes displays a really large value. Heres the code...
  15. Replies
    4
    Views
    1,839

    i think fgets breaks on '\n' characters, and the...

    i think fgets breaks on '\n' characters, and the file is probably using crlf encoding '\r\n'.
    you can fix that using:


    while(fgets(FileInput, 1000, inp)!=NULL)
    {
    FileInput[strlen(FileInput)...
  16. Replies
    1
    Views
    1,165

    shared memory in DLLs?

    I'm trying to share a variable across multiple processes/threads, and make it so that if one process updates the value, all the other processes 'get' the new value.

    I read that I could/should use...
  17. 'now playing' code for windows media player?

    Hello,

    I've been trying to add a now playing display to my app, I downloaded the WMSDK and samples and they seem to work fine for MFC apps. I tried porting it to win32 and it keeps crashing on:
    ...
  18. Replies
    4
    Views
    1,047

    ive already tried the resource editor in MSVC....

    ive already tried the resource editor in MSVC. the problem with it is i cant create groups of controls, what im trying to create is:

    a multi-tab dialog with a different group per tab. adding the...
  19. Replies
    4
    Views
    1,047

    c/c++ win32. oh, no .NET also. im trying to...

    c/c++ win32.

    oh, no .NET also. im trying to avoid any unneeded dependancies.
  20. Replies
    4
    Views
    1,047

    visual gui editor

    hello,

    ive been working on a project for a while now, and i think its time to add an interface to it. usually id just do this manually (win32), but this project's gui alone would take days if not...
  21. Replies
    1
    Views
    1,763

    nevermind, i thought id get a headstart on idea...

    nevermind, i thought id get a headstart on idea #2 and it worked out well.
    never knew the D3DX functions could do that, pretty useful.
  22. Replies
    1
    Views
    1,763

    loading textures from resources (dx8/9)

    i usually have all my textures in a folder along with the executable, but i had the idea of putting all my textures in a resource file along with the executable.

    anyway, i dont see any D3DX...
  23. Replies
    3
    Views
    1,123

    ill try both your methods. never dealt with...

    ill try both your methods.

    never dealt with quaternions before though.
  24. Replies
    3
    Views
    1,123

    rotation question

    i have 2 angles, lets say 350 degrees and 40 degrees.

    if i want to go from 350 to 40, the current code i use goes CCW, which is 310 degrees of rotation instead of 50.

    how can i calculate which...
  25. Replies
    6
    Views
    6,368

    change the keystate array to a 'char' instead of...

    change the keystate array to a 'char' instead of 'unsigned char' array.
Results 1 to 25 of 290
Page 1 of 12 1 2 3 4