|
|
Hi,
There is no way to make the maximize box invisible if you have minimize box.
If you dont want the minimize box also. Then use
cs.style &= ~WS_MAXIMIZEBOX;
cs.style &= ~WS_MINIMIZEBOX;
Now only you will get window without Maximize box and Minimize box.
The price of anything is the amount of life you exchange for it.
Thanks and Regards.
SANTHOSH V
|
|
|
|
|
Hi,
I would like to store a word in a string array. here is my code:
cArray = new char[str.GetLength()+1]; //here actually store the words that I key in the edit control.
Str1[100];
when the program detect the "space" it will store the previous character that had been read. For example: i have the code to read the character 1 by 1. But then im unable to store the "how" word in an array. I will only store the "h" instead of full words. Is there any code to advice? thank you.
|
|
|
|
|
Could you post the code you've written so far?
BTW Do you know CString exposes the PCXSTR operator [^]?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
actually here is my code to read the text that i write in the edit control.
CString str = m_sText1;
char *cArray = NULL;
int g = str.GetLength();
cArray = new char[str.GetLength()+1];
strcpy(cArray, LPCTSTR(str));
CString word[20];
CString str1[20];
int c=0;
int a=0;
for(int i=0; i<g; i++)
{
if(i!=(g-1))
{
if(cArray[i]!= ' ')
{
word[c]=cArray[i];
c++;
}
else
{
str1[a] = word;
a++;
}
}
m_Text1 = str1[0];
}
here is the code. But i don know how to store the word. it will just store 1 by 1. Maybe my code is wrong. Thank you for answering me 
|
|
|
|
|
If you need to separate words, using the ' ' character, then I suggest you using CString::Tokenize method, in its documentation page [^] there is a code sample very close to such requirement.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi Pallini,
Thx a lot..... Thx a lot... Im able to load the words. Need to modification then i can load the word into string array. As i need to pass the words that i read to go into other function. Thx a lot....
I try to do it now.. If later i success then inform u..
|
|
|
|
|
You're welcome.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
You're welcome too.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Nice to know, THHB 's buddy.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Have you looked at AfxExtractSubString() ? For each 'word' that it returns, you could store it in a CStringArray object.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hello,
I got a class from code project CHyperButtonEx derived from CButton class. With this class i am able to colour the background of a button.
The first problem i am having is that as i take my mouse over the buttton the background color which is initially green in colour becomes white. I dont want it to change when i take my mouse over it.
The second problem is that I am having three buttons one of green colour background while the other two are in red colour. Now what I want is that when i click the any one red coloured button it should turn green which I ma able to do.
But at the same Time I want to change the colour of other button from green to red. The colour of the green button is changing from green to red only when i take my mouse over it. I want it to be changed a soon as i click it.
Pleae tell me what to do.
Thanks In Advance
Dhiraj Kumar Saini
|
|
|
|
|
Hi All
How can i get filesize?I have a file name with full path and i want to obtain it's size.Plz help me
|
|
|
|
|
|
Thanks for reply problem solved
modified on Saturday, October 18, 2008 5:09 AM
|
|
|
|
|
Hi all,
Does anyone here know anything about packed image? any reference?
The story is: I just have my explorer.exe back to normal again. Process Explorer indicated "C:\PROGRA~1\INTERN~1\INTERN~1.dll" was loaded every time explorer launched, and explorer end up crashing. What special about this dll is that it was highlighted in purple(packed image category) and it was said that the packed image is probably a malware. So I tried to locate this dll but only find "internetapi.dll" questionable, I proceeded to delete this dll and the problem went away. I have several quick questions in mind:
1. How this dll gets loaded? There must be a process that injects the dll every time explorer starts. I found explorer itself was intacted. I didn't not find any suspicious process running at the time.
2. Why it was appeared as "C:\PROGRA~1\INTERN~1\INTERN~1.dll" instead of the real dll "internetapi.dll"
3. Is "PROGRA~1" a hidden folder? Does '~' get translated to anything else
4. What exactly is "packed image"?
Thanks,
|
|
|
|
|
Hi
There are 2 similiar(I think) options in MFC App. Wizard.
In one step we can set Compound Document Support and in Advanced Features
page we can check Automation.
But aren't all of them them to support COM technology?
Why are there 2 different places to add support?
What is the difference between these 2 options?
Thanks..
|
|
|
|
|
Hey Friends
I remember i saw some toolkit which had a demo of a bubble bar (not sure what's the name exactly)
but this is how it worked
Some small Icons on the bottom of a dialog box
Now when i moved mouse, the icon nearest to the icon became bigger & other icons nearby became relatively bigger
Sort of ripple effect (not exactly ripple but something like that)
Any body has an idea of something like this?
What's it called?
Name?
any url?
or anything like that
Regards
|
|
|
|
|
The effect you're thinking of is the Dock from Mac OS X. There have been many different implementations of that effect by many different developers.
|
|
|
|
|
yeah got it
thanks
do u know any sdk / link that offers the effect?
|
|
|
|
|
I have a console C++ application that reads standard input and writes standard output. I want to run (i.e., debug) the program under the IDE, using a text file that I want to redirect to the program, and want the output to redirect to (over)write a text file.
Going to the project properties, and under "Comand Arguments" typing
"<in.txt>out.txt" (without the quotes) does not work. Neither does
"<..\in.txt >..\out.txt"
What am I doing wrong?
Thanks!
Tom
|
|
|
|
|
Do you have something similar to the following in your code:
fread(..., stdin);
fwrite(..., stdout); If so, can you implement something like this instead:
FILE *in;
FILE *out;
if (argc == 1)
{
in = stdin;
out = stdout;
}
else
{
in = fopen(argv[1], "r");
out = fopen(argv[2], "w");
}
fread(..., in);
fwrite(..., out);
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Thanks, David, but that's not the problem.
The program works from the command line, e.g.,
prog.exe <in.txt >out.txt
What I want to know is how do you set
this up within Visual studio? I would
have thought setting up the command arguments
from within VS would do the trick--but I have
not figured it out.
Again, thanks,
Tom
|
|
|
|
|
hain wrote: The program works from the command line, e.g.,
prog.exe out.txt
What I want to know is how do you set
this up within Visual studio? Given this scenario, just add out.txt to the Program Arguments box in the project's settings.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Apparently the rendering of the code was not right in my last message.
What I want to do (from within VS) is
prog.exe <in.txt >out.txt<br />
<br />
where < and > are the redirection symbols.
|
|
|
|