Search:

Type: Posts; User: Jerry900

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,593

    Thank you for the input. I found a way to print...

    Thank you for the input. I found a way to print ASCII. It is a little more complex than your solution.

    I added the following code to my “for” loop.


    //Convert a string to a...
  2. Replies
    3
    Views
    1,593

    How can I write binary to a file?

    I am 71 years old and haven’t programmed in C for many years. So, this is going slow.
    I am using Borland C++ IDE to write 16 bit code for a picoFlash single board computer with a 186 compatible...
  3. Thank you all for the inputs. I added the L...

    Thank you all for the inputs. I added the L suffix and the warning went away.
    I want C code. The IDE picked the .CPP suffix for the source file name.
    I will pay attention to this in the future.
  4. How do I get rid of "Warning : Constant is long in function main"

    I am trying to get rid of the 117 warnings in the code I was given to modify. The warning I am working on now is shown by”


    #include <stdio.h>
    int main()
    {
    long fpos;
    ...
  5. Replies
    9
    Views
    1,712

    Thank you all for your comments. I solved my...

    Thank you all for your comments. I solved my problem by changing the overhead in what I was doing. The download that took six minutes now takes six seconds.

    Jerry
  6. It has been many years since I did much C...

    It has been many years since I did much C programming but I Have Been Given the job of adding some capabilities to an existing program. Every variable introduced outside a function is either given...
  7. Warning "Suspicious pointer conversion" using Borland C++ version 4.52 IDE

    I ran out of DGROUP memory so I had to create the following variable


    volatile char far strfarResponseString[4096];


    I created a far pointer in my function and used it as below
  8. Replies
    9
    Views
    1,712

    anduril462 asked "What is this program of yours...

    anduril462 asked "What is this program of yours doing exactly?"

    The picoflash single board computer from JK microsystems is imbedded in a product called a Critical Process Controller (CPC). It...
  9. Replies
    9
    Views
    1,712

    The hyper terminal feature is already used in...

    The hyper terminal feature is already used in this system. The VB6 program doesn't have access to it.
  10. Replies
    9
    Views
    1,712

    I don’t know how to find the “maximum theoretical...

    I don’t know how to find the “maximum theoretical bandwidth” but some related factors are:
    1- The picoflash has a 40MHz 186 compatible processor according to the web site (picoFlash - JK...
  11. Replies
    9
    Views
    1,712

    Upload and Download Files quickly

    It has been many years since I did much C programming but I Have Been Given the job of adding some capabilities to two existing programs. One is a VB6 program that runs on a PC. The other is a C...
  12. Thank you Adak I tried this and it works. ...

    Thank you Adak

    I tried this and it works.

    Any idea what the difference in heating might be between this approach and the tight “for” loop?


    Jerry
  13. OK Jim I created a small modification to your...

    OK Jim

    I created a small modification to your program. I had to add #includes. I added print before delay



    //#include <windows.h>
    #include <stdio.h>
    #include <string.h>
    #include...
  14. My compiled program is running on a picoflash...

    My compiled program is running on a picoflash single board computer from JK microsystems imbedded in a critical process controller designed by the company I am supporting. The source code is 404...
  15. Thank you for the reply Jim. Yes I am still...

    Thank you for the reply Jim.

    Yes I am still using the Borland C++ 4.52 IDE. I understand that delay should be in milliseconds. I added the comment about 500 seconds just in case it was in...
  16. Thank you for the reply Tim. When I use...

    Thank you for the reply Tim.

    When I use #include <mapiwin.h> I get the following error:

    Compiling COMMS2.C:
    Fatal ..\..\BC45\INCLUDE\PSHPACK8.H 38: Error directive: 8-byte packing is not...
  17. Delay for a fraction of a second in Borland C++ 4.52 IDE

    It has been many years since I did much C programming but I Have Been Given the job of adding some capabilities to an existing program. I am using the “XP Mode” in Windows 7. The program was...
  18. Thank you both. This clears things up for me a...

    Thank you both. This clears things up for me a bit.
  19. What problem have I created using a char array in fopen?

    I'm not sure how to interpret function syntax. I am using Borland
    C++ IDE version 4.52 to create C code.

    The Syntax for fopen is:

    FILE *fopen(const char *filename, const char *mode);
    ...
  20. How embarrassing. Thank you for the quick...

    How embarrassing. Thank you for the quick response.
  21. Pointer changes value at an unexpected place

    In an attempt to debug this problem, I have added printf statements to see what is happening when the code is running.

    The printf statement containing “#103D” gives a good value for “FirstPtr”...
Results 1 to 21 of 21