The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 ocmath_reducexy_fixing_increbin
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ReneM

Germany
3 Posts

Posted - 12/06/2016 :  05:47:26 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 2016sr2
Operating System: Win 7 64bit

Hello OriginPro Team,

if I try to use the function example from the help I get the follwing error: "too few arguments passed to function". If I add 2 further arguments (both int 0) between nSize and iOption the function is running, but I have no idea what it does.
Please can you check this and give me a hint how can I use this function.

Thank you
René

yuki_wu

896 Posts

Posted - 12/08/2016 :  12:50:04 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi René,

Our document is always applicable to the latest version of Origin.

In Origin 2016, the syntax is:

int ocmath_reducexy_fixing_increbin(const double *px, const double *pData, const UINT nSize, const double nStart, const double nEnd, const int iOption, double *pMerged, double dInc)

You can check this in:
<Origin EXE Folder>\OriginLab\Origin2016\Origin C\system\ocmath.h

Regards,
Yuki
OriginLab
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 12/17/2016 :  10:53:29 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
It is unfortunate that we had changed an existing function's argument order, something we don't usually do, sorry about that. Usually we add new argument to the end of the prototype with defaults so existing code can still work fine.

CP
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000