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
P

Prem Kumar

@Prem Kumar
About
Posts
179
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Hard Disk
    P Prem Kumar

    How does 'GetVolumeInformation' and 'GetDriveType' sound ?

    C / C++ / MFC

  • yahoo IM style view
    P Prem Kumar

    probably embedd a IE control in the top portion ?? Although I think that Yahoo has a customized editor.

    C / C++ / MFC html design tutorial

  • Window Color
    P Prem Kumar

    Have a look at GetSysColor/SetSysColors which change the whole systems colors(which is not exactly a good idea!) The next thing is to go in for painting the non-client areas(ex the title bar is non client area) for some of the things and for others you need a custom control.

    C / C++ / MFC

  • MFC messages
    P Prem Kumar

    OK, It's something like this, the Message Pumps are associated with a thread and not a window. Inside this thread the messages are dispatched to different windows based on the windows handles. So your code is posting back to the same thread which does not have a message pump (while(GetMessage(..) {...}) so what ever messages you post will never be executed! Now you have two options 1. Post the message to the main thread and have it executed there by using PostThreadMessage. 2. Provide a message Pump (this will mean you will need to re-tailor your existing thread function to use the message pump and not the simple while) Hope this helps..

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

  • MFC doc/view with non-file-based documents
    P Prem Kumar

    Just process on new document and populate the data in the document. As for the file name just forget it, only visible trace that it is still being used it in the main frame, you can remove it by removing the bit FW_ADDTOTITLE in the mainframe's OnCreate.

    C / C++ / MFC question csharp c++ performance

  • An application run
    P Prem Kumar

    Probably what you mean is if atleast one application instance is running ? What you need is to just enumerate the process list and look at the exe or the program name. Process32First, Process32Next.

    C / C++ / MFC question tutorial

  • How can I hide the "Printing" dialog that comes up when a report is sent off to
    P Prem Kumar

    You can probably, write your own pagination and printing or track down the point at which dialog is being shown in the mfc code and then override the function in your own class and copy from the original function and remove the dialog calling code.

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

  • Flicker and Cwnd
    P Prem Kumar

    Try to show the information by testing for a time lag of say about 500 ms to 1 sec. I think windows tooltips are also implemented in this manner

    C / C++ / MFC help question

  • reading and writing raw data to an access database from c++
    P Prem Kumar

    Use void SetFieldValue( LPCTSTR lpszName, const COleVariant& varValue ); 1. Put the byte array into a safearray of type VT_U1 2. Embed the array in a variant 3. Pass it to the above function

    C / C++ / MFC question database c++ com graphics

  • splitter wnds
    P Prem Kumar

    Use CSplitterWnd::SetRowInfo & SetColumInfo to set the minimun and required sizes for the pane.

    C / C++ / MFC tutorial question

  • worrisome exception
    P Prem Kumar

    Hi, first chance exceptions are generally c++ exceptions like possibly in MFC, you can safely ignore them.

    C / C++ / MFC help question design debugging

  • Disabling a NT account
    P Prem Kumar

    HI Abhi, Use the foll function, its quite simple NetGroupDelUser

    C / C++ / MFC question windows-admin help learning

  • An ADO problem
    P Prem Kumar

    std::string id=(char *)(_bstr_t)m_pRecordSet->GetCollect(L"id"); Hi I think that GetCollect returns a variant, and in case of NULL values, this variant has a VT type of VT_NULL,you could check for it.

    C / C++ / MFC help question

  • question about Carlos Antollini ADO classes !!!
    P Prem Kumar

    You can use bookmarks for storing the current position. As far as i know is no way currently to jump to a random position. But I guess you could always use 'Find', if you know any thing about the record you want to jump to(ex primary keys are usually automunbers)

    C / C++ / MFC question game-dev html database com

  • ADO recordset object
    P Prem Kumar

    If you are using static or keyset cursor then the recordset count you get from the property 'RecordCount" is valid else you need to go from record to record manually and then use the property.

    C / C++ / MFC database

  • Image
    P Prem Kumar

    what is your doubt ? Is it abt retrieving the image from the database or show the bitmap on the screen ? If it is abt the retrieving and assuming that you are using binary you can use the method GetChunk to read the binary data from the database. If abt the bitmap, there are a lot of articles here at CP.

    C / C++ / MFC question database

  • File Management
    P Prem Kumar

    Use MoveFile BOOL MoveFile( LPCTSTR lpExistingFileName, // file name LPCTSTR lpNewFileName // new file name );

    C / C++ / MFC question

  • Setting Account name and password for accessing a remote PC
    P Prem Kumar

    Use 'WNetAddConnection2'.

    C / C++ / MFC question design hardware

  • Calling Access File
    P Prem Kumar

    Ok, first of all *.mdb files are not executables! But I think what you want to do is open the mdb file in Access ?? Is that right ? If so you can use ShellExecute(..) ; with lpOperation as "open".

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

  • SelectObject() Rules
    P Prem Kumar

    If you are using MFC, every thing is taken care of if all the objects are local objects. But if you are programming in SDK you need to make calls to DeleteObject with the resource handle.

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