Oberon Community Platform Forum
October 17, 2017, 02:36:35 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Windows GUI example uncompilable  (Read 4543 times)
leledumbo
Jr. Member
**
Posts: 96



WWW
« on: May 09, 2008, 06:58:52 AM »

In Zonnon docs, there's an GUI sample application code. So, I just copy and paste it. Upon compiling, I got error about System.Windows.Forms can't be imported or so. I got .NET 2.0 Framework installed and AFAIK it's Zonnon's target code. What am I doing wrong?
Oh, 1 more thing! Code that can be executed from Zonnon Builder can't be executed either by double clicking or from command line.

P.S. : I don't have Visual Studio, so I just run Zonnon Builder.
Logged
rmitin
Moderator
Newbie
*****
Posts: 22


« Reply #1 on: May 09, 2008, 12:11:38 PM »

You need to refer to System.Windows.Forms.dll that contains required classes.
You can find it in the following folder (version of .NET framework might differ):
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll
Add the reference to the list of references in the Zonnon Builder project.

If you used command line compiler it would look like this
zc.exe /entry:Main main.znn /ref:System.Windows.Forms.dll
Command line interface can find standard libraries without specifying the full path.
Logged
leledumbo
Jr. Member
**
Posts: 96



WWW
« Reply #2 on: May 19, 2008, 01:49:49 PM »

Sorry for the long reply. It still doesn't work if the application is run from the outside of Zonnon Builder.
Logged
rmitin
Moderator
Newbie
*****
Posts: 22


« Reply #3 on: May 20, 2008, 11:27:40 AM »

You need to have Zonnon.RTL.dll in the same folder with your exe file. Compiler does not merge RTL with exe by default.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!