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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Calling Erik, the deskband wizard

Calling Erik, the deskband wizard

Scheduled Pinned Locked Moved C / C++ / MFC
c++comsysadminalgorithmsxml
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Amit Dey
    wrote on last edited by
    #1

    Hello Erik, To continue on the topic of dynamic toolbands and XML: As I told you, I'm writing a similar app. The problem is with parsing the XML. I tried to use Ben Bryant's CMarkup class, but it says that XML is not well formed no matter what I do.+ I'm a COM programmer and would like to use MSXML parser to parse the XML. I do have a XML parsing class, taken much after Stingray's OTL toolkits XML class. The problem is in searching the XML tags. It can only find the first matching tag but not beyond it. Look, I know you must be very busy writing a gadzillion of articles for guys like me, but I would like you to lookover my XML class and suggest improvements. Of course I can't post it to you right away, but well, I give you fair warning!:) Anyway, for the toolband the general idea is to create a toolband and embed a toolbar(rebar)in it. On OnCreate of toolband, I create my buttons with relevant icons and text. This occupies half of the toolband's area. In the other half I would like to dynamically create buttons based on XML data. After the toolband's created it retrieves an XML file from the web server and parses it. Then in accordance with the data it creates buttons(links really). on clicking buttons I just call Navigate()on the interface I get from SetSite() to navigate to the appropriate url. I'm using a stl class to store URLs. Is this what you are doing too? Also, if you have seen Yahoo companion, you'd know the kind of dropdown buttons I'm talking about. basically dropdown with tracks states too. Is there already any class like this here at CP? I really don't wanna code the button class from scratch,unless I have to. What's the easy way out?;P TIA.

    E F 2 Replies Last reply
    0
    • A Amit Dey

      Hello Erik, To continue on the topic of dynamic toolbands and XML: As I told you, I'm writing a similar app. The problem is with parsing the XML. I tried to use Ben Bryant's CMarkup class, but it says that XML is not well formed no matter what I do.+ I'm a COM programmer and would like to use MSXML parser to parse the XML. I do have a XML parsing class, taken much after Stingray's OTL toolkits XML class. The problem is in searching the XML tags. It can only find the first matching tag but not beyond it. Look, I know you must be very busy writing a gadzillion of articles for guys like me, but I would like you to lookover my XML class and suggest improvements. Of course I can't post it to you right away, but well, I give you fair warning!:) Anyway, for the toolband the general idea is to create a toolband and embed a toolbar(rebar)in it. On OnCreate of toolband, I create my buttons with relevant icons and text. This occupies half of the toolband's area. In the other half I would like to dynamically create buttons based on XML data. After the toolband's created it retrieves an XML file from the web server and parses it. Then in accordance with the data it creates buttons(links really). on clicking buttons I just call Navigate()on the interface I get from SetSite() to navigate to the appropriate url. I'm using a stl class to store URLs. Is this what you are doing too? Also, if you have seen Yahoo companion, you'd know the kind of dropdown buttons I'm talking about. basically dropdown with tracks states too. Is there already any class like this here at CP? I really don't wanna code the button class from scratch,unless I have to. What's the easy way out?;P TIA.

      E Offline
      E Offline
      Erik Thompson
      wrote on last edited by
      #2

      Since you're doing just simple parsing, you can use MSXML 1.0+ which ships with IE5+ (Maybe even IE4,IE4.01). To check to make sure you have valid XML just open the file in IE and see if it loads properly. Dynamic and static buttons are both obtainable. You can simplify it with 2 toolbars or fanagle it with 1 toolbar making sure not to overlap button ID's. How you are planning to do it is the way I have already done it. As for the yahoo companion question about menu states, I don't have any information on that. -Erik Cheers, -Erik ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ My thoughts are my own and reflect on no other.

      1 Reply Last reply
      0
      • A Amit Dey

        Hello Erik, To continue on the topic of dynamic toolbands and XML: As I told you, I'm writing a similar app. The problem is with parsing the XML. I tried to use Ben Bryant's CMarkup class, but it says that XML is not well formed no matter what I do.+ I'm a COM programmer and would like to use MSXML parser to parse the XML. I do have a XML parsing class, taken much after Stingray's OTL toolkits XML class. The problem is in searching the XML tags. It can only find the first matching tag but not beyond it. Look, I know you must be very busy writing a gadzillion of articles for guys like me, but I would like you to lookover my XML class and suggest improvements. Of course I can't post it to you right away, but well, I give you fair warning!:) Anyway, for the toolband the general idea is to create a toolband and embed a toolbar(rebar)in it. On OnCreate of toolband, I create my buttons with relevant icons and text. This occupies half of the toolband's area. In the other half I would like to dynamically create buttons based on XML data. After the toolband's created it retrieves an XML file from the web server and parses it. Then in accordance with the data it creates buttons(links really). on clicking buttons I just call Navigate()on the interface I get from SetSite() to navigate to the appropriate url. I'm using a stl class to store URLs. Is this what you are doing too? Also, if you have seen Yahoo companion, you'd know the kind of dropdown buttons I'm talking about. basically dropdown with tracks states too. Is there already any class like this here at CP? I really don't wanna code the button class from scratch,unless I have to. What's the easy way out?;P TIA.

        F Offline
        F Offline
        Felix Cho
        wrote on last edited by
        #3

        For your XML parsing problem, have you checked out the IXMLDOMNode::selectNodes() method?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

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