Click here to Skip to main content
15,888,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Chrash at UpdateData(FALSE) Pin
David Crow14-Mar-08 6:16
David Crow14-Mar-08 6:16 
Questioncan anybody tell me how i can call a vb activex dll from c++ Pin
philiptabraham14-Mar-08 1:29
philiptabraham14-Mar-08 1:29 
AnswerRe: can anybody tell me how i can call a vb activex dll from c++ Pin
ritz123414-Mar-08 1:39
ritz123414-Mar-08 1:39 
AnswerRe: can anybody tell me how i can call a vb activex dll from c++ Pin
Nathan Holt at EMOM14-Mar-08 6:22
Nathan Holt at EMOM14-Mar-08 6:22 
AnswerRe: can anybody tell me how i can call a vb activex dll from c++ Pin
CPallini14-Mar-08 11:02
mveCPallini14-Mar-08 11:02 
QuestionProblem in using Fromhandle Function Pin
ashtwin14-Mar-08 0:44
ashtwin14-Mar-08 0:44 
AnswerRe: Problem in using Fromhandle Function [modified] Pin
Rajkumar R14-Mar-08 2:19
Rajkumar R14-Mar-08 2:19 
GeneralRe: Problem in using Fromhandle Function Pin
ashtwin16-Mar-08 19:47
ashtwin16-Mar-08 19:47 
Hi,
Currently i am using the pDC within the same fuction call though i am calling a seperate function to create it which is returning this pDC to the parent function and again from the parent function i am calling a seperate function which has pDC as one of its parameter.
<br />
CDC* dc = myPrintObj.createDCForPrint(printRect);<br />
doPrintWfReport(dc, printJob);<br />

The Funtion where i am getting the CDC object is as follows
<br />
CDC* PrintJob::PrintJobToPrinterType::createDCForPrint(const NcWfPrintJob& client, const CRect& printRect)<br />
{<br />
	REQUIRE(!printRect.IsRectEmpty());<br />
<br />
	DOCINFO DI;<br />
	ZeroMemory(&DI, sizeof(DOCINFO));<br />
	DI.cbSize = sizeof(DOCINFO);<br />
	DI.lpszDocName = NcCommonResources().getWFReportDocName();<br />
<br />
	CDC* pDC = CDC::FromHandle(client.getPrintInfo().hDC);<br />
	pDC->SetMapMode(MM_HIMETRIC);<br />
<br />
	pDC->StartDoc(&DI);<br />
	pDC->StartPage();<br />
<br />
	return pDC;<br />
}<br />

In the current design it is not possible for me to have a CDC object as a member varaible. Is it OK to use FromHandlePermanent() instead of FromHandle().


Thanks
GeneralRe: Problem in using Fromhandle Function Pin
Rajkumar R16-Mar-08 20:49
Rajkumar R16-Mar-08 20:49 
QuestionRe: Problem in using Fromhandle Function Pin
ashtwin16-Mar-08 21:03
ashtwin16-Mar-08 21:03 
GeneralRe: Problem in using Fromhandle Function Pin
Rajkumar R16-Mar-08 21:17
Rajkumar R16-Mar-08 21:17 
GeneralRe: Problem in using Fromhandle Function Pin
ashtwin16-Mar-08 22:31
ashtwin16-Mar-08 22:31 
GeneralRe: Problem in using Fromhandle Function Pin
Rajkumar R16-Mar-08 22:40
Rajkumar R16-Mar-08 22:40 
GeneralRe: Problem in using Fromhandle Function Pin
ashtwin16-Mar-08 23:04
ashtwin16-Mar-08 23:04 
GeneralProperty Sheet Pin
john563214-Mar-08 0:36
john563214-Mar-08 0:36 
GeneralRe: Property Sheet Pin
David Crow14-Mar-08 2:42
David Crow14-Mar-08 2:42 
GeneralFolder size Pin
sushildaga198414-Mar-08 0:19
sushildaga198414-Mar-08 0:19 
GeneralRe: Folder size Pin
Demian Panello14-Mar-08 0:24
Demian Panello14-Mar-08 0:24 
GeneralRe: Folder size Pin
Demian Panello14-Mar-08 0:27
Demian Panello14-Mar-08 0:27 
GeneralPositioning a Dialog Box Pin
AbbyIndian14-Mar-08 0:15
AbbyIndian14-Mar-08 0:15 
GeneralRe: Positioning a Dialog Box Pin
Iain Clarke, Warrior Programmer14-Mar-08 0:34
Iain Clarke, Warrior Programmer14-Mar-08 0:34 
GeneralRe: Positioning a Dialog Box Pin
AbbyIndian14-Mar-08 0:48
AbbyIndian14-Mar-08 0:48 
GeneralRe: Positioning a Dialog Box Pin
CPallini14-Mar-08 1:03
mveCPallini14-Mar-08 1:03 
GeneralRe: Positioning a Dialog Box Pin
AbbyIndian14-Mar-08 1:14
AbbyIndian14-Mar-08 1:14 
GeneralRe: Positioning a Dialog Box Pin
David Crow14-Mar-08 2:58
David Crow14-Mar-08 2:58 

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.