Error converting with DuoCode using WinForms

1

I developed a C # application using Windows Forms, but wanted to convert to JavaScript using DuoCode. But it is giving the following errors:

tryduocode.cs(7,14,7,21): error CS0234: The type or namespace name 'Windows' does not exist in the namespace 'System' (are you missing an assembly reference?)

tryduocode.cs(32,18,32,29): error CS1061: 'Form1' does not contain a definition for 'btnTraduzir' and no extension method 'btnTraduzir' accepting a first argument of type 'Form1' could be found (are you missing a using directive or an assembly reference?)

Maybe I should use Console instead of Windows Forms.

    
asked by anonymous 29.08.2015 / 23:12

1 answer

1

Forget this. DuoCode does a lot, but it does not make a miracle. It can only convert trivial applications that operations into memory and little more than this. Surprisingly he even manages to convert something simple that does IO (in and out) but very little. You can not get an application using Windows Forms and try to convert it to run in a browser.

I do not know if moving to console will help anything. If you can adjust your application in this way, then you do not need this converter.

It was done to convert a few things, usually validation functions and some data manipulation operations. It was not meant to convert entire applications.

There must be a good reason to use it. It is not a magic wand that solves all problems.

    
29.08.2015 / 23:25