CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Vitaly Belman

Page 1 of 8 1 2 3 4

Search: Search took 0.12 seconds.

  1. Replies
    1
    Views
    670

    Fluid fast motion

    How do you move an object quickly and fluidly? For example a game character that needs to do a 20 pixels jump, does it ever move more than 1 pixel? But then you should use a high-resolution timer for...
  2. Replies
    0
    Views
    1,044

    Find In Files

    In VC++6 I used F4 to go to the next found item in "Find in Files", in VS.Net F4 goes only to next task. What is the key to go to the next found item in "Find results"?
  3. Replies
    0
    Views
    1,099

    Sounds =(

    In VC++6 I had a very cute sound scheme and I want it to be the same in VS.Net.

    I had a special sound on successful build, build complete with errors and build complete with warnings.

    Now in...
  4. Replies
    10
    Views
    1,209

    Well, since the ball speeds up it moves more and...

    Well, since the ball speeds up it moves more and more pixels. The faster it moves, the more pixels it jumps and the more it is visible that its motion is not fluid.. So in your experience, how did...
  5. Replies
    10
    Views
    1,209

    What about the actual movement? Should I indeed...

    What about the actual movement? Should I indeed make it move 1 pixel at a time and change the timers? I just tried it with 3 Multimedia timers (1 for y axis speed, 1 for x axis speed and 1 for world...
  6. Replies
    10
    Views
    1,209

    You mean instead of drawing the Ellipse every...

    You mean instead of drawing the Ellipse every time?

    So in result in the Draw(int X, int Y) function I would have 3 bitblts?

    1) Erase previous background
    2) Copy current background
    3) Copy the...
  7. Replies
    10
    Views
    1,209

    First steps in animation.. Kinda

    I created a little app where you throw a ball and it bounces. You can see the app here:

    http://thresholdx.com/misc/Ball.exe

    To throw the ball, hold the left mouse button, gain some speed and...
  8. Getting text from MFC status-bar (subclassed msctls_statusbar32)

    I am trying to get a string of a MFC status-bar (original class name msctls_statusbar32) from another application (which means I access it using hwnd manipulations).. MFC obviously subclassed...
  9. Getting text from MFC status-bar (subclassed msctls_statusbar32)

    I am trying to get a string of a MFC status-bar (original class name msctls_statusbar32) from another application (which means I access it using hwnd manipulations).. MFC obviously subclassed...
  10. ActiveX component can't create object: 'Scripting.FileSystemObject' :(

    The following used just fine in a VC++ macro before I reinstalled VC++.. I am not sure what I forgot to install or set:

    Set FSO = CreateObject("Scripting.FileSystemObject")

    But now this line...
  11. Scrolling a multiline Edit(box) automatically (Win32)

    I'd like to scroll to the bottom of an Edit automatically whenever a line is added, so I wrote this:


    SendMessage(hWnd(), LOWORD(WM_VSCROLL), SB_BOTTOM, 0);




    hWnd() returns the hwnd of...
  12. Replies
    1
    Views
    1,046

    Non-MFC Win32 sockets wrapper

    Is there any good and free one?
    Would be nice if it is also suited for OOP.

    Thanks in advance.

    ---
    Regards,
    Vitaly Belman
    ICQ: 1912453
  13. Re: const STL pointer container returns a non const pointer

    I did read your post.


    const list<const int*>* func( const list<int>& List )
    {
    list<int*> b;

    return &b;
    }
  14. Re: const STL pointer container returns a non const pointer

    Well, for example I have a class "World" that has a list of pointers to person objects (list<Person*>), the World can access the people in the list and thus it is not const. However, now I want to...
  15. const STL pointer container returns a non const pointer

    void func( const list<int*>& List )
    {
    const int* i = *List.begin(); // Is ok
    int* j = *List.begin(); // Is WRONG by logic, but compiles fine =(.
    }




    The fact that the following code...
  16. Re: Too long delay between the Go (F5) button and the time the program starts to execute the first l

    Duh! You were right. I used

    #pragma comment( lib, "winmm" )

    For PlaySound and it was the one to blame =(. Since I need the sounds I'll ask you if I'm using the right library and function or...
  17. Re: Too long delay between the Go (F5) button and the time the program starts to execute the first l

    I removed all the new libs from Project Settings->Link tab to see if it helps, but it didn't.

    Is there some other places in which a DLL can be added and I don't know about it?

    ---
    Regards,
    ...
  18. Too long delay between the Go (F5) button and the time the program starts to execute the first line

    I have bigger projects that don't show such behavior and I have no idea why it occures in this project.
    I put a breakpoint in the beigining of the WinMain function and press F5, the delay that it...
  19. Replies
    1
    Views
    589

    Memory device context question

    I have a window that has complex figure of lines on it. I'm interested to keep the figure while I'm minimizing the window. So my idea was simple, to CreateCompatitble nemory DC, to draw the line in...
  20. Replies
    7
    Views
    2,477

    Re: Using PeekMessage in a endless loop

    I see =)... So then, what kind of message would I get in the message processing function if I didn't do the TranslateMessage?

    ---
    Regards,
    Vitaly Belman
    ICQ: 1912453
  21. Replies
    7
    Views
    2,477

    Re: Using PeekMessage in a endless loop

    Thanks =).

    Still one thing though, I don't understand why would you do "TranslateMessage" then? If DispatchMessage sends it eventually to the WindowProc, then why do you need to check for keys...
  22. Replies
    7
    Views
    2,477

    Re: Using PeekMessage in a endless loop

    It is not what I meant.

    Is it common to do that kind of loop that keeps Getting/Peeking messages constantly?

    ---
    Regards,
    Vitaly Belman
    ICQ: 1912453
  23. Replies
    7
    Views
    2,477

    Using PeekMessage in a endless loop

    I saw the following code in NeHe OpenGL (http://nehe.gamedev.net) examples in WinMain:

    while(!done) // Loop That Runs While done=FALSE
    {
    if (PeekMessage(&msg,NULL,0,0,PM_REMOVE)) // Is...
  24. Replies
    2
    Views
    4,106

    SystemParametersInfo doesn't work =(

    ...Or maybe I am not using it right?

    bool Bool = 0;
    SystemParametersInfo(114, 0, &Bool, SPIF_SENDCHANGE);




    The first paremeter (114) is SPI_GETSCREENSAVERRUNNING. The whole thing...
  25. Re: Is there replace function in stl string?

    But if you're not supposed to use a wrapper/derived for std::string, where will you put this FindAndReplace class? And what if my application needs some function that std::string, std::list etc lack?...
Results 1 to 25 of 199
Page 1 of 8 1 2 3 4





Click Here to Expand Forum to Full Width

Featured