[Mono-winforms-list] dll_import Q

2010-07-30 Thread pfj
Hi, I have an application which currently uses the winmm.dll for playing mp3 files (it's a quick and dirty hack which will be replaced at some point by using gstreamer or something more cross platform). As expected, works fine under Win32 and falls flat dead under Linux. If I want the app to

[Mono-dev] Interop dlls - is this a bug?

2010-07-30 Thread pfj
Hi, To play video, I've been using the QuartzTypeLib dll from the COM under Win32. Works fine. Not cross platform, but works fine. The application compiles and generates a file called Interop.QuartzTypeLib.dll which I'm assuming VC# should do. I make a copy of the directory and tranfer it to my

Re: [Mono-winforms-list] Not sure if this is a mono issue, openoffice issue or is just not going to work!

2010-06-08 Thread pfj
Hi, Looks like OOo is to blame here. Wrote the same equation using Word2003, export as RTF and up it pops... Have to put that into BZ... TTFN Paul -- View this message in context:

[Mono-list] Finding the real IP address

2010-03-08 Thread pfj
Hi, I can find the IP address of my machine very easily, but it only tells me my internal IP address (such as 192.168.0.3). Is there a way to find my real IP address beyond the router? TTFN Paul -- View this message in context:

[Mono-dev] Trying to find a bug in my code...

2010-02-24 Thread pfj
Hi, I have a very simple application which is connecting happily to gmail using SSL. The problem is that it dies when I come to grabbing a list of the emails on the server. My connection and retrieval code is this My code looks like this (pop3 first) // from pop3.cs using System; using

Re: [Mono-dev] POP3 and .NET

2010-02-24 Thread pfj
Hi, Thanks. I'm trying to avoid additional libraries and stick the .NET native ones for this project. I do have an additional problem, but I've posted that in another thread. TTFN Paul -- View this message in context: http://n4.nabble.com/POP3-and-NET-tp1564517p1567230.html Sent from the

Re: [Mono-dev] POP3 and .NET

2010-02-24 Thread pfj
Hi, I have a good reason for not wanting to use an additional library in this case and regarding the POP3 stuff, it is using the standard libraries from a reliable source online [so it's not mine and the same applies with the SSL stuff. I know it works - when I look at the debugger code in the

[Mono-dev] POP3 and .NET

2010-02-22 Thread pfj
Hi, Is pop3 supported in any of the native .NET/mono libraries? I've googled around and found them on Server2003 namespaces (microsoft.server.bistalk) but nowhere else. TTFN Paul -- View this message in context: http://n4.nabble.com/POP3-and-NET-tp1564517p1564517.html Sent from the Mono -

[Mono-list] Sending email via gmx in C#

2010-02-17 Thread pfj
Hi, Currently my code looks like this void SendClick(object sender, EventArgs e) { string un = uname + @ + address; string ipa = IP address sent from : + ip.Text; StreamWriter sw = new

Re: [Mono-list] Sending email via gmx in C#

2010-02-17 Thread pfj
Hi, I've got a valid gmx email address that I can send from my google account to the gmx one (or even my work email to gmx). According to the set up for thunderbird, the smtp needs usern...@gmx.com and a password. In my code they're both valid, yet I'm still unable to send. Am I missing

[Mono-winforms-list] Creating window elements on the fly - can it be done?

2010-02-10 Thread PFJ
Hi, I'm trying to do something which I'm not sure if it's possible to do, so please be patient. I have a winform with a single window that has nothing in it. The code for the winform loads an XML file which has three elements - designer, questions, answers. The questions and answers elements

[Mono-dev] Mono reflection seems a bit broken.

2010-02-09 Thread PFJ
Hi, This code works fine under .NET 3.5 but dies miserably with Mono 2.6.1 using System; using System.Reflection; using System.IO; using System.Drawing; using System.Windows.Forms; using System.Xml; using System.Resources; amespace molarity { /// summary /// Description of

Re: [Mono-winforms-list] Finding the tabindex of a label

2010-02-03 Thread PFJ
Hi, Petit Eric wrote: i don't really know, but did yu try something like Label Buff = sender as label or Label Buff = new label( Buff = (Label)sender.TabIndex; Yep, doesn't give me the TabIndex method either. TTFN Paul -- View this message in context:

[Mono-winforms-list] PictureBox, Resources and RTF text box problems

2010-02-03 Thread PFJ
Hi, Two questions which my frazzled brain isn't coping with... I have a pile of resources for a project which the resource manager handles quite nicely. I have an XML file which contains the name of the resource, but stored as a string rather than as an Image (it's the name of the resource).

Re: [Mono-winforms-list] Finding the tabindex of a label

2010-02-03 Thread PFJ
Hi, Diego Frata wrote: Shouldn't it be: int tabIndex = ((Label)sender).TabIndex; ? That got it... Thanks TTFN Paul -- View this message in context: http://old.nabble.com/Finding-the-tabindex-of-a-label-tp27435810p27437403.html Sent from the Mono - WinForms mailing list archive

Re: [Mono-dev] Problem with BinarySerialization

2010-02-03 Thread PFJ
Hi, Robert Jordan wrote: On 02.02.2010 14:35, PFJ wrote: Thus, the only *clean* way to solve this is introducing a shared assembly implementing the classes you want to serialize. It's a common pattern. As the serializer is only used once, can the other app just deserialize and use

[Mono-dev] Problem with BinarySerialization

2010-02-02 Thread PFJ
Hi, I've created my BinarySerialized file like this... namespace elements { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Stream

Re: [Mono-dev] Problem with BinarySerialization

2010-02-02 Thread PFJ
Hi, Robert Jordan wrote: The serialization infrastructure heavily relies on type/assembly identity, but what you're doing here is trying to create an object from serialization data generated from a totally different class. You should implement Elements in a separated assembly which you

Re: [Mono-dev] Problem with BinarySerialization

2010-02-02 Thread PFJ
Hi, Robert Jordan wrote: What I have done is created a completely different app to generate the serialized data - it's intended to be run once, create the data file and that's it. The file is then sucked in to the 2nd application for deserializing. Would what I want to do be better

[Mono-dev] Listening in on a port (was the daemon thingy a week or so back)

2010-01-12 Thread PFJ
Hi, I'm making some progress with my daemon in C# to listen in on port 80 and monitor how much time my son is spending on line, but I've hit a snag. Currently, my code looks like this class Server { private TcpListener tcpListener; private Thread listenThread; public Server()

[Mono-winforms-list] Mouse position question

2009-12-21 Thread PFJ
Hi, I can find where my mouse is clicked on a form using MouseEventArgs e.X and e.Y and the world is good. However, if my window size is varied, the position of X and Y will change depending on the size of the window. Is there a nice, simple way to find the X and Y position that will always

Re: [Mono-winforms-list] GetColumn problem

2009-09-17 Thread PFJ
Hi, Jonathan Pobst wrote: Paul wrote: Sorry for this being a dumb question, but can you explain this? I'm doing things I've never done before, so you need to be gentle with me ;-) Maybe we need to step back a little bit, what are you trying to do? I have created a TLP in the

[Mono-winforms-list] GetColumn problem

2009-09-16 Thread PFJ
Hi, I have a tablelayoutpanel called lesson. This contains a number of rows and columns. I have a generic mouseclick event attached to it. In the event I want to find the x and y position of the mouse as well as the column. No problems with the x and y position (MousePosition.x and

Re: [Mono-winforms-list] GetColumn problem

2009-09-16 Thread PFJ
Hi, Jonathan Pobst wrote: Does this mean that I'm relying on the TLP or something else (which would also explain the -1)? It appears you are relying on the TLP. If you were setting the column explicitly, it would look roughly like this: In that case, why is GetPositionFromControl

[Mono-dev] System.Environment.CurrentDirectory problem

2009-07-23 Thread PFJ
Hi, I've compiled an application which tests for a directory and if it doesn't exist, creates it and copies a configuration file over. The app compiles fine. I've copied the executable and the configuration directory/file over to a new directory. When I run the app though, it creates a new

[Mono-dev] Adding a dll to gac

2009-07-17 Thread PFJ
Hi I've added the SharpUSBlib dll to gac using gacutil. However, when I try to link to it (using -r:ICSharp.USBlib or -r:SharpUSBlib, all I get back is that it is missing some sort of metadata (the report is on my machine at home). Is there something I'm missing here? The command line I've

[Mono-dev] Cross platform USB programming

2009-07-16 Thread PFJ
Hi, I have a USB device here which is effectively a voting system (it's an EzClickPro job). The software supplied does the job to a fashion, but it's annoying that the likes of Linux and MacOS aren't supported, only Win32 boxes. Add to this that the Win32 box needs admin rights to install the

Re: [Mono-dev] vbnc error

2009-05-12 Thread PFJ
Hi, File not found: /home/paul/Programming/Sudoku/MyGenerator I've not seen that one before - any ideas on the cause or if it's a known problem? It's a bug in vbnc, I just filed a bug for it (#502971) with a work around. I've also updated vbnc to give the correct source code

Re: [Mono-list] NEED HELP PLZZZZZ ! (5 min no more)

2009-02-22 Thread PFJ
Hi, arnomedia wrote: ** (/home/arnofly/Bureau/TestForLinux:5385): WARNING **: The following assembly referenced from /home/arnofly/Bureau/TestForLinux.exe could not be loaded: Assembly: Microsoft.VisualBasic(assemblyref_index=1) Version:8.0.0.0 Public Key:

[Mono-list] Problems with CopyTo, using Contains(...) and inserting a character from one string into another.

2009-02-22 Thread PFJ
Hi, I'm trying to copy a specific section of a string to another string. My code looks like this void search(string s) string newstring; for (int a = 0 ; a s.Length; ++a) { if (a + 1 s.Length) continue; if (s[a + 1] 'a') s.CopyTo(a, newstring.ToCharArray(), 0, 1); else {

[Mono-dev] Winforms failing to start -svn 123860 (XIM problem)

2009-02-01 Thread PFJ
Hi, I have a number of winforms applications which are failing to start correctly. They work fine until about 123650 under svn. Under 123775, I had problems with FUTEX_WAIT (and it never completed). Under 123860, when I run using mono -v filename.exe, I get at the end (sorry for any mistakes,

Re: [Mono-dev] Ideas for Mono on Windows

2009-01-23 Thread PFJ
Hi, SuperCiccio wrote: Sadly, I have to wait for the next Windows/Linux build to go ahead on step 2. If I had a simple way to build Mono on Windows, the (in)famous F5, I could go on peacefully. I don't mind running the code if you need a hand (using Fedora rawhide). My box is updated

[Mono-list] Added dll to gac not being picked up

2006-08-08 Thread PFJ
Hi, I've rewritten the spec file for db4o to now add the db4o.dll to gac (I can't add db4o-tools.dll as it's not a strong name). I've used the following for the gacutil line gacutil -i dll/db4o.dll -f -package db4o -root %{buildroot}%{monodir} This adds the dll to (what becomes) /usr/lib When

[Mono-list] Building db4o from the src rpm

2006-08-07 Thread PFJ
Hi, I'm trying to compile db4o using mono-1.1.16-1 (supplied by Fedora Core) using the src rpm (I'm thinking of submitting it to Fedora Extras). When I come to compile it, I'm getting the following error ./src/core/src/core/com/db4o/YapField.cs(89,14): error CS0121: The call is ambiguous

Re: [Mono-list] Building db4o from the src rpm

2006-08-07 Thread PFJ
Hi, Where is the best place to report this error (not sure if it's here or to db4o themselves) Both. On one hand you are experiencing a bug in mcs and on the other hand db4o releases must be compatible with the latest mono releases. I've put it on the community forum at db4o and will

Re: [Mono-winforms-list] Bug in System.Windows.Forms.Control:get_ContainsFocus ()?

2006-06-21 Thread PFJ
Hi, So do you think it could be a bug with resolving the base class? It seems from the trace that it is going into a continuous loop, like it is calling ContainsFocus on itself. To be honest, all I saw was the segfault rather than the tonnes of output. The baseclass seems to be working fine

Re: [Mono-list] Mono on CD

2006-06-21 Thread PFJ
Hi, I have searched, unsuccessfully, for information on how to run Mono off of a CD. Is there some information on this somewhere? Have a look on the mono website - it lists a live Linux distro with mono on it. TTFN Paul -- Logic, my dear Zoe, is merely the ability to be wrong with authority

[Mono-list] Do I need to report this problem to FC or to here?

2006-06-16 Thread PFJ
Hi, I've downloaded and built monodevelop and all it's friends on my FC5 box (uses gtk-2.9-4 which should fix the upstream bugs) When I run monodevelop, everything is fine except when I come to create a new project when it crashes and burns giving

[Mono-list] ikvm building problem

2006-06-15 Thread PFJ
Hi, Okay, this is possibly not the best place to be asking this... I'm trying to build ikvm-0.28.0.0 from the ikvm.net website. Unlike the version on the go-mono/sources tree, this actually has the sources in (naughty naughty...) I have nant installed on my box along with eclipse-ecj (I'm using

[Mono-list] [Fwd: ikvm building problem]

2006-06-15 Thread PFJ
-- Logic, my dear Zoe, is merely the ability to be wrong with authority - Dr Who ---BeginMessage--- Hi, Okay, this is possibly not the best place to be asking this... I'm trying to build ikvm-0.28.0.0 from the ikvm.net website. Unlike the version on the go-mono/sources tree, this actually has

[Mono-dev] Passing values into the default.build boo script

2006-06-07 Thread PFJ
Hi, Is there a way to pass values into the default.build script for boo-0.7.6.2237? I'm packaging it for Fedora Extras and it's a pain to have to manually edit the default.build, create a patch, apply the patch etc each time I alter the spec file (or some other part of the package). Usually on

[Mono-list] boo-0.7.6.2234 sourcecode anywhere?

2006-06-07 Thread PFJ
Hi, The tarball on the boo website for 0.7.6.2234 only contains the binaries. Does anyone know if there was a source release and if there was, where it currently can be found? Failing that, can the normal config and make files be copied from 2234 into 2237 and 2237 be built like any other

Re: [Mono-list] Cannot find assembly `nunit.framework.dll'

2006-06-07 Thread PFJ
Hi, mcs -t:library *.cs -out:testout.dll -define:BRUNET_NUNIT -r:nunit.framework.dll error CS0006: Cannot find assembly `nunit.framework.dll' Log: What happens if you don't have the .dll at the end? -- Logic, my dear Zoe, is merely the ability to be wrong with authority - Dr Who

Re: [Mono-dev] mono frustration

2006-06-05 Thread PFJ
Hi, I've just been trying to install the monodevelop IDE and associated utilities for FC5 as per your excellent instructions on the mono-develop mailing list. Yes - I'm moving job, so have moved the packages. I will be putting up fresh builds tonight via my home website - there are

Re: [Mono-dev] mono frustration

2006-06-05 Thread PFJ
Hi, 178901 - gtksourceview-sharp 178904 - monodevelop 189092 - boo 189093 - mono-debugger 193957 - nant 194054 - monodoc -- Logic, my dear Zoe, is merely the ability to be wrong with authority - Dr Who ___ Mono-devel-list mailing list

[Mono-list] Unable to build from svn

2006-04-28 Thread PFJ
Hi, I've just downloaded an update from the anonsvn developer branch and can't compile. libgdiplus builds fine, but I'm getting this with Mono os_dep.c:20:30: error: linux/version.h: No such file or directory In file included from os_dep.c:27: /usr/include/asm/signal.h:5:27: error:

Re: [Mono-list] Re: Summer of code suggestion

2006-04-28 Thread PFJ
Hi, On Fri, 2006-04-28 at 23:14 +1000, [EMAIL PROTECTED] wrote: We must have different MonoDevelops, because the only graphical interface I can find is for GTK#. You can certainly use SWF within Monodevelop. However, what it doesn't have is a forms designer. TTFN Paul -- Logic, my dear

Re: [Mono-list] Mono requres X server on Linux?

2006-04-21 Thread PFJ
Hi, Does Mono inherently require an X server to connect to? Nope. I've just switched to a terminal mode on the laptop and fired up a small test app (accesses an sql database, outputs the results) Are there any graphic libraries/functions that we should avoid so that our app doesn't try to

Re: [Mono-dev] mono frustration

2006-04-18 Thread PFJ
Hi, On Tue, 2006-04-18 at 12:24 +0300, Anton Andreev wrote: Did anyone installed mono on fedora core 5 Yes. It's quite nice. Okay, it needs updating to 1.1.15, but this isn't the right list for discussion on that. There is a problem with gtkhtml3 and gtk-sharp, pango ... Is there? Mono

Re: [Mono-dev] Re: mono frustration

2006-04-18 Thread PFJ
Hi, I will wait a few more months I suppose till fedora core 5 binaries are released or the yum dependencies are fixed ... Maintaining package dependencies and stability of the bleeding-edge versions of programs is a very hard work for the distributions' employees and/or contributors.

Re: AW: AW: AW: [Mono-list] Daily build errors

2004-10-29 Thread PFJ
Hi, Make uninstall *** You need a C# compiler installed to build MCS. (make sure mcs works from the command line) *** Read INSTALL.txt for information on how to bootstrap *** a Mono installation. Why does this error not suprise me? You've uninstalled it! TTFN Paul -- If I face my God

Re: [Mono-list] Is Mono ready to compete with MS .NET in real business?

2004-09-29 Thread PFJ
Hi, Mono 1.0 was shipped awhile ago, and I'm really excited about that... but now the natural question is: Is Mono ready to compete with MS .NET in real business? Depends on the context. For winforms, no. 1.2 will have that and it should rock. ... and one more question is Will

Re: [Mono-list] foto

2004-09-02 Thread PFJ
Hi, On Thu, 2004-09-02 at 11:17 +0300, George Birbilis wrote: this had VBS:Beagle-AK1 virus I wonder if it would work using monobasic ;-p TTFN Paul -- If I face my God tomorrow, I can tell Him I am innocent. I've never harmed anyone. I have cheated no one. I have deceived no one. I have

Re: [Mono-list] Beginner C# Book

2004-08-23 Thread PFJ
Hi, You might want to check out Programming C# by Jesse Liberty, 3rd edition, pub. O'Reilly, ISBN 0-596-00489-3. The 3rd edition has complete coverage of .NET 1.1 and in this edition they added VS.NET 2003, but not too much (50 pages out of 700 something). I would recommend it to anyone.

[Mono-list] Mono - A developers notebook

2004-08-13 Thread PFJ
Hi, Get this book - it is absolutely fantastic and better still, the language used is simple to understand without being over simplistic. Utterly wonderful. If you're a subscriber to C Vu from the ACCU (http://www.accu.org), it will get a full review in there in the next edition (Oct 2004)

[Mono-list] gtk#

2004-07-07 Thread PFJ
Hi, I'm testing the code in the Sams Mono Kickstart book for the ACCU review and have stumbled on a problem. When I try to compile the gtk# code, mcs throws out the error cannot find assembley gtk-sharp libgtksharp (and family) is in /usr/lib. I've run /sbin/ldconfig as well, but get the same.

[Mono-list] Monodevelop bugette

2004-06-28 Thread PFJ
Hi, This is more annoying than anything else. The default save path for monodevelop is currently set to something like /usr/bin/monodevelop instead of ~/ Any chance of changing that or putting it in the a configuration setting somewhere please? TTFN Paul -- If I face my God tomorrow, I can

[Mono-list] beta 3 for FC2

2004-06-16 Thread PFJ
Hi, I may have missed it, but when is beta 3 for Fedora Core 2 due to hit? TTFN Paul -- If I face my God tomorrow, I can tell Him I am innocent. I've never harmed anyone. I have cheated no one. I have deceived no one. I have hurt no one. Except myself. And that He will forgive me. - Hans

Re: [Mono-list] winforms on debian / wine / segmentation fault = sorry bug in sent

2004-06-08 Thread PFJ
Hi, which libs dependencies have mono to run these fucking winforms ? (execpt glib2 ...) Look, I know it can be annoying that bits of the software don't work, but can you please moderate your language - it makes it far less likely that anyone will answer your questions. Winforms is only

Re: [Mono-list] usage of the mailing list

2004-05-19 Thread PFJ
Hi nobody take care about me, how do i answer to one subject instead of creating new idont like flooding but i take apart of the mailing lists, so sorry ;( Simplest rules 1. If you're starting a new thread, start a new thread 2. If you have two concurrent threads which cover the same

Re: [Mono-list] Re: Mono-list] mono 091 hangs on install

2004-05-19 Thread PFJ
Hi, where can i find gcc3.4 for debian?? ive just seen 3.0 3.1 3.23.3 Compile from source. TTFN Paul -- Your lives are in the hands of men no smarter than you or I, many of them incompetent boobs. I know this because I worked alongside them, gone bowling with them,

Re: [Mono-list] RE: WINFORM / Wine / Whats the fsck going wrong? (Mathieu PASQUET)

2004-05-18 Thread PFJ
Hi, can somebody answer to me ?.? !!! The rpms for Fedora Core work fine. As it also does when I've compiled it from source. What it sounds like to me is that you have an old version of either wine, winelib or the mono stuff on your machine and that's messing things up. Happened on my

Re: [Mono-list] .NET

2003-06-23 Thread PFJ
Hi, I don't know almost anything about unix/linux. What are the steps to have .NET application running under them? IIRC, you just need to write it in pure C# - i.e. not include vendor specific material (such as windows.forms classes) and it should work. TTFN Paul -- Open your mind to a