[Mono-dev] System.Drawing

2007-08-08 Thread Jouini Karim
Hi everyone !
I have problems with System.Drawing
It doesn't throw any error but i can't get my code working on Mono
It's a code that rotates an image inside a pictureBox
derived from : Rimage http://www.codeproject.com/vb/net/rimage.asp

Can someone help me ?
Should i post a bug report ? (i'm new in mono-dev, if i find a solution 
i will post a patch)

Thanks !

Karim

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] System.Drawing

2007-08-08 Thread Sebastien Pouliot
On Wed, 2007-08-08 at 10:53 +0200, Jouini Karim wrote:
 Hi everyone !
 I have problems with System.Drawing
 It doesn't throw any error but i can't get my code working on Mono
 It's a code that rotates an image inside a pictureBox
 derived from : Rimage http://www.codeproject.com/vb/net/rimage.asp
 
 Can someone help me ?

Does the code work without using a PictureBox control ? i.e. using only
System.Drawing calls.

 Should i post a bug report ?

Yes, see http://www.mono-project.com/Bugs

  (i'm new in mono-dev, if i find a solution 
 i will post a patch)
 
 Thanks !
 
 Karim
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
-- 
Sebastien Pouliot  [EMAIL PROTECTED]
Blog: http://pages.infinit.net/ctech/

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Reading excel files with mono ?

2007-08-08 Thread Onur Gumus
Hello,

Does anyone know if it is possible to read from Microsoft Excel files , with
mono under linux ?

Onur

-- 
Warning: If you are reading this then this warning is for you. Every word
you read of this useless fine print is another second off your life. Don't
you have other things to do? Is your life so empty that you honestly can't
think of a better way to spend these moments? Or are you so impressed with
authority that you give respect and credence to all that claim it? Do you
read everything you're supposed to read? Do you think every thing you're
supposed to think? Buy what you're told to want? Get out of your apartment.
Meet a member of the opposite sex. Stop the excessive shopping and
masturbation.Quit your job. Start a fight. Prove you're alive. If you don't
claim your humanity you will become a statistic. You have been warned - Onur
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Reading excel files with mono ?

2007-08-08 Thread Jonathan Pryor
On Wed, 2007-08-08 at 15:51 +0300, Onur Gumus wrote:
 Does anyone know if it is possible to read from Microsoft Excel
 files , with mono under linux ?

Not with just Mono, but you can use Mono with:

  * IKVM + Jakarta Poi [1]
  * Novell's OpenOffice.org, which has Mono UNO bindings.

If you use the newer .xlsx Excel file format, you could use SharpZipLib
and System.Xml to read/write the .xlsx file (though that would rather
low-level and require more work).

 - Jon

[1] http://poi.apache.org/hssf/index.html


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Reading excel files with mono ?

2007-08-08 Thread Johannes Findeisen
Hi,

On Wed, 2007-08-08 at 15:51 +0300, Onur Gumus wrote:
 Hello,
 
 Does anyone know if it is possible to read from Microsoft Excel
 files , with mono under linux ?

Maybe this is what you are searching for: http://www.filehelpers.com/

It is LGPL licensed but i don't know the support for Mono. Give it a try
and then make me happy and report your experience here... ;)

Regards,
Johannes

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Reading excel files with mono ?

2007-08-08 Thread Joe Audette
I don't know about .xls files but if they are saved as .csv you could
read them with this:
http://www.codeproject.com/cs/database/CsvReader.asp?df=100forumid=142714exp=0select=2127605

Excel has a save as csv option, but if you need the native .xls format
the above won't help.

Joe

On 8/8/07, Onur Gumus [EMAIL PROTECTED] wrote:
 Hello,

 Does anyone know if it is possible to read from Microsoft Excel files , with
 mono under linux ?

 Onur

 --
 Warning: If you are reading this then this warning is for you. Every word
 you read of this useless fine print is another second off your life. Don't
 you have other things to do? Is your life so empty that you honestly can't
 think of a better way to spend these moments? Or are you so impressed with
 authority that you give respect and credence to all that claim it? Do you
 read everything you're supposed to read? Do you think every thing you're
 supposed to think? Buy what you're told to want? Get out of your apartment.
 Meet a member of the opposite sex. Stop the excessive shopping and
 masturbation.Quit your job. Start a fight. Prove you're alive. If you don't
 claim your humanity you will become a statistic. You have been warned - Onur
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list




-- 
Joe Audette
Software Solutions Architect
Source Tree Solutions, LLC
[EMAIL PROTECTED]
http://www.sourcetreesolutions.com
http://www.mojoportal.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Reading excel files with mono ?

2007-08-08 Thread Onur Gumus
Jonathan , I am not sure if IKVM would do . Since I want to compile my
project on linux once and for all and be able to deploy to Windows machines
by only XCOPY.

Johannes, Filehelper looks promising. There are some guys in the forums
reporting success with mono however I am not sure if they tried the excel
support. I must try this anyway. I will inform you about the results once I
did.

Thanks for all your answers. They were very helpful to me.


On 8/8/07, Joe Audette [EMAIL PROTECTED] wrote:

 I don't know about .xls files but if they are saved as .csv you could
 read them with this:

 http://www.codeproject.com/cs/database/CsvReader.asp?df=100forumid=142714exp=0select=2127605

 Excel has a save as csv option, but if you need the native .xls format
 the above won't help.

 Joe

 On 8/8/07, Onur Gumus [EMAIL PROTECTED] wrote:
  Hello,
 
  Does anyone know if it is possible to read from Microsoft Excel files ,
 with
  mono under linux ?
 
  Onur
 
  --
  Warning: If you are reading this then this warning is for you. Every
 word
  you read of this useless fine print is another second off your life.
 Don't
  you have other things to do? Is your life so empty that you honestly
 can't
  think of a better way to spend these moments? Or are you so impressed
 with
  authority that you give respect and credence to all that claim it? Do
 you
  read everything you're supposed to read? Do you think every thing you're
  supposed to think? Buy what you're told to want? Get out of your
 apartment.
  Meet a member of the opposite sex. Stop the excessive shopping and
  masturbation.Quit your job. Start a fight. Prove you're alive. If you
 don't
  claim your humanity you will become a statistic. You have been warned -
 Onur
  ___
  Mono-devel-list mailing list
  Mono-devel-list@lists.ximian.com
  http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 


 --
 Joe Audette
 Software Solutions Architect
 Source Tree Solutions, LLC
 [EMAIL PROTECTED]
 http://www.sourcetreesolutions.com
 http://www.mojoportal.com
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list




-- 
Warning: If you are reading this then this warning is for you. Every word
you read of this useless fine print is another second off your life. Don't
you have other things to do? Is your life so empty that you honestly can't
think of a better way to spend these moments? Or are you so impressed with
authority that you give respect and credence to all that claim it? Do you
read everything you're supposed to read? Do you think every thing you're
supposed to think? Buy what you're told to want? Get out of your apartment.
Meet a member of the opposite sex. Stop the excessive shopping and
masturbation.Quit your job. Start a fight. Prove you're alive. If you don't
claim your humanity you will become a statistic. You have been warned - Onur
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Cross-platform command-lines

2007-08-08 Thread Mirco Bauer
Hi Charlie,

On Tue, 2007-08-07 at 10:21 -0700, Charlie Poole wrote:
 Some follow-up questions, now that I've looked at mono.getOptions.
 
 1) I like the idea of having the system provide this capablility,
 rather than including it in every app. But what do people generally
 do for cross-platform stuff?
   * package it with the app for windows only?
   * package it with the app but ignore it at runtime on windows?
   * package it and use the local copy on all platforms?
   * build the source right into the app?
   * something else? 

A good way is to provide a binary tarball for MS .NET which bundles Mono
libraries and a binary Mono tarball. Or one binary tarball for both.

And a source tarball without any libraries, if someone wants to build
from source on MS .NET he needs to get the libs from the (Mono) binary
tarball.

Binary bundling is an issue, as nobody can tell what source was used to
build it, that is especially a problem for opensource development and
Linux distributions that care about source (like Debian).

-- 
Regards,

Mirco 'meebey' Bauer

PGP-Key ID: 0xEEF946C8

FOSS Developer[EMAIL PROTECTED]  http://www.meebey.net/
PEAR Developer[EMAIL PROTECTED] http://pear.php.net/
Debian Developer  [EMAIL PROTECTED]  http://www.debian.org/


signature.asc
Description: This is a digitally signed message part
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Compiling mono on embedded platform fails ( structure has no member named uc_regs)

2007-08-08 Thread Johannes Paschold
Hello,

i'm new to this list cause i have a problem compiling mono on my
embedded linux and can't find any useful hints to my problem on the web.
I compiled and installed bison, pkg-config and glib 2.4.8 and configured
mono successfully.
When running make, compilation fails with the below error message:


exceptions-ppc.c:486: warning: unused variable `p'
exceptions-ppc.c:506: warning: `offset' might be used uninitialized in this
function
exceptions-ppc.c:590: warning: visibility attribute not supported in this
configuration; ignored
exceptions-ppc.c: In function `mono_jit_walk_stack':
exceptions-ppc.c:640: warning: visibility attribute not supported in this
configuration; ignored
exceptions-ppc.c: In function `ves_icall_get_frame_info':
exceptions-ppc.c:711: warning: visibility attribute not supported in this
configuration; ignored
exceptions-ppc.c: In function `mono_arch_handle_exception':
exceptions-ppc.c:756: structure has no member named `uc_regs'
exceptions-ppc.c:757: structure has no member named `uc_regs'
exceptions-ppc.c:758: structure has no member named `uc_regs'
exceptions-ppc.c:759: structure has no member named `uc_regs'
exceptions-ppc.c:765: structure has no member named `uc_regs'
exceptions-ppc.c:766: structure has no member named `uc_regs'
exceptions-ppc.c:767: structure has no member named `uc_regs'
exceptions-ppc.c:768: structure has no member named `uc_regs'
exceptions-ppc.c: In function `mono_arch_ip_from_context':
exceptions-ppc.c:776: structure has no member named `uc_regs'
make[4]: *** [exceptions-ppc.lo] Error 1
make[4]: Leaving directory `/tmp/mono-1.2.4/mono/mini'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/tmp/mono-1.2.4/mono/mini'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/mono-1.2.4/mono'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/mono-1.2.4'
make: *** [all] Error 2

I found only 3 hits with google which gave me no solution for that problem.
Does anyone can help me out with that problem? Is it ppc specific?

Further, if there is a solution to this problem i got another one: Is it
possible to build mono from the sources without having a mono installation?
The readme says this should be possible if it's an official release (which
1.2.4 i think is?) and not a snapshot.
Problem is: I'm running on a ppc with glibc 2.3.1 and i can't find any
binary distribution compiled against it. So do i may run into the chicken
egg problem?

regards
jOe
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Reading excel files with mono ?

2007-08-08 Thread Jeroen Frijters
Onur Gumus wrote:
 Jonathan , I am not sure if IKVM would do . Since I want to compile my
 project on linux once and for all and be able to deploy to Windows
 machines by only XCOPY.

The IKVM binaries are cross platform, so you can xcopy deploy them to Windows 
without any problems.

Only if you use JNI do you need the native ikvm-native.dll library on Windows. 
On Linux libikvm-native.so ships as part of Mono, so there you don't even need 
to worry about that (and ikvm-native contains only a small amount of code and 
is designed to work across different versions of ikvm, so when you update your 
ikvm version, you typically don't need to update ikvm-native.dll).

Regards,
Jeroen

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Cross-platform command-lines

2007-08-08 Thread Charlie Poole
Hi Mirco, 

 On Tue, 2007-08-07 at 10:21 -0700, Charlie Poole wrote:
  Some follow-up questions, now that I've looked at mono.getOptions.
  
  1) I like the idea of having the system provide this capablility, 
  rather than including it in every app. But what do people 
 generally do 
  for cross-platform stuff?
* package it with the app for windows only?
* package it with the app but ignore it at runtime on windows?
* package it and use the local copy on all platforms?
* build the source right into the app?
* something else? 
 
 A good way is to provide a binary tarball for MS .NET which 
 bundles Mono libraries and a binary Mono tarball. Or one 
 binary tarball for both.

Makes sense.
 
 And a source tarball without any libraries, if someone wants 
 to build from source on MS .NET he needs to get the libs from 
 the (Mono) binary tarball.

That too.
 
 Binary bundling is an issue, as nobody can tell what source 
 was used to build it, that is especially a problem for 
 opensource development and Linux distributions that care 
 about source (like Debian).

Believe me, I know. There have been a few apps that used some of 
the NUnit code, modifying it and redistributing the assemblies
sometimes even with indistinguishable version numbers. That's 
one reason I'm thinking of licensing changes, BTW.

OTOH, not having a binary package is an issue for some users
who are not oriented toward open source. For example, I have
a lot of NUnit users, working for a certain large software 
company here in the NorthWest, who are not permitted to download 
our source. :-(

Charlie



___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Reading excel files with mono ?

2007-08-08 Thread Angel Marin
Onur Gumus escribió:
 Johannes, Filehelper looks promising. There are some guys in the forums
 reporting success with mono however I am not sure if they tried the excel
 support. I must try this anyway. I will inform you about the results once I
 did.

 From [1]: WARNING you need to have installed Microsoft Excel 2000 or 
newer to use this feature.

And a quick look at the source shows the excel support is based on 
excel's com object, so it won't work on linux.

[1] http://www.filehelpers.com/FileHelpers.DataLink.ExcelStorage.html
-- 
Angel Marin
http://anmar.eu.org/

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Licensing [WAS: Cross-platform command-lines]

2007-08-08 Thread Mirco Bauer
On Wed, 2007-08-08 at 09:45 -0700, Charlie Poole wrote:
  Binary bundling is an issue, as nobody can tell what source 
  was used to build it, that is especially a problem for 
  opensource development and Linux distributions that care 
  about source (like Debian).
 
 Believe me, I know. There have been a few apps that used some of 
 the NUnit code, modifying it and redistributing the assemblies
 sometimes even with indistinguishable version numbers. That's 
 one reason I'm thinking of licensing changes, BTW.

The GPL/LGPL license protects your source code from some things like
this. AFAIK there are no other licenses with more strictness regarding
source code distribution/usage than the (L)GPL while still being free
software, except non-free/non-opensource licenses. Whatever you change
to, please use an OSI approved licenses [0] or at least DSFG [1]
complaint licenses (like the Shared Source lincenses from MS are not OSI
approved (yet) but still some are DFSG complaint)

 
 OTOH, not having a binary package is an issue for some users
 who are not oriented toward open source. For example, I have
 a lot of NUnit users, working for a certain large software 
 company here in the NorthWest, who are not permitted to download 
 our source. :-(

Not permitted as in by company policy? IMHO using source is not more
or less secure (in licensing terms/conditions) than using binaries.

[0] http://www.opensource.org/licenses/alphabetical
[1] http://www.debian.org/social_contract#guidelines

-- 
Regards,

Mirco 'meebey' Bauer

PGP-Key ID: 0xEEF946C8

FOSS Developer[EMAIL PROTECTED]  http://www.meebey.net/
PEAR Developer[EMAIL PROTECTED] http://pear.php.net/
Debian Developer  [EMAIL PROTECTED]  http://www.debian.org/


signature.asc
Description: This is a digitally signed message part
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Licensing [WAS: Cross-platform command-lines]

2007-08-08 Thread Charlie Poole
Hi Mirco,

NOTE: This is getting somewhat OT, so if it bothers anyone, we
can take it outside. :-)

  Believe me, I know. There have been a few apps that used 
 some of the 
  NUnit code, modifying it and redistributing the assemblies 
 sometimes 
  even with indistinguishable version numbers. That's one reason I'm 
  thinking of licensing changes, BTW.
 
 The GPL/LGPL license protects your source code from some 
 things like this. AFAIK there are no other licenses with more 
 strictness regarding source code distribution/usage than the 
 (L)GPL while still being free software, except 
 non-free/non-opensource licenses. 

I put NUnitLite under OSL, which is a less-used OSI-approved
license with copyleft features. There are a few others like
that as well. 

A test framework has the added issue that users must link to
some of the assemblies in order to even use it. That makes
those assemblies (e.g. nunit.framework) better under LGPL
or MIT but everything else can be copyleft to prevent use
in non-free testing products - which is my intention.

 Whatever you change to, 
 please use an OSI approved licenses [0] or at least DSFG [1] 
 complaint licenses (like the Shared Source lincenses from MS 
 are not OSI approved (yet) but still some are DFSG complaint)

Definitely. I expect to use one of the OSI licenses that was not
deprecated in their effort to reduce license proliferation.
A problem to be aware of with MS Shared Source is that it is not
a template-style license. Technically, I think that means you
create new license when you substitute your own name for Microsoft

  
  OTOH, not having a binary package is an issue for some 
 users who are 
  not oriented toward open source. For example, I have a lot of NUnit 
  users, working for a certain large software company here in the 
  NorthWest, who are not permitted to download our source. :-(
 
 Not permitted as in by company policy? IMHO using source is 
 not more or less secure (in licensing terms/conditions) than 
 using binaries.

Yup. The rationale is that if you saw the source someone might later
claim that you reused the code and sue that big company. This is
in spite of the fact that NUnit's license permits you to do pretty
much anything.

Charlie
 
 [0] http://www.opensource.org/licenses/alphabetical
 [1] http://www.debian.org/social_contract#guidelines
 
 --
 Regards,
 
 Mirco 'meebey' Bauer
 
 PGP-Key ID: 0xEEF946C8
 
 FOSS Developer[EMAIL PROTECTED]  http://www.meebey.net/
 PEAR Developer[EMAIL PROTECTED] http://pear.php.net/
 Debian Developer  [EMAIL PROTECTED]  http://www.debian.org/
 



___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] System.Media.SoundPlayer silent

2007-08-08 Thread Markus Kilås
Hi,

I'm trying to play a wave-file using the System.Media.SoundPlayer class as in
http://www.mono-project.com/Guide:_Porting_Winforms_Applications . 

But it will just not play any sound on Mono 1.2.4 in Gentoo or the VMware image 
with openSUSE 10.2:

SoundPlayer sp = new SoundPlayer (/usr/share/sounds/gaim/send.wav);
sp.Play ();

Using .NET on WinXP the following code works fine:

SoundPlayer sp = new SoundPlayer (c:\\windows\\media\\tada.wav);
sp.Play ();


Anyone got the SoundPlayer class to work or know what is wrong?

-- Markus Kilås +46(0)70 424 94 85 [EMAIL PROTECTED] [EMAIL PROTECTED]
www.markuspage.com

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] ANN: NUnitLite Mailing List

2007-08-08 Thread Charlie Poole
Hi All,

I'm getting back to NUnitLite after a period of concentration on NUnit. The
focus for the next few months will be on

* bringing NUnitLite and NUnit syntax in line with one another
* getting NUnitLite to work on the compact framework
* getting NUnit to run NUnitLite tests
* putting out an actual release of NUnitLite
* deciding whether to move NUnitLite off of CodePlex

The discussion forums on CodePlex have not worked very well - in part
because I am more of a mailing list guy than a forum type. So I've created a
mail list on google to discuss development and usage of NUnitLite. If you're
interested, please join us at http://groups.google.com/group/nunitlite

Charlie 




___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list