Hi,

 

I'm the person who is wanting this.

 

I've made a start, connecting a test VB6 program to "libnlopt-0.dll".

I've almost got it working in VB6 for the tutorial example.

 

The key functions I use are

 

      AddressOf         'For defining the call-back functions for
objective function and constraints

      VarPtr            'For converting VB variables into the pointers
that the DLL needs

      RtlMoveMemory     'For getting the values from the pointers passed
back from the DLL, and assigning new values to the variables represented
by the pointers

 

So far it goes successfully through two steps of the optimisation and
constraint testing.

Unfortunately, it then crashes with a memory read error, which has me
stumped.

 

Has anyone got any bright ideas?

 

I can post the code somewhere if you tell me where.

Or send it on an email if that is better?

 

Another question: Has anyone done a Visual studio project of
"libnlopt-0.dll"?

That might make debugging easier.

 

 

Regards,

Anthony Waters

KBC Energy Services

Email: [email protected]

Tel: +44 (0)1606 815100 

 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Mathew
Mazur
Sent: 27 October 2010 08:47
To: [email protected]
Subject: [NLopt-discuss] vb/excel support

 

has NLOPT got support for VB/VBA so that it may be used within excel? If
not what would be the best approach to make it compatible?

 

 

      

 

_______________________________________________

NLopt-discuss mailing list

[email protected]

http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss

This e-mail is confidential and intended only for the individual(s) to whom it 
is addressed. If you or your organisation is not an intended recipient of this 
e-mail, please notify the sender by replying and do not read or disseminate its 
information. Please delete all copies from your system. KBC is liable neither 
for the proper or complete transmission of the information contained in this 
communication nor for any delay in its receipt. Opinions, conclusions and other 
information in this message and attachments that do not relate to the official 
business of KBC are neither given nor endorsed by it. Even though the Webroot 
Virus Centre has checked this message for all known viruses, you should carry 
out your own virus checks before opening any attachments. Thank you for your 
co-operation. www.kbcat.com
_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss

Reply via email to