|
From my experience, a laser printer will eject the page at the end.
I'm no printing expert so I'm not sre how one can control it more precisely.
I know you could accumulate enough printing jobs to fill a sheet then do a page at a time.
Laser printers I've worked with didn't have a way to linefeed the paper and tear it off.
Maybe there's laser printers with continuous feed paper (rolls)?
I know dot matrix printers have escape codes to do it.
Mark
"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."
|
|
|
|
|
An alternative method is to send escape codes directly to the printer instead of using GDI...
HOWTO: Send Raw Data to a Printer by Using the Win32 API[^]
"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."
|
|
|
|
|
hello...
i am really stuck...why the spamkiller by hirosh cannot be implemented as well as i filled all the details and click on start delete? and one more thing is "error report by microsoft" always appeared.
plz..help me...why i cannot be connected..
sincerely
cheezuka
-- modified at 13:26 Monday 19th February, 2007
cheezuka
|
|
|
|
|
What in the world are you talking about? Do you have a specific VC++ question to ask?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: What in the world are you talking about?
Methinks this[^].
/ravi
|
|
|
|
|
Is hirosh the brother of Asok the Intern ?
|
|
|
|
|
ROTFL
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
If you have a question about an article, ask it in the forum provided for the article. If there's a lot of unanswered quesitons in that forum, chances are that the author is not suporting it, which means you need to debug it yourself, and ask specific questions here if you get stuck. If the author is not supporting the article, no way is he reading the C++ forum to answer you.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Its better you said more detaily of your problem not say it shows an error
|
|
|
|
|
IS CPU MAC ADDRESS really unique for every machines.
How to get that address ?
Apurv
|
|
|
|
|
ApurvKolte wrote: IS CPU MAC ADDRESS...
NICs have Media Access Control addresses, not CPUs.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Is there any method to differentiate between two machines, for avoiding piracy ?
Apurv
|
|
|
|
|
Do both machines have a NIC?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
may or may not...
Actually I am searching a way to avoid the piracy of the software, that I supply to anyone.
Is there any serial no. of CPU or OS, which is unique ?
Apurv
|
|
|
|
|
ApurvKolte wrote: Is there any serial no. of CPU or OS, which is unique ?
Some (older) CPUs have serial numbers, but the owners of such can disable the feature.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Many commercial Applications are using Motherboard serial-number or hard-disk serial-number for that !
|
|
|
|
|
How to get that in VC++ ?
Apurv
|
|
|
|
|
By looking at the Win32_MotherboardDevice or Win32_Processor WMI classes, specifically the DeviceID property of each.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Can u describe it a little bit more, plz
Apurv
|
|
|
|
|
See here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
i have two dialogs, one main and one child. i'd like to get userinput in the childs editctrls and then pass them on to the main dialogs editctrls through global cstring variables.
how can these two dialogs share variables?
thanks
|
|
|
|
|
guess what, i've just submitted a new article about that (around last thursday), but i'm still waiting for it to be published (editors have a lot of work)...
when it comes out, don't hesitate to check it (called Dialogs Communication - Or the art of exchanging data...).
for your input, transmit your infos thru the child dialog's constructor
|
|
|
|
|
rolfhorror wrote: how can these two dialogs share variables?
Do they really need to? If so, they are inherently tied together from that point forward. That's not necessarily a bad thing, but it does keep the child dialog from being re-used.
Several solutions exist:
void CMainDialog::SomeAction()
{
CChildDialog dlg(m_var1, m_var2);
dlg.m_var1 = m_var1;
dlg.m_var2 = m_var2;
dlg.SetVar1(m_var1);
dlg.SetVar2(m_var2);
if (dlg.DoModal() == IDOK)
{
m_var1 = dlg.m_var1;
m_var2 = dlg.m_var2;
m_var1 = dlg.GetVar1();
m_var2 = dlg.GetVar2();
}
}
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Is this helpfuls you can insert this code to child dialog after user insert his text on your editbox.
<br />
After insert text to editbox on the child dialog you can get this string and use of this code (if you dont need to global cstring)<br />
CMain *m_Main=(CMain*)GetParent();
m_Main->m_EditControl.SetWindowText();
|
|
|
|