Is there an easy way to load an RTF file and print it, without opening another app? I can find code blocks to print text, and code blocks to output RTF, but none to actually print RTF.
HELP! If I need to go to bare bones and code upwards from there, I will. I'd rather not reinvent the wheel...
Sorry Cyprus, it seems that the try...catch approach has been done.
The problem is that the dialogs aren't errors. They are usually an information box saying our margins are too narrow, and do we want to continue.
Thanks anyway
Hi,
Anyone know how to start, run and close Word in 'quiet mode' from within C/C++?
Our product currently uses Word invisibly to print letters from a contact list, but hits a problem if Word pops up a dialog. If this happens, our users just tend to open another, and another, and another...
Try using ( (x!=0) && (y!=0) ) to ensure that your logic is grouped properly. (If in doubt, bracket it out etc)
Also, a do loop will always execute at least once, as the expression is evaluated after the loop body. If you want it to not enter the loop unless your condition is met, try this...
I may be wrong, but surely you should try reading in the following pattern?
long a,b,c,d;
fscanf(in, "%s, %s %d %d %d %d\n", name2[r],name1[r],a,b,c,d);
Otherwise, wouldn't it be looking for "SmithJohn" instead of "Smith, John 8.5 8.0 9.0 9.5"? If it is looking...
The only classes I know of are those used in parsing data from XML, such as IXMLDOMDocument and IXMLDOMNode.
Unless you build your own browser interface, I don't know how else you can retrieve mouse roll-over data.
I'll keep an eye on this post though, as it could help me too.
Hi,
I'm looking for information on Windows Dial-Up Networking APIs.
Anyone know of an easy way to create a dialer for Windows from within C/C++?
Thanks in advance.
There are easy ways to interpret command line args when they're passed as part of kicking off your executable:
Like so:
#include <stdio.h>
void main( int argc, char *argv[] )
{
int count;
/* Display each command-line argument. */
printf( "\nCommand-line arguments:\n"...
Hi Yogesh,
Sounds good, but can I then use the array as if it were one large one? Surely I would have to access the array at the pointer given, then find the index of the cell I need?
The function I have to feed it into needs an end result of one long array.
If I'm misunderstanding your...
Oh, and having read other answers to other posts, I'm sorry to say that the linked list is a no-go. The array is a parameter to an external function, which I can't alter.
I've never used MS--DOS edit to create code, but is there actually a linker and compiler already included?
I thought it was just an editor?
If you haven't got a linker/compiler, go to
www.c-compiler.com
If you already got yourself a linker and compiler, it should have instructions.
Sorry I...
Hi,
I'm looking for a way to resize an array dynamically, or (even better) combine multiple arrays like so:
{array-1}
|
{array-2}
{array-2}
|
{array-3}
array-1 and array-3 are single-item, but all are arrays of a structure. Resizing would do, because I could define a small array and...
Thanks for that,
Unfortunately, I realise how tricky (or at best clunky) it's going to be.
Also unfortunately, it has to be passed structures. We have db retrieval functions for our database, but none of it maps even vaguely to ODBC, SQL or any other standard interface. I'm forced to accept...
I'm trying to write a piece of code to export a proprietary DB into XML.
I have a chunk of code to write the XML, but I need to pull a structure in and read from it into the chunk.
Easy enough, but the higher powers need it portable, so if the structure/database changes we don't need to change...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.