|
Hi,
Using synchronization object, I can restrict the number of instances of my application to one. How can I achieve the same, when the system is on network?
|
|
|
|
|
What about broadcasting a custom UDP message over the network? If any of your application is running over somewhere in the network, sent back another reply.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
What exactly do you mean by system is on network ?
- Malli...!
modified on Friday, December 12, 2008 2:38 AM
|
|
|
|
|
Hmmm - is it possible that you want to achieve this so you can ensure there's only one person accessing a resource on the network somewhere? If it's a file, you could try locking the file appropriately...or you could do the job the safe and assurable way, and hide the resource behind a server, so the server is the only thing that can access it, giving you control again.
|
|
|
|
|
Hi Friends,
I have two NT services running on my machine.NTService1 is dependent on NTService2.
When i was trying to debug the code related to NTService2,i tried attach to process. But the process related to NTService2 is always grayed out.
This is happening only on Vista machine.
I tried searching the Microsoft forums,but could not find a solution.
Any help is appreciated.
Thanks in Advance.
Appu..
"Never explain yourself to anyone.
Because the person who likes you does n't need it.
And the person who dislikes you won't believe it."
|
|
|
|
|
Visual Studio needs to run with elevated privileges to attach to processes...
Are you doing that?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Yes..I am doing that.
Appu..
"Never explain yourself to anyone.
Because the person who likes you does n't need it.
And the person who dislikes you won't believe it."
|
|
|
|
|
Hi all,
I m using a ListCtrl of ReportView type.
i have 5 coloumns here.
i want to add checkbox or button in header or in coloumn 4.
please tell me how can i do this.
thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
See here[^]
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
thanks i m already check this article.
this is use number of project in ne application and it is not working properly,
this is use number of class for this.
i have already derived me listctrl from other class.
there is any other easy way to implement this.
please help me.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Did you check this article[^]? Please read section - 2. Adding check box for head ctrl .
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
I want to add check box other than first coloumn.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Hai!
Suppose a user has to enter some specified characters like only 'A', 'D', 'F'. in an edit box of a dialog, so is there any event handler through which i can check what character is being entered by the user, if the user enters a wrong characer other than the above mentioned i will not allow it.
Thanks !
|
|
|
|
|
you can do it in EN_CHANGE handler.
1. If the user has entered a correct char store it in some string,
2. Check for the next character.
3. if it's valid then replace the string stored earlier with the new one.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
i want to pack some files with vc++ application.After that i need to edit & copy that files.how i do that.
|
|
|
|
|
pooja_friends wrote: i want to pack some files with vc++ application
Probably i am too old to understand this new terminology... But I am only 20 + years. Are you talking about creating a installshield project. What do you mean by pack some files?
pooja_friends wrote: After that i need to edit & copy that files
Where? How? Why?
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
My project is USB based application.Now am keeping files in usb drive.when i need i have copy files from usb to user system then using those files using VC++ code.
Instead of that.i need to packing files with vc++ exe.then copy that files to user system then use that file.How i do that?
|
|
|
|
|
Can you add it in the resource?
|
|
|
|
|
|
|
Naveen's answer would help?
|
|
|
|
|
SetWindowText leaves the old text on the screen and draws the new text on top of it. Using Invalidate() function,i solved this problem. But Dialog is blinking each time when we change the text in the Static control.
How can i avoid it? Pls anyone help me...
|
|
|
|
|
use InvalidateRect() to invalidate just the required area. pass the rect of ur static control to this function.
|
|
|
|
|
its not working. Dialog is not blinking. But it writes the new text on top of old one.
|
|
|
|
|
Could it be that you are using the wrong coordinates with InvalidateRect? How did you get the area of the static?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
|
|
|
|