Page 2 of 5
C#->X# for dummies
Posted: Tue Jan 26, 2021 5:04 pm
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
C#->X# for dummies
Posted: Tue Jan 26, 2021 7:02 pm
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...
C#->X# for dummies
Posted: Wed Jan 27, 2021 2:23 pm
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
C#->X# for dummies
Posted: Wed Feb 03, 2021 7:34 am
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);
}
}
C#->X# for dummies
Posted: Wed Feb 03, 2021 8:18 am
by Chris
Hi Horst,
What is the exact error message and for which line is it being reported?
C#->X# for dummies
Posted: Wed Feb 03, 2021 8:30 am
by Horst
Hi Chris
Message CS0246
And starts -> SwissQrCode.Contact contactGeneral = new SwissQrCode.Contact("Jo......
and every following line
C#->X# for dummies
Posted: Wed Feb 03, 2021 8:37 am
by Horst
Hi Chris
I made a viaef
C#->X# for dummies
Posted: Wed Feb 03, 2021 10:14 am
by Horst
Hi ChrisUpps was the wrong one zip
C#->X# for dummies
Posted: Wed Feb 03, 2021 10:45 am
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?
C#->X# for dummies
Posted: Wed Feb 03, 2021 11:21 am
by Horst
Hi Chris
I made a screenshot