|
tazo wrote: when someone opens a video file...
In my opinion, my previous respond might offer what you need. If you have enough time please try to read this article[^]. It might give you some idea relate to what you need to do in your application.
|
|
|
|
|
thanx a lot that helps
'preciate the info
|
|
|
|
|
Hi,
I need help in avoiding the window which pops up during the USB detection. I am using Windows XP professional and I actually does not want any window to be popped up during this USB Mass storage device or MP3 Player Detection.
Please help me in this issue.
|
|
|
|
|
|
Hi Kanel,
This could partially solve my problem of avoiding balloon popups at the notification area. But my problem is with the new window popup which shows the content (files and folders) of the Device. Can you please help me in avoiding the new window which pops up.
Thanks in advance.
Sai.
|
|
|
|
|
sai_akkina wrote: But my problem is with the new window popup which shows the content (files and folders) of the Device. Can you please help me in avoiding the new window which pops up.
Insert your flash drive again. Then go to windows explorer and right click on your flash drive and click on Properties from the context menu. When the properties dialog box appear it will display several tab. Try to find the tab AutoPlay . In the tab AutoPlay select option Select an Action to Perform and from the list choose Take No Action . Try to disconnect your device and insert its again, does it display the content of the flash drive or not.
|
|
|
|
|
As well as the suggested AutoPlay fix, you can also register for insertion notifications, and get a message in your app when a memory stick (or other thing looking like a drive) is plugged in or removed; you can then respond with a "don't do anything" reply which will also suppress the explorer window.
Look in MSDN for 'device notification', or there might even be a sample here on CP.
Steve S
Developer for hire
|
|
|
|
|
i found many microsoft OS for server but i not sure which 1 is more suitable. basical my company provide retail solution to some supermarket. Recently we have a domain which is from other company server.
So we thinking to set up our own server , we only have a small amount of stuff here less then around 10 ppl.
Is the i heard there microsoft release a new OS is Small business server 2003, i not sure is that suitable for my situation now.
i prefer a low cost but also strong security.
|
|
|
|
|
campbells wrote: Is the i heard there microsoft release a new OS is Small business server 2003, i not sure is that suitable for my situation now
In my opinion, I also support you use windows server 2003 small business because you have around 10 staff in your office. Please check benifit of windows sbs 2003[^] for more information.
|
|
|
|
|
how bout the Mac OX server? u know anything about it? it seem like using microsoft more easy to let ppl hack in
|
|
|
|
|
campbells wrote: how bout the Mac OX server? u know anything about it?
I never know about Mac OX server because I never use it. If you want to know more, you can check it from here[^].
campbells wrote: it seem like using microsoft more easy to let ppl hack in
Yes, most virus attack Microsoft as you mention above. But in my opinion, the reason that virus attack Microsoft is not based on the security issue. Because windows is popular and most people use it, they is why windows is the point that hacker focus on. I also found that Microsoft has improve its security feature in windows too. If other operating system are populare to use in the client environment like windows, I think they would get attack like windows too.
The most importance thing here is: no matter you choose windows, linux or unix you should have full of knowledge to use and manage those technology in order to avoid from hacker attack. Security server does not mean that you just setup operating system without any configuration or security plan and you will get security from the other hacker.
|
|
|
|
|
HI,
We have a clarification in regards to debugging a device driver in a remote/foreign machine.
We use NULL MODEM CABLE to connect the COM ports of the two machines. We have checked the NULL MODEM CABLE using 'HYPER TERMINAL' application.
We use "WinDbg" to debug the drivers. The procedure we followed:
1. hve modified the 'boot.ini' in the target machine (where driver is installed).
2. In host machine windbg is initiated with windbg -k option.(also the symbol path and source path are set)
3. as the target machine is rebooted , the host machine is not recognising ..also there is not indication that the target machine is ready to communicate with the host.
any suggestion with diagrams/snapshots for the setup will be very helpful.
Thanks and best regards,
Bill Devi
|
|
|
|
|
I want to create a GUI shortcut to launch and executable that is in a nested directory.
Specifically I need this shortcut to NOT need to know it's own directory name, i.e. I cannot supply the full path.
The executable is in:
C:\appdir-YYYYMMDD\debug\app.exe
The shortcut is in directory:
C:\appdir-YYYYMMDD
The YYYYMMDD changes but I would like the shortcut to always run the executable that is nested below it.
If I create a Shortcut and make the "Target"
debug\app.exe
or
.debug\app.exe
or
.\debug\app.exe
Windows complains that the target does not exist.
Is there any way to do this?
Many thanks,
Robert
|
|
|
|
|
No, not without outside help. The shortcut has to have the directory name at least in it's "Start In" box. Without it, there is no telling what the current directory will be when the shortcut is launched, therefore, the shortcut will try to launch the app from a subdirectory of ANY directory that happens to be current at the time.
An alternative would be to launch your application from a VBScript (*.vbs) file instead of a shortcut. Or, have a VBScript figure out what the path should be, then create a new shortcut with the appropriate information and launch that.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks Dave.
I won't bang my head any more.
Robert
|
|
|
|
|
Hello All,
I have been facing this unique problem for a while. The problem is that when ever I run an application which consumes huge amount of memory, the system crashes when I try to open/close Net meeting. Any pointers how to avoid this strange behaviour.
There is no system crash (blue screen) when net meeting is not invoked.
Regards,
Shashank
|
|
|
|
|
After your computer is crash, try to start your computer again in safe mode and log on as administrator to view an event viewer to investigate for the problem.
|
|
|
|
|
In the NetMeeting -> Help -> Readme follow comment exist :
"
Sharing of Microsoft(R) DirectX(R), OpenGL, MS-DOS(R), graphics-intensive games, and .avi files is not supported and might not function properly.
"
|
|
|
|
|
I m using _wrename( ) in my VC code.. when i register file in the file system and rename them using _wrename() after performing this many times, the new files are registered correctly and renamed appropriately but somehow the files registered earlier gets deleted from the file system. now each time the new file is registered an d renamed an old file is deleted.. I m unable to track the reason behind this..
Please help me with an appropriate logic behind this..
Thanks in advance..
|
|
|
|
|
|
somebody who knows how to explain this pseudocode??
typedef int semaphore;
semaphore mutex = 1; /*controls access to 'rc'*/
semaphore db = 1; /*controls access to the database*/
int rc = 0; /*# of processes reading or wanting to */
void reader(void)
{
while(TRUE){
down(&mutex); /*get exclusive access to 'rc'*/
rc = rc + 1; /*one reader more now*/
if (rc == 1) down(&db); /*if this is the first reader...*/
up(&upmutext); /*released exclusive access to 'rc'*/
read_data_base(); /*access the data*/
down(&mutex); /*get exclusive access to 'rc'*/
rc = rc-1; /*one reader fewer now*/
if (rc==0) up(&db); /*if this is the last reader...*/
use_data_read(); /*noncritical region*/
}
}
void writer(void)
{
while(TRUE){
think_up_data(); /*noncritical region*/
down(&db); /*get exclusive access*/
write_data_base(); /*update the data*/
up(&db); /release exclusive access*/
}
}
|
|
|
|
|
|
readers and writers problem is my report for my operating system subject and when i notice that this topic is ain't easy to understand. Since im an aggrser i really do my best to understand until i know now what is a mutex and a semaphore now it seem that im getting to knowing my topic but the solution of the readers and writers problem kills me but not all the solutions only the last one but i did try to understand it but im not sure with my explaination these is the 3 solution: " When a reader arrives and a writer is waiting, the reader is suspended behind the writer instead of being admitted immediately. in this way, a writer has to wait for the readers that were active when it arrived to finish but does not wait for the readers that came along after it".
my explaination is :in this solution is a combination of 1 and 2 solution where in which the semaphore takes charge on his functions because in semaphore you can "set it" and "check it".
for example the readers are accessing the database and the semaphore is set to the last reader. if it is the last reader, the semaphore then will give a signal to the mutex and the mutex then will unblock the writer and when the writers starts writing and one or more reader arrive to access the database unfortunately they cannot access because it is block by the mutex because its the writers turn to write a query and the readers may wait for the writer to finish.
is my explaination correct or wrong if there is something wrong hope somebody will help were did i go wrong in my explanation.
and on last thing my biggest problem here is my pseudocode for that solution that i explain. i understand some parts but some i dont so pls kind hearted programers kindly help me.
this is the pseudocode for the solution that i explained:
typedef int semaphore;
semaphore mutex = 1; /*controls access to 'rc'*/
semaphore db = 1; /*controls access to the database*/
int rc = 0; /*# of processes reading or wanting to */
void reader(void)
{
while(TRUE){
down(&mutex); /*get exclusive access to 'rc'*/
rc = rc + 1; /*one reader more now*/
if (rc == 1) down(&db); /*if this is the first reader...*/
up(&upmutext); /*released exclusive access to 'rc'*/
read_data_base(); /*access the data*/
down(&mutex); /*get exclusive access to 'rc'*/
rc = rc-1; /*one reader fewer now*/
if (rc==0) up(&db); /*if this is the last reader...*/
use_data_read(); /*noncritical region*/
}
}
void writer(void)
{
while(TRUE){
think_up_data(); /*noncritical region*/
down(&db); /*get exclusive access*/
write_data_base(); /*update the data*/
up(&db); /release exclusive access*/
}
}
this explaination comes from the book some of the books explaination is understandable mostly at the top and the middle but in the down part the delimma stars there so pls kind hearted programmers help me in my explaination of the 3rd solution and the pseudocode of the solution. if you have the answer pls dont hesitate to email me in my e-mail add k tnx.
|
|
|
|
|
|