Re: RE: RE: [Help-glpk] VBA/dll for Excel

2008-04-06 Thread glpk xypron
400 > Von: "Meketon, Marc" <[EMAIL PROTECTED]> > An: "glpk xypron" <[EMAIL PROTECTED]>, help-glpk@gnu.org > Betreff: RE: RE: [Help-glpk] VBA/dll for Excel > Xypron: > > Thank you for the work that you did on this. I ran out of time to test >

RE: RE: [Help-glpk] VBA/dll for Excel

2008-04-06 Thread Meketon, Marc
PARM, addressOfCBFunc as long) iocp.cb_func = addressOfCBFunc End sub And then use setCBFunc iocp, AddressOf MyCallBackFunction instead of the assignment statement. -Marc -Original Message- From: glpk xypron [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2008 11:03 PM To:

Re: [Help-glpk] VBA/dll for Excel

2008-03-19 Thread Andrew Makhorin
> I can understand that You want to keep the core of GLPK independent > of operating system considerations. > Writing a wrapper seems easy to do. Care has to be given to > glp_term_hook because the hook function will be __stdcall. The wrapper > will have to alloc memory to build a info structure a

Re: [Help-glpk] VBA/dll for Excel

2008-03-19 Thread glpk xypron
10:47:18 +0300 > Von: Andrew Makhorin <[EMAIL PROTECTED]> > An: "glpk xypron" <[EMAIL PROTECTED]> > CC: "Meketon, Marc" <[EMAIL PROTECTED]>, [EMAIL PROTECTED], help-glpk@gnu.org > Betreff: Re: [Help-glpk] VBA/dll for Excel > > the

Re: [Help-glpk] VBA/dll for Excel

2008-03-19 Thread Andrew Makhorin
> the problem is due to GLPK being compiled with __cdecl calling > convention instead of __stdcall calling convention. > References: > http://www.geocities.com/yongweiwu/stdcall.htm > http://msdn2.microsoft.com/en-us/library/zxk0tw93.aspx > I have recompiled the DLL with compiler switch /Gz > Mak

Re: RE: [Help-glpk] VBA/dll for Excel

2008-03-18 Thread glpk xypron
Call glp_delete_prob(lp) End Sub Original-Nachricht > Datum: Tue, 18 Mar 2008 12:49:35 -0400 > Von: "Meketon, Marc" <[EMAIL PROTECTED]> > An: help-glpk@gnu.org > CC: "Xypron" <[EMAIL PROTECTED]> > Betreff: RE: [Help-glpk] VBA/dll

RE: RE: [Help-glpk] VBA/dll for Excel

2008-03-18 Thread Meketon, Marc
0:04 PM To: Meketon, Marc Cc: help-glpk@gnu.org; [EMAIL PROTECTED] Subject: Re: RE: [Help-glpk] VBA/dll for Excel Hello Marc, the problem is due to GLPK being compiled with __cdecl calling convention instead of __stdcall calling convention. References: http://www.geocities.com/yongweiwu/stdcall.htm ht

Re: RE: [Help-glpk] VBA/dll for Excel

2008-03-18 Thread glpk xypron
blem. Best regards Xypron Original-Nachricht > Datum: Tue, 18 Mar 2008 14:46:42 -0400 > Von: "Meketon, Marc" <[EMAIL PROTECTED]> > An: "Xypron" <[EMAIL PROTECTED]> > CC: help-glpk@gnu.org > Betreff: RE: [Help-glpk] VBA/dll for

RE: [Help-glpk] VBA/dll for Excel

2008-03-18 Thread Meketon, Marc
t your build with Visual Studio as opposed to mine with Turbo C++. -Marc -Original Message- From: Xypron [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2008 10:53 AM To: Meketon, Marc Cc: help-glpk@gnu.org Subject: Re: [Help-glpk] VBA/dll for Excel Hello Marc, couldn't You use

Re: [Help-glpk] VBA/dll for Excel

2008-03-18 Thread Andrew Makhorin
> I produced a DLL as well by adding __stdcall __export to the right > function calls. [BTW, I'm using the free Turbo C++ compiler from > Borland.] > BUT, I cannot seem to get the callback function for "glp_term_hook" to > properly work. Before I begin to setup the problem, I use very similar >

RE: [Help-glpk] VBA/dll for Excel

2008-03-18 Thread Meketon, Marc
ypron [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2008 10:53 AM To: Meketon, Marc Cc: help-glpk@gnu.org Subject: Re: [Help-glpk] VBA/dll for Excel Hello Marc, couldn't You use the DLL produced by w32/Build_GLPK_with_VC6_MT_DLL.bat with Visual C++ 7.0 or 6.0? (see ftp://glpk.dyndns.org

Re: [Help-glpk] VBA/dll for Excel

2008-03-18 Thread Xypron
Hello Marc, couldn't You use the DLL produced by w32/Build_GLPK_with_VC6_MT_DLL.bat with Visual C++ 7.0 or 6.0? (see ftp://glpk.dyndns.org/glpk/glpk_4_27.dll.tar.gz) Best regards Xypron Meketon, Marc wrote: A while back there was a version of GLPK for VBA applications (such as in Excel). Th

[Help-glpk] VBA/dll for Excel

2008-03-17 Thread Meketon, Marc
A while back there was a version of GLPK for VBA applications (such as in Excel). That was based on version 10 of GLPK. Does anyone work with GLPK in VBA with a recent version of the software? If so, can you please provide links? It appears that the original folks (Informatik Fuchs) do have a v