Click here to Skip to main content
15,889,604 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CDocument Class Pin
Ryan Binns27-Feb-06 17:54
Ryan Binns27-Feb-06 17:54 
GeneralRe: CDocument Class Pin
Subramaniam s.V.27-Feb-06 18:04
Subramaniam s.V.27-Feb-06 18:04 
GeneralRe: CDocument Class Pin
haian244227-Feb-06 21:58
haian244227-Feb-06 21:58 
GeneralRe: CDocument Class Pin
Ryan Binns27-Feb-06 22:48
Ryan Binns27-Feb-06 22:48 
QuestionFindFirstPrinterChangeNotification() fail! Pin
szcococut27-Feb-06 15:43
szcococut27-Feb-06 15:43 
AnswerRe: FindFirstPrinterChangeNotification() fail! Pin
Blake Miller1-Mar-06 9:28
Blake Miller1-Mar-06 9:28 
GeneralRe: FindFirstPrinterChangeNotification() fail! Pin
szcococut1-Mar-06 21:37
szcococut1-Mar-06 21:37 
GeneralRe: FindFirstPrinterChangeNotification() fail! Pin
Blake Miller2-Mar-06 4:16
Blake Miller2-Mar-06 4:16 
The same way you open the other ones, but you have to be granted access permission form the owner of the object, in this case the printer.

In other words, a network administrator needs to grant the MachineName\Administrator account privileges to modify the printer.

Also, you could try different access permission request, instead of ALL_ACCESS try something like 'read' access rights on the OpenPrinter command, that might work, since you are perhaps not trying to change anything.

Most people seem to go for ALL_ACCESS when they only want to query a device. Opening for read only access often works where 'all access' or 'write access' requests fail.

You could post the code for your OpenPrinter command and me or someone here could try to help you out.

People that start writing code immediately are programmers (or hackers), people that ask questions first are Software Engineers - Graham Shanks
Questioninvisible c++ mfc app Pin
yageroy27-Feb-06 15:41
yageroy27-Feb-06 15:41 
AnswerRe: invisible c++ mfc app Pin
Hamid_RT27-Feb-06 17:11
Hamid_RT27-Feb-06 17:11 
GeneralRe: invisible c++ mfc app Pin
yageroy27-Feb-06 17:30
yageroy27-Feb-06 17:30 
GeneralRe: invisible c++ mfc app Pin
Hamid_RT27-Feb-06 17:44
Hamid_RT27-Feb-06 17:44 
GeneralRe: invisible c++ mfc app Pin
yageroy27-Feb-06 17:46
yageroy27-Feb-06 17:46 
AnswerRe: invisible c++ mfc app Pin
Ryan Binns27-Feb-06 17:56
Ryan Binns27-Feb-06 17:56 
GeneralRe: invisible c++ mfc app Pin
yageroy27-Feb-06 18:12
yageroy27-Feb-06 18:12 
QuestionHow to set color in each item in CCombobox Pin
lorey27-Feb-06 15:31
lorey27-Feb-06 15:31 
AnswerRe: How to set color in each item in CCombobox Pin
mbue27-Feb-06 15:40
mbue27-Feb-06 15:40 
AnswerRe: How to set color in each item in CCombobox Pin
Nibu babu thomas27-Feb-06 17:19
Nibu babu thomas27-Feb-06 17:19 
AnswerRe: How to set color in each item in CCombobox Pin
Hamid_RT27-Feb-06 17:31
Hamid_RT27-Feb-06 17:31 
QuestionUI Programming start Pin
Chintoo72327-Feb-06 14:46
Chintoo72327-Feb-06 14:46 
AnswerRe: UI Programming start Pin
_AnsHUMAN_ 27-Feb-06 16:45
_AnsHUMAN_ 27-Feb-06 16:45 
GeneralRe: UI Programming start Pin
Chintoo72327-Feb-06 17:31
Chintoo72327-Feb-06 17:31 
GeneralRe: UI Programming start Pin
_AnsHUMAN_ 27-Feb-06 18:10
_AnsHUMAN_ 27-Feb-06 18:10 
QuestionHow to Compute the ID of "eject" menuitem? Pin
Syouki_kou27-Feb-06 14:07
Syouki_kou27-Feb-06 14:07 
AnswerRe: How to Compute the ID of "eject" menuitem? Pin
mbue27-Feb-06 15:47
mbue27-Feb-06 15:47 

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.