|
NewVC++ wrote: How can i create and call multithreading
No you don't create something known as multithreading or neither call it. It's a concept where you instantiate multiple threads, allow them to run, synchronize them and blah blah....
You will find some excellent articles on multithreading on Code Project. Just use the search window
If you are calling the same function on the same thread than it is not multi threading.
You can use a while loop inside the thread function and call the required function as many times as you need.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Can you give me some code example?
|
|
|
|
|
See here[^] and here[^]
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
NewVC++ wrote: Plz help me
Read here and here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi All,
I have 2 tree controls.Now i need to access Drag and Drop between them in Dialog based application.I need some idea or sample code for this.Its very urgent for me.
Plz help me.........
Thanks & Regards,
Anitha
|
|
|
|
|
Hello Anitha,
Check out this tutorial series from catch22 -
OLE Drag and Drop[^].
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
|
Have you read up on DragAcceptFiles() , DragQueryFile() , and WM_DROPFILES ?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hello Sir/Mam,
I am working on Microsoft power point using Microsoft VC++ 2008 . I want to know ,when i create an instance of power point Application then no one can see the application or it should not be visible after activate a presentation.
When i use Setvisible(FALSE) function, there is exception occured.
|
|
|
|
|
Hi,
I am C++ newbie so.... I was trying to derive an Object from CString
Since Derived Classes can access protected members I tried to access
m_pchData
When I got an errors message that m_pchData was undefined I tried to
qualify it by using CString :: m_pchData
When I got the following error message
I dont get I am using CString in afx.H not CStringT in afxstr.h
Error 1 error C2039: 'm_pchData' : is not a member of 'ATL::CStringT<basetype,stringtraits>'
|
|
|
|
|
m_pchData doesn't exist in MFC for VS 2005 or 2008. In these, m_pszData is private, but you have helper functions to access it.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
I understand but why does the compiler reference CStringT
When I used the CString object
|
|
|
|
|
CString is simply a typedef of CStringT. CStringT is derived from CSimpleString. This combination allows various encoding methods to be used with the same code. Thus you have CStringA (using char) and CStringW (using wchar_t) as basic types. In theory you could create even more types by using the templates and adding you own helper classes.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
So ....CStringT is for regular excuse the term string char
as opposed to Unicode
The members of CString are really in AFX.H were Cstring is defined
|
|
|
|
|
No, CStringT is a template class that allows you to instantiate a string class that uses ANSI, UNICODE or whatever encoding scheme you want to try.
CString is a typedef of CStringT. The typedef for CString is NOT defined in afx.h. As far as I can tell, you are confusing VC++ 6.0 and VS 2005/2008.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
You could be right thr AFX.H member where I found CString
Was in my Platfork SDK folder
Not in the VC folder (Part of Visual Studio SubDir)
Thankx
|
|
|
|
|
Do NOT use any MFC from a platform SDK. You shouldn't even be referencing such an outdated SDK in VS 2005/2008 since it will cause other frustrations. (I rarely use the Platform SDK and when I do, I always install it in a Virtual PC, clean out the dross and then copy the directories out and then only use it by specific reference in the a project file.)
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
thankx
I dont know if you do this for a Living but I work as MainFrame
programmer this is a new of thinking for me
thankx again
|
|
|
|
|
Ok Im trying to start this problem off but i have no idea where to start off i was wondering if someone could break it down for me.
A voltage source supplies a load through a resistor. The
voltage source has a rating of 1000 volts and a power rating
of 10000 watts. The resistor is 5 ohms with a power ratings
of 118.975 watts. The resistance of the load may vary
randomly between 200 and 600 ohms. Using 100000 samples
calculate the I have to find the number of times the power rating of the resistor is exceeded,average power delivered by source, maximum power delivered by source,and the minimum power delivered by source
|
|
|
|
|
AFAIK VC++ stands for Visual C++ , not for Voltage Computing++ ...
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]
|
|
|
|
|
brains89 wrote: 1000 volts
Hey dude! your question has nothing to do with programming. Take your question to appropriate forum before someone zaps you with 1000 volts rod.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
I have to do this using C++, so i think i have the appropriate forum
|
|
|
|
|
yes you could do it in C++. There is nothing that will prevent you. But your question does not have any slight hint of programming.
Heck, during my days of Electronics classes, we did it using paper and pencil. How is that for programming
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Wow, paper and pencil...100000 samples...how long did your Electronics course take?
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]
|
|
|
|
|
I'm still working on it. now calculating sample 250 of 100000
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|