Click here to Skip to main content
15,913,115 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionunable to include stdafx.h file(in simple win32 DLL) Pin
QuickDeveloper9-Nov-05 19:04
QuickDeveloper9-Nov-05 19:04 
AnswerRe: unable to include stdafx.h file(in simple win32 DLL) Pin
Nibu babu thomas9-Nov-05 19:26
Nibu babu thomas9-Nov-05 19:26 
GeneralRe: unable to include stdafx.h file(in simple win32 DLL) Pin
QuickDeveloper9-Nov-05 19:31
QuickDeveloper9-Nov-05 19:31 
GeneralRe: unable to include stdafx.h file(in simple win32 DLL) Pin
Nibu babu thomas9-Nov-05 20:54
Nibu babu thomas9-Nov-05 20:54 
AnswerRe: unable to include stdafx.h file(in simple win32 DLL) Pin
James R. Twine10-Nov-05 8:18
James R. Twine10-Nov-05 8:18 
AnswerRe: unable to include stdafx.h file(in simple win32 DLL) Pin
S Douglas9-Nov-05 21:18
professionalS Douglas9-Nov-05 21:18 
Questionvirtual printer port programming Pin
Roj9-Nov-05 18:46
Roj9-Nov-05 18:46 
AnswerRe: virtual printer port programming Pin
Mathieu Dijkstra9-Nov-05 23:44
Mathieu Dijkstra9-Nov-05 23:44 
this is the visual c++6 version i don't know if there arre other ways to do it im a biginer in this stuf.
(you dont have to program to the printer imediatley windows dos do that 4 u)
selekt mdf
if you folow the apwizard and you make in step4 a tag (V) option Printig and printing preview.

then in function:
void CPrint1View::OnBeginPrinting(CDC*pDC,CPrintInfo* pInfo)
{
CPrint1Doc* pDoc = GetDocument();
ASSERT_VALID(pPoc);

int PageHeight = pDC->GetDeviceCaps(VERTRES);
int logPixelsY = pDC->GetDeviceCaps(LOGPIXELSY);
int rechtHeight = (int)(2.2*logPixelsY);
int numPages = pDoc->m_numRects * Rects * rectHeight / pageHeight +1;// this calculates how manny pages there arre

pInfo->SetMaxPage(numPages);
}

MFC functions

best is that you look at chapter 6 in
this source file frome book : Special Edition Using Visual C++ 6

go down the page and klik on More Information
in the red standing Source Code


http://www.quepublishing.com/bookstore/product.asp?isbn=0789715392&rl=1#[^]


or simpel klik here to get chapters1 to 11: http://www.quepublishing.com/content/images/0789715392/sourcecode/ch01to11.exe[^]

normal way there is no need to program a total printer comunication windows dos that 4 u!!!!

i hope that you wil see the licht of Vc++ (im siting to stil in the dark)
but every step is one step on step near the big licht of Vc++ Big Grin | :-D

-- modified at 5:45 Thursday 10th November, 2005
GeneralRe: virtual printer port programming Pin
Roj10-Nov-05 5:29
Roj10-Nov-05 5:29 
QuestionHow to print data from a View Pin
vikas amin9-Nov-05 18:43
vikas amin9-Nov-05 18:43 
AnswerRe: How to print data from a View Pin
vikas amin9-Nov-05 23:26
vikas amin9-Nov-05 23:26 
AnswerRe: How to print data from a View Pin
Mathieu Dijkstra10-Nov-05 0:22
Mathieu Dijkstra10-Nov-05 0:22 
QuestionIs child frame present Pin
Arrun9-Nov-05 18:20
Arrun9-Nov-05 18:20 
AnswerRe: Is child frame present Pin
*Dreamz9-Nov-05 21:22
*Dreamz9-Nov-05 21:22 
QuestionHow to return a CByteArray from the member function to the main program Pin
LaHaHa9-Nov-05 18:07
LaHaHa9-Nov-05 18:07 
AnswerRe: How to return a CByteArray from the member function to the main program Pin
ThatsAlok9-Nov-05 19:03
ThatsAlok9-Nov-05 19:03 
GeneralRe: How to return a CByteArray from the member function to the main program Pin
LaHaHa9-Nov-05 20:22
LaHaHa9-Nov-05 20:22 
QuestionSTL / C2784 Problem Pin
dfxcoder9-Nov-05 18:04
dfxcoder9-Nov-05 18:04 
AnswerRe: STL / C2784 Problem Pin
*Dreamz9-Nov-05 18:32
*Dreamz9-Nov-05 18:32 
GeneralRe: STL / C2784 Problem Pin
dfxcoder9-Nov-05 18:44
dfxcoder9-Nov-05 18:44 
GeneralRe: STL / C2784 Problem Pin
*Dreamz9-Nov-05 19:38
*Dreamz9-Nov-05 19:38 
QuestionConvertBSTRToString function Pin
amitsax769-Nov-05 17:56
amitsax769-Nov-05 17:56 
QuestionRe: ConvertBSTRToString function Pin
James R. Twine10-Nov-05 8:10
James R. Twine10-Nov-05 8:10 
AnswerRe: ConvertBSTRToString function Pin
amitsax7610-Nov-05 13:05
amitsax7610-Nov-05 13:05 
GeneralRe: ConvertBSTRToString function Pin
James R. Twine11-Nov-05 1:49
James R. Twine11-Nov-05 1:49 

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.