ComWrapper 0.0.9
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package ComWrapper --version 0.0.9
NuGet\Install-Package ComWrapper -Version 0.0.9
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ComWrapper" Version="0.0.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ComWrapper" Version="0.0.9" />
<PackageReference Include="ComWrapper" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ComWrapper --version 0.0.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ComWrapper, 0.0.9"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ComWrapper@0.0.9
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ComWrapper&version=0.0.9
#tool nuget:?package=ComWrapper&version=0.0.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ComWrapper
This library provides a C# wrapper for CPM/OCX. It allows developers to interact with the API using C# while handling COM interop.
Define class with ProgId attribute and partial keyword
// for COM
[ProgId("XA_Session.XASession.1")]
internal partial class XASession
{
public XASession() => EnsureDispatch();
}
// for OCX controls
[ProgId("KHOPENAPI.KHOpenAPICtrl.1")]
internal partial class KHOpenApi
{
public KHOpenApi(nint windowHandle) => EnsureDispatch(windowHandle);
}
Using the wrapper class
// for COM
var com = new XASession();
com.ConnectServer("api.ls-sec.co.kr", 20001);
// for OCX, you need to provide a window handle
var windowHandle = Handle; // for Winforms
var windowHandle = new WindowInteropHelper(Application.Current.MainWindow).EnsureHandle(); // for WPF
var ocx = new KHOpenApi(windowHandle);
ocx.CommConnect();
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|