CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2000
    Posts
    23

    COM+ MTxAS Compilation Error

    Greetings,

    Through the informative reponses of my recent posts, I was able to get a VB DLL on track from a MTS/COM to COM+ project. The only remaining issue is a compilation error. It reads as:

    Compile error: User-defined type not defined



    and is displaying this line of code:

    Dim mySecurity as MTxAS.SecurityProperty




    In reviewing the References, I have noticed that the MTS Type Library is no longer available - I've moved the project from Win98 to Win2K environment to reference the COMSVCS.DLL.

    Do I need to bring the MTXAS.DLL file along? - I suspect not.
    Does the MTxAS need to be changed to another security type reference that exists in COMSVCS.DLL?
    If so, where would I find this information?


    Cheers,
    Chris.



  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: COM+ MTxAS Compilation Error

    Security information is stored in the objectcontex, I'm not 100% sure, but I believe that it can be obtained by calling the GetSecurityContext (or something) of the objectcontext. For the specifics, check out MSDN.

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured