Click here to Skip to main content
15,902,032 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Speed problem in Excel sheet generation Pin
Rajesh R Subramanian13-Oct-08 23:16
professionalRajesh R Subramanian13-Oct-08 23:16 
GeneralRe: Speed problem in Excel sheet generation Pin
Roger Stoltz13-Oct-08 23:39
Roger Stoltz13-Oct-08 23:39 
JokeRe: Speed problem in Excel sheet generation Pin
CPallini13-Oct-08 22:47
mveCPallini13-Oct-08 22:47 
QuestionCompilation Error!!! undeclared variable :-( Pin
param_joshi13-Oct-08 22:10
param_joshi13-Oct-08 22:10 
AnswerRe: Compilation Error!!! undeclared variable :-( Pin
Saurabh.Garg13-Oct-08 23:42
Saurabh.Garg13-Oct-08 23:42 
AnswerRe: Compilation Error!!! undeclared variable :-( Pin
David Crow14-Oct-08 3:32
David Crow14-Oct-08 3:32 
GeneralRe: Compilation Error!!! undeclared variable :-( Pin
Jason Hamilton14-Oct-08 4:38
Jason Hamilton14-Oct-08 4:38 
QuestionGetPrinter function fails to retrieves the printer information. [modified] Pin
Gokul_md13-Oct-08 22:02
Gokul_md13-Oct-08 22:02 
Hi Please help me to find out the problem in GetPrinter function.
First I am trying to get the printer handle for the specified printer using OpenPrinter function. .

HANDLE hPrinter = 0;
OpenPrinter ((LPTSTR)(LPCTSTR)strPrinterAddress, &hPrinter, NULL);

This function gets succeed. Using this printer handle I am trying to access the specified printer information’s using the GetPrinter function.

GetPrinter(hPrinter, 2, NULL, 0, &dwNeeded);
if(!dwNeeded)
{
DWORD dwError = ::GetLastError();
ClosePrinter( hPrinter );
}

Even using GetLastError() function I am not able retrieve error message. This function is not failing all the times. When I am trying to print out of 10 times, 6 times the printing is succeed. Only 4 times it’s getting failed. Please help me shoot out this problem.

Thanks
Gokul

modified on Tuesday, October 14, 2008 4:08 AM

QuestionRe: GetPrinter function fails to retrieves the printer information. Pin
CPallini13-Oct-08 23:03
mveCPallini13-Oct-08 23:03 
AnswerRe: GetPrinter function fails to retrieves the printer information. Pin
Gokul_md13-Oct-08 23:51
Gokul_md13-Oct-08 23:51 
QuestionRe: GetPrinter function fails to retrieves the printer information. Pin
CPallini14-Oct-08 1:00
mveCPallini14-Oct-08 1:00 
AnswerRe: GetPrinter function fails to retrieves the printer information. Pin
David Crow14-Oct-08 3:47
David Crow14-Oct-08 3:47 
GeneralRe: GetPrinter function fails to retrieves the printer information. Pin
Gokul_md14-Oct-08 6:55
Gokul_md14-Oct-08 6:55 
QuestionRe: GetPrinter function fails to retrieves the printer information. Pin
David Crow14-Oct-08 7:42
David Crow14-Oct-08 7:42 
AnswerRe: GetPrinter function fails to retrieves the printer information. Pin
Gokul_md14-Oct-08 19:17
Gokul_md14-Oct-08 19:17 
QuestionRe: GetPrinter function fails to retrieves the printer information. Pin
David Crow15-Oct-08 3:18
David Crow15-Oct-08 3:18 
QuestionVisual c++ runtime error in dotnet Pin
balu1234513-Oct-08 21:43
balu1234513-Oct-08 21:43 
AnswerRe: Visual c++ runtime error in dotnet Pin
CPallini13-Oct-08 22:37
mveCPallini13-Oct-08 22:37 
GeneralRe: Visual c++ runtime error in dotnet Pin
balu1234514-Oct-08 6:47
balu1234514-Oct-08 6:47 
GeneralRe: Visual c++ runtime error in dotnet Pin
Hamid_RT14-Oct-08 8:26
Hamid_RT14-Oct-08 8:26 
Questionplease guide content structural file SCS. Spoolfile in Iseries system. thanks Pin
aa_zz13-Oct-08 21:12
aa_zz13-Oct-08 21:12 
QuestionHow interact a digital ink pad when it connected to a pc Pin
tanmay.kol13-Oct-08 20:52
tanmay.kol13-Oct-08 20:52 
QuestionEdit Registry values Pin
MsmVc13-Oct-08 20:43
MsmVc13-Oct-08 20:43 
AnswerRe: Edit Registry values Pin
MsmVc13-Oct-08 20:59
MsmVc13-Oct-08 20:59 
GeneralRe: Edit Registry values Pin
Hamid_RT13-Oct-08 21:17
Hamid_RT13-Oct-08 21:17 

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.