forum.alglib.net

ALGLIB forum
It is currently Sat Apr 27, 2024 2:15 pm

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Calling alglib2.dll without directly (without interface)
PostPosted: Mon Jul 04, 2011 8:55 am 
Offline

Joined: Tue Jan 11, 2011 10:44 am
Posts: 9
Hi,

In the thread viewtopic.php?f=2&t=145&p=848&hilit=minbleic#p848
we implemented a COM-visible interface, in order to call the underlying minBLEIC functionality and that worked fine. Unfortunately, my colleagues have another Windows version and are not very into COM/.Net technology.

Is it also possible to call the alglib2.dll's methods directly i.e. without COM registration etc., via e.g. the declare statement in VBA?

for instance something of the type:

public declare minbleicsetbc lib "alglib2" (...)

Is it alternatively possilble to use the VBA statement CreateObject("ALGLIB") creating an instance of an ALGLIB object?


Top
 Profile  
 
 Post subject: Re: Calling alglib2.dll without directly (without interface)
PostPosted: Mon Jul 04, 2011 8:09 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 906
I don't know much about VBA-dotNet interfacing, it is quite an esoteric area. And, in fact, calling managed code from unmanaged code seems to be very sparsely documented by MS. More common scenario (calls to native functions from .NET program) is much more better documented and discussed in the network. So I can't give you any recommendation about your specific way of using ALGLIB.

But maybe it is better to use C++ version of ALGLIB? VBA is relatively good at calling native functions. You have to write code which passes complex data structures like multidimensional dynamic arrays, but at the very least you have good documentation.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 341 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group