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

Search:

Type: Posts; User: Mulligan

Search: Search took 0.01 seconds.

  1. Re: Implicit type conversion and time measurement.

    Ok, I already know about these functions BUT I'm intentionally using the timeGetTime so instead of proposing sth. else could You please try to answer my original question?
  2. Implicit type conversion and time measurement.

    I'm implementing a game loop in `c++` using the `timeGetTime` function like below:


    // ...
    DWORD oldtime = 0, newtime = 0, delta = 0;
    //...
    while (PeekMessage(&msg,...
  3. Replies
    0
    Views
    3,083

    Game loop and time measurement.

    There is the function `Sys_Milliseconds`:


    int curtime;
    int Sys_Milliseconds (void)
    {
    static int base;
    static qboolean initialized = false;

    if (!initialized)
  4. Replies
    4
    Views
    5,147

    Float point number simple arithmetic.

    Having such a simple `c` program:


    #include <stdio.h>
    #include <float.h>

    int main( void ) {
    float fl1 = 0.1;

    // Set precision to 24 bits
  5. Replies
    2
    Views
    1,462

    Creating a popup window above an another.

    I have a `handle` to third party window (not created by me, retrieved using the `FindWindow` function). Now I'd kile to create a small popup style window that will ALWAYS be laid down ovev/on top of...
  6. Replies
    1
    Views
    3,847

    Designing a game loop.

    I'm developing a simple Win game. Here is my 2 similar implementations of the game loop (in c++):

    approach #1:


    while (Msg.message != WM_QUIT) {

    if (PeekMessage(&Msg, NULL, 0,...
  7. Replies
    1
    Views
    6,385

    JavaScript Screen.width property discrepancy.

    I'm trying following simple JavaScript code:


    alert(screen.width);

    On my Samsung A5(2017) smartphone. The specs for my device screen is `1080 x 1920` pixels while the alert reports me only...
  8. Replies
    1
    Views
    3,790

    Keyboard input and TranslateMessage

    As the doc (https://msdn.microsoft.com/pl-pl/library/windows/desktop/gg153546(v=vs.85).aspx) about the windows keyboard input says



    My question is how doues the `TranslateMessage` function...
  9. Replies
    1
    Views
    2,624

    Alt key virtual codes

    Inspecting the `Right Alt` key messages using `Microsoft Spy++` returns the following:


    WM_KEYDOWN nVirtKey:VK_CONTROL
    WM_KEYDOWN nVirtKey:VK_MENU
    WM_SYSKEYUP nVirtKey:VK_CONTROL
    WM_KEYUP...
  10. Replies
    0
    Views
    5,087

    Conditional regex

    Having following regex:


    (?(?<=\AA)a|e)/g

    and test string:


    Aa
    Ae
  11. Replies
    4
    Views
    41,794

    xHTML Re: Iframe loading and processing

    So the answer is that it's run in the one main thread?
  12. Replies
    4
    Views
    41,794

    xHTML Iframe loading and processing

    Having following code


    <iframe id="myframe" src="..."></iframe>

    <script>
    document.getElementById('myframe').onload = function() {
    alert('myframe is loaded');
    };
    </script>
Results 1 to 12 of 13





Click Here to Expand Forum to Full Width

Featured