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

Martin Hinchy

@Martin Hinchy
About
Posts
10
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ATL free threaded question
    M Martin Hinchy

    Thanks. That was the problem. Regards Martin

    ATL / WTL / STL c++ question com design testing

  • ATL free threaded question
    M Martin Hinchy

    VC++ 6.0 SP5 I have an MFC dialog application and I wanted to expose a COM interface for it so that other apps may call the interface while the dialog is up and running. I wanted to make the application free threaded so that calls to the interface from multiple clients would not be serialised. I have done this by clicking on the Insert menu in VC6 and selecting 'New ATL Object...'. Once the object was inserted into the project I then edited stdafx.h and replaced _ATL_APARTMENT_THREADED with _ATL_FREE_THREADED. I then changed the ATL class so that it derives from CComObjectRootEx. Testing has shown that when multiple clients call the interface the calls are all serialised because the ATL object in the dialog application is running on the UI thread. Is there any way in an MFC app to force COM to pick an RPC-managed pool thread rather than do all the work on the UI thread? Regards Martin

    ATL / WTL / STL c++ question com design testing

  • Marshaling interface pointers in DirectX
    M Martin Hinchy

    I came across some MFC sample code recently that uses DirectShow to render MPEG files in a static control. The sample code creates a number of DirectShow interface pointers in the main dialog (eg. IGraphBuilder, IMediaSeeking, IMediaControl etc) and then calls methods on these interfaces from a worker thread. My question is, shouldn't these interface pointers all be marshalled to the worker thread using something like CoMarshalInterThreadInterfaceInStream()? I didn't think that pointers to COM interfaces could be shared amongst threads unless they were marshalled, or is DirectX different? Note: The calls to the DirectShow interfaces from the worker thread seem to work perfectly fine. Regards Martin

    COM question c++ com graphics game-dev

  • Scrolling Images
    M Martin Hinchy

    Operating System: Windows XP Language: VC++ 6.0 Does anyone know of a good method to scroll images into a window (similar to how PowerPoint scrolls slides into view during a PowerPoint presentation). In particular I'm trying to develop an application that: 1. Loads images from disk and stores them in memory. 2. Scrolls a previously loaded image onto a window (bottom to top) at a configurable speed, over the top of any image that is already there. 3. Keeps processor usage to a minimum I've done some experimenting with GDI+ using Graphics::DrawImage() to redraw the image onto the screen a couple of pixels at a time but it sends the processor usage on my computer up to 100%. Regards Martin

    C / C++ / MFC graphics performance c++ winforms

  • IMAPI Sample Code
    M Martin Hinchy

    Does anyone have a small C++ example on how to use the Image Mastering API (IMAPI) in Windows XP? In what file does the type library appear in? There is an executable called imapi.exe in the System32 directory but it does not contain the type library. Regards Martin

    COM tutorial c++ json question

  • IMAPI Sample Code
    M Martin Hinchy

    Does anyone have a small C++ example on how to use the Image Mastering API (IMAPI) in Windows XP? In what file does the type library appear in? There is an executable called imapi.exe in the System32 directory but it does not contain the type library. Regards Martin

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

  • Programmatically burning a CD
    M Martin Hinchy

    Does anyone know if there is a way to programmitically burn a CD from a Visual C++ application running under Windows XP? I have checked with Roxio and they don't expose their burning engine to programs. Martin

    C / C++ / MFC c++ question

  • Using JavaScript to Handle ActiveX Events
    M Martin Hinchy

    I have an ActiveX grid control on one of my web pages that fires events when cells need updating. Is there a way to specify an event handler in JavaScript for these events? I've found plenty of examples of how to do it using vbscript but nothing for JavaScript. For example in vbscript if you want to add an event handler for an ActiveX object with an id called 'Grid' and an event called 'UpdateCell' then it seems you just create a subroutine called Grid_UpdateCell() on the page containing the object. Is there a way to do something similar in JavaScript? Regards Martin

    Web Development tutorial javascript css com question

  • Loading XML strings into a DHTML Active X Control
    M Martin Hinchy

    I have an MFC based dialog application that contains a DHTML ActiveX control. I want to be able to pass an XML string to the control and have the XML displayed in the control. Does anyone know if there is a way to do this? I have tried passing an XML string to the control using the CDHTMLEdit::SetDocumentHTML() method but it does not work. It will only correctly display HTML strings. Due to my lack of success with the DHTML control I decided to replace the control with the Microsoft Web Browser ActiveX control to see if I could load XML strings into this control. I eventually got this to work ok but only after saving the XML to a file on the harddrive and then calling CWebBrowser2::Navigate(), passing the Navigate method the name of the file just saved. Even though this works I would prefer to be able to pass the XML as a string straight into the control without having to save the xml to disk first. On the MSDN website there is some example code which shows how to load HTML content directly from a stream into the WebBrowser control. This does not work though with XML. Does anyone know why? Martin Hinchy

    Article Writing tutorial c++ html com xml

  • Loading XML strings into a DHTML Active X Control
    M Martin Hinchy

    I have an MFC based dialog application that contains a DHTML ActiveX control. I want to be able to pass an XML string to the control and have the XML displayed in the control. Does anyone know if there is a way to do this? I have tried passing an XML string to the control using the CDHTMLEdit::SetDocumentHTML() method but it does not work. It will only correctly display HTML strings. Due to my lack of success with the DHTML control I decided to replace the control with the Microsoft Web Browser ActiveX control to see if I could load XML strings into this control. I eventually got this to work ok but only after saving the XML to a file on the harddrive and then calling CWebBrowser2::Navigate(), passing the Navigate method the name of the file just saved. Even though this works I would prefer to be able to pass the XML as a string straight into the control without having to save the xml to disk first. On the MSDN website there is some example code which shows how to load HTML content directly from a stream into the WebBrowser control. This does not work though with XML. Does anyone know why? Martin Hinchy

    Web Development tutorial c++ html com xml
  • Login

  • Don't have an account? Register

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