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
M

MKC002

@MKC002
About
Posts
98
Topics
47
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Example of WCF web service with https
    M MKC002

    Is there any example to convert a WCF web service from http to https.

    WCF and WF csharp wcf tutorial

  • Use OLE
    M MKC002

    Thanks for confirmation Is there any example available in VC++ Can you please give some link

    C / C++ / MFC com help

  • Use OLE
    M MKC002

    I want to open excel file contents in my own window, not in excel window. Is that possible with excel automation?

    C / C++ / MFC com help

  • Use OLE
    M MKC002

    CreateFromFile hangs my program. If excel file contains some password and i call CreateFromFile for that file, it asks me to enter password. If i click on cancel button and do not enter the password then my program hangs. It gives retry/switch-to message. How to solve this problem.

    C / C++ / MFC com help

  • Use OLE
    M MKC002

    I want to show excel file contents in my own window

    C / C++ / MFC com help

  • Use OLE
    M MKC002

    To preview xls file i call CreateFromFile or CreateFromClipboard and it works But if xls file has password and i do not enter it then my program hangs. It gives switch to/retry message. Is there any way to solve this problem

    C / C++ / MFC com help

  • Best approach to compare files
    M MKC002

    Hi, Thanks for your reply. FindFirst/Next file will give me file name. Here i asked about the approach i.e. container and logic to implement comparision which should be faster and reliable.

    C / C++ / MFC

  • Best approach to compare files
    M MKC002

    If there are some directories and each directory contains some files then i want to make a program which will compare each file of any directory with each file of all directories. Can someone suggest me a best approach which works faster and dont miss any comparision.

    C / C++ / MFC

  • How to Use WCF service
    M MKC002

    To use WCF service in c# windows application there is option to add service reference (pass url) and use it. But i did not find any such option in VC++. Can you guide me how to use it in VC++.

    WPF csharp tutorial c++ wcf

  • Radio button text color not set
    M MKC002

    I tried to use given example but the text color for radio button does not set. The background color of radio button is set. I noticed if i create a dialog box application in visual studio 2008,add one radio button and set its text color in OnCtlColor then the text color does not set.

    C / C++ / MFC c++

  • Radio button text color not set
    M MKC002

    I have dialog base application, dialog box contains one radio button. to set the text color of radio button HBRUSH CtestDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { ...... // TODO: Change any attributes of the DC here if (pWnd->GetDlgCtrlID() == IDC_RADIO1) { pDC->SetTextColor (RGB(128,0,0)); // blue } ..... } This code works fine and radio button color gets changed but if i use xp theme in this project then text color of radio button does not set. To set xp theme, i add one custom resource which contains testdlg

    C / C++ / MFC c++

  • Radio button text color not set
    M MKC002

    I have dialog base MFC application Dialog box contains only one control(radio button) to change the text color of radio button i use oncltcolor(WM_CTLCOLOR) BUT it's now working i am using xp theme is there any solution

    C / C++ / MFC c++

  • Set the font for text
    M MKC002

    I found the reason why.I am using XP theme. Below url also says that http://www.go4expert.com/forums/showthread.php?t=16457&page=2 If i remove xp theme then color is set for radio text. Is there any solution for that problem.It's require for me to use XP theme. XP theme

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <assembly
    xmlns="urn:schemas-microsoft-com:asm.v1"
    manifestVersion="1.0">
    <assemblyIdentity
    processorArchitecture="x86"
    version="5.1.0.0"
    type="win32"
    name="appname.exe"/>
    <description>appname</description>
    <dependency>
    <dependentAssembly>
    <assemblyIdentity
    type="win32"
    name="Microsoft.Windows.Common-Controls"
    version="6.0.0.0"
    publicKeyToken="6595b64144ccf1df"
    language="*"
    processorArchitecture="x86"/>
    </dependentAssembly>
    </dependency>
    </assembly>

    C / C++ / MFC c++ debugging help

  • Set the font for text
    M MKC002

    The font is set but text color is not set in first program. This is the problem with radio buttons. If i add a new radio button then also text color is not set. But for static control the text color is set. It means something needs to be supported for radio button

    C / C++ / MFC c++ debugging help

  • Set the font for text
    M MKC002

    Both are dialog based applications. Test program contains only one radio button. In main program there are lot of controls and work against them

    C / C++ / MFC c++ debugging help

  • Set the font for text
    M MKC002

    I am trying to set the font for radio button using below code in my project but font does not set. Font and color does not set for text on radio button. I have a dialog base application (MFC), at dialog there are some radio buttons In dialog class, Oninitdialog() i use CFont* pFont = GetDlgItem( IDC_RADIO1 )->GetFont(); LOGFONT LogFont = { 0 }; pFont->GetLogFont( &LogFont ); LogFont.lfItalic = TRUE; LogFont.lfWidth = 9; LogFont.lfHeight = 12; LogFont.lfWeight = FW_BOLD; memcpy(LogFont.lfFaceName,"Verdana",7); m_StaticFont.CreateFontIndirect( &LogFont ); GetDlgItem( IDC_RADIO1 )->SetFont( &m_StaticFont ); in header file CFont m_StaticFont; To set the color for text on radio button, i use OnCtlColor (WM_CTLCOLOR) HBRUSH CtestxmlDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { /// if(pWnd->GetDlgCtrlID() == IDC_RADIO1) pDC->SetTextColor(RGB(255,0,0)); //// } But when i use above code in a test program it works. Please suggest what's wrong. I have debug my project and found OnCtlColor calls and it set the text color also. Please help.

    C / C++ / MFC c++ debugging help

  • Dependencies for Visual STudio8
    M MKC002

    I create MFC application and run its exe on a system where .net is not installed. What dll i need to copy on new system.

    C / C++ / MFC csharp c++

  • How to use SYSTEM function for specified time
    M MKC002

    Thanks for your reply. To play with thread is little difficult. Please give any link to kill thread which is safe and does not result in any type of crash.

    C / C++ / MFC json tutorial

  • How to use SYSTEM function for specified time
    M MKC002

    our server maintains large amount of data. Everyday new files/folders created on it. A serevice set some special properties for files/folders. One service checkes if some property does not exist in file/folder then move the file to another location for further processing. Here one service call GetFileAttributes and GetVolumeInformation for disk where file will be move. From this function we get volume label and other information to store in database. Sometimes system hangs and i need to reboot. I noticed system hangs due to GetVolumeInformation. So, can i set time limit for this function. If after given time i dont get volume label then move the file to another disk.

    C / C++ / MFC json tutorial

  • How to use SYSTEM function for specified time
    M MKC002

    how to use system API for given time some times a when i call system api, my computer hangs and i need to reboot can i use for given time

    C / C++ / MFC json tutorial
  • Login

  • Don't have an account? Register

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