|
Hi Usha,
The solution i gave you must be working, might be there you are doing some mistake in implementing this technique.
Do u getting any error message..?
Please put this code at approprite place, & with proper arguments.
& sorry, i looked for other solution but failed to found..!
Better Luck this Time..
|
|
|
|
|
Do edit your CMainFrame::PreCreateWindow function not the one which is inside your view class and the statement will work...
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;
cs.style &= ~(WS_MAXIMIZEBOX);
return TRUE;
}
|
|
|
|
|
hi programmos,
in my application, i am trying to edit the boot.ini file.
so heres what i tried so far,
i created a new file named "boot.new" with all the required changes, then used MoveFileEx() to replace existing "boot.ini" with the "boot.new", but MoveFileEx returns with error.
So i tried to edit the boot.ini file directly. but if i try open boot.ini in write mode, it now fails to open the file in the write mode.
i also thought of using "bootcfg" command line utility, but then unfortunately windows xp home edition does not include this utility.
i was wondering if theres a way to edit the boot.ini file from visual c++ (programatically), in other words IM STUCK and it really SUCKS to be where im right now.
please help.
regards
~sameer (googling...)
|
|
|
|
|
It would be easier to form a response if you posted the results of the call to GetLastError().[^]
With that being said I will attempt to make a non-educated guess at what the problem could be. Perhaps the file is read-only in which case the following code may help.
DWORD dwResult = GetFileAttributes(szFullPath);
if(INVALID_FILE_ATTRIBUTES != dwResult)
{
TRACE1(_T("Overwriting file: %s\n"),szFullPath);
if(dwResult & FILE_ATTRIBUTE_READONLY)
{
BOOL bSuccess = SetFileAttributes(szFullPath,dwResult & ~FILE_ATTRIBUTE_READONLY);
}
}
|
|
|
|
|
You are having all these problems because boot.ini is readonly file!
-Saurabh
modified on Saturday, June 21, 2008 5:05 AM
|
|
|
|
|
Thanks a bunch...
it indeed was a problem with the file permissions.
i totally did not think in that direction (dumb).
im in a better place now..
thanks a lot again
regards
~sameer
|
|
|
|
|
You are welcome.
-Saurabh
|
|
|
|
|
dear all
i am confused how to get previous function data? for example:
void CAutoDetHumanDlg::OnSmoothImg(){imagedata=processedimage}
void CAutoDetHumanDlg::OnCalculateFeatures(){here i need processedimage data}
how can i obtain it from first function?
thanks a lot.
sorry, i am newbie
gentleguy
|
|
|
|
|
Make it a member of your class. This way, it will be accessible from within any of your class member function.
|
|
|
|
|
thanks for your suggestion. now i have done the first function what i mentioned in former post, now i would like to use first function data in second function, how to get it?thanks a lot
gentleguy
|
|
|
|
|
If the data belongs to the CAutoDetHumanDlg class, it is accessible by any of its members. Just use it.
"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
|
|
|
|
|
yes, you can see all belong to CAutoDetHumanDlg class, but how to get it? i don't know? sorry, thanks
gentleguy
|
|
|
|
|
gentleguy wrote: but how to get it?
Both OnSmoothImg() and OnCalculateFeatures() access the data in the same way.
"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
|
|
|
|
|
Do you read and try to understand the answers that are given to you ?
|
|
|
|
|
This is a rethoric question, isn't it?
Regards.
--------
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
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
For instance making processedimage (or imagedata ) member of the CAutoDetHumanDlg class.
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]
|
|
|
|
|
thanks, now if i don't change anything, i have done first function already, now i am doing second function, i need first function data. so how to get it?thanks a lot
gentleguy
|
|
|
|
|
gentleguy wrote: so how to get it?
Get a book and study it to start with. There are many but something like this[^] is a good place to start.
led mike
|
|
|
|
|
dear all
how to smooth projection histogram of binary image? thanks a lot in advance.
gentleguy
|
|
|
|
|
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]
|
|
|
|
|
What's a "projection histogram of binary image" ? google tells me it's related to "image registration" (alignment of two or more images)
but what are you wanting to smooth ?
This signature was proudly tested on animals.
|
|
|
|
|
i have read one journal paper, they said, first get projection histogram which are obtained by counting the number of black pixels on the binary image, then smoothing is performed to the histogram. so i want to know how to smooth this histogram?thanks
gentleguy
|
|
|
|
|
Make little steps my friend: start with a good C++ tutorial.
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]
|
|
|
|
|
|
If I had voting-buttons I will would give you a good mark for the good links.
Regards.
--------
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
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|