Skip to content

COM

COM discussions

This category can be followed from the open social web via the handle com-ba4ced8e@forum.codeproject.com

4.8k Topics 11.7k Posts
  • 0 Votes
    6 Posts
    3 Views
    L
    OK, I think I understand your problem. However, I'm afraid I have never looked into PDB file so cannot offer any suggestions on that. You may find this article[^] useful as he goes into the structure of vtables in C and how they match with C++ classes. Just say 'NO' to evaluated arguments for diadic functions! Ash
  • 0 Votes
    4 Posts
    3 Views
    L
    Hello Altankhuu, >> First, I use GetIDsOfNames() and it returns the dispid of XAxis without any problem. But when I call Invoke with that dispid there is an error “Access violation at address …”. The sequence should be : IGraph.GetIDsOfNames() to obtain dispid of IGraphAxes property. IGraph.Invoke() (with above dispid) to obtain IDispatch* of IGraphAxes. IGraphAxes.GetIDsOfNames() to get dispid of XAxis. IGraphAxes.Invoke() (with above dispid) to obtain IDispatch* of XAxis. You then call GetIDsOfNames() and Invoke() on the returned XAxis IDispatch pointer. - Bio.
  • Quering a COM object in .net

    csharp database help tutorial question
    5
    0 Votes
    5 Posts
    6 Views
    C
    Yeah, I tried using reflection, but this still requires you have a reference to the underlying type. In the end I just switched the project to VB.net, and it works. I still find it surprising that there is something vb.net can do that c# can't. Anyway, thanks for your input.
  • Shell Extension

    linux help question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • 0 Votes
    2 Posts
    2 Views
    C
    DETAILS Good day.. I know it's quite a long shot, but I have this problem.. And I've ran out of places to ask for help for.. I am supposed to make my webbrowser control scroll depending on what scrollType I pass. Well, everything worked fine... that is, in IE6. My code crashes in IE7 at get_parentWindow, get_scrollHeight (and perhaps also in scrollBy). They all return access violations. Trying other solutions on the net didn't help, IE7 still crashes with calling functions (like get_scrollTop and etc)... I already tried scrolling using IHTMLElement2. But no luck... I also tried IHTMLDocument3->get_documentElement and used that for scrolling, still... no sunshine in sight. Is this an IE thing? or are there settings I failed to look at? Does anyone know by chance a way to work around this? it's really not good to just restrict users from using my scrolling functions if they don't use ie6. i am kinda desperate now. will be forever grateful for the help.
  • CoInitialize return code

    com architecture question
    3
    0 Votes
    3 Posts
    3 Views
    A
    I know that and I haven't been able to find this code either. 3 is supposed to be a success code (bit 0 == 0), but apparently it is not. I am using SUCCEEDED, but the program kept failing further down the line, so I ran it thru the debugger and this is the HRESULT CoInitialize() returns. alex 'Architecture is music frozen in space.'
  • Invoke methods in OCX in c#

    csharp tutorial question
    2
    0 Votes
    2 Posts
    3 Views
    _
    An OCX is nothing but a COM component. To access COM methods in managed code, you must do COM interop. «_Superman_» I love work. It gives me something to do between weekends. Microsoft MVP (Visual C++) Polymorphism in C
  • 0 Votes
    2 Posts
    2 Views
    L
    Please do not post the same question in more than one forum. It's time for a new signature.
  • 0 Votes
    5 Posts
    5 Views
    P
    Thanks for a very interesting link. Though, I was not able to reproduce the behavior, even with the code in the article. Even if I put, unique or ptr as attribute to my parameter ([in, string, unique]) I get the same error code. I can pass a IUnknow* with 0 as value, both with unique and ref (which should be impossible), but a wchar_t* cannot be passed, regardless of the unique attribute or not. /Per
  • WSACancelBlockingCall

    help com sysadmin tools json
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • ActiveX control developement--help

    wpf com sysadmin help
    2
    0 Votes
    2 Posts
    2 Views
    Y
    m_spClientSite cau u tell me how to define this"m_spClientSite"? 3ks,best regards!:confused:
  • 0 Votes
    2 Posts
    3 Views
    K
    You can check if a safe array helps instead of vector.
  • Question about IOleObject::GetClipboardData

    com question visual-studio help
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Object Initialization Problem

    help question
    5
    0 Votes
    5 Posts
    2 Views
    S
    I thought that IDgnWords was a class that you wrote because COM classes should be created trough their class factory using the CoCreateInstance() function, or queried to another class that you have already instantiated using the QueryInterface() method. If there isn't a CLSID_ trough that you can instantiate the IDgnWords, probably you should first instantiate another class and then query it for the one you need... I tried searching the internet for documentation about IDgnWords, but I didn't find anything. Dragon Naturally Speaking is a payed product: have you got any documentation from Nuance? Have they give you any technical contact to ask for? I'm sorry, but I don't know what else to tell you :(
  • Error in Excel Add in

    com help question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • How to call C# function from unmanaged C++ code.?

    csharp c++ help tutorial question
    2
    0 Votes
    2 Posts
    2 Views
    S
    Read Unmanaged to Managed calls (C++ to C#) without Regasm[^]; it seems to be just what you are looking for... Cheers, Sauro
  • Why CreateWindowEx() function failed on 64 Bit window XP

    json
    5
    0 Votes
    5 Posts
    4 Views
    L
    am 2009 wrote: Is there any setting required to work CreatewindowsEx() function in 64 Bit windows. No it works the same. The error code you recieved would imply that something may be wrong with the WNDCLASS Structure[^]. Make sure that you are initializing it to zero: WNDCLASS yourclass = {0}; The error code may also be caused by using a 32 bit DWORD parameter rather than a DWORD_PTR. Rules for Using Pointers[^] Best Wishes, -David Delaune
  • file name in coleinsertdialog

    tutorial
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Type mismatch when calling a VB.NET COM class from VB6

    com help csharp wpf
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • How to develop 64 bit application using VS2005

    tutorial
    6
    0 Votes
    6 Posts
    3 Views
    A
    Hi I used DllRegisterServer() overrided function for registering 64 bit COM DLL. I register DLL at Software\Microsoft\Internet Explorer\Toolbar key. It works fine for 32 bit IE, but not work for 64 bit IE. So is there any other key for registering BHO for 64 bit IE. Thanks abm