• Welcome to PlanetSquires Forums.
 

.NET libraries

Started by Petrus Vorster, June 26, 2016, 09:48:11 AM

Previous topic - Next topic

Petrus Vorster

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?
-Regards
Peter

Paul Squires

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

Petrus Vorster

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....
-Regards
Peter

José Roca

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

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.
-Regards
Peter

José Roca

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.