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

cagespear

@cagespear
About
Posts
56
Topics
18
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Convert Resource Names to IDs
    C cagespear

    Cedric Moonen wrote:

    you can recompile your project as many times as you like and the Ids won't be changed

    I was not referring to re-compilation changing the Ids, here's my case - My resource file has more than 30k records and there are lots of merge operations happening on RC because so many people are working on the same project everyday. A lot of times there is a clash on IDs on which a developer has to change the Ids to make them unique. That is why we were reluctant to use numeric IDs. May be there is no easy way to go about it, but we will/are trying to somehow use ID name itself and not numeric ID. Regards Cage

    C / C++ / MFC question c++ xml help learning

  • Convert Resource Names to IDs
    C cagespear

    You are right Cedric, I intended to convert "IDC_MYCONTROL" into its numeric ID equivalent. The reason - I didnt want to use numeric IDs directly was because they are generated by the compiler and may be duplicated/get changed while working on the resource file. Thanks a ton for taking an extra effort to understand a rather vague question posted by me(I should have given exact details, my bad). I had lost all hopes after Rane gave me an answer which certainly made me feel low about the question I asked. Thanks again! Cage

    C / C++ / MFC question c++ xml help learning

  • Convert Resource Names to IDs
    C cagespear

    Sorry if my query was vague. Perhaps, I deserved a "can you give more details" type reply rather than a rude "goto this URL and " As for your idea which is more constructive than Rane's, let me give some more detail. Ctrl IDs are autogenerated by compiler and may get over-written so I don't want to store them in the XML. What I was thinking is to store ID Names IDC_X1 in the xml and then retrieve the ctrl ID corresponding to the string "IDC_X1". May be it has a very simple solution which didnt click in my mind but is it "asking too much" or "getting my homework done" type question ? Thanks Cage

    C / C++ / MFC question c++ xml help learning

  • Convert Resource Names to IDs
    C cagespear

    Wow! that was really helpful. I don't think my issue was that "elongated". Anyways, I had an idea to do it myself but was looking out for a way which can save me from saving un-necessary info in xml apart from ctrl ID names. Thanks Cage

    C / C++ / MFC question c++ xml help learning

  • Convert Resource Names to IDs
    C cagespear

    I have a requirement in MFC where I have a number of controls whose names are stored in the xml file. I wish to fetch these id names from xml file, convert it to CWnd objects and then take some customization action like apply some backgrnd color and all. My problem is - how do I retrieve resource Ids when I have resource names ? Regs Cage

    C / C++ / MFC question c++ xml help learning

  • Create really long timers in MFC
    C cagespear

    Have put the timers now before leaving for weekend, hope eveything works good when I come back on Monday :)

    C / C++ / MFC c++

  • Create really long timers in MFC
    C cagespear

    Still works for me :) hope it doesn't shrink :-D

    C / C++ / MFC c++

  • Create really long timers in MFC
    C cagespear

    I hear you. I can make small timers, kill them and do 'settimer' repeatedly, but then being a lazy programmer - was thinking of skipping them and just have a one-shot timer :-D -Amit

    C / C++ / MFC c++

  • Create really long timers in MFC
    C cagespear

    :-D for the xtra '0' - Looks like I am already sleepy :zzz: :-D

    C / C++ / MFC c++

  • Create really long timers in MFC
    C cagespear

    well, actually your point is of great help to me. If it can store 49 days at max then I'll buy that as I only need it max for 24 hours which is considerably lesser. Thanks a ton! Cage

    C / C++ / MFC c++

  • Create really long timers in MFC
    C cagespear

    I have a requirement in my app where I need to take some action at lets say - 24 hours after the app has opened. Clear case of using timers, but timers take input in "milisecs", is it a nice idea to give timers with very high interval like 24 hours which will come out to be - 24 * 3600 * 100 milisecs. Regards Amit

    C / C++ / MFC c++

  • How to change icon appearing in taskbar in "grouped state" ?
    C cagespear

    Ok. so I just added 16 * 16 as well as 48 * 48 image sizes to my icon. I can see all 3 sizes - 16, 32 and 48 in my visual studio icon editor. But my problem still continues ... As I told you earlier - I can see the icon fine in the titlebar, in the icon which shows up when you do an alt+tab but I see the default icon(hand with videocamera) rather than my app icon in taskbar properly when I have more than 1 instances open for my app and windows xp has "grouped" them into 1 with its taskbar setting. 1 part which I missed earlier was even in the xplorer view, the icon for my app is that default one instead of original app icon. Thanks for your time, Regards Amit

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

  • How to change icon appearing in taskbar in "grouped state" ?
    C cagespear

    Okay. So, you mean to say I should have 3 sizes images embedded into the ico file ? The way I created the icon was to use create a 32 * 32 size icon. Btw - how can we see for an ico file - how many sizes does it support ? Thanks for the help, Cage

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

  • How to change icon appearing in taskbar in "grouped state" ?
    C cagespear

    Hi, I have an MFC app for which icon is displayed normally in all conditions except this - - When I open 2 instances of the app and Windows XP groups them into 1 single entity in taskbar, the icon displayed is something other than my app original icon. Any ideas regarding this ? (I'm already doing a SetIcon btw at my side) Regards Cage

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

  • unexpected behaviour of 'atof' and 'strtod'
    C cagespear

    Looks like it will take weeks to get through that doc [:)] Can you please explain in simple words what is the cause and resolution of this behavior if I may request so ?

    C / C++ / MFC

  • How to get rid of this ERROR
    C cagespear

    Can you try creating a file manually there ? Do you have the write access to the path?

    C / C++ / MFC help ios tutorial

  • How can I make the pop-up dialog resizable ?
    C cagespear

    Thanks!

    C / C++ / MFC question help

  • How can I make the pop-up dialog resizable ?
    C cagespear

    I have a modal dialog with following properties - Style - popup Border - Dialog Frame Max, min box are both None Titlebar - true System menu - true I am creating the modal dialog on click of a menu-item. The problem is that the dialog is not sizable. Am I missing something here ? Thanks Cage

    C / C++ / MFC question help

  • Some options to display HTML in a MFC control ?
    C cagespear

    I had considered them but wanted something which is as simple as an intelligent edit box which can render HTML, thought dialog or view was an overkill. Thanks for helping Hamid... Regards Cage

    C / C++ / MFC c++ html question

  • Some options to display HTML in a MFC control ?
    C cagespear

    Thanks Gary, this definitely gives me more options.

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