C#->X# for dummies

This forum is meant for anything you would like to share with other visitors
User avatar
Fabrice
Posts: 463
Joined: Thu Oct 08, 2015 7:47 am
Location: France

C#->X# for dummies

Post by Fabrice »

Hi Karl,
thanks for your feedback.
Unfortunately, this feature hasn't been implemented right now as it is indicated in the Readme.md in the GitHub repository.
This is one of the numerous things I will need to complete :)

Cheers,
Fab
XSharp Development Team
fabrice(at)xsharp.eu
FFF
Posts: 1584
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

C#->X# for dummies

Post by FFF »

Hi Fabrice,
thx for jumping in. Do you mean this: "WholeProject decompilation is currently not supported"?
Didn't understand that as influencing export ;->
Ok, glad to know it's not my usual stupidity...
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
User avatar
Fabrice
Posts: 463
Joined: Thu Oct 08, 2015 7:47 am
Location: France

C#->X# for dummies

Post by Fabrice »

Karl,

yes, my "Documentation" is may be not really self-explanatory, sorry ! :)

I'm currrently extracting all files, but recreating the xsproj is not fonctionnal right now.

Regards
Fab
XSharp Development Team
fabrice(at)xsharp.eu
User avatar
Horst
Posts: 337
Joined: Tue Oct 13, 2015 3:27 pm

C#->X# for dummies

Post by Horst »

Hallo
I try to compile this little C# Code and wanna later decompile it to X# with IlSpy
The compiler dont find SwissQRCode,QRCode but i have the dll in the ref list and also the using, what i am doing wrong ?
Horst

using System;
using QRCoder;

public class Program
{
static void Main()
{
System.Console.WriteLine("Hello XIDE from c#!");

//Anlegen der Kontaktdaten
SwissQrCode.Contact contactGeneral = new SwissQrCode.Contact("John Doe", "3003", "Bern", "CH", "Parlamentsgebäude", "1");
//Anlegen der IBAN
SwissQrCode.Iban iban = new SwissQrCode.Iban("CH2609000000857666015", PayloadGenerator.SwissQrCode.Iban.IbanType.Iban);
//Anlegen der Referenz
SwissQrCode.Reference reference = new SwissQrCode.Reference(SwissQrCode.Reference.ReferenceType.QRR, "990005000000000320071012303", SwissQrCode.Reference.ReferenceTextType.QrReference);
//Festlegen der Währung und Summe
SwissQrCode.Currency currency = SwissQrCode.Currency.CHF;
decimal amount = 100.25m;

//Erstellung der Swiss QR Code Payload
SwissQrCode generator = new SwissQrCode(iban, currency, contactGeneral, reference, null, amount, null, null);
string payload = generator.ToString();

//QR-Code Generator erzeugen
QRCodeGenerator qrGenerator = new QRCodeGenerator();
//Swiss QR Code payload in QR code format bringen
QRCodeData qrCodeData = qrGenerator.CreateQrCode(payload, QRCodeGenerator.ECCLevel.M);
//Rohdaten-QR-Code erzeugen
QRCode qrCode = new QRCode(qrCodeData);
//Swiss-QR-Code-Bild aus Rohdaten erzeugen
Bitmap qrCodeImage = qrCode.GetGraphic(20, Color.Black, Color.White, (Bitmap)Bitmap.FromFile(Application.StartupPath + "CH-Kreuz_7mm.png"), 14, 1);
}
}
User avatar
Chris
Posts: 4936
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

C#->X# for dummies

Post by Chris »

Hi Horst,

What is the exact error message and for which line is it being reported?
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
Horst
Posts: 337
Joined: Tue Oct 13, 2015 3:27 pm

C#->X# for dummies

Post by Horst »

Hi Chris

Message CS0246
And starts -> SwissQrCode.Contact contactGeneral = new SwissQrCode.Contact("Jo......
and every following line
User avatar
Horst
Posts: 337
Joined: Tue Oct 13, 2015 3:27 pm

C#->X# for dummies

Post by Horst »

Hi Chris

I made a viaef
Attachments
Horst.zip
(67.01 KiB) Downloaded 60 times
User avatar
Horst
Posts: 337
Joined: Tue Oct 13, 2015 3:27 pm

C#->X# for dummies

Post by Horst »

Hi ChrisUpps was the wrong one zip :-)
Attachments

[The extension viaef has been deactivated and can no longer be displayed.]

User avatar
Chris
Posts: 4936
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

C#->X# for dummies

Post by Chris »

Hi Horst,

Unfortunately I cannot compile this, because I do not have the dll...
What is the exact error message you are getting?
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
Horst
Posts: 337
Joined: Tue Oct 13, 2015 3:27 pm

C#->X# for dummies

Post by Horst »

Hi Chris

I made a screenshot
Attachments
Projects.zip
(839.74 KiB) Downloaded 58 times
Post Reply