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
M

Mel Stober

@Mel Stober
About
Posts
23
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to maximize child windows
    M Mel Stober

    I didn't put it in that class, and that's why it probably did not work. Thanks for your suggestion.

    C / C++ / MFC c++ tutorial question

  • Passing data from any app to Visual C++ COM objects
    M Mel Stober

    You could put them into a SAFEARRAY and pass it as one argument in a VARIANT.

    C / C++ / MFC c++ com xml question

  • Understanding ASM
    M Mel Stober

    Using assembly in programs was fun in the old MS DOS 6.XX days, but now things have become so complicated, and compilers so good at optimizing C/C++ code, that its not really worth while for most Windows programs. But, if you really want to venture into assembly, the first "must have" book is by Peter Norton, although I don't know if his books are still in print or not. There are lots of ways to learn, including viewing the assembly languate that your compiler produces. You can do this by selecting Projects | Settings | C++ Tab, then change the Category to "Listing Files" and in the Listing File Type select one of the items that include assembly code.

    IT & Infrastructure c++ java question career learning

  • Understanding ASM
    M Mel Stober

    Assembly is not portable from one type of computer operating system to another, for example from a PC running MS Windows to a Sun computer running UNIX. So if you write a neat piece of code to optimize your program under Windows 2000, and later decide to port it onto a unix box, you will have to completly rewrite the assembly module. The same code written in C/C++ "might" be ported with no code changes (it depends on the program and what it is doing.) With assembly, that is a WILL not a MIGHT.

    IT & Infrastructure c++ java question career learning

  • HTML Tabs
    M Mel Stober

    I don't know if it is possible on this form, but some other forms let us add html tags to pretty-up the code that we post. For example: [code] class MyClass { }; [/code] When the above example is displayed, the text between the tags are aligned and tabbed something like what you would see in the VC6 IDE.

    Site Bugs / Suggestions html visual-studio tutorial

  • how to make Visual C++ Components
    M Mel Stober

    Select File | New | MFC ActiveX ControlWizrd, create the ActiveX control. When the compiler compiles it, the last thing it does is register it as an ActiveX component, which also includes it as a component. Thats the easy part. The hard part is creating the ActiveX control! There's a tutorial in MSDN (Circie) that is a simple illuratration of how to do that. There are also whole books devoted to this topic.

    C / C++ / MFC question c++ tutorial

  • How to use MFC CDialog in a DLL ?
    M Mel Stober

    I tried your suggestion, put that code in my dialog's constructor and compiled the dll. Then in my app, I added the dialog's *.h file, but when I tried to compile my app, I got and error about an undefined symbol in the dialog box's header file: #ifdef _USRDLL #define DllExport __declspec( dllexport ) #else #define DllExport __declspec( dllimport ) #endif class DllExport CMyDlg : public CDialog { // Construction public: enum { IDD = IDD_MYDIALOG_DIALOG }; I know that IDD_MYDIALOG_DIALOG is defined in the dll's resource.h file. Do I also have to include it in my app's *.cpp ?

    C / C++ / MFC help c++ tutorial question

  • string compare
    M Mel Stober

    If you look at an ascii chart, or print their decimal values, "0" = 48 and "_" = 95.

    C / C++ / MFC question

  • how to make Visual C++ Components
    M Mel Stober

    If you just want to add a class from one of your projects into the gallery, in the Class View tab, right-click the name of the class, and select "Add To Gallery"

    C / C++ / MFC question c++ tutorial

  • unnamed registry keys
    M Mel Stober

    How do you get the value of an unnamed key value? In regedit it is diaplayed as "(Default)". I've tried RegQueryValueEx(hKey, "(default)", 0, &type, (unsigned char*)buf, &bufsize) but it returns 2. I've also tried to RegEnumKey() and it gets the key name ok, but it just refuses to get the value.

    C / C++ / MFC windows-admin question

  • casting problems
    M Mel Stober

    That problem has existed on every Intell computer that I know of for the last 30 years. Its not really Intell's fault, but rather the nature of the beast. Many numbers cannot be represented exactly by floating-point math due to the way they are calculated. It has something to do with powers of 2, but I don't recall the exact calculation. Here's an article, if you can wade through it. http://www.math.grin.edu/~stone/courses/fundamentals/IEEE-reals.html

    C / C++ / MFC help tutorial

  • WinCE Help Files
    M Mel Stober

    I need to create "Help Topics" for each of my WinCE application programs that run on PocketPC 2002 using eVC++ 3.0 compiler. On desktop programs use WinHelp.exe, but that program does not exist on the PPC device. Does anyone know how to do this?

    C / C++ / MFC c++ help tutorial question

  • PostQuitMessage in WinCE 3.0
    M Mel Stober

    No I did not. Instead, I have the application what was spawned create a file if it successfully terminates. Then I check for the existance (or absence) of this file to determine the program's status.

    C / C++ / MFC c++ question

  • PostQuitMessage in WinCE 3.0
    M Mel Stober

    PostQuitMessage() and PostMessage(WM_QUIT,...) do not seem to work in WinCE PocketPC. I have an MFC WinCE app that uses CreateProcess() and WaintSingleObject() to create another MFC process. When the created process exits, I need to capture its exit code. I use GetExitCodeProcess() to do that. GetExitCodeProcess() always provides an exit status of 0. If the created process is just a simple Win32 WCE app, the exit code is correct. Any hints ? Is there something I'm missing? Thanks for any responses.

    C / C++ / MFC c++ question

  • string tables
    M Mel Stober

    I know what a string table is and how to use it. My question is -- is it worth it? Do those strings remain on disk and LoadString() reads them from there, or are they really loaded into ram memory during program startup?

    C / C++ / MFC question performance tutorial

  • CStatic
    M Mel Stober

    Anyone have a CStatic control that has scrollbars? I could use CEdit with read-only, but it does not look very good on PocketPC.

    Article Writing question

  • dates
    M Mel Stober

    is there an html, xtml, javascript or something that has a date object for user input. I want to do something like this: Birth Date: But of course that doesn't work because there is no date input type that I know if.

    Web Development javascript html learning

  • CDialog and dll
    M Mel Stober

    I put a CDialog into a dll, exported the dialog class and attempted to call it from the application program. Ok so far. But the DoModal() method always returns -1. I stepped through MS DoModal() code and found out that it cannot find the template. When called from within the dll it works ok. I also tried passing the 'this' pointer in my app to the dialog's constructor, but that didn't help either. Any ideas how to make this work?

    C / C++ / MFC help tutorial question

  • All I want for Christmas is a better group box
    M Mel Stober

    Some great ideas! Now if only Bill Gates would agree to implement them (which I doubt). Maybe you or someone could write a new group control to do some of these things.

    C / C++ / MFC c++ question learning

  • CString and BSTR in WinCE
    M Mel Stober

    When assigning a CString to a BSTR, does CString contain a copy of the BSTR or is it a pointer to the same BSTR? If I later destroy the original BSTR does this make the CString unusable? Example: CString strAnotherCopy; BSTR b; b = SysAllocStringByteLen("Hello World", 12); strAnotherCopy = b; SysFreeString(b); At this point, is strAnotherCopy still valid?

    C / C++ / MFC tutorial question
  • Login

  • Don't have an account? Register

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