CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: drm15

Page 1 of 7 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    6
    Views
    7,326

    Re: CoCreateInstance returns E_NOINTERFACE

    Thanks for responding - I tried this, but it doesn't seem to correct my problem. I will keep trying. I probably should start over in ATL!
  2. Replies
    6
    Views
    7,326

    Re: CoCreateInstance returns E_NOINTERFACE

    I know this is an old post, but I am running into the exact same problem. How do you go about registering an exe properly? I have tried regsvr /r, but it doesn't seem to correct the problem. Is...
  3. Replies
    9
    Views
    1,318

    Re: COM Registration Question

    Now I am really confused and stuck - can anyone provide an example or tutorial for how to make an ATL exe with interfaces? I have steped through the basic examples and I cannot figure out how to get...
  4. Replies
    9
    Views
    1,318

    Re: COM Registration Question

    A specification document I was given before I started coding contained interface names and their associated GUID's. The fine print stated that GUID's could be unique, but that the interface names...
  5. Replies
    9
    Views
    1,318

    Re: COM Registration Question

    To answer both questions with one reply:

    "<your_COM_server>.exe /regserver " - This is what I was doing, but it does not produce any errors.

    and

    Yes, I had called CoInitialize and...
  6. Replies
    9
    Views
    1,318

    Re: COM Registration Question

    OS: Windows XP SP2 (32-bit)

    I guess I should be a little more clear at where this is happening. Initially I tried to do this in a simple client test application, but that was failing so I tried...
  7. Replies
    9
    Views
    1,318

    COM Registration Question

    I have an ATL COM Exe with many interfaces. Every time I try to start my COM server I get an error.

    If I use this method:


    CComPtr<IContextManager> icm;
    hr =...
  8. Replies
    9
    Views
    1,117

    Re: COM returns array of bytes

    To create the SafeArray you can do the following:


    // Create the SAFEARRAY
    USES_CONVERSION;
    SAFEARRAY *pSA;
    SAFEARRAYBOUND dimensions[1];
    dimensions[0].lLbound = 0;
    dimensions[0].cElements =...
  9. Replies
    9
    Views
    1,117

    Re: COM returns array of bytes

    So what you are saying is that you have a managed dll (C#) which is being called by unmanaged C++. I believe this will help you:



    // Managed Code (C#) includes
    #pragma warning (disable: 4278)...
  10. Replies
    9
    Views
    1,117

    Re: COM returns array of bytes

    I'm confused - did you create a dll in C# that you hope to include in your client and make calls to it? If so, then you just need to reference it within your project.

    Or

    Do you have a C++ dll...
  11. Replies
    9
    Views
    1,117

    Re: COM returns array of bytes

    If you are trying to call something via a COM interface, you would probably want an HRESULT as the return value and pass a byte array pointer to the function all. I am not clear on all the details,...
  12. Replies
    1
    Views
    4,510

    Re: Marshal.GetIDispatchForObject

    Anyone have any ideas?
  13. Replies
    1
    Views
    4,510

    Marshal.GetIDispatchForObject

    Does anyone know if it is possible to create an IDispatch pointer out of a C# class to pass to a C++ object expecting an IDispatch pointer? I assume I have to create an interface, but how do I pass...
  14. Replies
    9
    Views
    1,216

    Re: Event Programming Question

    I have attached my ATL class to try to make more sense. If anyone has an idea of how my base class can fire the events within my ContextParticipant class I am open to anything.

    Thank you all for...
  15. Replies
    9
    Views
    1,216

    Re: Event Programming Question

    I apologize if my terminology is not correct (I assume it is not). I believe you are correct, I have implemented a connection point container. I am trying to follow the tutorials for creating an...
  16. Replies
    9
    Views
    1,216

    Re: Event Programming Question

    Thank you all for your help thus far. I am still very confused however, and maybe it is because I am not being clear (or just am very confused and have my process implemented incorrectly).

    My...
  17. Replies
    9
    Views
    1,216

    Re: Event Programming Question

    How does the base class call functions within another class?

    I created public virtual functions which call the corresponding Fire functions within my ATL class. Should I have created the virtual...
  18. Thread: time function

    by drm15
    Replies
    4
    Views
    834

    Re: time function

    Take a look here: http://msdn2.microsoft.com/en-us/library/kys1801b(VS.71).aspx

    Remarks:
    The asctime function converts a time stored as a structure to a character string. The timeptr value is...
  19. Thread: time function

    by drm15
    Replies
    4
    Views
    834

    Re: time function

    Found this on MSDN:



    // crt_asctime.c
    #include <time.h>
    #include <stdio.h>

    struct tm *newtime;
    time_t aclock;
  20. Replies
    9
    Views
    1,216

    Event Programming Question

    I have a project that is essentially a notifier to listening applications. The base class is a generic C++ class that simply manages data. When the data changes it needs to notify the listeners...
  21. Thread: ATL COM Question

    by drm15
    Replies
    2
    Views
    895

    Re: ATL COM Question

    Thanks - I added this to my code and it seems to have resolved my issue.
  22. Thread: ATL COM Question

    by drm15
    Replies
    2
    Views
    895

    ATL COM Question

    How do I keep my programming running once it has started? I have my "WinMain" which was automatically implemented for me, but I "overrode" the Run function so that I could add another call within...
  23. Replies
    7
    Views
    981

    Re: Application Error

    I recompiled everything in debug just now, connected to it through the remote debugger, logged off the workstation and everything works fine (i.e. no error). When not running normally (not connected...
  24. Replies
    7
    Views
    981

    Re: Application Error

    I am using VS2003 - when I try to remote debug it the debugger drops right before the dialog box is displayed.
  25. Replies
    7
    Views
    981

    Re: Application Error

    How do you debug something that only shows at logout, after the debugger has been closed?
Results 1 to 25 of 175
Page 1 of 7 1 2 3 4





Click Here to Expand Forum to Full Width

Featured