Skip to content

Article Writing

Discuss writing articles, add your requests for articles here, or search for ideas for a new article.

This category can be followed from the open social web via the handle article-writing@forum.codeproject.com

5.4k Topics 12.4k Posts
  • Code for implementing Recovery Control

    algorithms help tutorial
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Nonfitting text in controls

    tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Programmatically Detecting System Hang

    sysadmin tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • g++ Windows

    c++ visual-studio linux tutorial
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • How to disable/enable "Start->Shut Down"

    json tutorial
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • C++ -Like Inheritance in ATL

    c++ tutorial wpf wcf oop
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Installing Network Protocol Driver

    sysadmin json help announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Where can I find ASP code for rate pages

    question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • algorithm

    algorithms data-structures
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Resource editor

    learning
    2
    0 Votes
    2 Posts
    1 Views
    U
    What you are looking for is probably a quite complex control - maybe even an ActiveX Control container. Drag'n'drop stuff is not my favorite. There is an ATL sample called "VBLite", which does this and is available on the net. You may however also take a look at the "DHTML Editing component". This ActiveX is available with IE4 and comes with IE5. There is something called a "DHTML Editing SDK" with some nice VB and MFC samples. You actually wind up with a HTML page. You can make your own controls by creating DTC controls or wrapping HTML elements as absolutely positioned layers. I'm developing a Dialog Editor using it. So far it's looking good. Find it at http://www.viksoe.dk under "WTL / Projects"... regards bjarke
  • Events and Methods for IE Explorer Bar

    help tutorial
    2
    0 Votes
    2 Posts
    4 Views
    U
    You do that by setting up an event handler and listen for "document complete" etc events... To set a new URL, you use the IWebBrowser2 interface, or even the DHTML Object model (DOM) it exposes. You get the browser interface passed in the IObjectWithSite::SetSite call. For a sample of an ATL implementation of an IE Desk band, look at my site: http://www.viksoe.dk under "ATL, Projects". regards bjarke
  • Antialiasing code?

    graphics game-dev question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • How to capture the desktop on fastest way?

    question c++ performance tutorial
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Drawing spline in device context

    c++ graphics help
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • size directory

    question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Like ICopyHook, but for files ...

    help
    2
    0 Votes
    2 Posts
    1 Views
    S
    Its on code project HERE Stephen
  • I Want pWnd->PaintTitleBarWithMyColor(COLOREF MyColor) Please !!!

    question
    2
    0 Votes
    2 Posts
    0 Views
    M
    You'll need to handle the WM_NCPAINT message, and draw the title bar when that message arrives.
  • XML

    c++ xml sysadmin
    3
    0 Votes
    3 Posts
    2 Views
    M
    My problem is connecting the memory object (IStream, I thought, but a CMemFile may be as good, or better) with the xml object (I guess you can use the DOM stuff)and the IE object. I know little/nothing about the available functionality of IE and DOM, except for a quick flick through the documentation. I was hoping some one knew (and had used?) the stuff and could point me in the correct direction.
  • EXE/DLL size

    question
    2
    0 Votes
    2 Posts
    3 Views
    S
    Lots of reasons your exe/dll may be verrrry big. One major reason is that you may be compiling for Debug. Another major reason is that MFC bloats your program. Here is an exert from a map file I just created for my project. In order to understand the map file you need to also understand a little about assembly language and how the linker puts program object/library files together. Your program is divided into two parts (or segments) -- CODE and DATA. The CODE segment contains all the program instructions that you write in your program as well as all statically-linked libraries and object modules. The DATA segment contains all global and static data objects. Data objects you put as members of a class go into DATA segments, while the code for the methods of the class go into the CODE segment. As you can see from the map file I show below, there can be more than one DATA and more than one CODE segments. The term "segments" I use here does not mean the same in the Win32 environment as it did in the old 16-bit Win3.1 and DOS environments. In Win32, there is really only one segment defined in the computer -- thus the name "flat memory model". If you have 128 meg RAM in your computer, Win32 allocates all of it to one gigantic segment, then partials it out as CODE or DATA to various processes and threads. For more in-depth and more accurate details you need to read several large books or get yourself a Ph.D in computer science. The last part of the map file shows the size of each public symbol (functions and data objects) that is statically linked into your exe/dll. The names are "mangled" mainly because of the C++ capability to have two or more methods with the same name within either two different classes or within the same class. Each compiler vendor (Microsoft and Borland for example) have different alrogithms for producing mangled names, and the map files will reflect this difference. For MSVC, the mangled name consists of the original name you gave it in your class plus the names of the arguments and some additional funny-looking characters. About the only useful thing I have seen the map file used for is to figure out what function a program is crashing in. It doesn't say a thing about where the real bug is, but only where the bug got so bad that the program eventually failed. Hope this helps a bit (or byte). Timestamp is 39d29f39 (Wed Sep 27 20:30:33 2000) Preferred load address is 00400000 Start Length Name Class 00
  • Text File viewer, large text files

    c++ help
    2
    0 Votes
    2 Posts
    3 Views
    S
    MSDN contains a free version of MS WordPad with source as an example program. It should be on your MSDN CD or you can probably download it from www.msdn.microsoft.com.