Hello, I have a custom control that can only be set as the first window to receive messages (from keyboard, mouse, etc...) using the "tabstop" feature. So if I set the custom control to be...
Type: Posts; User: keira
Hello, I have a custom control that can only be set as the first window to receive messages (from keyboard, mouse, etc...) using the "tabstop" feature. So if I set the custom control to be...
if 4 lems are created in a 2 by 2 array, why does the for statement beneath the while statement output index 2 and 3 as being NULL?
Could it be the fact that I flattened the array by accessing...
Hello, can someone please explain the error I am getting in order to help me get my code to compile?
class RomanNumeral
{
UINT mValue;
vector<Symbol> mSymbols;
Hi, I had to write a trivial database program using first principles with the C standard library. I wrote and tested the program on windows in binary mode, because I thought the C standard library...
Hello, I am trying to position the mouse in an external application relative to that application's screen coordinates.
I can move the mouse relative to my application's x,y position like this: ...
oh.
thanks for your help!
Hi, I am using visual studio 2008 and I want to generate a listing file for a project with multiple source files. Can this be done?
I have tried the /Fa option and here is the error I got:
...
You would have a header file that declares GETINTERFACE as extern, included by both the dll and the client, I think.
for (int k = 0; k < V.size(); k++)
{
for (int inner; inner < W.size(); inner++)
{
if ( angle(&V.at(k), &W.at(inner)) > theta )
{
W.push_back(V.at(k));
break; //...
I think I misunderstood laserlight. If I can dynamic_cast it fine, doesn't that rule out type slicing?
Delving deeper into SimSet ( what listOfSimObjects is )
template<class T> inline void VectorPtr<T>::push_back(const T& x)
{
Parent::push_back((Parent::const_reference)x);
}
Yes, it's very strange, there must be something else going on as you alluded earlier.
Also, the reason I don't simply
void VisManager::processClient()
{
if (!mDirty ||...
My gut tells me it has something to do with this:
void addObject(SceneObject* unit)
{
listOfSceneObjects.add(unit);
}
that shows how the listOfSceneObjects gets populated in the...
Okay, thanks,
RTSConnection* conn = RTSConnection::getServerConnection();
for (U32 i = 0; i < mObjectList.size(); i++)
{
SceneObject* unit = listOfSceneObjects[i];
...
Hello.
For some reason my virtual base method is being called on a pointer to a derived object that overrides the virtual base method. And I don't understand why... Here's some psuedo code...
Hi, a lot of services require payment to receive real-time (not more than 5 second delay) stock quotes. Does anyone know if it's possible to program something that can retrieve real-time stock...
Yes! I love you guys... thanks. That HAS to be it.
I need to make an argument vector to pass to execv()... I'm creating it like shown below, I've tested it so I know all my strings are getting null termininated etc... but any programs I execute with...
unix api naturally:
say you fork your terminal application and execute "ls -l" in the child, why won't the color and the formatting etc... appear in the output? I've got it just printing the...
How would something like this:
int x;
char hello[6] = "hello";
x = atoi(hello);
be compiled? I'm asking what the compiler will do internally to compile something like this. From generation...
The file is opened in binary mode. dataBlockSize equals 16 in this case, but it shouldn't matter what it equals so long as bytesRead is the same value when it breaks out.
I never noticed this...
Actually making the byte an unsigned char rather than a char +
ss << hex << setfill('0') << setw(2) << (int) byte;
changing that line to that seems to have solved it. Can anyone comment on...
Hello, I can't wrap my head around why its possible I'm getting different lengths of output.
while ( (file >> byte) && (bytesRead < dataBlockSize) )
{
ss << hex << setfill('0')...
I've never seen a declaration like that before and I don't really know how to promise things to the compiler
Hey, here's the error: "error: looser throw specifier for virtual OutOfMemory::~OutOfMemory
"
What does it mean, why does it happen, what do i do to fix? Thanks. (Compiling with GNU compiler)
...