Search:

Type: Posts; User: CrissyCrisCris

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,433

    BITMAPS in WM_PAINT

    I am trying to remake minesweeper (with some tweaks). I got to as far as placing all the images on the window, but in minesweeper when you click down anywhere the smily faces changes. I am working...
  2. Replies
    3
    Views
    1,931

    Nevermind, I figured it out. //I just had...

    Nevermind, I figured it out.



    //I just had to add.
    szNote[4] = '\0';
    szLength[4] = '\0';
    szDelay[4] = '\0';
  3. Replies
    3
    Views
    1,931

    Error 87 in release build

    I get an error 87 in release build, but I get no error running my program in debug build. What is my problem?

    Source:


    #include <windows.h>
    #include <iostream>
    #include <fstream>

    #pragma...
  4. Replies
    5
    Views
    8,790

    After server hours, I found a way to do it. ...

    After server hours, I found a way to do it.



    while(GetMessage(&Msg, NULL, 0, 0) > 0)
    {
    if (Msg.message == WM_KEYDOWN && Msg.wParam == VK_RETURN)
    {
    if (GetFocus() == hEdit1)...
  5. Replies
    13
    Views
    3,642

    Is it just me or is there no return values in the...

    Is it just me or is there no return values in the code at all? main(), number1(), and number2() are all int type and yet they return nothing.

    Also...



    char letter;
    char letter2;
    ...
  6. Replies
    5
    Views
    8,790

    RegisterHotKey and WM_HOTKEY

    LRESULT CALLBACK WndProc(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam)
    {
    switch(Msg)
    {
    case WM_CREATE:
    {
    HWND hWindow = FindWindow("Untitled Window Class", "Untitled...
  7. Replies
    2
    Views
    1,462

    Project Euler...

    Project Euler I got to 128.
  8. Replies
    15
    Views
    2,651

    while(char c = cin.get() != 'q') You can hot...

    while(char c = cin.get() != 'q')


    You can hot have declare a variable in there. You are trying to declare c in there with char.



    char c;
    while((c = cin.get()) != 'q')
  9. Replies
    15
    Views
    2,651

    What complier does your book tell you to use? In...

    What complier does your book tell you to use? In Microsoft Visual C++ (MSVC) you can not declare a variable inside the while's condition like that.
  10. Replies
    27
    Views
    5,471

    I'm not sure if C++ has a garbage collector. I...

    I'm not sure if C++ has a garbage collector. I know C# and Visual Basic has a garbage collector that runs in the background.
  11. Replies
    5
    Views
    7,579

    First get the HWND for the address text box in...

    First get the HWND for the address text box in teh firefox exlporer. you can use programs like Spy++ (I forgot what it was called, but it came with Microsoft Visual Studio 6.0). The you can use...
  12. Replies
    2
    Views
    966

    I'm not 100% sure if I remember this correctly......

    I'm not 100% sure if I remember this correctly... but here goes:



    fstream FileIn;
    FileIn("Text.txt"); //Something like that
    char szLine[MAX_PATH];
    for (int i = 0; !FileIn.eof(); i++)
    {
    ...
  13. Replies
    5
    Views
    1,100

    Store it as double dNumberSqrt;...

    Store it as



    double dNumberSqrt;
    dNumberSqrt = sqrt(12334567879809644532341346578669);


    and when you need to display it
Results 1 to 13 of 13