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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
H

HawkSoftware

@HawkSoftware
About
Posts
10
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Passing an interface through an ATL interface
    H HawkSoftware

    Mark, Thanks for the great response. I will work in the direction you have suggested. I am kind of weak in the COM thread model details. I have created my CurrentStateInterface with the VC++ default attributes which is apartment. Do I need to reimplement the interface through class wizard as free threaded or is there an easier way to change the threading model? It seems fairly trivial to make a singleton object and to instantiate the free threaded version of the XML DOM. Do you know of any example code that is implemented like you have laid out, with a singleton object? Thanks again for the great information!

    COM c++ html sysadmin xml discussion

  • Passing an interface through an ATL interface
    H HawkSoftware

    Hey Gang, I am on the verge of panic today because I need to quickly develop a solution for a distributed analysis program. Thanks for taking the time to respond if you get a chance. I have an exe that uses an XML DOM to represent the status of a system. The DOM is wrapped in an ATL interface that provides some convenience routines for manipulating the data in the DOM. For discussion I am going to refer to the ATL interface as the CurrentStateInterface. I would like to share access across computers to an instance of the CurrentStateInterface. Ideally remote systems would be able to connect to the server application through an ATL interface and request the CurrentStateInterface. Once the interface is marshalled to the remote system, the remote system could make calls to the CurrentStateInterface which would manipulate the data in the DOM on the server. I have read a few articles from the MSDN. One article suggested several possible solutions: Singleton objects, File monikers, CoMarshlInterface/CoUnMarshalInteface, Custom class objects, Custom monikers. I know some of these would work better than others. From what I have read, the file monikers look like an appropriate solution but I would look to someone with more experience for guidance. I am hoping that someone has done something similar and can share his/her knowledge and experience. Any good suggested reading would be appreciated also. Thanks very much for your time! Hawk

    COM c++ html sysadmin xml discussion

  • Passing an interface to an ATL interface
    H HawkSoftware

    Hey Gang, I am on the verge of panic today because I need to quickly develop a solution for a distributed analysis program. Thanks for taking the time to respond if you get a chance. I have an exe that uses an XML DOM to represent the status of a system. The DOM is wrapped in an ATL interface that provides some convenience routines for manipulating the data in the DOM. For discussion I am going to refer to the ATL interface as the CurrentStateInterface. I would like to share access across computers to an instance of the CurrentStateInterface. Ideally remote systems would be able to connect to the server application through an ATL interface and request the CurrentStateInterface. Once the interface is marshalled to the remote system, the remote system could make calls to the CurrentStateInterface which would manipulate the data in the DOM on the server. I have read a few articles from the MSDN. One article suggested several possible solutions: Singleton objects, File monikers, CoMarshlInterface/CoUnMarshalInteface, Custom class objects, Custom monikers. I know some of these would work better than others. From what I have read, the file monikers look like an appropriate solution but I would look to someone with more experience for guidance. I am hoping that someone has done something similar and can share his/her knowledge and experience. Any good suggested reading would be appreciated also. Thanks very much for your time! Hawk

    C / C++ / MFC c++ html sysadmin xml discussion

  • How to specify an ATL server location at runtime
    H HawkSoftware

    Thats great! Thanks Mark.

    COM question c++ sysadmin tutorial workspace

  • Passing parameters to an HTML page
    H HawkSoftware

    For Pete's sake! <.HTML> <.HEAD> <.XML id="data" src="d:/NOWTrak/database/system/CurrentProbeStates.xml"> <.XML id="format" src="TransformCurrentState.xsl"> <.SCRIPT FOR="window" EVENT="onload"> CurrentState.innerHTML = data.transformNode(format.XMLDocument); <./SCRIPT> <.BODY TOPMARGIN=0 LEFTMARGIN=0 BGPROPERTIES="FIXED" BACKGROUND="ATMINOWTRAK.JPG"> <.DIV id="CurrentState" style="position:absolute;left=200;top=10;font-family:'Arial';font-size:12;font-weight:bold"> <./DIV> <./BODY> <./HTML>

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

  • Passing parameters to an HTML page
    H HawkSoftware

    That doesn't look to good. Here is the file again: . . . . . . CurrentState.innerHTML = data.transformNode(format.XMLDocument); . . .

    .

    . .

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

  • Passing parameters to an HTML page
    H HawkSoftware

    Derek, Thanks for that input. I have just started tinkering with ASP but I think that would require a server right? Here is the scoop. I have a MFC C++ application that uses the WebBrowser2 interface. I am navigating to an HTML file that looks like this: CurrentState.innerHTML = data.transformNode(format.XMLDocument);

    The "TransformCurrentState.xsl" needs to parse through the "CurrentStates.xml" which is a database of several dozen elements. The user can identify which element to be parsed but I don't have any way to tell the script which element is to be parsed. Ideally there would be a way to tell this script something like: building=1 floor=1 room=1. Right now I am doing some pretty ugly stuff. I am generating a small xsl file that is included by the "TransformCurrentState.xsl". It works but it feels wrong so I know there must be a better way. Any more thoughts? Thanks, Steve

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

  • Passing parameters to an HTML page
    H HawkSoftware

    I have a C++ program that has some context information for an HTML page. How can I pass parameters to an HTML page? Thanks, Hawk

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

  • How to specify an ATL server location at runtime
    H HawkSoftware

    I am developing an ATL server that will run on several remote systems. How can I pick a server to connect to at run time? I know that I can use DCOM configuration to specify the implementation location before running my application but I want to allow a user to select from a list of computers or IP address that house the server while the client is running. How do I tell ATL where the server is located at run time? Thanks.

    COM question c++ sysadmin tutorial workspace

  • Connecting to a remote ATL server
    H HawkSoftware

    I am developing an ATL server that will run on several remote systems. How can I pick a server to connect to at run time? I know that I can use DCOM configuration to specify the implementation location before running my application but I want to allow a user to select from a list of computers or IP address that house the server while the client is running. How do I tell ATL where the server is located at run time? Thanks.

    C / C++ / MFC question c++ sysadmin workspace
  • Login

  • Don't have an account? Register

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