Search:

Type: Posts; User: mikeman118

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,770

    I also have one other problem. When I try to...

    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...
  2. Replies
    5
    Views
    1,770

    Ok, I've found out what was wrong: I was...

    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...
  3. Replies
    5
    Views
    1,770

    Taskbar Icons

    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...
  4. Replies
    4
    Views
    3,927

    So how do you set up the window as a ratio? Or...

    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...
  5. Replies
    4
    Views
    3,927

    Resize Listview

    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.
  6. I just tried the following: #include...

    I just tried the following:

    #include <iostream>
    #include <fstream>
    using namespace std;


    int main()
    {
    cout << "hi";
  7. In fact I'm using both the > operator. ...

    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,...
  8. I have tried making a new project, although I'll...

    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.
  9. Overloaded Operator Causes Unresolved External Symbol

    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...
  10. Replies
    22
    Views
    3,052

    Thanks for the help everyone! Wow, this kind...

    Thanks for the help everyone!

    Wow, this kind of got stuck in the middle of an argument...
  11. Replies
    22
    Views
    3,052

    I agree, however if the application was doing...

    I agree, however if the application was doing some large task it would be bad to have more than one open.
  12. Replies
    22
    Views
    3,052

    Thanks for the help. However, would this work...

    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.
  13. Replies
    22
    Views
    3,052

    Check For Open Programs

    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...
  14. Replies
    2
    Views
    900

    What program are you using to edit the .rc file? ...

    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...
  15. Replies
    6
    Views
    1,089

    You guys need to put the FAQ for stopping the...

    You guys need to put the FAQ for stopping the program from quitting on the homepage or something - it just gets asked so much.
  16. Replies
    3
    Views
    2,282

    double dbl = 1.00; int doubleToInt = (int)dbl;

    double dbl = 1.00;
    int doubleToInt = (int)dbl;
  17. I'm just posting this to keep other's computers...

    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...
  18. Replies
    26
    Views
    4,546

    What I've done in the past is I've sorted the...

    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...
  19. Replies
    1
    Views
    3,130

    Yes, in fact I believe it is quite simple (it's...

    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...
  20. Replies
    10
    Views
    2,605

    Okay, I've just realized the problem (I think):...

    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:
    ...
  21. Replies
    10
    Views
    2,605

    Well putting the HWND as NULL certainly won't fix...

    Well putting the HWND as NULL certainly won't fix the problem
  22. Replies
    10
    Views
    2,605

    >>hAboutDialog =...

    >>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...
  23. Replies
    11
    Views
    1,990

    Since this is C++, I might recommend using...

    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.
  24. Replies
    10
    Views
    2,605

    First of all, I don't see any definitions for...

    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 =...
  25. Thread: Menu in C++

    by mikeman118
    Replies
    6
    Views
    3,657

    #include #include...

    #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...
Results 1 to 25 of 185
Page 1 of 8 1 2 3 4