|
Good point! Thanks.
I will stick with the simple code for now since all m views use the same toolbar.
Kuphryn
|
|
|
|
|
Could anyone suggest a book(s) that covers the printing process for VC6 comprehensively or even adequately?
Maybe I'm looking in the wrong section but most books seem to touch on the subject and quickly move on.
Any advice is appreciated.
|
|
|
|
|
I haven't found any books that cover printing from Windows application very well. I think the 'best' printing solutions may have a lot to do with what you are trying to accomplish.
For starters you could look at these articles here at The Code Project:
A Simple Printing Mechanism
Easy! Reports
Very Simple Print Preview without the Doc/View architecture
|
|
|
|
|
I want to receive notify messages when data comes using UDP Sockets.
Can I do this?
I can only use UDP and I don't want the socket to be in blocking mode.
Besides polling, is there any better way to check whether there is data waiting to be received?
|
|
|
|
|
Use CAsyncSocket. Just what you're looking for.
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
Oops. Maybe you're not using MFC. If not, you'll have to use the FDZERO / FDSET etc... Macros. Their described in the sockets ref on MFC.
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
I want to get the keycode when the user press a key immediately.
Normally I can open a thread and use getc(stdin), but this works only when the
user press a key and then press 'Enter'.
I want to get the key without pressing 'Enter'.
Can and how can I do this?
|
|
|
|
|
Here's an example from MSDN
#include <stdio.h>
#include <conio.h>
void main(void)
{
int ch, scan;
do {
ch = getch(); /* 1st getch() gets ASCII code */
printf("Character is %d\n", ch);
if (ch == 0x00 || ch == 0XE0) { /* if extended key */
scan = getch(); /* 2nd getch() gets "scan code" */
printf("\tExtended character: scan is %d\n", scan);
}
} while (ch != 27); /* exit loop on ESC */
}
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- <b>Jon Hulatt, 22/3/2002</b>
|
|
|
|
|
Thanks a lot!
|
|
|
|
|
eg. I want to play a MPEG file in a remote computer.
Thank you very much!
|
|
|
|
|
Do you want to start the MPEG file playing on the remote computer, Or do you want to access the file on the remote computer, and play it on your machine.
Checkout my Guide to Win32 Paint for Intermediates
|
|
|
|
|
yes,I want to play a MPEG on my machine,but it be stored on another computer.
If i might do, it must to been have a source filter to read a remote file,isn't it? or other way? Who Could tell me?
Thank you. excuse me,my English is poor.
|
|
|
|
|
I am still trying to get some code working using Text Object Modeling.
So far it has been like pulling teeth!
Does anyone know where I can find tom.h?
How about a declaration of ITextRange?
UUGHH!!!
|
|
|
|
|
When using Microsoft tools, msdn.microsoft.com should be your first port of call. A search for ITextRange quickly told me that ITextRange requires Windows 98 or later, and that fact combined with the fact that obviously you don't have the file leads me to conclude there is either a Text Object Model SDK or, more likely, this stuff is in the platform SDK. you should check to make sure, but I think it's the PSDK you need to download or order on CD and install before you continue.
Dave_ wrote:
Does anyone know where I can find tom.h?
People often seem to think because they need to include a header file, that if only they HAD that header file, all would be OK. When you're dealing with something bigger than a single class, this is NEVER the case. tom.h is probably just a block of include statements which groups together all the headers needed to access the classes/macros/namespaces/etc used by the Text Object Model.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002
|
|
|
|
|
Of course I don't believe that having tom.h would be the final solution to getting Text Object Modeling. What I am looking for is a place to go to get started using TOM. MSDN does a good job of explaining the details of how the interfaces work, and what you can do with them, but fails to give an explanation of how to get started using this technology. Locating tom.h (and other supporting files) would be a clue to get me headed in this direction.
It is apparent that there are not many people out there using this technology. If I am able to gain a better understanding, I will share it with other CodeProject users.
Thank you for your reply. I will check into the SDK CD(s).
|
|
|
|
|
Hi, I have to read data and write data to any ports. my OS is windows 2000. Which function could do this(or any DLL include functions about ports).
_outp() did not work. It gives run-time error.
karanba
|
|
|
|
|
Io using ports is done using file handlers . Try using
WriteFile( ) command . it takes a parameter for the handle to the port(hcom). for this u can try using the function PurgeComm.
hope this helps !!
|
|
|
|
|
For 99/100 ports you cannot do this in windows 2000/nt.
Why? well, access to all hardware is shared and policed by the operating system. You need to find another way of talking to the hardware you're trying to talk to.
What hardware or effect are you trying to achieve with writing to ports?
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
Hi,
An example of what i want to do - when you drag a splitter control, drag a window , drag a selection box etc a drag rect is drawn to show what you are selected.
I want to know how to draw the rect? with GDI , it is some sort of line style , it is not a solid line, maybe a pattern?
If any one knows how it is drawn it'd really help Thanks.
|
|
|
|
|
DrawFocusRect
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002
|
|
|
|
|
VC++ installs languages file in a subdirectories named L.deu for german, for example. In the standard installation it includes English, German, French, Italian, Japanese and Chinese.
I am looking for these files for Spanish, Portugese, Norwegian, Swedish, and Danish as well.
Does anyone have an idea where I can find them. I can't find them in my MSDN cd's although they must be there somewhere.
Happy programming!!
|
|
|
|
|
I have started a Win 32 Console Application with MFC support and I have created a dialog box with two buttons(RUN PROGRAM and EXIT buttons). I have also selected the class for the dialog box and set up the buttons correctly.
My source files and header files have been inserted into the source and header folders but I don't know how to link my RUN PROGRAM button with the main source file in my program.
Also there was a .cpp .rc and .h file already created which when compiled printed out to the screen Hello from MFC! should these files be deleated and replaced with my own.
|
|
|
|
|
The dialog should go into the .rc file. You can copy/paste w/in the resource editor, or open the files as text and edit them that way.
Are you sure you need to be writing a console application?
I'm never gonna work another day in my life. The gods told me to relax, They said I'm gonna get fixed up right. Monster Magnet, Powertrip
|
|
|
|
|
yeah...you see it is code written on Borland C which I was running with VisualC++ Studio and I want to include a dialog box with a buton to execute the program.
I'm still not too sure
|
|
|
|
|
clara wrote:
I'm still not too sure
Sounds to me like the whole thing is a mess. If you're creating dialog boxes, the odds of you needing a console program are close to zero.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002
|
|
|
|