Click to See Complete Forum and Search --> : COM+ MTxAS Compilation Error


cnew
July 18th, 2001, 11:11 AM
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.

Cakkie
July 19th, 2001, 01:00 AM
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
slisse@planetinternet.be

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