Thank you Salem. I'll make the modification that you have suggested and will look into the other areas that you have mentioned.
Type: Posts; User: CondorMan
Thank you Salem. I'll make the modification that you have suggested and will look into the other areas that you have mentioned.
Salem - these are the errors generated when I tried to compile the code:
------ Build started: Project: ProjectName, Configuration: Debug Win32 ------
Compiling...
Listing.cpp
c:\documents and...
I came across some code recently and would like to compile it. There's a .cpp file, along with a .dsp and .dsw file and they all have the same name. I use Visual C++ 2005 Express Edition and loaded...
I've been going through some tutorials and a book on C++ and in some, there is an interchange between the heap and free store terminology. One of them, however, says that they are not the same...
Yes, the Ternary Operator works nicely, but this interesting thread wouldn't have developed if abs() hadn't been brought up!
An easier way is not to use stdafx.h as it doesn't seem to be needed for your code. As I said, even when I set "Not Using Precompiled Headers" but left the reference to stdafx.h, it still generated...
As a newcomer, I'm a little confused.
I know that I must include <iostream> if I want to use cin or cout in C++. I looked at the reference cited by indigo0086 and it relates to abs() in the...
Thank you. That's what I figured. I wonder why The Shark had it there in the first place - unless the code was from something else (that did need stdafx.h) and he modified it to create an...
Thank you laserlight and Mario F.
The setting "Create/Use Precompiled header" was already at "not using precompiled headers"! I tried toggling it in both directions and closed down between...
Wow - after a lengthy session connected to the site, I've managed to install psdk. I've also added the following paths within Tools>Options>VC++ Directories:
Executable files - C:\Program...
Perfect - thank you.
I knew there had to be something different about Notepad which caused the inconsistency.
dwks - I've tried using the name of the executable, rather than the window title. It still doesn't pick up Calculator or Windows Task Manager.
Tonto - I'm aware of the MSDN site that you quoted...
I've been looking into FindWindow and have created the following code to illustrate:
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
if (FindWindow("Windows...
Thank you Darryl and Ken. I'll follow your instructions.
I have Visual C++ Express Edition and can't compile this code. It says that stdafx.h does not exist. If I comment out that line, it says that it can't find windows.h.
Is it possible for me to...
When I just used cin.get(), it didn't pause the console but when I used cin.ignore() before cin.get(), it did pause.
Thank you. It's nice to know that something works, but I prefer to know why!
I know about cin.get(), but why is it necessary to have the cin.ignore() before it in this case? I've used it before and not had to have cin.ignore() with it. What's specific about this example?
It will return the value that you entered, but then it will close down immediately. Try running it from the command prompt (Start>Run) or adding the lines
char response;
cin >> response;
...
My copy's marked correctly.
Thank you.
That's great - I'll have a go. Just to clarify, I assume that the:
<fileName> in ... ( NULL, fileName, IMAGE_ICON ...
and
<"install.ico"> in ... INSTALL_ICON ICON "install.ico" ...
are...
Apologies.
The original thread was started on 15 May 2006 and the final response was on 16 May 2006. Like many newcomers, I didn't read the forum-specific guidelines, but I will now! I woudn't...
[mod edit]This post refers to this thread:
http://cboard.cprogramming.com/showthread.php?t=79130
[/mod edit]
Hi veecee
I'm new to this board but have been visiting other C++ boards for a...