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
J

Jurgen Jung

@Jurgen Jung
About
Posts
18
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • REG_BINARY
    J Jurgen Jung

    Yes, if have looked in MSDN, but i haven't found your link. Thanks for your answer:thumbsup:

    Windows API question windows-admin announcement

  • REG_BINARY
    J Jurgen Jung

    I have been looking for an answer by google, but i got differnt answers, so i am hoping to get the ultimate answer here :-D What is the maximum size for a registry key of type REG_BINARY to read and write values in the windows registry ? Are there dependancies from the version of the os ?

    Windows API question windows-admin announcement

  • Is it possible for reflections for COM Exe or COM DLL?
    J Jurgen Jung

    I thought of something like this: http://msdn.microsoft.com/en-us/magazine/bb985086.aspx[^]

    COM com question

  • Is it possible for reflections for COM Exe or COM DLL?
    J Jurgen Jung

    You can use the same Informations, OLEViewer uses for his visual representation of objects and interfaces. Is that what you are looking for ?

    COM com question

  • COM Connection Points: Problem to call an function out of an sink class
    J Jurgen Jung

    If you have timelimits in learning and implementing the task, you better should use a high-level COM-Wrapper like MFC oder ATL, then you must not implement the standard-interfaced like IUnknown or IDispatch youself. I think there must be lots of examples on codeproject. The error-message tells you to implement the function OnShowMessageDlg(). This is a function call from the com-server into your com-client, so you need an implementation.

    COM com help question c++ sysadmin

  • Closing COM-Interop Application
    J Jurgen Jung

    Thanks for the tip. In the ...Designer.cs i modified Dispose

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
    
                if (m\_Session != null)
                {
                    while (true)
                    {
                        if (Marshal.ReleaseComObject(m\_Session) <= 0)
                        {
                            m\_Session = null;
                            break;
                        }
                    }
                }
                if (m\_System != null)
                {
                    while (true)
                    {
                        if (Marshal.ReleaseComObject(m\_System) <= 0)
                        {
                            m\_System = null;
                            break;
                        }
                    }
                }
    
            }
            base.Dispose(disposing);
        }
    

    but it doesnt't help, because the code isn't called at all, have i misunderstood you ?

    C# com question csharp

  • Closing COM-Interop Application
    J Jurgen Jung

    If have tried Form_Closed and/or Form_Closing event to call Marshal.ReleaseCOMObject(). But it doesn't help,

    C# com question csharp

  • Closing COM-Interop Application
    J Jurgen Jung

    At the end of the programm, INSIDE the COM-Component it is checked wether all references are "freed", this means if the refcounts are down to zero. The component is not only one single object, instead the library contains an object-hierarchy.

    C# com question csharp

  • Closing COM-Interop Application
    J Jurgen Jung

    I have a simple C#-(Windows-)Application. The Main-Form has two COM-Members. Working with this variables is ok, everything works as expected. When i close the application by the menu, i call Close() in the event-handler and everything is ok, but when i close by systemmenu or alt-f4 i got a com-leak. What is the reason, what is missing ?

    C# com question csharp

  • problem in query interface
    J Jurgen Jung

    Google for "Registration-Free COM" you will find lots of information, mostly by microsoft. The "trick" is done by using manifests and activation contexts. :)

    COM database com windows-admin hardware help

  • debugging problem
    J Jurgen Jung

    I have an application created with VS2005, consisting of some com-components created with VS2005. But one of the components is created by another department, so this component is still created with VS6. To find an error i have to debug from my application (VS2005) into this semi-external component(VS6). I have the symbols (.pdb) and the source files for the component and i succeed in stepping into the code of the component. But i can't watch any symbol. Has the PDB-format changed between this studio versions, are there any tricks to do the thing ?

    C / C++ / MFC help com debugging question

  • Is it to return the address of an element in a vector
    J Jurgen Jung

    I think you can't save this address, for example as a class member. If you add new elements to the vector it may need additional memory, which means he must allocate new memory for the whole vector and copy all his data. So every address to the old memory will be invalid afterwards.

    ATL / WTL / STL graphics question

  • Problem with "ActivationContext" and multithreading
    J Jurgen Jung

    I have an application(MFC), which should work with some "registration-free" com-components. I have extended the the application manifest and created a "com-manifest", as shown in the ms-examples. Everything works fine. BUT, one of my menuitems starts a userthread which needs one of the "registration-free" com-components, an ocx. The creation of the component succeeeds, but the QuickActivate() fails with an access violation. Some ideas what goes wrong? :sigh: Hoping for help, thank you.

    COM help c++ com question

  • Glass-Control
    J Jurgen Jung

    Thank you very much for your answer. I have already seen you article and thats the reason i think it MUST work, somehow. But i don't see how to create a glass-toolbar in a dialog-based application. In your extension the function CreateAeroToolBarCtrl() is only available for WTL::CFrameWindowImpl. Maybe i miss a thing, but i can't see. Hoping for a (positive) response. :rose: :) :rose: JJ

    Windows API c++ com question

  • Glass-Control
    J Jurgen Jung

    Is it possible to give glass to ONE single control (toolbar,...) of a dialog-based application, which is otherwise "normal" ?? I am using WTL and ATL with VC 2005. Maybe this glass-control can be separated into an activex-control.

    Windows API c++ com question

  • Multi threading in c++ [modified]
    J Jurgen Jung

    Where is the question/problem with COM. :confused:

    COM c++ sysadmin help

  • Passing Arrays in COM
    J Jurgen Jung

    As i can see, you want to pass a string, right ? Why don't use a "COM-String" ? [id(1), helpstring("method GetData")] HRESULT GetData([out, retval]BSTR* data); If you want to pass a "real" array, why don't you use a "COM-Array" ? [id(1), helpstring("method GetData")] HRESULT GetData([out, retval]SAFEARRAY* data);

    COM php com sysadmin data-structures help

  • Problem with OleCreateLinkToFile()
    J Jurgen Jung

    My problem is not the function OleCreateLinkToFile() itself, but the resulting pointer. ppvObj [out] Address of pointer variable that receives the interface pointer requested in riid. Upon successful return, *ppvObj contains the requested interface pointer on the newly created object. Is there any way to get the interface-pointer to the "real" com-object itself. For example, if i open a word document can i get the interface-pointer of the shown word.document or running word.application starting from the ppvObj-pointer. My understanding of OLE is not good enough to see the right way (hope there is one :~ ).

    COM com help 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