Click here to Skip to main content
14,367,300 members

C / C++ / MFC

 
QuestionOnInitDialog() MFC vc++ Pin
Member 145755563-Oct-19 20:32
memberMember 145755563-Oct-19 20:32 
AnswerRe: OnInitDialog() MFC vc++ Pin
Richard MacCutchan3-Oct-19 21:58
protectorRichard MacCutchan3-Oct-19 21:58 
QuestionHow should I manage my register addresses and expose some of them properly and ensure consistency? Pin
arnold_w3-Oct-19 9:00
memberarnold_w3-Oct-19 9:00 
AnswerRe: How should I manage my register addresses and expose some of them properly and ensure consistency? Pin
Daniel Pfeffer3-Oct-19 21:27
professionalDaniel Pfeffer3-Oct-19 21:27 
GeneralRe: How should I manage my register addresses and expose some of them properly and ensure consistency? Pin
arnold_w3-Oct-19 21:58
memberarnold_w3-Oct-19 21:58 
GeneralRe: How should I manage my register addresses and expose some of them properly and ensure consistency? Pin
leon de boer4-Oct-19 5:23
memberleon de boer4-Oct-19 5:23 
GeneralRe: How should I manage my register addresses and expose some of them properly and ensure consistency? Pin
arnold_w9-Oct-19 23:46
memberarnold_w9-Oct-19 23:46 
QuestionS_IRUSR S_IWUSR Pin
_Flaviu3-Oct-19 8:12
member_Flaviu3-Oct-19 8:12 
I have following line of code:
open(pathname, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);

which generate 2 errors:
error C2065: 'S_IRUSR' : undeclared identifier
error C2065: 'S_IWUSR' : undeclared identifier

I've read on internet that these IDs are declared inside #include <sys/stat.h>
but inside this file I don't have such IDs. But I replaced them with:
open(pathname, O_RDWR | O_CREAT | O_TRUNC, S_IREAD | S_IWRITE);

(I mean: S_IREAD | S_IWRITE) Just to be sure, it is ok like that ?
AnswerRe: S_IRUSR S_IWUSR Pin
Richard MacCutchan3-Oct-19 8:32
protectorRichard MacCutchan3-Oct-19 8:32 
AnswerRe: S_IRUSR S_IWUSR Pin
David Crow3-Oct-19 8:33
memberDavid Crow3-Oct-19 8:33 
AnswerRe: S_IRUSR S_IWUSR Pin
CPallini3-Oct-19 8:46
mveCPallini3-Oct-19 8:46 
QuestionTool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
arnold_w3-Oct-19 2:27
memberarnold_w3-Oct-19 2:27 
AnswerRe: Tool to replace tabs with --- variable number of spaces --- and preserving width? Pin
_Flaviu3-Oct-19 2:32
member_Flaviu3-Oct-19 2:32 
GeneralRe: Tool to replace tabs with --- variable number of spaces --- and preserving width? Pin
arnold_w3-Oct-19 2:52
memberarnold_w3-Oct-19 2:52 
AnswerRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
Richard MacCutchan3-Oct-19 3:16
protectorRichard MacCutchan3-Oct-19 3:16 
GeneralRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
phil.o3-Oct-19 3:29
mvephil.o3-Oct-19 3:29 
GeneralRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
Richard MacCutchan3-Oct-19 3:37
protectorRichard MacCutchan3-Oct-19 3:37 
GeneralRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
phil.o3-Oct-19 3:46
mvephil.o3-Oct-19 3:46 
GeneralRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
Richard MacCutchan3-Oct-19 3:53
protectorRichard MacCutchan3-Oct-19 3:53 
AnswerRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
phil.o3-Oct-19 3:27
mvephil.o3-Oct-19 3:27 
AnswerRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
leon de boer3-Oct-19 7:38
memberleon de boer3-Oct-19 7:38 
GeneralRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
arnold_w3-Oct-19 7:41
memberarnold_w3-Oct-19 7:41 
GeneralRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
leon de boer4-Oct-19 4:52
memberleon de boer4-Oct-19 4:52 
GeneralRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
arnold_w4-Oct-19 6:44
memberarnold_w4-Oct-19 6:44 
AnswerRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
arnold_w3-Oct-19 8:37
memberarnold_w3-Oct-19 8:37 

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.