Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Dim objFirst As New MyFirstComponent() 'COM+ initialisation
  2. Dim RC As Boolean = objFirst.GetValue()
  3.  
  4. <ProgId("MyFirstComponent")> _
  5. <Guid("...")> _
  6. <ClassInterface(ClassInterfaceType.None)> _
  7. <Transaction(TransactionOption.Supported)> _
  8. Public Class MyFirstComponent
  9. Inherits ServicedComponent
  10. Implements IMyFirstComponent
  11.  
  12. Public Function GetValue() As Boolean Implements IMyFirstComponent.GetValue
  13. Dim objSecond As New MySecondComponent() 'COM+ initialisation
  14. Dim RC As Boolean = objSecond.GetValue()
  15. Return RC
  16. End Function
  17.  
  18. End Class
  19.  
  20. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  21. <assembly xmlns="urn:schemas-microsoft-com:asm.v1"
  22. manifestVersion="1.0">
  23. </assembly>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement