19 Topics
| |
Hello how can i lock a usb drive that the user it will be not able to remove the files that are in also to cant add new ones? I think its very cool for advertising own goals :) - Thanks :) | |
Hello, I've just begun working with assembly so I'm sorry if this question is simplistic. I would like to implement an atomic add (for incrementing an array pointer). My code looks like this: int * ptr; int step; asm("lock add %1, %2;\n" :"=m"(ptr) :"m"(ptr),"r"(step) : ); But I'm getting an … | |
Hello, I wonder how we can use lock objects between 2 different applications. In the example below we can use lock objects to let only one thread to execute the code inside the lock object at a time. This works fine within one application. Now I wonder how we can … | |
I'm trying to make this as easy as possible but I'm stuck. Inside the for loop, if the input entered was not a number or wasn't valid, it moves on, but I don't want it to. I want it to repeat that interation. Is there a possible way to do … | |
My key board doesnt show if cap lock is on or off. Is there any way to add it on Task Bar I can do it on word but not other applications Pl Help how to do it Regards | |
I am using FactoryLink SCADA HMI software and I need to lock the focus on a screen that automatically opens and needs operator to answer before it will close and allow the user to continue on the background screen. If anyone knows where I can find this answer I would … | |
I'm curious about write locks with MySQL and how they are prioritized with eachother. Specifically, I'm wondering if "low priority write" locks have lower priority than "normal" write locks, or if they are equal. The only documentation I can find states that the low priority locks have lower priority than … | |
The assignment is to implement the Banker's Algorithm using pthreads and mutex locks. We implemented the Banker's Algorithm and it works fine. When we began implementing the pthreads and mutex locks we ran into problems. We know that each process is a thread, and that the mutex lock is acquired … | |
Hi There. I joined here some three years ago when i created my ONE and ONLY Python program that actually functions as intended *YAY*, it's a little ugly and i've decided to return and learn more, improve it and maybe start up some new projects. I'm a little confused as … | |
Hi all! This is a simple piece of code that I wrote about a year ago, in response to a question on Daniweb. I decided to infuse it with some C++11 magic, which led to a pretty sweet code snippet, full of neat little techniques you might want to use, … | |
Hi, I'm using SQL Enterprise Library (Microsoft.Practices.EnterpriseLibrary.Data.Sql) objects and I'm considering using a DbTransaction to execute multiple DbCommand(s) for inserts/updates in one transaction. Let's say these queries take a few minutes to execute, I do not want it to prevent another process from queries the same tables. Considering I do … | |
I've been looking for an app that could find a specific open window on the desktop and 'lock' it so can't be re-sized or moved (most likely by using the title bar value/property). Having had no luck, I was wondering if this can be done in c++? I used to … | |
I'm trying to do the third writer/reader problem with semaphore (as mention on wiki). But it's not working properly. First 16-element array seem to work properly. But after first, it got wrong. Even though I think I'm almost there, I can't find the error at all. My code is as … | |
I am using a DLL file as my license file for a VB.NET project and was wondering if there was a way to make it locked so notepad can't open it and edit the data stored in there. Thanks in advanced! | |
hi, i am writing a program for my dad. I want it to keep the mouse in x=500 y=500 while waiting for input. So its asking for the password and if you try to move the mouse, it'll put the mouse back in x=500 and y=500 and have keep looping … | |
I have a multi-threaded application using over 500 threads and I want to log certain things that go on inside these threads to a single log text file, however not all the threads can access the file at the same time so how can I do this? The only way … | |
Hi there, Is it possible to lock down permissions to files on a network file server so that people who amend them can only save them back to their original network location? By this I mean can saving them to their local C:\ or sending them on via email after … | |
Hello All, I have a question related to synchronization in java; there's more like a confirmation. Let's start with the simplified version of my class: [CODE]class MyClass { private List<MyObject> myList = new ArrayList(); public void addEntry(MyObject obj) { myList.add(obj); } public void removeEntry(MyObject obj) { myList.remove(obj); } public double … | |
Consider those two function. When I load file, everything is fine, but then, when I want to save changes, the file is still being locked. Where is the catch? [CODE=C#] public static string Load(string loadPath = null) { string output; string file = loadPath == null ? _defaultFile : (_defaultFile … |
The End.