Click here to Skip to main content
15,843,031 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC vc++ and MySQL database Pin
_Flaviu13-Sep-19 2:13
_Flaviu13-Sep-19 2:13 
GeneralRe: MFC vc++ and MySQL database Pin
Member 1457555615-Sep-19 20:33
Member 1457555615-Sep-19 20:33 
GeneralRe: MFC vc++ and MySQL database Pin
_Flaviu15-Sep-19 23:30
_Flaviu15-Sep-19 23:30 
GeneralRe: MFC vc++ and MySQL database Pin
Member 1457555616-Sep-19 4:06
Member 1457555616-Sep-19 4:06 
GeneralRe: MFC vc++ and MySQL database Pin
_Flaviu16-Sep-19 9:05
_Flaviu16-Sep-19 9:05 
GeneralRe: MFC vc++ and MySQL database Pin
Member 1457555617-Sep-19 21:29
Member 1457555617-Sep-19 21:29 
GeneralRe: MFC vc++ and MySQL database Pin
_Flaviu18-Sep-19 2:10
_Flaviu18-Sep-19 2:10 
Question_open generate "Access is denied" error Pin
_Flaviu1-Sep-19 8:44
_Flaviu1-Sep-19 8:44 
Confidence that I have solved all strange errors here, I come back with some issue generated by a legacy C code for linux, code that I intend to use it in a MFC app in windows OS.

Ok. I have a simple code:
C++
int nRespond = _open(device, 020);
UINT err = ::GetLastError();

where devide is const char* and has value C (or D:, or E: )
The nRespond is -1 and err has value 5, which is mean Access is denied. What could be the problem here ? I ran the test app as administrator mode (ran from VS2017 as admin mode).
AnswerRe: _open generate "Access is denied" error Pin
Graham Breach1-Sep-19 22:04
Graham Breach1-Sep-19 22:04 
AnswerRe: _open generate "Access is denied" error Pin
Richard MacCutchan1-Sep-19 23:04
mveRichard MacCutchan1-Sep-19 23:04 
GeneralRe: _open generate "Access is denied" error Pin
_Flaviu2-Sep-19 2:58
_Flaviu2-Sep-19 2:58 
QuestionRe: _open generate "Access is denied" error Pin
Richard MacCutchan2-Sep-19 6:42
mveRichard MacCutchan2-Sep-19 6:42 
AnswerRe: _open generate "Access is denied" error Pin
_Flaviu4-Sep-19 1:30
_Flaviu4-Sep-19 1:30 
GeneralRe: _open generate "Access is denied" error Pin
Richard MacCutchan4-Sep-19 2:10
mveRichard MacCutchan4-Sep-19 2:10 
GeneralRe: _open generate "Access is denied" error Pin
_Flaviu4-Sep-19 2:18
_Flaviu4-Sep-19 2:18 
GeneralRe: _open generate "Access is denied" error Pin
Richard MacCutchan4-Sep-19 2:31
mveRichard MacCutchan4-Sep-19 2:31 
AnswerRe: _open generate "Access is denied" error Pin
leon de boer1-Sep-19 23:19
leon de boer1-Sep-19 23:19 
GeneralRe: _open generate "Access is denied" error Pin
_Flaviu2-Sep-19 2:37
_Flaviu2-Sep-19 2:37 
GeneralRe: _open generate "Access is denied" error Pin
_Flaviu2-Sep-19 4:27
_Flaviu2-Sep-19 4:27 
GeneralRe: _open generate "Access is denied" error Pin
leon de boer2-Sep-19 15:52
leon de boer2-Sep-19 15:52 
GeneralRe: _open generate "Access is denied" error Pin
_Flaviu4-Sep-19 1:29
_Flaviu4-Sep-19 1:29 
GeneralRe: _open generate "Access is denied" error Pin
Victor Nijegorodov4-Sep-19 2:58
Victor Nijegorodov4-Sep-19 2:58 
GeneralRe: _open generate "Access is denied" error Pin
_Flaviu4-Sep-19 10:01
_Flaviu4-Sep-19 10:01 
GeneralRe: _open generate "Access is denied" error Pin
Victor Nijegorodov4-Sep-19 10:09
Victor Nijegorodov4-Sep-19 10:09 
GeneralRe: _open generate "Access is denied" error Pin
leon de boer4-Sep-19 16:03
leon de boer4-Sep-19 16:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.