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...
Type: Posts; User: CrissyCrisCris
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...
Nevermind, I figured it out.
//I just had to add.
szNote[4] = '\0';
szLength[4] = '\0';
szDelay[4] = '\0';
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...
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)...
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;
...
LRESULT CALLBACK WndProc(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{
switch(Msg)
{
case WM_CREATE:
{
HWND hWindow = FindWindow("Untitled Window Class", "Untitled...
Project Euler I got to 128.
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')
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.
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.
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...
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++)
{
...
Store it as
double dNumberSqrt;
dNumberSqrt = sqrt(12334567879809644532341346578669);
and when you need to display it