com programming - interface cannot use my struct

This is a discussion on com programming - interface cannot use my struct within the Windows Programming forums, part of the Platform Specific Boards category; hi im trying to pass a struct for a com interface member function i have no success so far.. please ...

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    6

    com programming - interface cannot use my struct

    hi

    im trying to pass a struct for a com interface member function
    i have no success so far.. please help thanks. here is what i tried to do.

    Code:
         interface IMyInterface : IDispatch
         {
              include "MyStruct.h";
              [helpstring("my method")] HRESULT mymethod([in] MY_STRUCT data);
         }

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    6

    ATL and structs - searching the answer

    okay looks like google has helped me
    searched some useful ATL resources
    for passing user defined structs to the function
    will try and work on this

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 12-03-2008, 03:10 AM
  2. sequential file program
    By needhelpbad in forum C Programming
    Replies: 80
    Last Post: 06-08-2008, 02:04 PM
  3. Looking for constructive criticism
    By wd_kendrick in forum C Programming
    Replies: 16
    Last Post: 05-28-2008, 10:42 AM
  4. Replies: 28
    Last Post: 07-17-2006, 12:35 AM
  5. Help please im stuck
    By ItsMeHere in forum C Programming
    Replies: 7
    Last Post: 06-15-2006, 05:07 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21