|
Hi,
Sorry I can't help with the code, but are you convinced you have the right answer to your problem and users will update it as you want? You might end up with all your computers displaying "busy" or, or if requiring a time entered, you might just get most people entering some late time to make sure nobody user 'their' computer whilst they go for a drink!
|
|
|
|
|
I can see you've been there also . My real issue is with remote users that are using a machine but it appears that someone has just walked away for a while and other users get upset and log them out. The ability to stick a virtual postit note on the screen will help with this.
|
|
|
|
|
Hi everyone,
I would like to install a Vista Gadget programmatically from a win32 application. It appears at first sight that adding a gadget just consists in deploying a couple of files and adding a bunch of entry in the settings.ini
file, but there are two issues:
1/ When I update the settings.ini file to create the section for the new gadget the sidebar is not updated and I have to restart the process to get the new gadget displayed. Do you know if there is some kind of messages I can send to the sidebar to refresh its content?
2/ There is a Hashes section in the settings.ini file that lists every gadget available. Each entry contains the complete path to the gadget folder plus a hash value. Does anyone know how this value is computed?
Thank you for your help,
Yannick
|
|
|
|
|
Hi Frnds,
I have developed one application in visual studio 6.0. it will communicate with one PCB via RS485. The problem am facing in the application, sometimes if i close the application, the exe is running at the back side, am closing it suing task manager. i have closed the handles of the RS485 communication at the deconstructor of my class.
Request anyone help.
Thanks ,
Balaji s
|
|
|
|
|
Hi,
I've seen similar problems. The first thing I would recomend is to write Open and Close methods. Make sure you check the return values for any errors and display a message box with any error so you can se exactly what the problem is. Then add calls to these from, say, a menu. E.g. a Comms menu with Open and Close options. This will allow you to test if the port truly gets closed when you call Close. Can you then perform Open, Close, Open, Close with no problems?
This separates closing the port from the closing of the application.
Once the Close is proven, then add it to the OnClose window event rather than the destructor.
I'm afraid I don't understand what you mean about closing the application but the exe still running. Do you have a client and server and you close the client in task manager but the server (exe) is still running?
|
|
|
|
|
Hi,
Thanks for your reply.
am using the write , read and close functions.after closing my application, if i try to open once again, it says that still exe is running. so i used to task manager to close th exe.
thats the problem happening here.
regards,
balaji sk
|
|
|
|
|
Well, I'm not sure how much significant is my reply. Usage of TerminateThread()[^] can end up in application handups. If you're calling them just remove it.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
As I've noticed, Windows Explorer uses the icon with the lowest ID within an EXE file to represent it to the user. Is there any way to change this Icon for EXE files dynamically? (I mean replacing it with a custom one)
Thank you masters!
|
|
|
|
|
This pretty girl[^] knows how to replace resources in EXE and DLL files. She probably also knows how to use the codeproject search engine. How does that make you feel?
Best Wishes,
-David Delaune
|
|
|
|
|
Randor wrote: This pretty girl[^]
At first i didn't understand it. Once i opened the link, i got it.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Who's she any way? Is she single or married?
Thank you masters!
|
|
|
|
|
|
As a practical suggestion, if you have some type of malware installed on your system, it can be very difficult (even for an expert) to determine what it is and where it lives (and, of course, how to terminate it).
I would start out by downloading: Process Explorer, by Mark Russinovich[^]. It's a FREE utility, written by one of the authors of "Windows Internals". It provides a wealth of information.
To answer your question, "How can I run my code in this manner?", you should check the Forum at EvilDoers.com (OK, just kidding),...but, there is no simple answer. It depends on many factors. I could be as simple as writing an ActiveX component or a Shell Extension (tutorials here at CodeProject), or, it could be as complex as a Windows rootkit. I suspect that nobody here will help you with the rootkit. But, you can GOOGLE, say rootkit[^], and you will find an enormous amount of information on the subject.
|
|
|
|
|
Thank you for these information. I learned new things.
Thank you masters!
|
|
|
|
|
Check this[^] out, maybe it helps.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
|
|
|
|
|
Hi everyone
I'm having some trouble solving this problem, if you guys could help I'd appreciate.
A guy has N stores. He just received a shipment of K boxes and wants to distribute the boxes in order to maximize profit. The input is a NxK matrix, where matrix[N][K] tells you the profit he would get, sending K boxes to store N. One wants to know the maximum profit he can get (not necessarily the way he gets it), and how may ways can he get it (number of combinations that totalize the maximum profit).
Any suggestions?
Thx
|
|
|
|
|
Hmmm, seems like homework, you'll probably get more help if you post what you have tried and ask specific questions about what you don't understand.
|
|
|
|
|
does any one have any methods to directly load transparent PNG (portable network graphics) images in mfc?
|
|
|
|
|
Use CImage Class[^]
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
How to use true color icons (of 128x128 size) in mfc (VS2005)
any one have any nice trick bout this?
|
|
|
|
|
Can't you simply import using Resource View->Add Resource->Import ?
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
nice try!
that doesnt work, i'm talking about 128x128 icons of 150kb the icon!!! the resource compiler says that i should passit throu SDK Paint! but i dont want to! cuz it decreases the color so i get ugly icons!
|
|
|
|
|
Hi.
I have 3D CAD data. And I would like to create an icon and associate it to my 3D CAD data, so that I can see file view with it's 3D view thumbnail.
Is there any way I can attach/associate icon to existing file?
Thank you for your attention.
|
|
|
|
|
I think you have to implement IExtractImage[^] interface to display the thumbnail of your own file. Well, check this article[^] about how to do it.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Thank you Jijo.
I will look into the article and see if I can do what I want.
Best Regards.
|
|
|
|