|
hi
you can change/add the icon of ur application easily
You can import new icons from anywhere and then add them as your resourse(that will automatically added when u import)and delete/change name of IDR_MAINFRAME and rename the new icon resourse as IDR_MAINFRAME ...an easy and tricky way...hahahaha
ok try it now....!
Renjith
sofware behind everything...
so enjoy with the codes...
Renjith Pandalam
|
|
|
|
|
No I wanted to change Icon of an exe at runtime and not through IDE. But now I have found a solution. Read my comment below.
http://www.codeproject.com/script/comments/forums.asp?forumid=1647&select=169709#xx169709xx
In my dream, I was dorwning my §orrow§
But my §orrow§, they learned to §wim
|
|
|
|
|
You're going to have to use the UpdateResource() API.
Jeremy L. Falcon
"Tickle me Elmo -- please!"
<nobr>
Homepage : Sonork = 100.16311 Maybe my mangling might misguide malicious miscreants momentarily?
|
|
|
|
|
I have 2 edit boxes, A & B. B cannot have a value in it unless A does. B is disabled until A gets a value. When the user erases the value in A, I want to disable and erase the value in B. This all works fine in the debugger with the following code:
if (m_VidValue.IsEmpty())
{
m_Prefix = "";
GetDlgItem(IDC_VID_PREFIX_EDIT)->EnableWindow(FALSE);
UpdateData(FALSE);
}
When I run the code outside the debugger, the field gets disabled, but it does not clear. I can make it clear by forcing a RedrawWindow(). Is there a better way to do this without redrawing and getting the annoying flicker?
Thanks in advance,
Bob
|
|
|
|
|
You could try using SetWindowText("") to clear an edit box, for instance:
m_Prefix = "";
CWnd *pControl = GetDlgItem(IDC_VID_PREFIX_EDIT);
if(pControl)
{
pControl->SetWindowText("");
pControl->EnableWindow(FALSE);
}
No generalization is 100% true.
Not even this one.
|
|
|
|
|
SetWindowText does not work either, unless I do a RedrawWindow().
|
|
|
|
|
Hmm, that seems odd. Are you doing the SetWindowText before you disable the window?
You might be able to get away with a RedrawWindow only on the edit box, and not the whole dialog, which may help the flicker problem.
No generalization is 100% true.
Not even this one.
|
|
|
|
|
Yes, I am doing the SetWindowText before I disable the window. I've also tried doing a RedrawWindow on the edit box, but that doesn't work.
|
|
|
|
|
Did you try:
GetDlgItem(IDC_VID_PREFIX_EDIT)->Invalidate();
-Jack
To an optimist the glass is half full.
To a pessimist the glass is half empty.
To a programmer the glass is twice as big as it needs to be.
|
|
|
|
|
|
Hello:
I've migrated a VC6 project to VC7. I've no errors when compiling it. The project consists in several DLLs and a executable project. Everytime I build the solution, all resource files in every DLL is recompiled.
How can I avoid this innecesary recompilation of the resource files.
Thanks in advance,
Jose
|
|
|
|
|
You are in good company. Many have been bitten by this bug. Makes you wonder if the MS QA is ever going to be back from the "vacation". :-/
Anyway, head on over to the MS newsgroup microsoft.public.dotnet.languages.vc for a possible solution. The more people that complain, the more MS might realize "Oh sh*t, we've once again screwed up. Maybe we _should_ hire some QA people?" and not continue to treat us as guinea pigs year after year.
|
|
|
|
|
Mike Nordell wrote:
and not continue to treat us as guinea pigs year after year.
Just a thought...Higher level...
We are guinea pigs to Microsoft as our users are guinea pigs to us
Nick Parker
|
|
|
|
|
i want a [12][12] array containing text in each bit
im not sure where i need to declare it and where to put it in the main program.
any help on how to set it up would be good
thanks
beginner
|
|
|
|
|
i would put it in the procedure you're using it in, unless you want it to be global..
|
|
|
|
|
|
ive done that thanks, but i still get error like
error C2143: syntax error : missing ';' before ','
error C2143: syntax error : missing ';' before '{'
ive set my array up as ---
char array[12][12]={
{'L','A','Y','Z','E','I','T','H','S','J','H','R'},
{'B','C','Q','Q','U','K','H','L','J','D','A','T'},
..
..
};
|
|
|
|
|
Anonymous wrote:
ive set my array up as ---
char array[12][12]={
{'L','A','Y','Z','E','I','T','H','S','J','H','R'},
{'B','C','Q','Q','U','K','H','L','J','D','A','T'},
..
You've set it up wrong
e.g.
char array[3][3]=
{
{'A', 'B', 'C'},
{'a', 'b' , 'c'},
{'D', 'E' , 'F'}
}
shoudl work.
(-_-)
|
|
|
|
|
or like this if you want
char array[5][3] = {"brian","niamh","marky"};
(-_-)
|
|
|
|
|
Psst! Hey, over here.
<stealthly>
did you mean?
char array[3][6] = {"brian","niamh","marky"};
</stealthly>
Jeremy L. Falcon
"Tickle me Elmo -- please!"
<nobr>
Homepage : Sonork = 100.16311 Maybe my mangling might misguide malicious miscreants momentarily?
|
|
|
|
|
Hey
What you need to do is just define the inputs in one big list no need for {} after every 12 the compiler automatically assigns the first 12 to teh first array of 12 then the next 12 to the next and so on.
Peter
Do it like this char array[12][12]={'L','A','Y','Z','E','I','T','H','S','J','H','R','B','C','Q','Q','U','K','H','L','J','D','A','T'};
|
|
|
|
|
Reveal thyself ye swine or thus not an answer from me you will receive!
Even the best of the best ask questions -- that's how they become the best.
Jeremy L. Falcon
"If you eat the cookie..."
<nobr>
Homepage : Sonork = 100.16311 I care to not care about the care of not caring for the caring of a caring one's country.
|
|
|
|
|
its a miss-tari!!!
|
|
|
|
|
|
char array[4][7] =
{
{"zero\0"}, {"one\0"}, {"two\0"}, {"three\0"}
};
puts(array[2]);
Jeremy L. Falcon
"Tickle me Elmo -- please!"
<nobr>
Homepage : Sonork = 100.16311 Maybe my mangling might misguide malicious miscreants momentarily?
|
|
|
|
|