[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Help-glpk] C# binding
From: |
Meketon, Marc |
Subject: |
RE: [Help-glpk] C# binding |
Date: |
Wed, 9 Jun 2010 10:54:56 -0400 |
Thank you. I'll check it out this afternoon.
-----Original Message-----
From: Nigel Galloway [mailto:address@hidden
Sent: Wednesday, June 09, 2010 10:31 AM
To: Meketon, Marc
Cc: address@hidden
Subject: RE: [Help-glpk] C# binding
t1.cs does not require swig. dllimport is part of the
System.Runtime.InteropServices provided by the .NET libraries (and their
linux equivalents if interested).
So documentation in any good C# book, or in the MSDN documentation if
you loaded it with Visual C#, or online starting at maybe
http://msdn.microsoft.com/en-us/library/aa288468(VS.71).aspx
and working on from there.
The full API for the class is at
http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.d
llimportattribute(v=VS.71).aspx
if you like reading this sort of thing.
> ----- Original Message -----
> From: "Meketon, Marc" <address@hidden>
> To: "Nigel Galloway" <address@hidden>
> Cc: address@hidden, "Noli Sicad" <address@hidden>
> Subject: RE: [Help-glpk] C# binding
> Date: Wed, 9 Jun 2010 10:06:59 -0400
>
>
> Thanks Nigel. I did not realize that t1.cs existed in the samples.
>
> Looking at t1.cs, I see you have a number of lines such as
>
> [DllImport(glpkLibrary, SetLastError=true)]
> static extern void glp_set_row_bnds(double* lp, int row, int
> bound_type,
> double lower_bound, double upper_bound);
>
> Is there a place where all of the API is given? Is this something
that
> swig produces?
>
> -----Original Message-----
> From: Nigel Galloway [mailto:address@hidden
> Sent: Wednesday, June 09, 2010 9:53 AM
> To: Noli Sicad; Meketon, Marc
> Cc: address@hidden
> Subject: Re: [Help-glpk] C# binding
>
>
> Also note that part of the reason d'etre of C# is that it is a .NET
> language and does not require bindings to interface to C++, see t1.cs
in
> the glpk examples.
>
> Also note that swig produces C# bindings to any version of glpk, if
you
> want them anyway.
>
> > ----- Original Message -----
> > From: Noli Sicad <address@hidden>
> > To: "Meketon, Marc" <address@hidden>
> > Cc: address@hidden
> > Subject: Re: [Help-glpk] C# binding
> > Date: Wed, 9 Jun 2010 21:55:22 +1000
> >
> >
> > Hi Mark,
> >
> > I actually just downloaded it using Firefox 3.5.9 and open it with
> > WinRar. Is it glpk4.42 right?
> >
> > Do you want me to email to you in zip or rar format?
> >
> > Noli
> >
> > On 6/9/10, Meketon, Marc <address@hidden> wrote:
> > > I need to call GLPK from C#. Searching through previous help,
there
> is
> > > reference to a web site http://yoyovicks.blog.free.fr/ that has
> source
> > > code for a C# binding, but I cannot seem to open up the source
code
> this
> > > is referenced in that web site.
> > >
> > >
> > >
> > > Does anyone have a current C# binding that I can use?
> > >
> > >
> > >
> > > Thanks.
> > >
> > >
> > >
> > > -Marc
> > >
> > >
>
------------------------------------------------------------------------
> ----
> > > This e-mail and any attachments may be confidential or legally
> privileged.
> > > If you received this message in error or are not the intended
> recipient, you
> > > should destroy the e-mail message and any attachments or copies,
and
> you are
> > > prohibited from retaining, distributing, disclosing or using any
> information
> > > contained herein. Please inform us of the erroneous delivery by
> return
> > > e-mail.
> > >
> > > Thank you for your cooperation.
> > >
>
------------------------------------------------------------------------
> ----
> > >
> > >
> >
> > _______________________________________________
> > Help-glpk mailing list
> > address@hidden
> > http://lists.gnu.org/mailman/listinfo/help-glpk
>
> >
>
>
> --
> _______________________________________________
> Surf the Web in a faster, safer and easier way:
> Download Opera 9 at http://www.opera.com
>
>
------------------------------------------------------------------------
----
> This e-mail and any attachments may be confidential or legally
> privileged. If you received this message in error or are not the
> intended recipient, you should destroy the e-mail message and any
> attachments or copies, and you are prohibited from retaining,
> distributing, disclosing or using any information contained herein.
> Please inform us of the erroneous delivery by return e-mail.
>
> Thank you for your cooperation.
>
------------------------------------------------------------------------
----
>
--
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com
----------------------------------------------------------------------------
This e-mail and any attachments may be confidential or legally privileged. If
you received this message in error or are not the intended recipient, you
should destroy the e-mail message and any attachments or copies, and you are
prohibited from retaining, distributing, disclosing or using any information
contained herein. Please inform us of the erroneous delivery by return e-mail.
Thank you for your cooperation.
----------------------------------------------------------------------------