|
That's true and in my VC++.NET Bible I actually cover custom drawn controls as opposed to owner drawn controls. However, I figured that he'd find more owner-drawn code and more easly be able to plug that into his project.
|
|
|
|
|
Hai..
How to Access the child Control value. I have a dialog box, Font dialog Box. Which is having some controls with the class name bosa_sdm_Microsoft word.Each control having child control with the name RichEdit20W. When the selection changed in the control, class name Bosa_sdm_Microsoft Word , The value in the child control, RichEdit20W, is also changing.Now i want to acess the child control value.
Thanking you,
E.veera Raghavendra.
e.veera raghavendra
|
|
|
|
|
Try GetWindow() API to retrieve child window
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Please forgive, my English level is badly.
How does a simple TOOLBAR weave to write?
I want to know the meaning of each step.
Thanks for your help very much, thanks!I would always be on-line to wait for your answer.
I come from China, is a plait distance raw recruit.Please forgive, my English level is badly.
|
|
|
|
|
|
Very thankful ThatsAlok!
I come from China, is a plait distance raw recruit.
|
|
|
|
|
|
I have a program that I have access to the code for. This program runs over a period of time and memory slowly goes up. This could be because of a memory leak or memory just bad memory management. Is there a way to let the program run for a while and then try to dump the memory to see how it is being used. What is the best way and quickest way of detecting where the memory is being used but not being freed? I know in programming Lotus Domino from the C API you can put a few parameters in the notes.ini after viewing a memory dump and determine exactly where a memory leak is occurring. Is there a way to do this in a C++ application or even tools that just run along side a program that monitors the leaking program.
Thanks
|
|
|
|
|
If you can run a debug build, you can use the CRT memory dump system to help track down memory leaks. Lookup _CrtMemDumpStatistics or one of the other _Crt memory routines.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
You can always try this[^] to see if your app is leaking memory..
Behind every greak black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
I will give it a try and let you know how it works. Thanks.
|
|
|
|
|
Thank you, I have been doing some reading on samples that people have posted using this and I have found some other articles as well. This looks like what I needed.
|
|
|
|
|
I have worked with a couple samples in trying to figure out the best practices of multithreading applications. Most of these samples use threads that are only ran for short periods of times. What I would like to do is write a program that spawns off 4 threads. These 4 threads stay dormant or suspended until I send them a file to work with. Then they become active and go to work. When they are done, they should report back to the main application thread.
Where should I start looking for information on how to do this? Does anyone know of a good book that has good samples on how to do this? Do you know of an example on here that works this way?
Thanks
|
|
|
|
|
I created a project: HomeWork with a document-view.
This is a static function:
Header:
static DWORD __stdcall Thread(LPVOID lp);
Implementation:
DWORD __stdcall CHomeWorkView::Thread(LPVOID lp)
{
CHomeWorkView* parent = (CHomeWorkView*)lp;
parent->Work();
return 0;
}
A member variable is also there:
HANDLE m_hEvent;
A public member function of the class:
Header:
void Work();
Implementation:
void CHomeWorkView::Work()
{
while (TRUE)
{
if (WaitForSingleObject(m_hEvent,INFINITE) == WAIT_OBJECT_0)
{
MessageBox("Working on the file right now");
}
}
}
OnBtnStart:
DWORD id;
m_hEvent = CreateEvent(NULL,FALSE,FALSE,NULL);
CreateThread(NULL,0,Thread,this,0,&id);
When you want to start the work:
PulseEvent(m_hEvent);
------------------------
This is this's style of working with worker threads, kinda.
Just make it four threads, like Thread1, 2, 3, 4 etc. and four worker funcs like Work1, 2, 3, 4.
If you don't like this's style, then look somewhere else.
this is this.
|
|
|
|
|
This[^] article will be of great help...
Behind every greak black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
This concept is called as Thread Pooling, Here[^]is a good article from MSDN. Have a look.
<bold>- Nilesh
<italics>
"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Thank you all for the good info. I have a lot to read. Just so everyone knows what I would like to build I will say it here. I want to make my own emailing program for SMTP testing. I know there are many out there but I have to send very specific type of emails in the .eml format. I have a very good program that already works exactly like I want but it runs on a single thread. I figured it would be a good challenge to make it multithreading. But if I choose to run 5 threads I want the application to start the 5 threads and then send task to each of the threads rather than all 5 just doing a predetermined task. I want to be able to send a command like send c:\test1.eml or send c:\test2.eml etc. Then the thread should report back when it is done and ready for the next command. This sounds more challengig to pull off and I can learn more by this method if I get it working right.
Thank you.
|
|
|
|
|
Does anyone know the keystrokes to turn on wrap in the VC++ 6 ide?
|
|
|
|
|
|
Tools | Options | Text Editor | C/C++. Then (un)check the "Word wrap" box.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
That works in VS7, OP asked for VC6. AFAIK there is no word wrap option in VC6.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
Ugh, you're right. Note to self: do not post replies before executing bootstrap caffeination.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
hi there,wonderful guys.
i think i have to commend everyone in this judicious forum for doing a nice and pleasing job.
hello,is there any body in this forum who could assist me to use vc++ in writing program on clock which will be functioning exactly the way clock work.
pls i need respond to this question on time for the completion of a project i have at hand now,
you can as well email me for my better understanding.
thanks.
prince_kolly@yahoo.com
|
|
|
|
|
princekolly wrote:
hello,is there any body in this forum who could assist me to use vc++ in writing program on clock
Yes, several.
princekolly wrote:
pls i need respond to this question on time for the completion of a project i have at hand now,
Smells like homework. Please elaborate.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Do you want to create a Digital clock or Analog clock?
For Analog, you need to do some mathematics. HeHe. Now you are stuck!
this is this.
|
|
|
|