createfile Questions
2
Solved
The MSDN page on CreateFile says: The string "\\.\C:\" can be used to open the file system of the C: volume. However, the following code always returns an error : ERROR_PATH_NOT_FOUND.
HANDLE h = ...
Albertina asked 8/1, 2013 at 3:4
1
Solved
I'm trying to prevent a third-party DLL in my process from reading a file I've opened, and I've found it to be... well, impossible.
No matter what I do, no matter what share flags I specify, their...
Taegu asked 21/12, 2012 at 3:41
2
Solved
I recently redesigned the security on a file server of ours, marking most of what was Full Control to be Modify. Now my developers are telling me that whenever they use GENERIC_ALL to open a file (...
Grassofparnassus asked 9/5, 2012 at 1:20
2
Solved
When I use vim newfilename to open a file and this file does not exit, vim will create a new file with the name newfilename.
However, MacVim does not work in this way --- i.e. mvim newfilename (al...
Donaugh asked 18/9, 2011 at 0:31
1
Solved
I am opening a serial port using CreateFile(). I've got a testcase (too complicated to redistribute) that consistently causes CreateFile() to return INVALID_HANDLE_VALUE and GetLastError() to retur...
Alb asked 5/10, 2011 at 17:43
2
Solved
Ultimate goal: I want to create a webpage where a user can enter information in forms. With that information I want to create a html file (below called test-download.html) by inserting the informat...
Disengagement asked 6/4, 2011 at 0:59
2
Solved
I need to create a file if it does not exist, in a way that another process trying to create this file would fail. I need the file be considered "created" even before the creating process finished ...
Positronium asked 6/3, 2011 at 14:6
2
Solved
I tried to use the File class to create an empty file in a directory like "C:/Temp/Emptyfile".
However, when I do that, it shows me an error : "already made folder Temp". Otherwise, it won't ...
Arezzo asked 26/1, 2011 at 6:45
5
Solved
I am creating a file of a specified size - I don't care what data is in it, although random would be nice. Currently I am doing this:
var sizeInMB = 3; // Up to many Gb
using (FileStream stream ...
Halyard asked 13/12, 2010 at 18:28
5
Solved
I keep getting this error:
cannot convert parameter 1 from 'char' to 'LPCWSTR'
int main(int argc, char argv[])
{
// open port for I/O
HANDLE h = CreateFile(argv[1],GENERIC_READ|GENERIC_WRITE,0...
Stanislas asked 13/10, 2010 at 14:45
6
I am working with USB device on Windows that is seen as a virtual serial port. I can communicate with the device using CreateFile and ReadFile functions, but in some cases my application does not c...
Homespun asked 1/6, 2010 at 9:3
4
Solved
What are the differences, and in what cases one or the other would prove superior in some way?
Barnie asked 14/6, 2010 at 14:58
1
Solved
Before I describe my problem, here is a description of the program (IHExplorer.exe) I'm writting:
This is a C++ application.
The IHExplorer application is to look as much like a Windows Explorer ...
Radu asked 17/10, 2009 at 19:41
© 2022 - 2024 — McMap. All rights reserved.