Type: Posts; User: grahamr (work)
Search took 0.02 seconds.
September 22nd, 2008, 04:01 AM
After a bit of discussion (and a quick test-hack) late friday afternoon, between myself and my boss it has been decided to make a simple DLL which the client can call, which was my original choice...
September 19th, 2008, 08:50 AM
Once the app has completed initialising - on return from OnInitDialog, it sends an inter thread message with the hwnd as the lParam. This then decides via the command line options which mode we are...
September 19th, 2008, 06:39 AM
Yes. The App starts another thread which simulates the button presses. Not a great way of doing it but easier than rewriting huge swathes of it.
The code contained within...
September 19th, 2008, 05:23 AM
It's a branding issue. The client wants his front-end to run but use our software for the heavy lifting.
Because the code was already written and working and simply making it run headless seemed...
September 19th, 2008, 03:31 AM
I have a propertysheet-based program, originally developed to be interactive, which has been cobbled together to make it headless on a client's machine. The program is to be started by a program of...
September 16th, 2008, 05:57 AM
Manage to find the answer - you need to override the ON_WM_WINDOWPOSCHANGING message.
September 16th, 2008, 04:36 AM
I am in need of assistance again.
I automated a small app that was never designed to be automated via a thread. To hide it I had it call a function that moved the window off-screen.
September 12th, 2008, 10:20 AM
I need to update a combobox with a new value so it changes the reflected text in it. The cleanest way to do this is after the combobox has been initialised and with a message.
So I am trying to...
August 11th, 2008, 04:06 AM
Where were you on Friday afternoon?!
August 8th, 2008, 05:46 AM
This is making me feel like a real noob. I've opened an old workspace that is a libray and its test harness. It used to work fine and older versions of the code don't work either with the same...
July 31st, 2008, 08:00 AM
Okay. Thinking about it overnight, I've come to the conclusion that I maybe looking at it from the wrong angle.
The graph updates based on the OnTimer function call. Therefore I should update the...
July 30th, 2008, 11:04 AM
Is there a correct way of continuously updating tool-tips?
I've got a graph which is constantly updating and scrolling from right to left. The OnMouseMove sets a trackmouseevent to fire on hover...
July 29th, 2008, 02:25 AM
But since you can do assignments on operator() - it was I who was doing it wrong -  becomes a bit of a mute point and a lot more hassle than two functions.
Though I would concede the point...
July 29th, 2008, 02:23 AM
July 28th, 2008, 10:41 AM
That is a whole lot closer to what I was talking about - makes the code a whole lot more readable, no?
July 28th, 2008, 10:18 AM
My abbreviated class:
const int cols = 4;
const int rows = 4;
float m; // m[col][row] -- same as opengl
July 28th, 2008, 10:14 AM
I thought it was fairly clear from my first post as to what I was referring to, irrespective whether my code is right or wrong.
July 28th, 2008, 10:02 AM
Does it matter what it is? It doesn't change the fact that using () to index into the array doesn't allow assignment (or I can't use assignment).
July 28th, 2008, 09:51 AM
July 28th, 2008, 09:42 AM
I thought column-major layout is
[0 4 8 12]
[1 5 9 13]
[2 6 10 14]
[3 7 11 15]
July 28th, 2008, 09:33 AM
Okay. How about setting up and identity matrix in the constructor?
for ( int col=0; col<cols; col++ )
for ( int row=0; row<rows; row++ )
m( col, row ) = 0.0f;
m( col, row ) = 1.0f;...
July 28th, 2008, 09:15 AM
Well apart from the fact I use float and index in using int's ours are identical.
float& operator()( const int col, const int row )
return m[( col * cols ) + row];
July 28th, 2008, 09:02 AM
Since you can't use  to access a matrix you are suggested to use () operator instead.
However a limitation of that is you can't assign:
m[col][row] = x; // valid
m(col, row) = x; // invalid...
July 24th, 2008, 06:02 AM
Would that work? I never tried that.
In the end I created a thread that is launched at the app start. The app passes messages to the thread and the thread acts on them in a state machine if...
July 24th, 2008, 05:57 AM
It's the internals of actually controlling the app which is the problem.
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!