Login Page - Create Account

Support Board


Date/Time: Thu, 06 Mar 2025 03:36:14 +0000



Post From: ACSIL - How to use sc object in header file?

[2022-01-13 20:57:03]
frozentundra - Posts: 94
Hello,

Context of my question:
I'd like to create a "helper" header file with functionality I will re-use across studies I write.
Rather than re-writing these helper functions every time I make a new study, I want to create a single header file that will house all of these helper functions. I could include this helper header file in new studies and be able to shorten my dev time.

The good:
The header file I was able to create and include with my study file. Both compile fine without errors.

The question:
How do I reference the SCStudyInterfaceRef sc object that is injected into the SCSFExport scsf_MyStudyName function from my helper.h header file?

How are other developers accomplishing this?