An Initializer List Is Expected In This Context.

  • Thread starter Thread starter MyCatAlex
  • Start date Start date
M

MyCatAlex

Guest
As a part of a C++ Project I need to store a large number of floating point numbers. So, I purchased an SSD hard disk drive and defined a text tile on it. The name is SphHarm.dat. So, I defined a CreatFile function with appropriate parameters hoping that I can write those numbers once only onto this SSD and then the rest of the program will use those numbers multiple time in READ operations, most likely in a SHARE mode. I get a compile error in there. This is the code:

HANDLE hMyFileHandle;
hMyFileHandle = ::^^CreateFile{
"SphHarm.dat",
GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL };

The place of the error is marked by two carets and the compiler says what I posted at the title.

Please help.

Thank you, -MyCatAlex

Continue reading...
 

Similar threads

M
Replies
0
Views
156
MyCatAlex
M
M
Replies
0
Views
196
MyCatAlex
M
M
Replies
0
Views
219
MyCatAlex
M
G
Replies
0
Views
117
Gurunama
G
Back
Top