PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: .NET libraries  (Read 1095 times)

Petrus Vorster

  • FireFly3 Registered User
  • Senior FireFly Member
  • *
  • Posts: 346
.NET libraries
« on: June 26, 2016, 09:48:11 AM »

Just curious. Do we have a method to use or translate .NET libraries?

There are a number of very useful tools like QR coding generators etc available.
Or is that not possible in Powerbasic or Freebasic?
Logged

Paul Squires

  • Administrator
  • Master FireFly Member
  • *****
  • Posts: 8088
  • Windows 10
    • PlanetSquires Software
Re: .NET libraries
« Reply #1 on: June 26, 2016, 10:43:04 AM »

I have never done it. I know that Edwin over on the PB forums once posted code to use some types of .NET libraries.
Logged
Paul Squires
PlanetSquires Software
FireFly Visual Designer, WinFBE Editor

Petrus Vorster

  • FireFly3 Registered User
  • Senior FireFly Member
  • *
  • Posts: 346
Re: .NET libraries
« Reply #2 on: June 26, 2016, 12:34:34 PM »

Its a pity, sometimes re-inventing the wheel is difficult especially for us hobbyists.
QR codes is the logical progression from flat barcodes, but the encoding is much more complicated.
(and they are already busy with higher density color QR codes)

I looked over at Powerbasic, there are some talks here and there and references to this, but no working material.

It could be very interesting if one could just tap into .net if you really needed too....
Logged

Josť Roca

  • FireFly3 Registered User
  • Master FireFly Member
  • *
  • Posts: 2726
    • Josť Roca Software
Re: .NET libraries
« Reply #3 on: June 26, 2016, 01:28:16 PM »

Your indications are too vague.

If it has a COM callable wrapper, it can be used using COM.

If it is a .NET assembly, it can be called hosting the CLR runtime, but the assembly has to be COM visible.

My headers include a class to host the .NET Common Language runtime, and I posted a couple of examples five years ago.

See: http://www.jose.it-berater.org/smfforum/index.php?topic=4376.0

That is all I can offer. Since I'm not interested in using .NET assemblies, at least for now, I haven't done further research and can't help you if it doesn't work for you. You will have to investigate yourself.

Petrus Vorster

  • FireFly3 Registered User
  • Senior FireFly Member
  • *
  • Posts: 346
Re: .NET libraries
« Reply #4 on: June 26, 2016, 04:49:48 PM »

Regrettably I know too little about .Net to have the vaguest idea on how to use some assemblies in Powerbasic.
I found a control, and a DLL with a group that could make QR barcodes with roughly 4 lines of code.

Within Powerbasic groups i could not find much info at all.

I have to say, that .Net does have some great looking controls and gadgets, but darn they compile slow and run like a snail on some PC's.
Let me see what i can find and then perhaps i can give you the example?
Then you can tell me if its worth looking into?
If not, then i will just dump the idea, but it would have been a nice addition to the current project.
Logged

Josť Roca

  • FireFly3 Registered User
  • Master FireFly Member
  • *
  • Posts: 2726
    • Josť Roca Software
Re: .NET libraries
« Reply #5 on: June 26, 2016, 05:36:32 PM »

I never have used .NET and I have no idea of how to embed a .NET visual control in a managed application. If it is possible, probably it will be very cumbersone and unsatisfactory. They give you their compilers for free and they earn money selling the IDE and tools, so you have to buy it to make applications using wizards that generate a ton of, many times, indecipherable code. I don't have fun programming this way.