I also have one other problem. When I try to compile it without trying to create an object, it first told me that I was missing "mfc42d.lib". I searched for that file, found it, and added the...
Type: Posts; User: mikeman118
I also have one other problem. When I try to compile it without trying to create an object, it first told me that I was missing "mfc42d.lib". I searched for that file, found it, and added the...
Ok, I've found out what was wrong: I was including something that was already included, which I guess must cause problems. However, I have one more question. Now, I don't know if anyone will be...
Hi,
I have been trying to implement a taskbar icon into my application. I'm trying to use the class I found here. I so far just have the dialog show up, and create a CSysTrayIcon object. That's...
So how do you set up the window as a ratio? Or are you just saying you look at it and set it that way? Also, how do you know how much to change it? Does the WM_SIZE message contain the amount of...
Hi,
I have a realizable window with a list view in it. When the window resizes, I'd like to resize it as well. Is there an automatic way to do this, or do I have to do it manually? Thanks.
I just tried the following:
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
cout << "hi";
In fact I'm using both the << and >> operator. Here's the definition for one of the classes:
class Output
{
public:
int iWindowName;
HWND hwnd;
Output (void);
Output (int windowName,...
I have tried making a new project, although I'll try again because I may have changed something...
I have all of the platform SDK paths setup too, and I'm using Visual Studio 2008.
Once again I seem to be having unresolved external symbol errors for no reason. Here are the errors:
1>Main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class...
Thanks for the help everyone!
Wow, this kind of got stuck in the middle of an argument...
I agree, however if the application was doing some large task it would be bad to have more than one open.
Thanks for the help. However, would this work even if the program was hidden? (For example, if it was doing work in the background). By hidden I mean in the taskbar, but with no display window.
Hi,
Can anyone tell me how to check for open programs? For example, at the start of my program I would like to check if there is another instance of my program running. Does anyone know how to do...
What program are you using to edit the .rc file? Because if it's not Visual Studio, all it's doing is letting you know that it's been edited outside of Visual Studio. You need to click yes for it...
You guys need to put the FAQ for stopping the program from quitting on the homepage or something - it just gets asked so much.
double dbl = 1.00;
int doubleToInt = (int)dbl;
I'm just posting this to keep other's computers safe; what I mean by that is that when I follow that link, McAfee SiteAdvisor shows it as red, telling me that many of the downloads have...
What I've done in the past is I've sorted the vector, used vector.count() to find all how many times the first element appears. I then store that, and erase all of those that are the same. I then...
Yes, in fact I believe it is quite simple (it's been a while since I've used it, but I think this'll work):
CImg cImg ("img.tiff"); //Again, I haven't used this in a while so I may be declaring...
Okay, I've just realized the problem (I think): you're trying to use CreateWindow to make a window that's already there. You need to use the DialogBox() function, like this:
...
Well putting the HWND as NULL certainly won't fix the problem
>>hAboutDialog = CreateDialog(GetModuleHandle(NULL),MAKEINTRESOURCE(IDI_ABOUT),g_hwnd,AboutDlgProc);
You're trying to create it with g_hwnd, which I'm assuming is a global HWND...
Anyway, do you...
Since this is C++, I might recommend using vectors (search that in google), because they're much easier to use. But everyone else's way would work too.
First of all, I don't see any definitions for hMenu and hIcon, I'm assuming that they're in a header or that you didn't include them...
Anyway, I think I found your problem:
g_hwnd =...
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<iostream.h>
What's with all of these headers? At least change it to <iostream>. I can't believe this compiles, because you don't...