Click here to Skip to main content
15,860,972 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GEt path of msi Pin
Rajesh R Subramanian11-Apr-09 0:23
professionalRajesh R Subramanian11-Apr-09 0:23 
GeneralRe: GEt path of msi Pin
p_196011-Apr-09 1:04
p_196011-Apr-09 1:04 
GeneralRe: GEt path of msi Pin
Rajesh R Subramanian11-Apr-09 3:31
professionalRajesh R Subramanian11-Apr-09 3:31 
AnswerRe: GEt path of msi Pin
Narendra Reddy Vajrala18-Jun-09 5:17
Narendra Reddy Vajrala18-Jun-09 5:17 
Questiondialog window Pin
durban210-Apr-09 21:11
durban210-Apr-09 21:11 
AnswerRe: dialog window Pin
Rajesh R Subramanian10-Apr-09 21:26
professionalRajesh R Subramanian10-Apr-09 21:26 
QuestionUnderstanding GetUserObjectSecurity function Pin
rbwest8610-Apr-09 21:09
rbwest8610-Apr-09 21:09 
AnswerRe: Understanding GetUserObjectSecurity function (warning: long reply) Pin
Rajesh R Subramanian10-Apr-09 22:28
professionalRajesh R Subramanian10-Apr-09 22:28 
rbwest86 wrote:
GetUserObjectSecurity is a function. Its function is a member of what?


I don't quite get this. If you're asking "where" is this function located, then I would say it is within a DLL named User32.dll, and comes with a companion lib file named User32.lib (The prototype is defined in Winuser.h, which is in turn included by Windows.h). So when you link to User32.lib, you could use the function like using a function that is within your code.


rbwest86 wrote:
does GetUserObjectSecurity have to be included in int main()


You don't "include" a function, you call it. You can call this function, wherever you want to, given that you've included the relevant header file and linked to the relevant library, discussed above.


rbwest86 wrote:
I read that BOOL is the older version of bool? And all bool is for, is for true/false correct?


BOOL is actually int, defined like this: typedef int BOOL; (I'm not sure about the file, just right click and select go to definition.) Also, Google for "BOOL vs bool".


rbwest86 wrote:
Is BOOL older version of bool?


No.


rbwest86 wrote:
And all bool is for, is for true/false correct?


Yes.


rbwest86 wrote:
I also read that bool uses one (byte), versus BOOL uses 32(bits). Why is this?


BOOL uses 32 bits because it *is* an integer (discussed above). bool is limited to work with true and false. But with BOOL, you could use any integer. And this can come handy, if you're returning BOOL from a function and you could:

* return -1 to indicate that the function failed
* return 1 to indicate that the function succeeded
* return 5 to indicate that the something went wrong, but the error was handled. (A file wasn't existing, but it was created and written into)
* etc.,


rbwest86 wrote:
Also when you use bool, is it required to be typed out in your source, or is it implied by some file? How do you properly use bool?


bool is an in-built datatype. You do not have to include any headerfile to use it. However, to use BOOL, you may have to include the headerfile, which defines it (right click on BOOL, select go to definition. That should show you the header file)


rbwest86 wrote:
When using GetUserObjectSecurity, what are the usages of the parameters? Can anyone provide an example with an explanation?


The MSDN doc page what you gave us, has an example link for the same function at the bottom. It is here[^]


It is a crappy thing, but it's life -^ Carlo Pallini

QuestionResource DLL Pin
Varun Bhatt10-Apr-09 21:01
Varun Bhatt10-Apr-09 21:01 
AnswerRe: Resource DLL Pin
«_Superman_»11-Apr-09 20:58
professional«_Superman_»11-Apr-09 20:58 
AnswerWhy does my property sheet has disappeared immediately? [solved] Pin
PCuong198310-Apr-09 18:35
professionalPCuong198310-Apr-09 18:35 
QuestionImage::GetThumbnailImage problem Pin
followait10-Apr-09 15:46
followait10-Apr-09 15:46 
Questionmicrocontroller coding Pin
vikram868610-Apr-09 13:04
vikram868610-Apr-09 13:04 
AnswerRe: microcontroller coding Pin
Garth J Lancaster10-Apr-09 14:23
professionalGarth J Lancaster10-Apr-09 14:23 
Questionsudoku runtime error help please !!!!! Pin
tayyyar10-Apr-09 11:14
tayyyar10-Apr-09 11:14 
AnswerRe: sudoku runtime error help please !!!!! Pin
Luc 64801110-Apr-09 11:48
Luc 64801110-Apr-09 11:48 
AnswerRe: sudoku runtime error help please !!!!! Pin
Garth J Lancaster10-Apr-09 14:27
professionalGarth J Lancaster10-Apr-09 14:27 
AnswerRe: sudoku runtime error help please !!!!! Pin
Maximilien10-Apr-09 15:04
Maximilien10-Apr-09 15:04 
QuestionRe: sudoku runtime error help please !!!!! Pin
David Crow10-Apr-09 17:12
David Crow10-Apr-09 17:12 
AnswerRe: sudoku runtime error help please !!!!! [modified] Pin
tayyyar10-Apr-09 17:59
tayyyar10-Apr-09 17:59 
GeneralRe: sudoku runtime error help please !!!!! Pin
Cedric Moonen10-Apr-09 22:09
Cedric Moonen10-Apr-09 22:09 
GeneralRe: sudoku runtime error help please !!!!! Pin
tayyyar11-Apr-09 1:35
tayyyar11-Apr-09 1:35 
GeneralRe: sudoku runtime error help please !!!!! Pin
David Crow13-Apr-09 3:28
David Crow13-Apr-09 3:28 
QuestionRe: sudoku runtime error help please !!!!! Pin
David Crow13-Apr-09 3:32
David Crow13-Apr-09 3:32 
AnswerRe: sudoku runtime error help please !!!!! Pin
Sauce!12-Apr-09 6:03
Sauce!12-Apr-09 6: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.