|
didn't you listen to the teacher when in classroom ?
|
|
|
|
|
toxcct wrote: didn't you listen to the teacher when in classroom ?
Why bother, when you've good music instead?
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
|
|
|
|
|
CPallini wrote: Why bother, when you've good music instead? [Big Grin]
I used to do that, back in my college days. I also used to keep some snacks handy. But of course, only in boring classes.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Rajesh R Subramanian wrote: only in boring classes.
hummm.. i need to talk to your professors
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
ClassA, ClassB, ClassC, ...
"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 have to convert a color image to black and white using opencv.I used the following code.It didn't work.Is there any error in it?
src = cvLoadImage( path ); // load color image
IplImage* gray = cvCreateImage(
cvSize(src->width,src->height),
IPL_DEPTH_8U, 1);
cvCvtColor(image,gray,CV_RGB2GRAY);
|
|
|
|
|
projectip wrote: cvCvtColor(image,gray,CV_RGB2GRAY);
What is image ? Try
cvCvtColor(src, gray, CV_RGB2GRAY); insteaed.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
You can use of BitBlt for it,of course you must dont think it directly convert your color image to black and white.
for your code did you check return values?
|
|
|
|
|
have to convert the color image for identifying the connected components.
Nothing is displayed when i run the code.
|
|
|
|
|
For example test this code
CImage m_Image;
CBrush m;
m.CreateSolidBrush(RGB(0,0,111));
GetDC()->FillRect(CRect(0,0,800,600),&m);
m_Image.Load(_T("c:\\333.jpg"));
/*see dwRop on the MSDN*/m_Image.BitBlt(GetDC()->m_hDC,0,0,MERGEPAINT);//SRCERASE
|
|
|
|
|
is motherboard serial number different from the Cpu id?If a system needs to be identified ,which is the better one(cpu id or motherboard serial number) to identify one system from another,other than MAC id?thanx in advance....
|
|
|
|
|
Parvathy_1985 wrote: is motherboard serial number different from the Cpu id?
Yes. Both are equally good to identify a system. No two motherboards or CPU will have the same serial number / ID. Use whichever is easier to you. You might want to use them both together as well.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
In addition to Rajesh's reply, you may also consider using the serial number of the hard drive too.
Regards,
Vijay.
|
|
|
|
|
i find that inorder to retrieve cpu id , assembly language is to be written,is it true?Is there any other alternative??thanking you in advance....
|
|
|
|
|
Parvathy_1985 wrote: i find that inorder to retrieve cpu id , assembly language is to be written,is it true?
No. you can use the Win32 WMI classes to get the hardware information. May be this[^] article can help you.
Regards,
Vijay.
|
|
|
|
|
Have a look at this article: Three ways to retrieve processor information[^]
And then, I strongly recommend you to use Google. It works for me all the time. Almost.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
|
In VC++, timer(OnTimer() ) runs on which task/thread?
Is it GUI or something else?
Thanks,
Suman
--
"Programming is an art that fights back!"
|
|
|
|
|
Can you more explain what do you want to know,excatly?
|
|
|
|
|
A timer (callback) runs in the thread that called SetTimer .
OnTimer is a CWnd method, therefore it runs in the context of a GUI thread.
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
|
|
|
|
|
Hi,
Thanks for the help!!
Thanks,
Suman
--
"Programming is an art that fights back!"
|
|
|
|
|
Here is the code i tried
IPropertySetStorage *pPropSetStg = NULL;
IPropertyStorage *pPropStg = NULL;
HRESULT hr;
hr = ::StgOpenStorageEx(wcFilename, STGM_READ | STGM_SHARE_EXCLUSIVE, STGFMT_FILE,
0, NULL, 0, IID_IPropertySetStorage, (void**)&pPropSetStg);
hr return S_KO
hr = pPropSetStg->Open(FMTID_SummaryInformation,
STGM_READ | STGM_SHARE_EXCLUSIVE, &pPropStg);
hr returns as 0x80030002 %1 could not be found.
|
|
|
|
|
It seems that you got this error:
"STG_E_FILENOTFOUND A property set of the indicated name does not exist"
are you sure you have that object?
|
|
|
|
|
Hi,
I am looking for the way to write 1) a Windows Service in VC6 and 2) a method to monitor network availablility in VC6.
I have actually done a service that will monitor the network availablility in VS2005 but due to some situation, I am not allowed to have .Net framework 2.0 on the system that I want to install this service.
I am looking for the equivalent of
using System.Net.NetworkInformation;
NetworkChange.NetworkAvailabilityChanged += OnAvaiabilityChanged;
in VC6 and also maybe an article of how to write a Windows Service in VC6.
Any help will be appreciated.
People live with their choices.
modified on Tuesday, May 20, 2008 1:54 AM
|
|
|
|
|
Replying to my own message... I have found the method of achieving both items that I was looking for.
I just want to close this message in case anyone is also looking for anything like this.
1) For writing a Windows Service in VC6, I have found a great article on CodeProject http://www.codeproject.com/KB/system/serviceskeleton.aspx[^]">
2) For this, it is more tricky. I have found a service called Network Location Awareness and by doing a search on the internet for this, you will find some very useful information or you can have a look at this article http://www.codeproject.com/KB/IP/NLA.aspx[^]">
Hope this information is useful and thanks to anyone that have given a thought to my questions.
Cheers
People live with their choices.
|
|
|
|