Page 1 of 1

First Test Issue - WindowsForms

PostPosted: December 6th, 2014, 12:15 pm
by mr.eslamo
Please help after installing phalanger to VS2012 Ultimate

1- I activated the trial mode to test all functions supported.

2- I tried to create a new Phalanger WindowsForms application.

3- I added a new form to the project then i received this error here.

Error 1 Syntax error: unexpected token 'class' C:\Users\VMachine\Documents\Visual Studio 2012\Projects\Test\Test\Main.php 6 10 Test

This Line Contains:

partial class Main extends \System\Windows\Forms\Form{

I tried to remove 'partial' and error gone but while running nothing happens and application not starting then debug stops.

Note: I changed the start up file/class to be Main.php in the App Properties.

Re: First Test Issue - WindowsForms

PostPosted: December 8th, 2014, 3:05 pm
by Jakub Misek

WinForms have been deprecated, the project type is there for backward compatibility purposes.

Anyway, the error is listed in Error List window? Or it breaks Designer window? Otherwise you should not modify generated file and you should be able to run the project as it is.