|
a beer please... that's very URGENT !!!!!!!
cheers,
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
BEER are not allowed in public places ;P
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ThatsAlok wrote: BEER are not allowed in public places
even non alcoholized ones ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote: even non alcoholized ones ?
Yeap
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
[under_the_table] [/under_the_table]. C'mon toxxct, finish it fast before somebody sees u, particularly Mr.ALok
He is like a one-legged man in a bum kicking competition. -Novjot Sidhu
--[v]--
|
|
|
|
|
VivekuniQ wrote: particularly Mr.ALok
Cut the mr. from Alok....
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
rajesh
I have modified the program .Check it
-- modified at 6:49 Wednesday 26th October, 2005
|
|
|
|
|
whats the best way to read ini files and store the input configuration for a program in a class that will be used throughout the program. I want to have a STL map for each section, and read the name/value pairs in each section into the map. Is this a good way to keep the configuration? What are the other general approaches people follow in keeping the config in memory?
What is the way to enumerate the name/value pairs in a given section?
Does each call to GetPrivateProfile* parse the INI file again? Is this why they take the INI file name as a parameter?
thanks!
|
|
|
|
|
Lambu Jindu wrote: whats the best way to read ini files and store the input configuration for a program in a class that will be used throughout the program. I want to have a STL map for each section, and read the name/value pairs in each section into the map. Is this a good way to keep the configuration? What are the other general approaches people follow in keeping the config in memory?
Yeah thats the good way! till you ini file info doesn't change between execution of program!
Lambu Jindu wrote: Does each call to GetPrivateProfile* parse the INI file again? Is this why they take the INI file name as a paramet
Yeap, you are thinking in right way! it reparse the ini file every time it call it!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Lambu Jindu wrote: whats the best way to read ini files...
With GetPrivateProfileString() and GetPrivateProfileInt() .
Lambu Jindu wrote: Is this a good way to keep the configuration?
How often do you need the values? Do you want the values to be able to be changed while your program is running, or must your program be restarted?
Lambu Jindu wrote: What is the way to enumerate the name/value pairs in a given section?
Using GetPrivateProfileSection() .
Lambu Jindu wrote: Does each call to GetPrivateProfile* parse the INI file again? Is this why they take the INI file name as a parameter?
Yes.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Ahh! I am suprisized you did not mention that those functions are only supplied for 16 bit compatabilty and he should be using the registry. (All thou I hope they stick around as I have found them useful for other purposes in the past)
If I remeber correctly, they designed those functions right. When you make a call to one of them, the information is actualy cached so that the second time you call for the same information it is read from the cache, unless the file has been modified between calls (need to be recached).
In other words, they can use the functions you specified directly without having to store the values internaly, as they have already been stored in a cache some where.
INTP
Every thing is relative...
|
|
|
|
|
How to get the same intensity after stretching an image
eg:
Let intensity of a square of 1 unit = 1 x I1
If I stretch the square to 2 units then the intensity = 2 x I2
Both these intensities should be equal
1xI1 = 2xI2 = k(constant)
It should work ways (ie) the intensity should decrease while stretching and increase while shrinking.
I am using bilinear interpolation for stretching but the intensities aren;t equal.
Is there any algorithm or filter to alter the intensity of an image.
Pls Help
|
|
|
|
|
What do you mean by intensity ? Are you talking about saturation ? How do you calculate it ?
Once you use bilinear interpolation, you're kind of inventing inbetween values, bicubic is more accurate, but still the same, really.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanx for ur reply
Intensity means value of each pixel
eg:
If I stretch a yellow color square of one unit to two units then after stretching it should be light yellow and if I stretch further more it should me even more lighter.
Is there any density filter which can be used instead of bilinear interpolation?
|
|
|
|
|
Arrun wrote: Intensity means value of each pixel
So, just the RGB value ? Then hard red == hard blue == hard green, how is that useful ?
Arrun wrote: If I stretch a yellow color square of one unit to two units then after stretching it should be light yellow and if I stretch further more it should me even more lighter.
OK - almost the entire universe does not want this behaviour, which is why you don't get it as standard. If you write your own bilinear filter ( or use the one in my image processing article ), you could work out the factor you've stretched by, and then scale each pixel value accordingly, so if you increase the size of the image by 50%, you can change the filter to also lower the RGB values by 1/3, to get the desired result.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanx for ur reply
I checked it with 8 bit bmp but when I reduce or increase the pixel values the color change not the intensity
eg:
If I use yellow color square and stretch it by two units and divide the pixel value by 2, the color changes to green and not to light yellow.
Pls help
|
|
|
|
|
You can't be changing pixel values in an 8 bit bitmap, because what you're actually changing are references into a palette. You need to use 16 bit at least to be changing colours like that.
Arrun wrote: the color change not the intensity
How can the intensity stay the same if the color changes ?
Why do you even want to do this ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have created one dialog box. Then I have created a view class
with help of menu Insert -> Form.
CMultiDocTemplate* pNewDocTemplate = new CMultiDocTemplate(
IDR_TRIAL_TMPL,
RUNTIME_CLASS(CMDIDocumentDoc), // document class
RUNTIME_CLASS(CMDIChildWnd), // frame class
RUNTIME_CLASS(trial)); // view class
AddDocTemplate(pNewDocTemplate);
Even New template is seen in File -> New but it does not display
my dialog I am sure I am missing some step while creation of view class
Please help me
|| ART OF LIVING ||
|
|
|
|
|
HALO FRIENDS I MYSELF GOT THE SOLUTION
WHILE ADDING DIALOG BOX WE HAVE TO DO FOOLOWING PROCEDURE.
1) RIGHT CLICK ON DIALOG ITEM IN RESOURCE TAB
2) CLICK INSERT.
3) THE VARIOUS INCLUSIVE RESORSES WILL COME
4) OPEN + SIGN INFRONT OF DIALOG
5) SELECT IDD_FORMVIEW
6) THEN WE GET THE FORM ADD CONTROLS AS YOU WANT
7) GO TO TOP MENU BAR " INSERT --> FORM"
8) THIS WILL CREATE ALL STUFF FOR YOU AT BEGINING OF
INITINSTANCE OF YOUR APPLICATION CLASS
9) ONLY THING IT WILL DECLARE
CMultiDocTemplate* pNewDocTemplate;
IN INITINSTANCE OF YOUR APP CLASS YOU HAVE TO CUT THIS
DEFINITION AND PASTE IN THE YOUR APP CLASS;
10) ANY QUERYS PLS CONTACT AT shivditya@hotmail.com
|| ART OF LIVING ||
|
|
|
|
|
Hi Shivditya
Thanks
after ur question last day i was seraching
for the answer,
that's quiet tricky to add a Form dialog and that
will add a Document tempelate .
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Vikas It really problematic solve alone vc++ problem
I am working in Thane as a alone programmer
can i get your contact number
|| ART OF LIVING ||
|
|
|
|
|
Hello,
I am totally new to programming with Windows Forms and I have a question about what kind of flexibility is available to properly factor my code. Specifically, I have been tasked with creating a program that is a wizard of sorts with many different panels that show up under various conditions. I should also mention that I am using managed C++, but I am sure I would have the same issue with C#. What I have noticed is that the designer will place event handlers for all child controls of the main form in the class that drives the main form. That is, all of the controls that appear in each of the panels (did I mention that there were a lot of them?) that are embedded in the main form have their events routed to the main form's class. This is a major problem because my main form's class has grown to be enormous and unwieldy. Does any one have any advise on how I might be able to better structure the application so that functionality can be broken out of the main form's class but that I may continue to use the designer?
Any help would be greatly appreciated
|
|
|
|
|
OlliesDad wrote: What I have noticed is that the designer will place event handlers for all child controls of the main form in the class that drives the main form.
They will go into whatever class contains the control. If you're using panels, then your main class will be adding controls to panels. Instead, why not create custom controls, which contain the controls for a panel, and the code will all go into those ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote: They will go into whatever class contains the control. If you're using panels, then your main class will be adding controls to panels. Instead, why not create custom controls, which contain the controls for a panel, and the code will all go into those ?
That sounds like a greate idea. I can just subclass the panel class. Thanks!
|
|
|
|
|
Far Pointer said this to me yesterday
Hi,
Follow this
CInitials::CEdit(derived from CEdit)
make a control variable from CInitials and link it to the editbox(through classwizard)
then you will be able to tap it on the CInitials::OnChar(..)(through classwizard),
or else add the EN_CHANGE handler this will also help you .
Regards
FarPOinter
This was my response.
Thanks, but im using Visual C++ 7.1 not Visual Studio 6.0.
Visual C++ 7.1 comes with Visual Studio 2003.
Thanks for the suggestion anyway.
Tom
Any help would be appreciated on catching WM_CHAR in the derived class, although it doesnt show in the Add Event Handler and like im saying there is no class wizard in VC++.NET 2003. Only Add Event Handler and new Class Dialog.
Tom
|
|
|
|