|
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.
|
|
|
|
|
You can't do that within the IDE.
"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
|
|
|
|
|
Hmmm...
I'm very surprised/disappointed.
Thanks,
Tom
|
|
|
|
|
OS: win2000
VC: VC6
defaults are win32 debug and release, I can not find place to build an UNICODE exe in project settings.
How to build an UNICODE MFC exe project?
|
|
|
|
|
Replace _MBCS with _UNICODE in the preprocessor definitions.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
|
includeh10 wrote: t is not working.
Interesting.
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]
|
|
|
|
|
includeh10 wrote: it is not working.
Well, what is that supposed to mean? At best, I can tell you that 'it ought to work'.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Mr.Univoter starts boring me.
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]
|
|
|
|
|
CPallini wrote: Mr.Univoter starts boring me.
But its not serious problem for you because you cant see that votes. 
|
|
|
|
|
Hey man, you're wrong, I have the CPMRU as par of my MVP 's toolkit.
http://www.codeproject.com/script/Forums/preview.aspx?prefix=ctl00$MC$
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]
|
|
|
|
|
Make the _MBCS -> UNICODE change as mentioned, but for an executable, you will also need to change the entry point to wWinMainCRTStartup (Project | Settings -> Link tab)
|
|
|
|