New topic: 

Using Managed (.NET2) DLL in RB

<http://forums.realsoftware.com/viewtopic.php?t=47118>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        Tgfs          Post subject: Using Managed (.NET2) DLL in 
RBPosted: Fri Mar 01, 2013 8:51 am                         
Joined: Thu Feb 28, 2013 4:20 pm
Posts: 1                I am trying to interface to a USB IC with the DLL 
provided by the manufacturer. They gave a VB.NET example to get started, but I 
am unsure how to set up the entry point of the DLL in RB.
Here is the beginning of their example:

Imports System
'//STEP 1: 
'// Add the DLL as a reference to your project through "Project" -> "Add 
Reference"
'// menu item within Visual Studio
Imports MCP2210  '//<---- Need to include this namespace
Module Module1
 Sub Main()
  '//Variables
  Dim MCP2210_VID As UInt32 = &H4D8  '// VID for Microchip Technology Inc.
  Dim MCP2210_PID As UInt32 = &HDE  '// PID for MCP2210
  Dim isConnected As Boolean = False  '// Connection status variable for 
MCP2210 
  '//STEP 2:
  '// Make an instance of the MCP2210.DevIO class by calling 
  '// the class constructor with the device VID and PID.
  Dim UsbSpi As MCP2210.DevIO = New DevIO(MCP2210_VID, MCP2210_PID)
  '//STEP 3:
  '// Navigate the DLL classes to find your desired function. In this case, 
  '// we choose to check the connection status.
  isConnected = UsbSpi.Settings.GetConnectionStatus()

I have used declare statements to access the functions, but of course they 
don't work because I have not set up the entry point (DevIO) properly.
Am I missing something simple?   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to