A little more detail regarding the median.
The median in the case of an even number of samples is the mean of the two middle samples. For example:
The sample set: {1 ,4, 5, 6, 9, 21} has a median equal to: 5 + 6 (the two middle numbers) divided by 2 yielding the result of 5.5.
You...
After spending many hours researching this problem I discovered that unfortunately in my case it can't readily (or even close to readily) be done. I found 2 very good artiles at bcbdev.com written by Harold Howe that discuss the in's and out's of using VC++ dll's from BCB land. In particular...
Create a new application (I used Builder 4.0 for the following code.) Insert the following into the Unit1 header file (Unit1.h):
int x,y;
int xMin,xMax;
int yMin,yMax;
and
int __fastcall scaleX(int x);
int __fastcall scaleY(int y);
void __fastcall drawHistogram();
as shown...
I am in the unfortunate position of having to use a library (blix.lib) created by VC++ ver 6. This library is in "COFF" format and must be converted to OMF format in order for tlink to process it. Inprise provides a utility program (COFF2OMF.EXE) to do the conversion. It runs quietly...
I use:
if(WinExec("complete path to desiredProgram.exe", SW_SHOWNORMAL) < 32) {
ShowMessage("I can't run: desiredProgram.exe");
// Take whatever other failure action here
}
else {
// Take whatever success action here
}
-mark-
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.