Click here to Skip to main content
15,885,366 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC vc++ and MySQL database Pin
_Flaviu13-Sep-19 1:13
_Flaviu13-Sep-19 1:13 
GeneralRe: MFC vc++ and MySQL database Pin
Member 1457555615-Sep-19 19:33
Member 1457555615-Sep-19 19:33 
GeneralRe: MFC vc++ and MySQL database Pin
_Flaviu15-Sep-19 22:30
_Flaviu15-Sep-19 22:30 
GeneralRe: MFC vc++ and MySQL database Pin
Member 1457555616-Sep-19 3:06
Member 1457555616-Sep-19 3:06 
GeneralRe: MFC vc++ and MySQL database Pin
_Flaviu16-Sep-19 8:05
_Flaviu16-Sep-19 8:05 
GeneralRe: MFC vc++ and MySQL database Pin
Member 1457555617-Sep-19 20:29
Member 1457555617-Sep-19 20:29 
GeneralRe: MFC vc++ and MySQL database Pin
_Flaviu18-Sep-19 1:10
_Flaviu18-Sep-19 1:10 
Question_open generate "Access is denied" error Pin
_Flaviu1-Sep-19 7:44
_Flaviu1-Sep-19 7: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 21:04
Graham Breach1-Sep-19 21:04 
AnswerRe: _open generate "Access is denied" error Pin
Richard MacCutchan1-Sep-19 22:04
mveRichard MacCutchan1-Sep-19 22:04 
GeneralRe: _open generate "Access is denied" error Pin
_Flaviu2-Sep-19 1:58
_Flaviu2-Sep-19 1:58 
QuestionRe: _open generate "Access is denied" error Pin
Richard MacCutchan2-Sep-19 5:42
mveRichard MacCutchan2-Sep-19 5:42 
AnswerRe: _open generate "Access is denied" error Pin
_Flaviu4-Sep-19 0:30
_Flaviu4-Sep-19 0:30 
GeneralRe: _open generate "Access is denied" error Pin
Richard MacCutchan4-Sep-19 1:10
mveRichard MacCutchan4-Sep-19 1:10 
GeneralRe: _open generate "Access is denied" error Pin
_Flaviu4-Sep-19 1:18
_Flaviu4-Sep-19 1:18 
GeneralRe: _open generate "Access is denied" error Pin
Richard MacCutchan4-Sep-19 1:31
mveRichard MacCutchan4-Sep-19 1:31 
AnswerRe: _open generate "Access is denied" error Pin
leon de boer1-Sep-19 22:19
leon de boer1-Sep-19 22:19 
GeneralRe: _open generate "Access is denied" error Pin
_Flaviu2-Sep-19 1:37
_Flaviu2-Sep-19 1:37 
GeneralRe: _open generate "Access is denied" error Pin
_Flaviu2-Sep-19 3:27
_Flaviu2-Sep-19 3:27 
GeneralRe: _open generate "Access is denied" error Pin
leon de boer2-Sep-19 14:52
leon de boer2-Sep-19 14:52 
GeneralRe: _open generate "Access is denied" error Pin
_Flaviu4-Sep-19 0:29
_Flaviu4-Sep-19 0:29 
GeneralRe: _open generate "Access is denied" error Pin
Victor Nijegorodov4-Sep-19 1:58
Victor Nijegorodov4-Sep-19 1:58 
GeneralRe: _open generate "Access is denied" error Pin
_Flaviu4-Sep-19 9:01
_Flaviu4-Sep-19 9:01 
GeneralRe: _open generate "Access is denied" error Pin
Victor Nijegorodov4-Sep-19 9:09
Victor Nijegorodov4-Sep-19 9:09 
GeneralRe: _open generate "Access is denied" error Pin
leon de boer4-Sep-19 15:03
leon de boer4-Sep-19 15: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.