Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

[vbruntime] Implement Interaction.CreateObject(). #48

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ Namespace Microsoft.VisualBasic
Return String.Join(" ", Environment.GetCommandLineArgs)
End Function
Public Shared Function CreateObject(ByVal ProgId As String, Optional ByVal ServerName As String = "") As Object
'TODO: COM
Throw New NotImplementedException
Dim ObjType as Type = Type.GetTypeFromProgID(ProgId, ServerName)
Return Activator.CreateInstance(ObjType)
End Function
Public Shared Sub DeleteSetting(ByVal AppName As String, Optional ByVal Section As String = Nothing, Optional ByVal Key As String = Nothing)

Expand Down