Support Board
Date/Time: Sun, 11 May 2025 15:04:41 +0000
Post From: CreateFile - Error
[2014-10-25 19:39:58] |
Bitcoinadvisor - Posts: 14 |
Hello, I have written a C++ study DLL to do some processing, at certain times I want to generate a file with some data I have collected from a chart. I am taking the scsf_WriteBarDataToFile example from Study6.cpp I have added the code to my study but, I get an error on the following lines: hFile = CreateFile(OutputPathAndFileName.GetChars,GENERIC_WRITE, 0, NULL, CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL, NULL); Error 2 error C3867: 'SCString::GetChars': function call missing argument list; use '&SCString::GetChars' to create a pointer to member c:\sierracharts\my custom study dll\my custom study dll\mycustomstudy.cpp 600 1 My Custom Study DLL So issue here is I want to create a file and write some data to it, the error above is preventing me from doing that. Does anyone have any suggestions please. thanks Andrew |