Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. jaybe38

    RTF Printing

    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...
  2. jaybe38

    Word in stealth mode

    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
  3. jaybe38

    Word in stealth mode

    I'll try it Cyprus, thanks. Anyone else, keep the suggestions coming. If this doesn't catch the dialogs I need, I'll need other ways.
  4. jaybe38

    Word in stealth mode

    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...
  5. jaybe38

    strange(?) while-loop conditions

    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...
  6. jaybe38

    reading strings from file using scanf

    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...
  7. jaybe38

    XML Viewer?

    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.
  8. jaybe38

    Command line interpreter/parser in UNIX

    Try the following: main() { char ch = 0; char cBuff[255]; char cOptList[100]; char * pcOption = 0; int iCount = 0; for( iCount = 0; (iCount < 80) && ((ch = getchar()) != EOF) && (ch != '\n'); iCount++ ) cBuff[iCount] = ( char )ch; iCount = 0; pcOption = strpbrk(...
  9. jaybe38

    Dialer APIs

    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.
  10. jaybe38

    Command line interpreter/parser in UNIX

    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( &quot;\nCommand-line arguments:\n&quot...
  11. jaybe38

    Dynamic array sizing

    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...
  12. jaybe38

    Dynamic array sizing

    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.
  13. jaybe38

    People who programme using MS-Dos EDIT

    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...
  14. jaybe38

    Dynamic array sizing

    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...
  15. jaybe38

    Finding variable types

    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...
  16. jaybe38

    Finding variable types

    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...

Part and Inventory Search

Back
Top