|
I have 2 printers installed, i need to switch from one to another without user interface. how to set the printinfo properties programatically?
were rgrtgrtvrtrt rtrtb brt tyuhjghj hbhbnh hnjm 1234567?
|
|
|
|
|
|
1 : Get the handle to devmode and devnames structures by calling the OpenPrinter and GetPrinter API calls and populate PRINTER_INFO_2 strucure.
Copy these handles to printInfo.m_pPD->m_pd.hDevMode and printInfo.m_pPD->m_pd.hDevNames
2 : Call SelectPrinter() API with the handles.
Make sure to reset to the original printer properties.
|
|
|
|
|
how to disable close button of CPropertySheet?
the button is the one at top-right conner (on caption bar) of the sheet for closing the sheet by clicking it.
thx
includeh10
|
|
|
|
|
Can anyone please tell what causes "Class Does Not Exist." (error code 1411)? How can i resolve the issue?
Regards
Tariq
|
|
|
|
|
did you #include head file which contains the class?
includeh10
|
|
|
|
|
A wild guess from your unclear question. The com dll you are using may be old.
suhredayan There is no spoon.
|
|
|
|
|
I was wondering, how do you capture a run on a C++ program?
Jonathan
|
|
|
|
|
What is a "run?"
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
run
|
|
|
|
|
How to close a process which was created by CreateProcess() function properly?
let me explain a little bit:
i use DOS window to run jdb.exe, then the jdb.exe runs a java application (by command line).
as this:
DOS---->>jdb.exe------->>another program (java app).
when i close DOS window, both jdb.exe and java application are closed also.
so i say: DOS closes process of jdb.exe properly.
now i create a C++ program to replace DOS as this:
MyCppProgram------->>jdb.exe-------->>another program.
After calling ::TerminateProcess(), the process of jdb.exe is closed (by checking its handle), BUT, the java application is NOT closed.
my question: why DOS can close both but MyCppProgram only closes one (jdb.exe)?
i think i have not done properly for closing process of jdb.exe.
any suggestion?
thx
includeh10
|
|
|
|
|
|
which message is sent before WM_DESTROY when CProperSheet shuts down?
please note: as my test, WM_CLOSE is not sent.
i need a message similar to WM_CLOSE in which i can clean some tasks.
thx
includeh10
|
|
|
|
|
try handling SC_CLOSE from OnSysCommand.
Note: there can be a better solution for this.
suhredayan There is no spoon.
|
|
|
|
|
hi all
i am working on a display stuff...i basically want all the display modes present in the registry to be enabled in rightclik/properties/setting...
Is there any thing to be changed in the registry...bcoz this stuff can be done in win2k by enabling the pruning mode key in the regisry.........
thnx in advance
udaykumar
|
|
|
|
|
HI,
There is Problem in Printing a Page with HP laser jet. Using VC++
The message says something like "Header not Printed".
A printer that is an ink jet does print out the entire model. But HP laserjet 5MP does not.
Reply me plz . Its an urgent.
thanx
Regards.
|
|
|
|
|
I made a COM dll and it registers on my computer and works allright, but i can't register it on another machine. When i write regsvr32 mycom.dll it says that loadlibrary("...") can't load module, or something like this. I had this problem before, and someone advised me to check my dll with dependency walker, and find out wich dll it requires. But i didn't solve this problem, a copied all the dlls with my dll, and tried to register them , but my dll still didn't want to register itself!!! And by the way, i lost my dependency walker, where can i find it?. Does anybody know other way to solve this problem???
|
|
|
|
|
HI mr Rassul!
you will find your new dependency walker here[^]
could you tell me from where, Are you using regsvr32 , from CMD line or through coding . have you checked the path for your mycom.dll is correct ,i.e.
c:\>regsvr32 c:\cp\mycom.dll
"I Think this Will Help"
<h5
alok gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
Thanks for dependency walker, i used the regsvr32 from command line, and i found the problem. My dll need ActiveSync installed on the computer.
|
|
|
|
|
Hi Alok I answered to a thread but now I saw this thread do you know why?
|
|
|
|
|
Can I replece a dll dynamically when it is loaded and how? Please, Can anyone tell me how it can be done?
Thanks
objamit
|
|
|
|
|
are you using LoadLibaray() load DLL.
"I Think this Will Help"
<h5
alok gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
Have you looked at MoveFileEx(..., MOVEFILE_DELAY_UNTIL_REBOOT) ? There's also the VerFindFile() /VerInstallFile() pair.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hi
I tried ShellExecute as suhredayan told me. This works if i use it to open my required webpage. But it is not working for any file operation such as open, edit, print. Please tell me why this is happening. I am working in LAN environment and that file is also on a network drive. Can this situation effect function of ShellExecute.
We Believe in Excellence
|
|
|
|
|
Show us the code snippet that does not work.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|