Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
J

Jesse Ezell

@Jesse Ezell
About
Posts
13
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CWnd & CDC
    J Jesse Ezell

    Have you tried using CWnd::OnDraw(CDC *pDC)? ================== The original message was: I have CWnd* wnd;
    And I have CDC* pDC;

    How can I draw wnd to pDC?

    C / C++ / MFC question

  • lock toolbar position after docking
    J Jesse Ezell

    The whole point of Dockable toolbars is so that they can be moved. The best thing to do is not to lock them. I can't see any reason why it would ultimately benefit the user in the end. Users like to be able to arrange things any way they want.

    C / C++ / MFC question

  • New cool Windows 2000 Open File Dialogs with MFC
    J Jesse Ezell

    In any case, it might be safer to use the old dialog box, unless you are planning to make your program only W2000 compatible. The other option is to use an OS check and open a different box for each setting...however, this might complicate things depending on how the API for the new boxes works. It may auto-detect for you, but you never know. Best thing is to get the docs from MS and then implement it.
    ================== The original message was: Does anybody know what to do to use the new Open File Dialog
    that is now standard on Windows 2000 ? My app works fin on
    W2000 but the Open File Dialog looks exactly the same way as
    under Windows 95/98/NT.

    Thanks

    Article Writing c++ question

  • New cool Windows 2000 Open File Dialogs with MFC
    J Jesse Ezell

    In any case, it might be safer to use the old dialog box, unless you are planning to make your program only W2000 compatible. The other option is to use an OS check and open a different box for each setting...however, this might complicate things depending on how the API for the new boxes works. It may auto-detect for you, but you never know. Best thing is to get the docs from MS and then implement it.
    ================== The original message was: Does anybody know what to do to use the new Open File Dialog
    that is now standard on Windows 2000 ? My app works fin on
    W2000 but the Open File Dialog looks exactly the same way as
    under Windows 95/98/NT.

    Thanks

    Article Writing c++ question

  • How do I use stl in a static lib?
    J Jesse Ezell

    For one, you aren't directly including the header file as far as I can tell...that might have something to do with it. Of course, it might just be easier to use CString instead of string (it is what MFC uses anyway and it basically offers the same functionality).
    ================== The original message was: I'm trying to create a static lib with a simple class
    that has a single method that returns a std::string. I
    can build the static library just fine but when I link
    my application against the static library I get an error
    about multiple defines of std::basic_string.

    Has anyone done this successfully?

    Thanks,
    Brad
    -------------------------------------------------------

    My header file:#if !defined( __CTest_h__ )
    #define __CTest_h__

    class CTest {
    public:
    CTest();
    ~CTest();

    std::string Try( void );
    };

    #endif

    ------------------------------------------------------
    The corresponding .cpp file:

    #include "StdAfx.h"
    #include "CTest.h"

    CTest::CTest(
    void
    ) {
    }

    CTest::~CTest(
    void
    ) {
    }

    std::string CTest::Try(
    void
    ) {
    std::string strResult = "testing";

    return strResult;
    }

    --------------------------------------------------------

    is #included in StdAfx.h

    C / C++ / MFC c++ question testing beta-testing help

  • C++ Development Time Tracking
    J Jesse Ezell

    That wouldn't be much harder. Just enumerate the windows to search for a title contianing "Microsoft Visual C++" on one of them, and then store the window's HWND value and use a thread to constantly check the status of the window and update the time (maybe every minute or so, so that it doesn't take up too much proccessor time...or every 5 seconds or so...it all depends on how accurate you really want to be). The title comes in something like the following format: "PROJECT NAME - Microsoft Visual C++ [CURRENT FILE INFORMATION]". When the PROJECT NAME part changes, or the window is closed, or the window and its children are not active, the clock stops counting for the listed project. On program exit and entrance, it would load past project values and save new project information. A simple combo-box interface could allow you to view the status of each project, reset timers, etc. ================== The original message was: I think he means something different.
    No everybody will remember to press the buttons.
    It should work automatically - when your open a project it should start, when you close - finish. Also take care abourt right counting time while your another application is active and VC++ is sleeping

    ==================
    The original message was:

    I don't know if there is an add-in, but it wouldn't be that hard to write yourself a quick little program that tracks the time (select the project from a dropdown list or something and then hit the start button to start tracking, hit the stop button when you go on break etc.). It might take 15 minutes or so to write.

    ==================
    The original message was:

    I write a lot of "smallish" custom C++ apps and am always interested in understanding the actual amount of time spent on each project. (Perhaps similar to the File-Properties information provided in Microsoft Word.)

    Is there a DevStudio Add-In that tracks time in a project/workspace? If not, I'd be interested in other (preferably automated) approaches.

    C / C++ / MFC c++ question workspace

  • Drawing text with "antialiasing" effect
    J Jesse Ezell

    There isn't a big reason for this anymore...windows will automatically anti-alias text if users want it to. However, check out the Win32 source of the Gimp program for an example (http://user.sgic.fi/~tml/gimp/win32/).

    Article Writing graphics

  • Drawing text with "antialiasing" effect
    J Jesse Ezell

    There isn't a big reason for this anymore...windows will automatically anti-alias text if users want it to. However, check out the Win32 source of the Gimp program for an example (http://user.sgic.fi/~tml/gimp/win32/).

    Article Writing graphics

  • Beginer ques on programmng practice
    J Jesse Ezell

    It would definately take less processor time to pass a reference or a pointer, so this would be the best option in that case. However, you can also have a dialog box class that accepts a Cperson class in its constructor, and then is permenantly linked with that Cperson or a copy of it. It is mostly a matter of opinion and depends on what you intend to use the dialog for. ================== The original message was: Hi

    I am displaying information of a simple Cperson class
    in a dailog box - which is better practice to pass the
    information by parameter to the dailog via DDX or to
    pass a pointer to the Cperson object and let the dailog
    box extract the data ?

    Thanks

    C / C++ / MFC question

  • array[-1]
    J Jesse Ezell

    It would only be useful in a small number of cases. Say, if you wrote a peice of code like this: char text[100]; char *ref = text[1]; if(*ref == ref[-1]) return FIRST_EQUALS_SECOND; However, I don't see why you would want to do that in any normal case. ================== The original message was: this is certainly beyond my knowledge to learn that array[-1] is valid in some cases.
    i am shocked, stunned and desparate !
    i am now examing an existing project and i am suspecting this is the cause of all evils.
    but now somebody said this is perfectly legal.
    okay okay..
    let me draw the picture bigger.
    there is this array of struct defined like this..
    struct someStruct array[100] and i am assigning like this
    array[-1].field1 = something.

    so so..is this so called access the return address or read parameter directly ??
    arghhh !!! what am i talking about ?? some1 pls resurrect me !!

    C / C++ / MFC data-structures question

  • C++ Development Time Tracking
    J Jesse Ezell

    I don't know if there is an add-in, but it wouldn't be that hard to write yourself a quick little program that tracks the time (select the project from a dropdown list or something and then hit the start button to start tracking, hit the stop button when you go on break etc.). It might take 15 minutes or so to write. ================== The original message was: I write a lot of "smallish" custom C++ apps and am always interested in understanding the actual amount of time spent on each project. (Perhaps similar to the File-Properties information provided in Microsoft Word.)

    Is there a DevStudio Add-In that tracks time in a project/workspace? If not, I'd be interested in other (preferably automated) approaches.

    C / C++ / MFC c++ question workspace

  • Multiple File Formats Loading and Saving
    J Jesse Ezell

    I need to add a text import feature to the file save / load command on a RichEditView MDI application. Any suggestions?

    C / C++ / MFC question

  • Rich Edit Ctrl in dialog?
    J Jesse Ezell

    Yes, there is a mention in the help files, you must have missed it though, since it is indirect. In order to use a RichEdit control, you must make sure that the RichEdit control DLL is loaded to do this, make sure that before your dialog or property sheet is loaded, you call AfxInitRichEdit()

    C / C++ / MFC c++ help question learning
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups