the clock() function is very slow and should be avoided at all costs.
Especilly if your looking to use the code in an embedded enviroment.
Type: Posts; User: kybert
the clock() function is very slow and should be avoided at all costs.
Especilly if your looking to use the code in an embedded enviroment.
Some sugestions:
1/
Place a post-it over the corner of the screen.
2/
Adjsut the vertical picture position so the task bar cannot be seen.
3/
Don't stay in school so late at night... It's...
Many thanks to all that helped me with this problem, I have finished writing the stuff i required and the problem is solved.
Couldn't have done it without you guys... keep up the good work...
...
Im not going to be moding this s/w once it is written. Someone else will have to do it.
The structs are all loaded from files, the files are also written by a different win32 program, which is...
ah ha! so it does!!
Cheers all.
(going to use direct access now anyway)
joe
#
I'm using (wait for it...) visual c++ version 1.52 !! a dos compiler and 'c'.
Unfortunatly, the exe is for an embedded application that can only run dos.
The idea of just assigning the varibles...
Help... Due to the way the compiler lines up memory, i cannot assign member values using a pointer offset.
typedefs used:
BYTE is unsigned char(1 byte),
UINT is unsigned short (2 bytes)
...
I reverse engineer for a living, writing applications to read codes generated by vehicle ECUs (computers in cars) -- reverse engineering can be a long winded task...
Please note, reverse...
You need to use a "snoop" program to record all comms between the 2 devices. There are several programs on download.com proced at about $40 that do this and you will also need a 3-way rs232 cable...
Sorry, im new to this!
How would i do that using MFC?
m_MyEdit.SetPropery(EM_SCROLLCARRET);
?
joe
#
How would one go about scrolling to the end of a multiline edit box?
e.g. when i fill an edit box with 1000 chars, the control shows a scroll bar, but i cant make that scroll-bar scroll down...
no it really does exist, and yes it does support new char[]...
lol!!
http://www.iap.uk.net/test/image1.jpg
joe
#
well, some of us still have to use them for DOS programming :(
joe
#
I got VS.net (VC7) but dont use it for testing simple stuff cos its just too much effort... (starting a new project... edit project... etc...)
joe
#
does the OS really check the return value from main() ?
I returned 4 different values:
void, -1, 0, 1
and all have the same effect - nothing!!
So what's the point??
Actually its used all the time for embedded systems that rely on the old 16-bit dos platform.
But for all those that dont program dos, then i guess the last time you typed FAR was when you emailed...
far is a area of memory that is outside of the usual 16-bit (64k) of program memory.
DOS programs run in 16-bit, hence 64k of program memory (known as 'near' memory),If you declare an array of 68k...
OK, it worked, many thanks for everyones efforts. The pointer idea doesnt work because the 1st element is an array of 27 ints!! but this code did:
struct LIGHTS
{
BYTE set1; // element 0...
so does this mean that it is not possible to index the elements?
Can i get a pointer to the 1st element, then increment the pointer by the sizeof each element until i get to the one i want?
...
the question is very much simplified, the actual struct contains 57 elements of all different types and identifier names, i have 7 structs.
i need code that is "identifier name independent", e.g....
i need to use int to access the elements because im going to use a for loop to get the data from each element:
for(x=1; x<number_of_elements; x++) // skip element 0
{
size = lights_array[x];...
hi, i have the following code:
BYTE is type def as unsigned char.
// header file:
typedef unsigned char BYTE;
struct LIGHTS
Think of those of us that write embedded C applications!
There is no way that we could optimise C++ small enough to fit the application.
My typical memory size for a project is 8k -- yes 'k'...
well, i cant be dealing with this!
As soon as i find a way to use the nice looking XP style buttons that .net produces, so i can just apply them to my exsisting VC6 projects without changing the...
Yeah, i've written the handlers and message mapping manually now, but isn't the idea of a CAD to make life simplier?
What the hell were MS thinking of? This is stupid and rediculous.
In a...