好的,所以我的两种语言都不太流利,如果这是一个简单的问题,请原谅我。我正在尝试将一些示例代码从C#转换为VB.net,因为我更精通VB.Net,并希望将其实现到现有项目中。我有一个简单的课程和一个简单的表格。我在events.required的继承行中出现错误,不确定如何解决。
C#很棒的MyClass C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.handpoint.api;
namespace WindowsGettingStartedApp
{
class MyClass : Events.Required
{
Hapi api;
Device device;
private Form1 UIClass;
public MyClass(Form1 form1)
{
InitApi();
UIClass = form1;
}
public void InitApi()
{
string sharedSecret = "0102030405060708091011121314151617181920212223242526272829303132";
api = HapiFactory.GetAsyncInterface(this).DefaultSharedSecret(sharedSecret);
// The api is now initialized, and we've set a default shared secret
// The shared secret is a unique string shared between the card reader and your mobile application.
// It …Run Code Online (Sandbox Code Playgroud)