|
NM...
It was a stupid error in calculating the center of the mass.
|
|
|
|
|
hi,
what is the need for advapi32.lib??
|
|
|
|
|
mike dano wrote: what is the need for advapi32.lib??
For dynamically linking to advapi32.dll which contains registry related functions, service related operations and many more.
Just use dependency walker to find out what are the functions being exported by advapi32.dll
|
|
|
|
|
Hi,
I have some code that tries to get hold of a mutex using WaitForSingleObject and if it succeeds, it performs a sequence involving a delay using Sleep(). My question is, will the thread still own the mutex while it is sleeping or can other threads get hold of it? I DONT want other threads to be able to grab the mutex during the delay. The code is something like...
{
if(WaitForSingleObject(m_hDcpdMutex, DCPD_TIMEOUT) != WAIT_OBJECT_0)
{
return false;
}
m_pKeithley->ReadChannel(m_nCrackPDChan[i], &pOffVals[i]);
SetCurrent(1); // Turn current on
Sleep(m_nSettleTime); // Allow to settle
m_pKeithley->ReadChannel(m_nCrackPDChan[i], &pOnVals[i]);
SetCurrent(0); // Turn current off
ReleaseMutex(m_hDcpdMutex);
return true;
}
Any help/comments would be much appreciated!
Tony
|
|
|
|
|
softwaremonkey wrote: My question is, will the thread still own the mutex while it is sleeping or can other threads get hold of it? I DONT want other threads to be able to grab the mutex during the delay. The code is something like...
From the docs:
Only one thread can own a mutex at any given time. <code>The owning thread uses the
ReleaseMutex function to release its ownership.</code>
|
|
|
|
|
Hi,
I am trying to use some open source codes which is trying to include the <hash_map> header and it's not found in VC6. May I know if it is possible for me to download the missing header and source somewhere and use it in my project?
I saw a website as below:
http://www.cs.cmu.edu/afs/cs.cmu.edu/user/gchen/www/download/stl/download.html[^]
How can I use it? Thanks.
-- modified at 4:27 Monday 22nd January, 2007
|
|
|
|
|
whatever@whatever.com wrote: which is trying to include the header
Which header ?? We can hardly help if you don't provide at least minimum information about your problem.
whatever@whatever.com wrote: May I know if it is possible for me to download the missing header and source somewhere and use it in my project?
Probably not because if you don't have the header file, you probably don't have the necessary library neither.
|
|
|
|
|
Sorry. its using the hash_map> container. any idea if i can download the library and include it in my project? Thanks.
|
|
|
|
|
hash_map is not part of the STL. Perhaps you can get it from boost, or something ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hai to all..
i'm now started working in the field fo VC++..
Can any plzz tell me how to convert doc files to pdf files...
is there any example codes availble for doing this process...
plzz help me...
senthil
|
|
|
|
|
As far as i remember Office 2007 provides this functionality built in .. export the doc to pdf. You can use the automation object for Winword to achieve this if they export the functionality. I havent worked on it but just to give you direction
|
|
|
|
|
wrote: Can any plzz tell me how to convert doc files to pdf files...
One way is to install Install Adobe Acrobat.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hai David and nutkase,
thanks for ur reply...
i already installed Adobe Acrobat...
What i want to know is....
How do i programatically convert doc files to pdf files....
is there any example codes availble in the net...
Can u plzz give me an idea for doing this process...
thanks...
senthil.
-- modified at 0:00 Tuesday 23rd January, 2007
|
|
|
|
|
I am a novice in Visual C++ programming. I have to create an application which acts as the front end for accessing records in a database.
Should I go in for an SDI application or a dialog based one?
There should also be the facility that new pages/dialogs should open on clicking of command buttons like "save", "Login", etc and every such new page should have database acces for entering and deleting records.
Is this possible using SDI application? What should be the base classes of the subsequent dialog boxes that I create? I tried inserting a new dialog by selecting IDD_FORMVIEW in the drop down list for insering new dialogs and having the base class as Crecordset. But i am not able to open this second page on clicking a command button in the first page. Can someone please give me a step by step procedure on how to accomplish this?
Or should i go in for a dialog-based application? Again, what should the base classes be of subsequent dialogs?
Thanks
|
|
|
|
|
That depends, do you want to use a dialog template ? Do you want doc/view ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
I am really sorry, I am not too familiar with these concepts that you mentioned. Could you please clarify ?
I want the user of the application to be able to enter data/view data/query data through a series of dialogs. On clicking "SAVE" for a particular dialog/form the next appropiriate dialog should be displayed.
How do I go about this?
Thank you
|
|
|
|
|
namratab wrote: Should I go in for an SDI application or a dialog based one?
While you could make either one work, I would opt for an SDI application. See here for some ideas.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Thank you for the suggestion.
But, in the SDI, only the first main form has database access, as in, if I use Edit fields and look to assign variables to each, I automatically get a drop-down list of the table column names in the add-member variable dialog.
Subsequent dialogs do not have this facility. How do I go about that? And what should be the base type of subsequent dialogs? Just CDialog?
Thank you again, Sir
|
|
|
|
|
Dear all,
I need to find broken links in a html file. Which is the best way to find it out?.
is MSHTML useful ?
Kindly help me in this?
Thanks.
|
|
|
|
|
You can pass them to a web browser control and see which ones break, I guess.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Sakthiu wrote: I need to find broken links in a html file. Which is the best way to find it out?.
Find Broken links in a Web Page[^]
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
Hi,
can anybody tell how to find the bandwidth of the network as well as speed of the network in pure vc++ 6.0 programming?
Any links related to this are welcome.
Thanx in Advance
regards
Nitin
|
|
|
|
|
I wanted to display a compressed movie using Visual C++ at 25fps. I have the decompression working properly and display is also fine. But the movie is not smooth and not fast enough to be 25fps. I am using CDC structure to paint the processed pixels. What should be done to display efficiently. Should i go to kernel level calls. If so how can i do it. Or is there any ready-made techniques available in Visual C++ to do it.
Hoping for a reply from graphics experts at the earliest
|
|
|
|
|
DirectX is really the way to go if you want to do animation that smooth. of course, DirectShow will already do it for you, if it's a known codec/format.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Its not any format. Its just RGB pixel values available as an array of 352X288(CIF) size. I would like this display to occur without being much disturbed by the decompression algorithm which is computatinally intensive. can i do something like dispatching a command and getting it done by an AGP or some solution similar to that.
|
|
|
|