|
What did you already try, where are you stuck ? (please, see the posting guidelines at the top of this message board)
|
|
|
|
|
I might have to use some getproperty() function. In which we specify the key. This function returns the associated value to the key in the properties file. This is what I know. Now I don't know how to use getproperty() function. What's it's syntax and the header file to be included in the project.
|
|
|
|
|
pl_kode wrote: I might have to use some getproperty() function
Sorry, never heard about such function . Is that a proprietary function ? If yes, then we won't be able to help you a lot, you should ask the guy who wrote the function how to use it.
(BTW, are you working in C++ ? )
|
|
|
|
|
Yes I am working on C++. This is an inbuilt funtion in some header file. that I am not able to figure out.
|
|
|
|
|
It needs to extract files to a directory according to where the application is installed.
modified on Friday, April 25, 2008 12:55 AM
|
|
|
|
|
You can get it searching for the application folder in registry or just listing the contents of the hard disk till you find it, then extract the files there where you need. The NSIS allows you to make the installator using conrecte scripting and selecting folders dinamically (choosen by the user or given internally), reading/writing to the registry and many other features.
But I think there is not any tool to make it all automatic. You should programm it by yourself
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
Dear friends,
I've a log file and this file is getting updated regularly. Now i want to develop an application which *monitors* this file and display the contents of this file. If there is any new addition in this file, the application should immediately update the text in GUI window ? How can i do so.
Imtiaz
|
|
|
|
|
|
Here is one example.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I'm writing MFC dialog based application.
I changes the background's color from the default Grey one.
How can I change also the menu color? I can't find how to do it.
Thanks, for any help.
|
|
|
|
|
If you want to change the background color of menu bar then you will have to use owner drawn menus. One good article is this[^]. There are more articles at http://www.codeproject.com/KB/menus/index.aspx[^].
If you want to change the background of the popup menu then try this code.
CMenu* menu = GetMenu();
MENUINFO mInfo = {0};
mInfo.cbSize = sizeof(MENUINFO);
mInfo.fMask = MIM_APPLYTOSUBMENUS | MIM_BACKGROUND;
mInfo.hbrBack = CreateSolidBrush(RGB(0, 255, 0));
menu->SetMenuInfo(&mInfo);
-Saurabh
|
|
|
|
|
Hello,
I want to change the foreground colour of CStatic class.But the window styles or static such as SS_BLACKRECT,SS_WHITERECT doesb't have any effect on the CStatic window.
What must be the problem?
Regards
Pritha
|
|
|
|
|
By "foreground colour", do you mean the text color?
If so, you could add a handler for the WM_CTLCOLORSTATIC message in the
control's parent which sets the color, something like:
ON_MESSAGE(WM_CTLCOLORSTATIC, &CMyDlg::OnCtlColorStatic)
...
LRESULT CMyDlg::OnCtlColorStatic(WPARAM wParam, LPARAM lParam)
{
HDC hDC = (HDC)wParam;
LRESULT ret = Default();
::SetTextColor(hDC, RGB(0xFF,0x00,0x00));
return ret;
}
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hello,
Thanks for your reply
But actually I want to change the background colour of CStatic box.
The CStatic Box is on a CMDIChildWnd and not on a dialog.
I tried by calling GetDC() of CStatic and then call SetBkColour().But it seems the DC handle is not got properly with GetDC().
But CStatic->SetFont() works properly.
If I want to change the background colour Why the windows static styles don't work while creating the CStatic windows (i.e SS_BLACKRECT, SS_WHITERECT etc)
Sorry for miscommunication.
Regards
Pritha
|
|
|
|
|
For the background, your WM_CTLCOLORSTATIC handler needs to return a brush
that will be used to paint the background.
If there's text in the static control, you'll also want to set
the bkcolor, something like this:
CBrush RedBrush;
...
RedBrush.CreateSolidBrush(RGB(0xFF,0x00,0x00));
...
ON_MESSAGE(WM_CTLCOLORSTATIC, &CMyWnd::OnCtlColorStatic)
...
LRESULT CMyWnd::OnCtlColorStatic(WPARAM wParam, LPARAM lParam)
{
HDC hDC = (HDC)wParam;
::SetTextColor(hDC, RGB(0x00,0x00,0xFF));
::SetBkColor(hDC, RGB(0xFF,0x00,0x00));
return (LPARAM)(HBRUSH)RedBrush;
}
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
I have a Modal Dialog window that is displayed to the user and I noticed the worker thread is blocked until I close the Modal Dialog window. Any way around this?
Thanks
|
|
|
|
|
It shouldn't, unless it is the same thread that created the Dialog.
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
|
|
|
|
|
What do I have to do to "link" the scroll bar for one edit box to another so that when I move the slider in box A up and down, the slider in box B follows?????
Thank you in advance
PieRRe
|
|
|
|
|
You will have to do this manually i.e. intercept the message for first scroll bar and then move second scroll bar accordingly. Similarly do this for second scroll bar.
-Saurabh
|
|
|
|
|
what I need is know the rightmost part of the IP address for example if it's 192.133.14.17
I want to get the 17.
modified on Thursday, April 24, 2008 11:26 AM
|
|
|
|
|
The "17" is on the right side of the address, not the left part, that's probably why you cannot
get it.
|
|
|
|
|
Sorry for the confusion. Too much hours, I guess...
|
|
|
|
|
And what is your difficulty about?
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
|
|
|
|
|
finding the function that returns this data.
|
|
|
|
|
Have you the IP?
Is it storead as a string or whatever?
i.e. be specific.
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
|
|
|
|