LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Help!! xlfGetDocuments returns invalid function error (xlretInvXlfn)

Hi,
Someone please help..this is driving me crazy..and i am close to
release :-(.

I have an addin using the C++ XLW API...it also has a dotNET
component.

I make the following call. (I am trying to detect whether the user has
automatic calculation turned on)

XlfOper ret;
int success=0;
success = XlfExcel::Instance().Call(xlfGetDocument, ret, 1,
XlfOper((short)14));

This works fine with Excel 2003 and .NET 1.1
On a machine with Excel 2003 and .NET 2.0 this call often, but not
always returns
success = 2 (which means xlretInvXlfn - invalid function number).
Help what is going on????

When i actually print out the value of xlfGetdocument it is 188 -
which is correct.
Is my stack getting corrupt ?

 
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
IF(AND(OR function returns #VALUE! error Linda Excel Worksheet Functions 3 April 15th 09 06:00 PM
Nested IF Function returns #NAME? Error bw Excel Worksheet Functions 8 October 29th 08 12:35 PM
weeknum function returns name error Unison Mike Excel Worksheet Functions 4 May 24th 05 09:27 PM
Function returns Range -- error 91 [email protected] Excel Programming 6 December 15th 04 09:03 PM


All times are GMT +1. The time now is 10:02 PM.

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

About Us

"It's about Microsoft Excel"