|
hi
when i read ur previous to previous message then my first thought was that u r little arogant but ur previous message clear my doubt that u r not only a very helpful but also a very nice human bieng.
u know now its working nice no error.
just becoz of u thank u whatever ur name(thatsme_cool).
but its not the end i have to go very far i hope u will continue to travel with me.
bye
have a ball
Aavesh
|
|
|
|
|
Hi!
Do somebody know, how to create an dynamical array?
I tried to do something like that:
int count = 0;
while (s == newName) {
int i = atoi(s);
count ++;
int arr[count];
cin >> arr[i];
}
As long, as it founds some elements in a list, it should size the length of the array and fill it.
Thanks
-- modified at 2:41 Saturday 1st April, 2006
|
|
|
|
|
Replace these lines:
int arr[count];<br />
cin >> arr[i];
With this:
int* pArray = new int[count];<br />
cin >> pArray[i]
Then after you are done using the array:
delete [] pArray;
John
-- modified at 3:01 Saturday 1st April, 2006
|
|
|
|
|
First include this:
#include <vector>
Now we'll make a typedef for a vector (essentially dynamic array) of int s.
typedef std::vector<int> IntArray;
Now he's your code rewritten to use the vector:
int count = 0;
IntArray arr;
while (s == newName)
{
int i = atoi(s);
coun++;
int num;
cin >> num;
arr.push_back(num);
}
This code look like it would get in an infinite loop to me - But that's another story.
Steve
|
|
|
|
|
Hello !
I tried the following in CTreeCtrl to force label edit to end when we press VK_RETURN :
GetEditControl()->ShowWindow(SW_HIDE);
but I got AssertValid failed. Is there a nother way to do so?
Thanks.
Sovann
|
|
|
|
|
hi all..
well strange ques.
now i have a certain software and it works so fine ,but i need to add some option to a certain dialog in it !!! :-Dofcourse i don't have its src !!
any tips ??
|
|
|
|
|
No source hey. It depends on the nature of the change; If it's just a cosmetic change you can edit the dialog resource using Visual Studio. To do this you go to "File->Open", select the exe and select the open type as "Resources", from memory. It you want to add functionality you will need to alter the program or use some kind of hooking like which is possible by using the SetWindowsHookEx API - This is not for the faint hearted however.
Steve
|
|
|
|
|
this program downloading some files from the internet , what i want is to rename such files in a certain rules before it begin to download it
|
|
|
|
|
if u want to modify a program to yours in this way, u will not be successful because:
good software products alway have many secrets to protect themself, or dialog (such as About)/text-image on About are dynamically generated from code - not in resource.
A special image tool for Windows C++ programmers, don't miss it!
The world unique Software Label Maker is waiting for you and me ...
A nice hyper tool for optimizing your Microsoft html-help contents.
|
|
|
|
|
Hi
I am drawing graphic features in the view. In my MDI application
I want to have multiple view which will reference to same socument .
Those scrollable view should display same graphic content in all the views.
Is this possible? Any such posting on CP? How to get this done?
Thanks,
lee
|
|
|
|
|
Hi Gurus,
I am doing the paint brush application when i resize or minimize the window what i have done get lost
I heared about serialization
can anybody help or suggest how i persist drawed contents on window??
I look forward to your reply
Knock out "T" from CAN'T
You 'CAN' if you think you 'CAN'

|
|
|
|
|
Hi A_Laxman,
Do you use WM_PAINT?
do you want to save drawing to graphic file
|
|
|
|
|
Hi WhiteSky,
Thanks for your reply
I am doing the app in MFC and as well handling OnPaint method
i just able to see that when i draw the line and when i minimize the application and maximize the line drawn disappers
so what i should do??
or do you have any sample code for same.
Knock out "T" from CAN'T
You 'CAN' if you think you 'CAN'

|
|
|
|
|
Hi A_Laxman,
you wrote(when i minimize the application and maximize the line drawn disappers)well
I write this code and when I min or max or... the draw is fix
...OnPaint()
{
CPaintDC dc(this);
dc.MoveTo(0,0);
dc.LineTo(100,100);
}
|
|
|
|
|
Hi WhiteSky,
What you replied i aggreed but this is in case of static Data (points in this case)
when i have thosands of lines then how it will possible to draw the thousand of lines each WM_PAINT message
Knock out "T" from CAN'T
You 'CAN' if you think you 'CAN'

|
|
|
|
|
Dear A_Laxman,
I suggestion for you(It's possible not good)
you draw all lines and save this shapes in the graphic file
then use this file in the one Button CStatic(Bitmap)
Now if you change window this shapes is fix
with this way you can delete WM_PAINT
Have a nice day
|
|
|
|
|
Hi,Everyone!
I amm using Win32.I want to change color of text in listbox control.Who know about this prolem,please help me.
Thanks!
|
|
|
|
|
|
|
case WM_CTLCOLORLISTBOX:
SetBkColor((HDC)wParam,RGB(0,0,0));
SetTextColor((HDC)wParam,RGB(30,120,0));
return (LRESULT)CreateSolidBrush(GetSysColor(COLOR_WINDOW));
break;
|
|
|
|
|
Hi.
If let a window always hide, hook which message?
Thanks.
|
|
|
|
|
Do you mean, How do I hide a window? Sorry but your question does not make sense to me.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
-- modified at 23:15 Friday 31st March, 2006
|
|
|
|
|
|
The WM_SHOWWINDOW message is sent to a window when the window is about to be hidden or shown.
Knock out "T" from CAN'T
You 'CAN' if you think you 'CAN'

|
|
|
|
|
Not need hook WM_WINDOWPOSCHANGING (SetWindowPos)?
|
|
|
|