|
We use Boost.Test which has been terrific.
Open Source Testing is a good source for testing frameworks in most languages
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts your aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Thanks, also useful for me
|
|
|
|
|
Hi,
Is it possible to output 2 different signals to 2 monitors? For example one displays the regular windows desktop and the other something completely different such as OpenGL full screen stuff (or something simpler than openGL).
For example if you have a graphics card that has 2 outputs how much control is available? Or if you installed 2 graphics cards (one onboard and one AGP or PCI or whatever) is it possible then?
Can someone point me in the right direction?
Thanks
|
|
|
|
|
I used two monitors back when I was developing for Windows 3.x. One was color and the other was monochrome. Since each was located at a different memory address, it was easy to write to both. The GUI stuff went to the color monitor and the debug stuff went to the monochrome monitor. I got really used to it and sorely missed it once Windows 9x came out.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
You're saying it can't be done right now that way. In either case I believe I have a solution. I configured my 2 monitors in Windows and I create a CFrameWnd derived object using Create(...) and I pass the location and size to this function such that the window is created past the first screen size, and Windows automatically creates this on the second monitor. Now I have this frame that I cran draw stuff in. However I'm still having trouble making the frame truly full screen. Any help? I've tried the ChangeDisplaySettings() function however that changes the first monitor to full screen and not the second one. Any help?
|
|
|
|
|
Anonymous wrote:
You're saying it can't be done right now that way.
No, I was just reflecting on the past. I've not ever used Windows with the new dual-monitor feature. When I saw it being used, the guy spent way too much time moving his head back and forth between the two. I didn't see the point.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I also find myself loosing the mouse cursor into the other screen too many times. I'm used to the clipping and usually don't worry about horizontal motion when trying to reach the X button to close =).
Anyway I think I have it under control.
|
|
|
|
|
Could someone who has the Windows Media Device Manager 10 SDK installed please tell me what the value of g_wszWMDMFormatCode in mswmdm.h is?
I suspect it is L"Format Code" but if I use that, it doesn't appear to be working.
Yes, I know.. I could just install the SDK, but our license is currently being processed (so I don't have the SDK yet) and I need to do a quick test.
Thanks in advance.
Andrew
|
|
|
|
|
|
I am handling OnClik and OnDoubleClick event on a listControl. When ever user doubleclicks on a item, first onclick and then OnDoubleClick event gets fired. Is there a way to avoid onclick event when user has DoubleClicked on the item ?
Sandeep Naik
|
|
|
|
|
How about starting a timer that's longer than the interval between double-clicks? So if 200 ms is the longest interval between double-clicks, start a timer with an interval of 250ms. In double-click event and in timer event, kill the timer.
[insert witty comment here]
bdiamond
|
|
|
|
|
Thanks a lot....
I could solve the problem
Sandeep Naik
|
|
|
|
|
I'm curious: what does your On Click() handler do (eg: does it update a selection count?)
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
OnClick refreshes the selected item on the listViewControl.
DoubleClick refreshes and then allows the user to modify it. The refreshing happens twice in this case.
Sandeep Naik
|
|
|
|
|
From look at Spy++, when a list control single-clicked, it receives a WM_LBUTTONDOWN message followed by a WM_LBUTTONUP message. When a list control double-clicked, it receives those two messages followed by a WM_LBUTTONDBLCLK and WM_LBUTTONUP . Can you monitor for WM_LBUTTONDOWN and WM_LBUTTONDBLCLK separately?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I have started writing a game in C++ and while creating the login section of it I have come to a problem. I have it to where it gets the string and types it on the next line. But when it sends it to the save file it only shows up as little box symbols. I had it working before but i changed some things. then i changed them back and now it doesn't work. i can't find anything i forgot to take out or change.
--Blah
|
|
|
|
|
here is my code:
#include "stdio.h"
#include "conio.h"
#include "stdlib.h"
#include "time.h"
char username[12];
int i, ch;
FILE *MyHandle;
char MyFile[12] = "Save.txt";
void main(void)
{
printf("Welcome.\n\n\n");
getch();
printf("Please identify yourself.\n");
printf("Name: ");
for( i = 0; (i < 12) && ((ch = getchar()) != EOF)
&& (ch != '\n'); i++ )
username[i] = (char)ch;
username[i] = '\0';
MyHandle = fopen( MyFile, "a+");
fprintf( MyHandle, "%s%c", username);
fclose( MyHandle);
printf("Welcome ");
printf( "%s", username);
printf( ". Go to the waiting room and await your orders.");
getch();
}
Blah
|
|
|
|
|
You are allowing up to 12 characters to be input for the name so username needs to hold 12 plus 1 for the '\0' character.
Zinzara wrote:
fprintf( MyHandle, "%s%c", username);
An additional byte is being popped from the stack with this. Either remove the %c , or add another parameter.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
thanks for your help. taking the %c out didn't help but i changed the "a+" to just "a" and it works now. again, thanks. well, i'm off to work on my game.
Blah
|
|
|
|
|
Zinzara wrote:
...taking the %c out didn't help...
While it may not have solved the exact problem you were having, having the "%c" in the format specifier was indeed an error.
Zinzara wrote:
...i changed the "a+" to just "a" and it works now...
I question this since the only difference between "a" and "a+" is how the EOF marker is handled.
You still need to chahge username from 12 to 13 so the '\0' character can be safely stored.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi,
I would like to know how to catch ESC key in MDI application. I tried with WM_KEYDOWN, WM_CHAR, But nothing seems to work. When ever any View is opend I able to catch ESC key on that view. But no view is opened nothing seems to work.
Thanks in Advance.
|
|
|
|
|
|
Newbie question here...
I am learning c++ and following through the code from a book - which recommends using Microsoft VC++ 7.0. The book stresses that it does not use the .net framework.
My question is can i use VS 2003 (.net) to create a "NON"-.net application? Would this be a "Win32 App" in visual studio?
help?
Thanks.
SN
|
|
|
|
|
Of course!! I've only experimented with the managed extensions a few times, but other than that, I just like the .Net IDE a lot better than VC6's. You can make any of the same application types that you could in VC6. And so far, any code or functions that I had in VC6 work with no problem. The difference if you just want to write C++ code without the .Net stuff is invisible to me. But at any time you can go into your project's properties and set 'Use Managed Extensions' to YES, which adds a \clr switch to your linker settings.
[insert witty comment here]
bdiamond
|
|
|
|
|
Thanks bdiamond! That's good to know.
What exactly are Managed Extensions?
SN
|
|
|
|