|
|
thanks,
with the msdos command "net time /SET /YES \\my_server" you can synvhronise computer system time with the server one
Tchao
Firejano
|
|
|
|
|
I have a task that to capture the printing spool file (might be EMF file),
I want to install my application to monitor all the printers' jobs and get all the EMF Files . Cound anyone give me the suggestions or code snippet?
How to capature all the EMF files?
Thanks
|
|
|
|
|
|
thanks very much,how can you find these useful information?
|
|
|
|
|
having the memory of an elephant (and looking like one) helps - a couple of years back I was looking for a Print Monitor, and while these werent the references I had in mind (I think in the original reference I had, 'GhostScript' figured prominently) just doing a google on "c++ print monitor" or "c++ printmon" found these ones for you ..
'g'
|
|
|
|
|
I have the first experence to get the print job by my code. thank you.
BUT very disppointed that I found in my spooler directory, there is a file with ".SPL" extension, I used emf viwer , that can't be recongized. I want to catch the EMF file that the client sent to server, where can i find the EMF file ,need i dig the emf file data out from SPL file?
Could you give me more about the EMF file capture. ( I dont have Windows DDK).
Thanks in advance
Rudolf
|
|
|
|
|
Im sorry, right now I cant offer much more, except this, http://www.codeproject.com/dotnet/EMFSpoolViewer.asp[^] which might give you enough of a handle, especially if you check the references etc, to be able to parse the EMF file format
'g'
-- modified at 23:55 Wednesday 4th January, 2006
|
|
|
|
|
|
I have an edit control. The details are:
IDC_EDIT (the id)
m_edit (member variable, CString).
I know i can set a text to the control by simply writing
<br />
m_edit = "sometext";<br />
But I want the text to be selected, ready to be deleted with a backspace. How do i do that?
Aljechin Alexander
|
|
|
|
|
CEdit* edit = (CEdit*)GetDlgItem(IDC_EDIT);<br />
edit->SetFocus();<br />
edit->SetSel(0,-1);
this is this.
|
|
|
|
|
Thank you for the help.
It works that way.
Aljechin Alexander
When did time start? When i purchased my new watch? or when humane were created or when earth was created or when the bigbang occured? or before that? When exactly?
|
|
|
|
|
My program writes avi files (using a video capturing card) using the windows API (AVIFileCreateStream etc.)
When the file is quite large (3 GB) the avi file becomes corrupt. The VirtualDub-program analyses the file with the message : missing index block.
Can someone help me regarding this problem?
Best regards,
Peter de Hon
PdH
|
|
|
|
|
Probably the API donot
support file buffering
more then 3GB. OR we
need to check for how
the file is stored by
API.
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
I would guess that it is tool large for the VirtualDub or some other associated program. Does it die when it hits approx 2.7G? If so they are probably using a signed 32 bit buffer somewhere.
|
|
|
|
|
Using Win32/VC++, I want to scan the users My Pictures folder (and potentially any other user/system folder using:
g_hFind= FindFirstFile( "*.jpg", &g_FindFileData);
and
FindNextFile(g_hFind, &g_FindFileData) )
How do I set the "working" folder so that I don't need to include the path name as part of the file path?
<br />
hr = SHGetSpecialFolderLocation(0, <br />
CSIDL_COMMON_PICTURES, <br />
&pidlDocFiles);<br />
<br />
Thanks in advance,
If you're interested, read more of what I have to say
my DirectX9 site.
- Segment Fault
|
|
|
|
|
I guess you could use:
SetCurrentDirectory(strPath);
But you still need to get the path first using SHGetSpecialFolderLocation() etc.
this is this.
|
|
|
|
|
Think of a situation that the user changes that folder location (yes he can) while ur application is running.
Your application will stop behaving properly if you have cached the path or set it as a default path.
IMO, i wont do that.
-Prakash
-- modified at 3:45 Wednesday 4th January, 2006
|
|
|
|
|
I think it is okay to ignore this case for all practical purposes. You will have the problem either way you do it: either change the current directory and relative file names, or get the location of My Pictures folder and use absolute name. When you are working on a directory and the directory has changes, the behaviour is unknown anyways.
thanks!
|
|
|
|
|
Hi guys
I've seen some articles talking about CFileDialog with preview and the CFileDialog resource is bigger than the usual CFileDialog. I read about "template dialog" but I don't know how this stuff is implemented.
What is the procedure to do a custom "CFiledialog" resource?
Thanks and Happy New Year
Doc
|
|
|
|
|
Good that you are thinking about it.
Take a look at OPENFILENAME;
There is a special field in the structure called lpTemplateName;
Here you need to pass in the name of the dialog.
This will embed the open dialog inside your dialog. If you want to have a placeholder then put a static control on the dialog with the id stc32.
Set this on: OFN_ENABLETEMPLATE
If you want to have more then search in MSDN documentation for this keyword.
stc32.
When you search you will find a topic called "Open and Save As Dialog Boxes". Here you will find all the details.
Cool
You also need to start thinking about hooks. If you wanna provide your own preview controls.
Tip: lpfnHook member of OPENFILENAME
Set this On: OFN_ENABLEHOOK
Love Forgives--Love Gives--Jesus is Love <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
Thanks pal, just what I need.
Doc
|
|
|
|
|
doctorpi wrote: just what I need.
Just what the doctor ordered.;P
Love Forgives--Love Gives--Jesus is Love <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
I have a static control(derived from CStatic) and rich edit controls and it contains two lines. I want to set the color of the first line to blue and the second line to red. Currently I am using the CDialog::OnCtlColor and using the SetTextColor function to set the color. However it sets the color for the whole static control i.e. both the lines. Can someone help?
knarasimharao
|
|
|
|
|
Hi All,
Is it possible to get the mdi child frame window floating outside the mdi parent area.
I believe i have seen this before at codeproject, but can't recall it.
Thanks
mickey
|
|
|
|