Never mind, got it fixed now...
What I needed was:
typedef short (_stdcall *inpfuncPtr)(short portaddr);
typedef void (_stdcall *oupfuncPtr)(short portaddr, short datum);
Hi,
I downloaded some C source code that was written in Borland, which I am now trying to compile in Microsoft Visual C++
#include <stdio.h>
#include <conio.h>
#include <windows.h>
typedef short _stdcall (*inpfuncPtr)(short portaddr);
typedef void _stdcall (*oupfuncPtr)(short portaddr, short...
I have written different functions in C which do tasks of taking in data, processing it, and giving the output.
I would like to write a web page whereby the user can choose which function they want to use, enter the data and parameters, and then my function will output the results.
Could someone...
Just a quick question...
As far as I know, the size of a character in C is 1 byte.
Can somebody explain why the size of a constant character is 4 bytes? ie:
char c;
sizeof(c) = 1
sizeof('A') = 4
c = 'A';
sizeof(c) = 1
'A' is acharacter, how come the sizeof 'A' is not 4?
- Thanks
I am compiling with Microsoft Visual C++ as a win32 console application, but if necessary I guess I could convert to a full windows application. If there are graphics libraries included in Microsoft Visual C++, I am not familiar with them. There's no real need for anything fancy, but the data in...
Hi,
Can anyone help me? I'm looking for a way to draw a trend graph, plotting the integer contents of two buffers against the buffer index. Say I have:
int buffA[50], buffB[50];
I want to plot buffA[j] and buffB[j] on the Y-axis against j on the X-axis for j = 0 to 49.
Anyone got any ideas?
- Thanks
Is there any way to prevent an editbox from ever getting focus so that the user can never write to it?
I only want to use the box strictly to display text so the user can't be alowed write to it.
I did it before by keeping it disabled, and only enabling it when the program writes to it. But...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.