Hi all.
I was asked to suggest a way to test the system I am
working on by intercepting data being sent to it
and then changing it in various ways, such as
blocking the packets, multiplying them several times,
and changing it's contents, all in regard to the
packet internal identification (a...
I need to create a recursive report, starting at the
Root Project and going down, of all files in the database,
including Name, Last Check-IN time AND VERSION NUMBER.
I have found no obvious way to do this via the VisualExplorer.
Is there a way to accomplish this task through the
command...
two answers :
2. std is a namespace, something like a pacjage in ADA (if
you know this language). It is an area of code that
encapsulates type definitions, variables, etc. You can omit
the "std::" prefix by s "use" statement as follows:
using namespace std;
at the begining of...
I am interseted in improving the performance of the
current solution implemented : All processes that need
to write data to the file (binary file, large quantities of data), write the records to shared memory, where the data
is collected a-synchronousely by a special process that
writes the...
MFC gives this ability for classes inheriting from CObject.
I think you can implement this quite easily through templates yourself. the problem is that this does not apply to simple types such as an integer.
======
SeekerOfKnowledge
======
In the Post_Build of project A (Project Settings menu)
add the copy command that copies the dll and it's
.lib file to Projetc B's directory.
Another alternative is to set the serach path for
project B so that it points to A/Debug or A/Release, too. ======
SeekerOfKnowledge
======
Use either SetTimer for coarse time-measure (up to 55 msesc i think) or something like SetWaitableTimer for more
precise and thread-oriented approach ======
SeekerOfKnowledge
======
It is possible to set a timer to signal you when
no action (i.e. no keyboard input and no mouse move)
has happened in a given time , and to re-set it each time
such input arrives. That is the screen-saver way.
Another question is to "know" when the system is idle.
You can set the...
double MinDistance = sqrt((spt.y-CPoins[0].y)**2 +
(spt.x-CPoins[0].x)**2);
//this computes the distnace between the first
// point in the array to the point the user eneterd
// and initializes it as the MinDistance
// now loop over all the rset of the points and
//...
This is C++, not Ada, so you do not have
String S = Color'Image(color);
You can do it by preparing a static array of strings that
corresponds to the string values of the enum type:
string S[] = {"Black","Red","Orange"...};
and printing:
cout << S[color];
This...
The above code will not the desired result.
You need to :
a - Return the brush in CTestDlg::OnCtlColor and not in
CAboutDlg::OnCtlColor.
b - check the nCtlColor parameter, that indicates which
control asks for the brush to paint itself. You should
check for the value that indiactes...
I do not know exactly what the reason might be for this bug, but try to do the following : Put the implementation inside the class definition:
template <class T> class Queue
{
public:
Queue() {};
~Queue() {};
void Display(int value){};
};
This might help.. Try to lose the typedef...
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.