|
If you want to invent groups, the first member of your group has to be marked as 'group' in it's corresponding properties.
In your case that means that 2 radio boxes are assigned to be a group and the other 2 not. Beside that, I think the elements that belong to a group have to follow the 'group leader' (your element marked as group) in the tab order.
Sh*t ... just realized that you wanted to know sth. about check boxes .... so the post of my predecessor seems to be valid...
|
|
|
|
|
Thanks to both of you for your responses. I am using radio buttons and that Tab ordering tip was very helpful. It is working now!
Gupta.
|
|
|
|
|
He, I have a problem and not the solution !
After starting my computer (under Win2000), I would like run automaticaly my App (C++), and after the user will not access to OS (explorer, tasks manager, ...) except if the user enter the good password on App. Do you have an Idea ?
Please !
MyEden
|
|
|
|
|
Sounds like you're trying to write a logon replacement.
Look up GINA in msdn.
#include <beer.h>
|
|
|
|
|
|
Hi,
I want to get the web address after the user types it in on the ie explorer.
I was thinking of using a system wide hook, but what do I hook into?
thanks
Neil
|
|
|
|
|
U can make a keyboard wide hook, and check if the user is typing for iexplorer
or u can do api hijack
like http://www.codeproject.com/dll/apihijack.asp
or u can just do what the guy did at
http://www.venkydude.com/codes/cppcodes.htm
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
I would suggest creating a Browser Helper Object for IE. It will get loaded when IE starts up, and all you will have to do is wait for the OnBeforeNavigate2 Event. That will tell you when the address has changed and you can do what ever you want then.
This way you will also be loaded into IEs process space each time the program starts no matter how many instances of IE are started, and no matter what form of IE is started.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
Sound like the way to go. Do you know of any examples I can look at?
thanks
Neil
|
|
|
|
|
I would like to create an application for the pocket PC (iPAQ) using eVC++ that when you start the app it plays a MP3 file for 5 mins and continues to play until it reaches the end of a current section of music. The music is in sound bits of 20 - 40 sec. When it is done playing and found the silent section, the app will close. It was suggested that I look at the Windows Media Player for Pocket PC SDK documentation. I have looked at the documentation but I need some more basic understanding how MP3 files are layed down and some palce I can read how to interface through C++. An additional bit of information: I will be creating the MP3 files from audio cassette tapes. Any suggestions will be greatly appreciated. Thanks
|
|
|
|
|
1) I forgot how to write a double with cout but only show one decimal point eg. 3.1 instead of 3.14159 (Too much time in Windows Programming!)
2) I am writing a script that accesses and overwrites the same file. To prevent from being corrupted would this method be enough:
ifstream InputFile;
InputFile.open("test.txt");
InputFile.lock();
...
InputFile.unlock();
InputFile.close();
and also same pattern for writing to the file?
|
|
|
|
|
concerning first question,
#include <iomanip>
using namespace std;
.
.
.
cout << setiosflags(ios::fixed)
<< setprecision(1)
<< 3.1415 << endl;
|
|
|
|
|
I just got upgraded from Visual C++ 6.0 to Visual Studio .NET 2003. I am trying to write a simple program but it cannot seem to find the damn iostream.h. I already tried just using <iostream> and <ios> but that did not work. What do i do?
|
|
|
|
|
Use #include <iostream> instead. The Standard C++ include files don't have the .h suffix.
|
|
|
|
|
It should be in the following directory (assuming you did your install in C:/Program Files).
C:/Program Files/Microsoft Visual Studio .NET/Vc7/include
If it is not in there then I'm afraid that I don't know what happened.
As a side note, this header is deprecated. you should inlcude iostream (no .h) instead which puts all the same stuff as iostream.h into the std namespace.
something like:
#include <iostream>
using namespace std;
John
|
|
|
|
|
Well, thanks to you both. So instead of #include <iostream.h> I do something like #include
using namespace std;
???
|
|
|
|
|
I see that the attempt to use brackets has screwed up my message and perhaps yours as well.
The include statement should look something like:
#include {iostream}
using namespace std;
where the curly brackets should be replaced by the greater than and less than signs (as usual for #include).
I is not necessary to put in the using directive but it makes things easier. Without it, you would have to explicitly scope each reference to the iostream elements like the following:
instead of cout, std::cout
instead of endl, std::endl
etc.
John
|
|
|
|
|
John is it? Thank you. You definetly seeem to know what you are doing. Name's Michael, by the way. I will try that.
|
|
|
|
|
IT WORKS!! IT FINALLY WORKS!! IT COMPILED!! I FINALLY GOT SOMETHING TO COMPILE IN VISUAL c++ .NET 2003!!!
|
|
|
|
|
I have another question... I am trying to write a program that uses the string.h library. Would the #include for that be
#include <string>
using namespace std;
????
|
|
|
|
|
When posting something where you need to type in #include <header.h>, use the < and the > provided under the text window, or type < for < and > for >.
And as for your question, yes, you should use
#include <string>
Godd luck, Michael !
~RaGE();
|
|
|
|
|
Hey thanks. So the header code i would type is
#include <string>
>
???
|
|
|
|
|
I use AddItem to add a new row to a MSHFlexGrid control and RemoveItem to remove a row. However, I have a little problem.
If I call RemoveItem and then I try to add a new row with AddItem the new row won't be displayed on the screen. Redraw property is set to TRUE by the way.
//i.e.
mshflexgrid.RemoveItem( nRowIndex )
.
.// some other stuff might go here
.
mshflexgrid.AddItem( nRowIndex )
// Display some text in the cells
mshflexgrid.SetTextArray(...);
When I call AddNewItem a new row is being added because I don't get any errors such as "Subscrit out of range" from AddItem or SetTextArray. The problem is that the row is not being displayed on the screen. Another thing that I noticed is that if I call AddItem twice only the second new row will be displayed.
//i.e.
mshflexgrid.AddItem( nRowIndex );
mshflexgrid.AddItem( nRowIndex + 1 );
The row with index nRowIndex+1 will displayed right after the row with index nRowIndex-1;
If I delete more than one row, let's say n rows then adding n+m rows will display only the last m rows being added. Am I missing something? Is there anything that I should do after I call RemoveItem()? I've tried Refresh() but that didn't work.
none
|
|
|
|
|
One of our applications was supposed to be purchased with every instrument we sell, and this distributor in Europe was supposed to buy a copy from us w/each sale, and send it to the customer. Turns out he only every bought one and for years has been redistributing it all over Europe!! Can I put something in my software to keep this from happening? Something simple?
TIA
mark.
Mark Malin
(00==[||]==00)
|
|
|
|
|
I don't know if your instruments have serial numbers but if it does then you can make the software read that number and work only with that instrument. I mean one copy of your software will work only with one instrument. Or you can limit the use of software by generating a unique computer ID based on the hardrive number or ethernet card ID, and then you should have your costumers contact you to get a serial number that works only for that computer ID. Now don't forget that the software can be cracked. These are very simple software protections.
none
|
|
|
|