Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default DLL that takes and returns ranges does not always work

Hi,

I have a DLL written in C++ that takes ranges as arguments and returns also
a range. For some reason it does not always return numerical values. In
other words, I need to click "Shift+Ctrl+Enter" repeatedly to get it to work.
When it does not return numerical values, it fills in the cells with
"#VALUE!". Any idea on how to fix this?

The DLL has an embedded optimization process that runs longer for certain
input values. Could this be a problem? Do I need to slow Excel down somehow
to make it wait for the DLL to finish the optimization. If so, any idea on
how to do this?

Thanks tons!

PS: Here is my linker line in Excel:
Declare Function baBDTTree Lib "C:\...\BDTdll.dll" (a() As Double, b() As
Double, c() As Double, n As Integer, deltaT As Double) As Double

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't get NETWORKDAYS formula to work, it returns #NAME? Sarah Excel Discussion (Misc queries) 3 July 16th 09 11:06 AM
INDEX formula returns #REF! error for ranges larger than two cells hmm Excel Worksheet Functions 3 February 18th 08 01:58 PM
How to work out annualized % returns Kevin Excel Discussion (Misc queries) 3 October 10th 06 11:58 PM
Trying to work with User-selected non-contiguous ranges Tristan[_6_] Excel Programming 3 May 15th 06 01:03 AM
Save takes seconds vs. SaveAs/Save As takes minutes Andrew H[_3_] Excel Programming 0 August 17th 04 07:17 PM


All times are GMT +1. The time now is 08:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"