Click here to Skip to main content
15,920,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how get CComboBox input Pin
google7311-Dec-03 22:40
google7311-Dec-03 22:40 
GeneralRe: how get CComboBox input Pin
Cedric Moonen12-Dec-03 1:14
Cedric Moonen12-Dec-03 1:14 
GeneralRe: how get CComboBox input Pin
Lido Paul13-Dec-03 14:14
Lido Paul13-Dec-03 14:14 
QuestionHow to detect driver's read/write attribute Pin
Lido Paul11-Dec-03 19:51
Lido Paul11-Dec-03 19:51 
QuestionHow to convert hWnd to CWnd Pin
Anonymous11-Dec-03 19:24
Anonymous11-Dec-03 19:24 
AnswerRe: How to convert hWnd to CWnd Pin
Jon Sagara11-Dec-03 19:43
Jon Sagara11-Dec-03 19:43 
AnswerRe: How to convert hWnd to CWnd Pin
Balkrishna Talele12-Dec-03 0:24
Balkrishna Talele12-Dec-03 0:24 
Generalenumeration of network & local printer from win 98 client machine Pin
skpanda11-Dec-03 19:21
skpanda11-Dec-03 19:21 
hi,
i m writing a code to enumerate network & local printer in win98 client m/c, the printer driver is installed in my own win 98 client m/c. the same driver is installed in server where the printer is connected.i want to get the printer from the server(network printer or remote printer)....
here is some bit of code to enumerate...

the network printer attribute should be 16 but i m getting 84 value ... WHY ???. sometime i m getting 1108 value for the same network printer....??

code ....---->>

void PrinterRpt9x()
{
BOOL ret1;
printersetting=true;
DWORD i;
PRINTER_INFO_5* pPrint=NULL;
DWORD pcbNeeded=0,pcReturned=0;

HPRINTMUTEX= CreateMutex(NULL,FALSE,NULL);
ret1=EnumPrinters(PRINTER_ENUM_LOCAL,NULL,5,NULL,pcbNeeded,&pcbNeeded,&pcReturned);
//Windows 95: Also enumerates network printers
// because they are installed locally.

pPrint=(PRINTER_INFO_5 *)GlobalAlloc(GPTR,pcbNeeded);
ret1=EnumPrinters(PRINTER_ENUM_LOCAL,NULL,5,(LPBYTE)pPrint,pcbNeeded,&pcbNeeded,&pcReturned);


for(i=1;i<=pcReturned;i++)
{


if(pPrint->Attributes == PRINTER_ATTRIBUTE_NETWORK)

{

_beginthread(printdata9x,0,pPrint->pPrinterName);

}

if(pPrint->Attributes == PRINTER_ATTRIBUTE_LOCAL)
{

_beginthread(printdata9x,0,pPrint->pPrinterName);
pPrint++;

if(pPrint)
GlobalFree(pPrint);
}

}


then i m enumerating the jobs in queue in a thread and creating log file for each print command...


please help in this regard

guide me how to avoid this error ???
in win32 api..

regards
skpanda
QuestionCan we find the address of pop3 server from an email address? Pin
huqian200211-Dec-03 18:50
huqian200211-Dec-03 18:50 
AnswerRe: Can we find the address of pop3 server from an email address? Pin
Johnny ²11-Dec-03 21:44
Johnny ²11-Dec-03 21:44 
QuestionWhat is needed for programming a VC project about WMA audio format? Pin
zhaopzhi11-Dec-03 18:27
zhaopzhi11-Dec-03 18:27 
AnswerRe: What is needed for programming a VC project about WMA audio format? Pin
Alexander M.,12-Dec-03 2:47
Alexander M.,12-Dec-03 2:47 
AnswerRe: What is needed for programming a VC project about WMA audio format? Pin
Peter Molnar12-Dec-03 10:05
Peter Molnar12-Dec-03 10:05 
Generalfor mfc project Pin
Anonymous11-Dec-03 18:24
Anonymous11-Dec-03 18:24 
GeneralRe: for mfc project Pin
Anthony_Yio11-Dec-03 23:00
Anthony_Yio11-Dec-03 23:00 
General(?) about vectors (not same ?) Pin
Snyp11-Dec-03 16:31
Snyp11-Dec-03 16:31 
GeneralRe: (?) about vectors (not same ?) Pin
Christian Graus11-Dec-03 17:00
protectorChristian Graus11-Dec-03 17:00 
GeneralRe: (?) about vectors (not same ?) Pin
Jörgen Sigvardsson12-Dec-03 1:49
Jörgen Sigvardsson12-Dec-03 1:49 
GeneralRe: (?) about vectors (not same ?) Pin
Christian Graus14-Dec-03 10:24
protectorChristian Graus14-Dec-03 10:24 
GeneralRe: (?) about vectors (not same ?) Pin
Jörgen Sigvardsson14-Dec-03 10:59
Jörgen Sigvardsson14-Dec-03 10:59 
QuestionWhere to find the VC6.0 source code of from CD audio to WMA? Pin
zhaopzhi11-Dec-03 16:29
zhaopzhi11-Dec-03 16:29 
AnswerRe: Where to find the VC6.0 source code of from CD audio to WMA? Pin
Antti Keskinen12-Dec-03 1:43
Antti Keskinen12-Dec-03 1:43 
QuestionHow to add XP themes to a toolbar (toolband?)?! Pin
Vermithrax11-Dec-03 16:02
Vermithrax11-Dec-03 16:02 
AnswerRe: How to add XP themes to a toolbar (toolband?)?! Pin
Snyp11-Dec-03 16:27
Snyp11-Dec-03 16:27 
GeneralRe: How to add XP themes to a toolbar (toolband?)?! Pin
Vermithrax11-Dec-03 16:28
Vermithrax11-Dec-03 16:28 

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.