|
I would like to help but i am not sure about what i write below, just try it.
since it is a control panel application, you might use WinExec or Shell execution functions to execute the .cpl file...
hope this helps
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
Hello all, I'm trying to restrict the left pane of a split window to a certain size. For instance, the left pane should not be allowed to get smaller than 100 pixels, but it can get wider; same for the right pane. There is a minimum arg when creating pane, but that just means if it gets under 100 pixels, it closes all the way up. I would like for it to not get any smaller than 100 pixels. I've seen articles that tell you how to lock the bar, but this is not what I want.
Thanks in advance.
|
|
|
|
|
BD,
I worked with some splitter stuff like this in ancient memory. Right off the top of my head, I'd suggest you take a look at handling the resizing messages as I recall that's how I did it. I don't remember if it was as simple as WM_SIZE, but look at the splitter wnd documentation & see what size oriented messages they respond to.
I do realize this is a bit vague, but it might point you down a productive path. Hope it helps.
|
|
|
|
|
Hi all,
I want to include a zip utility in my Windows Mobile application, so is there a free open source zip compression library? and if there are many, what is the best one???
Mohammad
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
|
hey guys,
if anybody know any other, plz post them... i want to see many options
thanx
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
|
If you just want compression, look no further than zlib: http://www.zlib.net/[^]
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Take a look at Infozip (http://www.info-zip.org/[^])
AFAIK, both java.util.zip and Winzip are built on Infozip, so compatibility isn't an issue here.
I've been using it for years, no problem.
And it's free.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
|
Hi All.
I try to write some application and i use the function
_beginThread(...)....EndThread() and i don't understand how can i stop the running thread.
When i create 1000 thread i can stop some thread by using sleep - but what i want to do is to stop thread with some other way and make the thread to continue run when i need to.
( in java i can do in simple way "stop" and "notify" for continue thread run)
Thanks for any help.
|
|
|
|
|
See here.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I just need to know how can i "say" the kernel of the operation system that the thread X will not be running until i will say it will.
|
|
|
|
|
Yanshof wrote: ...thread X will not be running until i will say it will.
So just use CREATE_SUSPENDED when creating it.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
The CREATE_SUSPEND flag is just for using ResumeThread(...) - but if the current thread is running ... how can i stop him and again set the thread continue running ? ( i guess that using ResumeThread again will make the thread run again )
|
|
|
|
|
Yanshof wrote: The CREATE_SUSPEND flag is just for using ResumeThread(...)
Wrong. Why would you even think that? When you call a function named ResumeThread() , what purpose would a CREATE_SUSPENDED flag serve? _beginthread()
Yanshof wrote: if the current thread is running ... how can i stop him and again set the thread continue running ? ( i guess that using ResumeThread again will make the thread run again )
Read the article I provided you. It plainly shows how to start, stop, suspend, and resume threads properly.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Google does wonders
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Hi
I am new to C++
Just wondering if anyone can help out here.
I have a string consisting of all the letters of the alphabet.
eg: string Alphabet ("A B C D E F G H I J K L M N O P Q R S T U V W X Y Z");
I need to erase a particular letter of the alphabet within the string. eg H and then display the string back to the console app minus the letter erased.
I have tried playing around with Alphabet.erase() but so far have only managed to reduce the length of the string, not erase a specific character within it.
Can anyone show me how I could do this
Thanks in advance !!!
I really hate this darn machine;
I wish that they would sell it.
It won't do what I want it to,
but only what I tell it.
~Author Unknown
|
|
|
|
|
bool removeChar(const char& c)
{
if ('h' == c || 'H' == c)
return true;
return false;
}
string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
alphabet.erase(remove_if(alphabet.begin(), alphabet.end(), removeChar), alphabet.end());
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
To erase the letter, the previous solution works. The code below replaces the letter with a space:
wstring alphabet = L"ABCDEFGHIJKLMNOPQRSTUVWXYZ";
wstring::size_type pos = alphabet.find(L'H');
if (pos != wstring::npos)
alphabet.replace(pos, 1, 1, L' ');
wcout << L'[' << alphabet.c_str() << L']' << endl;
-- modified at 15:54 Tuesday 19th September, 2006
|
|
|
|
|
Hello! Please help me!,
Is it possible to check how long you have been on the Internet?
can you check when you start Internet explorer och when you close Internet explorer or it there a better way? Please help me.
|
|
|
|
|
If you are wanting to tie it to browser activity, then I suspect a Browser Helper Object (BHO) is what you are after.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Thanks do you have ant pointers where I can check and if there are any exemple?
|
|
|
|
|
When someone gives you a name, then google is all you need for more info.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
In addition to the link I already provided?
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|