Are you telling me that this Timer isn't supposed to run all the time and interrupt the code like a Watchdog timer?
Why does it run and interrupt the startup code (ie buttonclick functions), and not the rest of the processing?
Borland 6
I want the test executing statement to flash while the test is running. The timer works until the EFCSER_MAIN code is called.
Timer1Timer is not called again until it returns from EFCSER_MAIN.
Tag initialized to 0, Interval to 1000, and Enabled to true
void __fastcall...
I have found that the instructions I really need are:
asm (" cli");
asm (" sti");
However, when i try to execute them, I get privilege exceptions.
Does anyone know how to change the privilege so that these will execute?
I am translating C code from the VAX environment to the PC using Borland 6. In the VAX code there are 2 functions called TSKLock and TSKUnlock. They are replaced by EnableTasking and DisableTasking in the Borland environment based on #define statements.
# if (_UNIX || VXWORKS || VAX)
#...
Borland 6
I have a test that takes a while to run, and have created a MessageDlg to be generated when it is completed.
MessageDlg("Execution Time: " + s, mtInformation, TMsgDlgButtons() << mbOK, 0);
However, since I am doing other work while it is running, there are windows open on top of...
My project doesn't seem to set the data correctly that is in a header file.
File 1: (x1.h) contains:
extern int var1;
File 2: (x2.h) contains:
var1 = 10;
File 3: (y.c) contains"
#include "x1.h"
#include "x2.h"
int var2;
var 2 = var1 + 1;
Problem: var1 is always 0
Does x2.h need to...
Directory A contains all of the Borland generated files (bpl, bpi, bpk, cpp, etc), except objs, and most of the the source code for the package.
Directory B (the top level directory) contains the Borland generated files for the project (application), the main.cpp, main.h, and main.dfm files...
I created a myProg.bpl file in directory A, then created an application in directory B. The application added an entry on the options->packages tab for the bpl. The directory path B is contained in the include and library paths, and was browsed to when entering the .bpl.
Everything compiles...
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.