FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Author Topic: Registering the FTD2XX.DLL  (Read 201 times)

doctorwho8

  • Newbie
  • *
  • Posts: 4
    • View Profile
Registering the FTD2XX.DLL
« on: July 20, 2020, 07:06:25 PM »

Hello!
I found out about the FTD2XX.DLL library via the list which supports the VEE program, which is now supported by Keysight. And that user was able to access the features of the library to fully inform VEE of it, and do other things. However... In my case I sometimes see error messages that a particular method isn't available, yet that's what was selected.

Supposedly the library is supposed to be registered with the Dot-Net collector of such libraries inside Windows, but I've not found a clew as to how that should be done. I did note that the C# examples shown describe how to build from the source code, and that includes making the library available at build time, and including the XML file for interpretation by Visual Studio. I've also come across on the site a Labview example series. Well okay but I use VEE for my work.  8)
Logged

FTDI Community

  • Administrator
  • Sr. Member
  • *****
  • Posts: 443
    • View Profile
Re: Registering the FTD2XX.DLL
« Reply #1 on: July 22, 2020, 05:43:30 PM »

Hello,

Unfortunately we don't support Keysight VEE.

The standard IDE that we use is Microsoft Visual Studio.

You can find some basic software examples using this here:

http://www.ftdichip.com/Support/SoftwareExamples/CodeExamples.htm

Maybe other community members will be able to help you.

Best Regards,
FTDI Community
Logged

doctorwho8

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Registering the FTD2XX.DLL
« Reply #2 on: July 26, 2020, 06:45:35 AM »

Hello!
Okay. But are there any suggestions for simply registering the library so that it would be available in general? I've come across a suggestion someplace to use the gacutil command to instruct the appropriate Dot-Net version to do so for a completely different library, but in this case of course I was thinking of FTD2XX.DLL for the obvious circumstances.

Supporting Keysight's VEE is not requested.
Logged

FTDI Community

  • Administrator
  • Sr. Member
  • *****
  • Posts: 443
    • View Profile
Re: Registering the FTD2XX.DLL
« Reply #3 on: July 27, 2020, 12:12:37 PM »

Hello,

Unfortunately we do not have any experience doing this here at FTDI.
I did find the following link however, maybe this is helpful for you:
https://community.dynamics.com/gp/b/azurecurve/posts/registering-dotnet-dlls

Best Regards,
FTDI Community
Logged

doctorwho8

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Registering the FTD2XX.DLL
« Reply #4 on: July 27, 2020, 06:30:07 PM »

Hello!
That is a bigger help. But trying those examples I get this problem:
Code: [Select]
PS C:\Users\hanso\Documents\VEE Programs> C:\Windows\Microsoft.NET\Framework64\v2.0.50727\RegAsm.exe FTD2XX_NET.dll /codebase
Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.9149
Copyright (C) Microsoft Corporation 1998-2004.  All rights reserved.

RegAsm : warning RA0000 : Registering an unsigned assembly with /codebase can cause your assembly to interfere with other applications that may be installed on the same computer. The /codebase switch is intended to be used only with signed assemblies. Please give your assembly a strong name and re-register it.
RegAsm : warning RA0000 : No types were registered
PS C:\Users\hanso\Documents\VEE Programs> C:\Windows\Microsoft.NET\Framework64\v2.0.50727\RegAsm.exe FTD2XX_NET.dll
Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.9149
Copyright (C) Microsoft Corporation 1998-2004.  All rights reserved.

RegAsm : warning RA0000 : No types were registered

The first was trying it, with sticking the library name there, instead of the entry in the example online.  The system had that to say about it. The second was from trying it without the / thing the other needed.

It seems the library needs whatever the complaint wants to be properly registered. IMHO it might need to be rebuilt.
Logged

FTDI Community

  • Administrator
  • Sr. Member
  • *****
  • Posts: 443
    • View Profile
Re: Registering the FTD2XX.DLL
« Reply #5 on: July 30, 2020, 02:14:45 PM »

Hello,

I cannot provide the source for the D2XX DLL itself, but the source for the .net wrapper is available at the following:
https://www.ftdichip.com/Support/SoftwareExamples/CodeExamples/CSharp/FTD2XX_NET.zip

Best Regards,
FTDI Community
Logged