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...
Type: Posts; User: Jerry900
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...
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...
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.
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;
...
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
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...
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
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...
The hyper terminal feature is already used in this system. The VB6 program doesn't have access to it.
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...
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...
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
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...
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...
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...
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...
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...
Thank you both. This clears things up for me a bit.
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);
...
How embarrassing. Thank you for the quick response.
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”...