Search:

Type: Posts; User: Morgan

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,361

    Thanks for that. I guess for storing the table...

    Thanks for that. I guess for storing the table data, I'll just create an array of MULTI's, as large as the number of columns in the table. Cheers.
  2. Replies
    3
    Views
    1,361

    Dynamically assigning data-types

    I need to work out a way of storing in a structure the data from a table whose number of columns and column datatypes are unknown. As a first step, I'm trying to work out a way of storing data in...
  3. Replies
    2
    Views
    2,987

    All my problems solved. Thankyou.

    All my problems solved.

    Thankyou.
  4. Replies
    2
    Views
    2,987

    Peeking at MSMQ queues

    Hi. I'm trying out the MSMQ API using VC++ v6 on NT4. I have written the following code, and I seem to be managing to both open and peek at the queue, but I don't get intelligible responses when...
  5. Replies
    4
    Views
    7,126

    Thanks again!

    Thanks again!
  6. Replies
    3
    Views
    1,200

    Thanks very much for your help. I did search the...

    Thanks very much for your help. I did search the Microsoft site, but didn't find the page you've posted - it's worked a treat!!

    Thanks for the conn.udl tip aswell, that's actually really handy!
  7. Replies
    3
    Views
    1,200

    DAO accessing Jet v4

    I've written a program which uses the following code to open a database -

    #include "afxdao.h"

    ...

    CDaoDatabase daoDb;
    daoDb.Open( strFullDBName );
    When I pass the name of an Access...
  8. Replies
    4
    Views
    7,126

    Thanks. I looked up usage of...

    Thanks.

    I looked up usage of WNetAddConnection2, and have got to the stage where I can get the code to compile and run. The following excerpt always results in an error (no. 487)...
  9. Replies
    4
    Views
    7,126

    Mapping network drives

    Hi. I am having to write a program which connects to an Access database across a network, on another domain from the one in which the program runs. Therefore, I need to provide network credentials in...
  10. Replies
    35
    Views
    3,530

    Oh yeah... and if(numlives>0); is wrong...

    Oh yeah... and

    if(numlives>0);

    is wrong too - lose the semi-colon.
  11. Replies
    35
    Views
    3,530

    There are a few syntax errors... int templives...

    There are a few syntax errors...

    int templives - missing semi-colon.

    scanf( "%s", &name1 ); - remove &.
    scanf( "%s", &name2 ); - remove &.
    (name1 and name2 are arrays of char, which can be...
  12. Thread: pointers

    by Morgan
    Replies
    6
    Views
    1,049

    Sorry DrZoidberg, I've been a dope. Didn't read...

    Sorry DrZoidberg, I've been a dope. Didn't read your code properly...
  13. Thread: pointers

    by Morgan
    Replies
    6
    Views
    1,049

    So your trying to isolate the 'units' digit,...

    So your trying to isolate the 'units' digit, remove it from the original number, then multiply it to the order of the original number and add it back on?

    Nice idea, but I don't think your code is...
  14. Thread: pointers

    by Morgan
    Replies
    6
    Views
    1,049

    You could use a linked list, and make it circular...

    You could use a linked list, and make it circular by linking the tail node back to the head node.

    In your case, each node would contain an integer between 0 and 9, and a pointer to the previous...
  15. Replies
    35
    Views
    3,530

    Look here...

    Look here
  16. Thread: text field

    by Morgan
    Replies
    12
    Views
    1,332

    I've done something similar to this before, but...

    I've done something similar to this before, but using curses on Unix, so I can't help specifically with the syntax. However, what I suggest is to get the user input one character at a time, instead...
  17. Replies
    4
    Views
    918

    You also need some extra brackets in your while...

    You also need some extra brackets in your while statement..


    while( ( ch = getchar()) != '\n' )
    {
    ...


    I compiled your code without the brackets (but with the other corrections)...
  18. Replies
    7
    Views
    1,015

    Also... if you want to write a function which...

    Also... if you want to write a function which alters mulitple variables from the calling function you can just pass pointers to those variables instead (obviously multiple return statements from a...
  19. Thread: scanf question

    by Morgan
    Replies
    10
    Views
    1,369

    Ok, look at these examples... #include...

    Ok, look at these examples...



    #include <stdio.h>
    #include <string.h>

    int main()
    {
    char answer[100], *p;
  20. Replies
    7
    Views
    2,963

    I think your better off not thinking in terms of...

    I think your better off not thinking in terms of your objective as a database. What you want to do is store all of the data that your GUI needs in such a way that you can retrieve it reliably.
    ...
  21. Thread: scanf question

    by Morgan
    Replies
    10
    Views
    1,369

    The best way would be to avoid scanf entirely. I...

    The best way would be to avoid scanf entirely. I would use fgets to capture everything that the user typed, then use strtok to split the string up into individual words, based on the assumption that...
  22. Replies
    4
    Views
    3,186

    I think you're just trying to do too much with...

    I think you're just trying to do too much with this statement, and end up doing nothing that you intended. I would advise slowing down a little. Try this instead...




    printf( "Enter a...
  23. Replies
    13
    Views
    1,097

    You are completely misusing sscanf. This should...

    You are completely misusing sscanf. This should be quite straightforward code. Try this...



    #include <stdio.h>
    #include <string.h>

    char * get_word( void );

    int main()
  24. Replies
    15
    Views
    1,827

    This original experiment has nothing to do with...

    This original experiment has nothing to do with writing formal commercial code. I was playing games with C, just doing something unusual in code and seeing what would happen next. Ths stuff about how...
  25. Replies
    10
    Views
    1,758

    Looks like Quzah has beaten me to it, but I was...

    Looks like Quzah has beaten me to it, but I was going to recommend you do this...



    printf("\nUsage: %s <remote_os>"
    "\n\nwhere os:"
    "\n1 - win2k sp3 ru"
    "\n2 - winxp...
Results 1 to 25 of 98
Page 1 of 4 1 2 3 4