for bellow code i am getting the error like Operand types are not compatible with the operator. operand types are as followed.
str fileName;
int hfile;
hfile = WinAPIServer::createFile(fileName);
the code is directly copied from the bellow link.
The return type of createFile
is void
so you can't assign the 'return value' of it to any variable. Consequently the code shown on that site either is wrong or their method signature of createFile
is different to ours