By the way, is posible to add another type of file that is not class library? I need to add a form that contain several controls that belongs to System.Windows.Forms. From IP I want to change the properties of that controls, like position, size, color, etc. Is posible and how can I do that?
 
TIA,
Catalin
 
----- Original Message -----
Sent: Wednesday, January 04, 2006 11:44 AM
Subject: Re: [IronPython] IP Tutorial Error

Hi,
Reproducing the sample of Martin Maly everything is Ok. It will be for the namespace? The tutorial that come with IronP 1.0 - Beta 1 is for this version?
 
Catalin
----- Original Message -----
Sent: Wednesday, January 04, 2006 8:21 AM
Subject: Re: [IronPython] IP Tutorial Error

Ok, you have right. In clr.Reference I found "csextend", but when I import "import Simple" the console return:
Trackback (most recent call last):
   File, line 0, in imput ##1
Import Error: No module named Simple
I am sure that the name of the C class is Simple.
 
Thanks,
Catalin
----- Original Message -----
From: Haibo Luo
Sent: Tuesday, January 03, 2006 7:26 PM
Subject: Re: [IronPython] IP Tutorial Error

clr.AddReferenceToFile returns void, so “print a gets None” is expected.

clr.References could be what you are looking for.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Catalin Lungu
Sent: Tuesday, January 03, 2006 7:58 AM
To: Discussion of IronPython
Subject: [IronPython] IP Tutorial Error

 

Hello,
I compiled the folowing class with "csc" to csextend.dll

 

using System;
using System.Collections;

 

public class Simple
{
 private int data;
 public Simple(int data)
 {
  this.data = ""> }
 public override string ToString()
 {
  return String.Format("Simple<{0}>", data);
 }
}

 

When I try to use the "csextend.dll" module the return variable is null.
>>import clr
>>a=clr.AddReferenceToFile("csextend.dll")
>>print a
None
By the way I have tried with another .cs module and I receive the same result.

I use VS2005 Professional and IronPython 1.0 - Beta1

 

Any ideea?
Catalin


_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to