Search:

Type: Posts; User: emanresu

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    8,666

    We managed to compile the sample program,...

    We managed to compile the sample program, btrsamp.c, by following these instructions http://ww1.pervasive.com/library/doc...g_tut-8-2.html and defining the BTI_WIN_32 switch in the PDB, so case...
  2. Replies
    3
    Views
    8,666

    It looks strange to me too! Especially as I'm not...

    It looks strange to me too! Especially as I'm not a strong C programmer.

    The bulk of the program is as written by pervasive, I've only ever added the BTI_DOS switch on the first line.
  3. Replies
    3
    Views
    8,666

    Compiling C in Visual Studio 2005

    Hello,
    I am looking to upgrade my programs from Microsoft C version 6 to Visual Studio 2005 and am trying to compile the btrieve program btrapi.c.

    Unfortunately I get these errors:
    ...
  4. Replies
    3
    Views
    2,660

    Hi Todd, It would be the latter, but more like...

    Hi Todd,

    It would be the latter, but more like "get it working with a new compiler for the ~20 year overdue OP/SYS upgrade". :)

    The other idea behind it is to send someone else on a course...
  5. Replies
    3
    Views
    2,660

    Recommend upgrade path for C programs

    Hi,

    I am looking to upgrade (rewrite) some legacy C programs, and would really appreciate some helpful suggestions on the route to take. i.e. Should it be C++, or C# or .Net or something else?
    ...
  6. Replies
    7
    Views
    1,454

    OK, I understand that printf...

    OK, I understand that


    printf ("CcyDecpl = %s \n", pq->CcyDecpl);

    will start with my structure member CcyDecpl and then continue displaying until it reaches a "\0", so I ignored...
  7. Replies
    7
    Views
    1,454

    Part of original coding untouched by me. ...

    Part of original coding untouched by me.

    Output today, with %s, was showing as "009".
    With %c it outputs this character "╤"!
  8. Replies
    7
    Views
    1,454

    OK, thanks for all your help; I have two...

    OK, thanks for all your help; I have two obstacles,
    I'm amending someone else's code (which I'm assuming is correct) and my own lack of experience in
    real life C programming.

    I'll definitely...
  9. Replies
    7
    Views
    1,454

    Pointer returning too big value

    In my program the number of decimal places is read from a file. Depending on that value,
    an amount is divided by the appropriate constant. If the value is greater than 5 then it
    throws an error....
  10. Ancient! ;) Yep, it was missing a prototype...

    Ancient! ;)

    Yep, it was missing a prototype after all that. Thanks.
  11. "Different levels of indirection" compilation error

    In converting an MS C (v6) program from Scalable SQL to the Btrieve API (BTRV function), I need to understand the intricacies of pointers in order to resolve a "different levels of indirection"...
  12. Thanks for the v.quick reply! I'll try it out. ...

    Thanks for the v.quick reply! I'll try it out.

    Wish I was a God and not a hacker... ;)
  13. lvalue error trying to copy between structures

    I am trying to copy data between two structures, i.e. from record read in to record to be written out.
    This is in Microsoft C (ver6).

    I have them declared like this


    struct GLD0DATA
    {
    ...
  14. Replies
    2
    Views
    1,766

    Just wanted to say thank you for your reply. ...

    Just wanted to say thank you for your reply.

    Before reading it, I tried using cl for the link as well
    i.e. cl xxxxxxxx.obj btrapi.obj xqlintf.lib
    and it appears to have worked.
  15. Replies
    2
    Views
    1,766

    Linking with two objects

    Hi,
    Brief background...I am not a trained C programmer but am the poor soul left to update legacy C programs. One particular program requires use of BTRV API (instead of Scaleable SQL API) due to an...
  16. Replies
    13
    Views
    1,333

    OK, I now have struct menuDetail { char...

    OK, I now have


    struct menuDetail {
    char MenuDes0[25];
    char filler01[06];
    char MenuNam0[06];
    <snip>
    };
  17. Replies
    13
    Views
    1,333

    Looks neater doesn't it (arrow notation)! I'll...

    Looks neater doesn't it (arrow notation)! I'll use it from now on.

    menuDetail is the tag (I think!) for the structure. i.e. "struct menuDetail {...".
    Is its memory not allocated by the items...
  18. Replies
    13
    Views
    1,333

    Relooked at my code. Sorry, menubuf was...

    Relooked at my code. Sorry, menubuf was superfluous. Changed code to this...


    /* strcpy(menuRec,buf1); */
    strncpy((*menuRec).MenuDes0,&buf1[0],25);
    (*menuRec).MenuDes0[26]='\0';
    ...
  19. Replies
    13
    Views
    1,333

    I'm not too hot on pointers either! OK, I removed...

    I'm not too hot on pointers either! OK, I removed the * and instead of an error I got a warning "Suspicious pointer conversion".

    What I'm trying to do is take the data read in to buf1 and move it...
  20. Replies
    13
    Views
    1,333

    New to Structures; compilation error

    Hi all,
    I'm a novice C programmer and am trying to write a program that reads in a file (which describes menus shown on a certain application). Eventually I'll make the program write out a report of...
Results 1 to 20 of 20