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
C

Chad Koehler

@Chad Koehler
About
Posts
15
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • MFC Printing Question
    C Chad Koehler

    You can always use memset(...)

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

  • get default printer name
    C Chad Koehler

    Look up the ::PrintDlg Win 32 API Function. There is a flag you can set to retrieve the default information. If you are using MFC, CPrintDlg offers the same functionality. You can get the information without displaying the dialog in either case.

    C / C++ / MFC help question

  • how to lock PC?
    C Chad Koehler

    Sounds fishy.... How exactly would you restore the computer so that 'you could start working again'?:~

    C / C++ / MFC help tutorial question

  • What color is gray?
    C Chad Koehler

    You can user the GetSystemColor() function to get any of the Windows system colors. You can use GetRValue() GetGValue() and GetBValue() to get the actual values (that you may or may not still need).

    C / C++ / MFC regex tutorial question

  • Another map question
    C Chad Koehler

    You can still use CString. CString csWrite(_T("Hello World")); CFile cFile; cFile.Open(...); cFile.Write((void*)(LPCTSTR)csWrite, csWrite.GetLength());

    C / C++ / MFC question performance help

  • Holy Dense... Codeguru Guru's
    C Chad Koehler

    If you are using the document/view architecture, look up CDocument::SaveModified() in MSDN.

    C / C++ / MFC c++

  • CListView is evil?
    C Chad Koehler

    take off the Auto-Arrange feature?

    C / C++ / MFC com algorithms debugging question

  • WINAPI Function - NT Only!?
    C Chad Koehler

    try adding the following to your code (before including windows.h and winuser.h) #define _WIN32_WINNT 0x0500 I needed it for the function InitializeCriticalSectionAndSpinCount()

    C / C++ / MFC json architecture question

  • Beginner question: Limit number of MDI pages open at one time...
    C Chad Koehler

    Do you have multiple document templates? Or multiple views off of the same document... Either way what you are asking is possible. Just two different ways to do it.

    C / C++ / MFC question com learning

  • how do I derive a class from a template class?
    C Chad Koehler

    hmmm....I don't know if there is anything wrong with what you are trying to do. My only thought would be that the CFlash is relying on the constructor of CFlash and for some reason, it is not accpeting that. FYI, this is how we do it. template class foo_template { }; class foo { }; class foo2 : public foo_template { };

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

  • How do i delete a record set???
    C Chad Koehler

    :confused: What do you mean by recordset? Do you mean you want to delete all of the data that is contained in your recordset? Or do you want to delete an entire table or view? CRecordset (which ODBCRecordset is based on) has a Delete() function, which will delete the currently selected record. You could just loop through each record and delete it from the database. If you want to drop an entire table or view, you should use the CDatabase class. Look at the ExecuteSQL() function.

    C / C++ / MFC question database com help

  • Debug assertion failed
    C Chad Koehler

    :confused: Are you just trying to iterate through the list? If so, there are easier ways, I will elaborate if needed. Otherwise, just remove the line that says 'delete pos;'. As was stated this is a variable declared on the stack. Trying to delete it will cause debug assertion errors. (Worse yet in release mode)

    C / C++ / MFC debugging performance question announcement

  • Opening a CRecordset derived class problem
    C Chad Koehler

    I think the problem may be in your DoFieldExchange() function...I can't think of anywhere else that the problem could be.

    C / C++ / MFC database help xml tutorial

  • Border Width of a Control
    C Chad Koehler

    Look at ::GetSystemMetrics() in MSDN... int xBorder = GetSystemMetrics(SM_CXBORDER); int yBorder = GetSystemMetrics(SM_CYBORDER);

    C / C++ / MFC question

  • Programmatically Run a Remote Process
    C Chad Koehler

    I have a system that runs multiple services on multiple servers. I have a program that will shutdown and restart a server. I need to know how I can run this program on each server programmatically from one of the servers? AKA: Remote Process

    C / C++ / MFC sysadmin 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