Click here to Skip to main content
15,908,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is it any DLL problem? Pin
krishna Vuppala22-Aug-08 2:03
krishna Vuppala22-Aug-08 2:03 
QuestionRe: Is it any DLL problem? Pin
Perspx22-Aug-08 2:26
Perspx22-Aug-08 2:26 
AnswerRe: Is it any DLL problem? Pin
krishna Vuppala22-Aug-08 2:36
krishna Vuppala22-Aug-08 2:36 
QuestionWhy "OpenPrinter" API fails when open a network printer? Pin
qujun200422-Aug-08 0:31
qujun200422-Aug-08 0:31 
GeneralRe: Why "OpenPrinter" API fails when open a network printer? Pin
Matthew Faithfull22-Aug-08 1:30
Matthew Faithfull22-Aug-08 1:30 
GeneralRe: Why "OpenPrinter" API fails when open a network printer? Pin
qujun200422-Aug-08 1:37
qujun200422-Aug-08 1:37 
AnswerRe: Why "OpenPrinter" API fails when open a network printer? Pin
vikas amin22-Aug-08 4:49
vikas amin22-Aug-08 4:49 
GeneralRe: Why "OpenPrinter" API fails when open a network printer? Pin
qujun200424-Aug-08 15:42
qujun200424-Aug-08 15:42 
Amin, thank you very much!

Actually, I have tested to set the "pDesiredAccess" to "PRINTER_ACCESS_USE", instead of using "PRINTER_ALL_ACCESS". When I doing this, "OpenPrinter" to all printers installed in my machine is successful. However, in fact, there's another network printer which is unaccessible. When I use "PRINTER_ALL_ACCESS" in "OpenPrinter", it can't distinguish this situation.

What I mean is that, in my machine there're two network printers. One is OK and another is really unaccessible. When I use "PRINTER_ALL_ACCESS", "OpenPrinter" to both of the two printers is FAILED. On the contray, use "PRINTER_ACCESS_USE", makes "OpenPrinter" to the two printers successful.

I thought that there should to be a method for "OpenPrinter" to distinguish these two printer accurately. But my test shows that "OpenPrinter" is somewhat awkward.

Maybe there's something wrong with the setting of my computer.
GeneralRe: Why "OpenPrinter" API fails when open a network printer? Pin
vikas amin4-Sep-08 12:56
vikas amin4-Sep-08 12:56 
GeneralRe: Why "OpenPrinter" API fails when open a network printer? Pin
Selçuk GÜRAL11-Dec-17 20:57
Selçuk GÜRAL11-Dec-17 20:57 
QuestionHow to import VB Dll into VC++ Program and How to use functions from VB dll?? Pin
savitri21-Aug-08 23:43
savitri21-Aug-08 23:43 
AnswerRe: How to import VB Dll into VC++ Program and How to use functions from VB dll?? Pin
Hamid_RT21-Aug-08 23:54
Hamid_RT21-Aug-08 23:54 
GeneralRe: How to import VB Dll into VC++ Program and How to use functions from VB dll?? Pin
CPallini22-Aug-08 0:00
mveCPallini22-Aug-08 0:00 
GeneralRe: How to import VB Dll into VC++ Program and How to use functions from VB dll?? Pin
Hamid_RT22-Aug-08 0:21
Hamid_RT22-Aug-08 0:21 
GeneralRe: How to import VB Dll into VC++ Program and How to use functions from VB dll?? [modified] Pin
CPallini22-Aug-08 0:31
mveCPallini22-Aug-08 0:31 
GeneralRe: How to import VB Dll into VC++ Program and How to use functions from VB dll?? Pin
Hamid_RT22-Aug-08 0:59
Hamid_RT22-Aug-08 0:59 
JokeRe: How to import VB Dll into VC++ Program and How to use functions from VB dll?? Pin
CPallini21-Aug-08 23:58
mveCPallini21-Aug-08 23:58 
QuestionRe: How to import VB Dll into VC++ Program and How to use functions from VB dll?? Pin
savitri22-Aug-08 0:27
savitri22-Aug-08 0:27 
AnswerRe: How to import VB Dll into VC++ Program and How to use functions from VB dll?? Pin
_AnsHUMAN_ 22-Aug-08 0:32
_AnsHUMAN_ 22-Aug-08 0:32 
GeneralRe: How to import VB Dll into VC++ Program and How to use functions from VB dll?? Pin
savitri22-Aug-08 0:51
savitri22-Aug-08 0:51 
AnswerRe: How to import VB Dll into VC++ Program and How to use functions from VB dll?? [modified] Pin
SandipG 22-Aug-08 1:46
SandipG 22-Aug-08 1:46 
GeneralRe: How to import VB Dll into VC++ Program and How to use functions from VB dll?? Pin
savitri22-Aug-08 2:07
savitri22-Aug-08 2:07 
GeneralRe: How to import VB Dll into VC++ Program and How to use functions from VB dll?? [modified] Pin
SandipG 22-Aug-08 2:11
SandipG 22-Aug-08 2:11 
GeneralRe: How to import VB Dll into VC++ Program and How to use functions from VB dll?? Pin
savitri22-Aug-08 2:29
savitri22-Aug-08 2:29 
GeneralRe: How to import VB Dll into VC++ Program and How to use functions from VB dll?? Pin
SandipG 22-Aug-08 2:30
SandipG 22-Aug-08 2:30 

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.