|
What do you mean by "delete" the thread? The parent thread should ask the child thread to end, and then it should end. Using CEvent is a good way to do this.
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|
|
Post an example of how you terminate the child thread.
Kuphryn
|
|
|
|
|
I was using an user interface thread to do the trick. I changed over to a worker thread and now everything seems to be better. I think the problem had to do with the self deleting nature of user threads. Now I explicitly control who deletes and when.
Sincerly,
Clint
|
|
|
|
|
How do I implement the CompareItem for a combobox inside a dialog control. So I can create my own sort routine.
Thanks
|
|
|
|
|
override OnCompareItem for the combo, then use the COMPAREITEMSTRUCTs that you will receive in that function to determine which two items are being compared. return -1,0,1 as appropriate.
Image tools: ThumbNailer, Bobber, TIFFAssembler
|
|
|
|
|
I used dependency walker to check the dependencies of my static mfc application, and got a list of core and other dependencies. I'm leary about including too many of these in my installation utility, so I was wondering if there is a list of dll's by OS (Win2000, Win95...) that are guaranteed to be present?
Any other comments/cautions regarding distributing dll's with an application would be welcome!
Thanks.
|
|
|
|
|
It's safest to include them anyway because the DLLs you require might not be the same version as in the OS. The installer will do a version check and only if the version is newer will it overwirte it.
Regards,
Nish
p.s. One brute force technique I've used is to run my application on a fresh install of each OS
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
Yup, check out Microsoft's DLL Help Database". (If the link doesn't work, do a search for "DLL Help Database" on http://msdn.microsoft.com ) You can enter in a DLL name, and it will tell you every product and OS that it is included in.
You should also use Windows Installer and merge modules to deploy MFC runtimes, instead of just doing a file copy.
Hope this helps!
Jerry Dennany
|
|
|
|
|
Great! I think that's what I'm looking for.
The link worked, I'll take a look at it now.
Thanks
|
|
|
|
|
Oh... I am using InstallShield, and only replacing shared files if the files I'm replacing are older than the one's I'm installing.
|
|
|
|
|
I don't know where to find a list, but the ones that you typically have to ship usually start with m, like msvcrt.dll and mfc42.dll. My recommendation is to install these in the same folder as the application. This will ensure that your app runs with the proper DLLs and that you don't possibly break other apps by overwriting DLLs in the system32 folder.
Regards,
Alvaro
That which does not kill me postpones the inevitable. -- despair.com
|
|
|
|
|
I've seen other applications install the mfc dll's in their folders, but that seems risky to me. Here's my thinking... You may have a down rev version of a particular dll. If you install it in your own directory, and your app happens to be the first one to use it, the OS will load it up. The next app that needs the dll (maybe the more current one that's in the system folder) will get the down rev one, and poof... Could be a problem.
Does that seem reasonable?
If so, then you should install the dll in the windows "system" directory, and only install if your dll is a more recent version.
|
|
|
|
|
I'm in the process of re-working some old batch files which automates our build process, and nowhere in MSDN could I found the errorlevels for MSDEV.EXE (VC 6.0), does anybody know where I can find these?
Evaulated VisualBuild, looks great.. Probably our next purchase
Thx.
Mike.
|
|
|
|
|
|
Thanks for the reply, unfortunately, the link you sent didn't work
I'm looking for the return codes for MSDEV.EXE when calling from a batchfile.
ie: in a batch file:
msdev project name, <yadda yadda="">
if ERRORLEVEL == 1 fail, goto exit
etc
etc
If you stumble across a list, could you send it my way?
Thanks!
Mike.
|
|
|
|
|
I need to be able to take a canned graphic of a form and be able to dynamically insert text items such as name and address onto the graphic and then send the information to a printer. An example of this would be like a kid's game where the kid enters their name at the beginning of the game and then at certain points during the game, they can print out a certificate or card that has that name on it. Can anybody steer me in the right direction? I'm developing under MSVC 6.0.
Thanks in advance.
Stub
|
|
|
|
|
Use a static text control over top of the image and change the value dynamically as needed. You will need to overide OnCtlColor(..) and draw the background of the static control transparent.
Art
|
|
|
|
|
Many thanks for the reply Art. Sounds like a workable solution that shouldn't be too cumbersome to implement.
|
|
|
|
|
How can I establish an internet connection? (i'm connected with ADSL modem)
do i use the Wininet.lib for that?
|
|
|
|
|
Yes. Look up InternetConnect in MSDN and all applicable functions. It is quite easy to do.
|
|
|
|
|
Is anyone here who knows how to minimize an aplication not into the task bar but into the icon which is on the right hand side (near the clock). I am sorry but I don't know the english name for it.
Please be so kind, I need your help.
|
|
|
|
|
|
I have an application with a view and a tabctrl on it. Several dll's draw there control on it. Somehow the commands for the controls (BN_CLICKED etc) are not received by the controls, if I do not overwrite the OnCommand of the tabpage. I tried it as following:
BOOL CTabPage::OnCommand(WPARAM wParam, LPARAM lParam)
{
BOOL handled = FALSE;
handled = ::SendMessage((HWND)lParam, WM_COMMAND, wParam, lParam);
if (!handled)
{
handled = CDialog::OnCommand(wParam, lParam);
}
return handled;
}
Using this code my controls do receive their messages, but my tabpage messages (WM_KEYDOWN) are not processed anymore. There has to be a better sollution, anyone got an idea?
|
|
|
|
|
I'm changing some enviornmental variables and creating some new ones by putting the appropriate entries in the registry.
However the system doesn't seem to recognise the changes until I logout and back in again... is there anyway around this "Cacheing" programatically?
Regards,
Brian Dela
Run naked in the snow until you're sweating like a stuck pig and can't seem to catch your breath. When the flu becomes pneumonia, they can cure that with a shot. - Roger Wright
|
|
|
|
|
OK. I think I figured it out.
If I send a WM_SETTINGSCHANGE message system-wide it should work ... I'll try that but if anybody has any other things that will work please don't hesitate!!!
Regards,
Brian Dela
Run naked in the snow until you're sweating like a stuck pig and can't seem to catch your breath. When the flu becomes pneumonia, they can cure that with a shot. - Roger Wright
|
|
|
|