Support Board
Date/Time: Sun, 29 Dec 2024 14:13:35 +0000
Post From: How to Call DllMain() from an Additional Object File
[2016-05-02 14:05:47] |
Pinger - Posts: 33 |
Thanks for your swift replies. I have decided to create a DLL file containing my additional functions and use the LoadLibrary()/GetProcAddress() to load it into my study and call my functions. This appears to work well, my DllMain function is called successfully. This is quite a neat solution, although I now need to copy both my study and additional functions DLL's to my VPS (this is what I was initially hoping to avoid). A follow up question... My study loads my DLL and works well on my local machine, but when I transfer them to my VPS my functions cause CPU exceptions. Do I need to use the same compiler flags when compiling my DLL that SierraChart uses when compiling my study? I'm guessing the answer to this is, yes. Cheers |