Dear Programmers,
I'm experiencing a problem that is a real pain in the ass. As VB doesn't support threading, our project uses a VC++ dll that starts some thread for heavy load processes. This is how we wait for the thread to finish:
...
While WaitForSingleObject(ThreadID,200) = WAIT_TIMEOUT...
Hi,
I am wondering if its possible to implement an interface made with the good old unmanaged C++ in C# and than use that implementation from unmanaged C++? Lets say I have a pure virtual class in the file "Idata.h". I want to implement it in C#, but I want to use the implementation from C++...
Hi,
I made a C++ library with an interface (header-file with pure virtual function) that needs to be implemented in order to get another class from the library to work. The implementation is up to a third party user, but they seem to use the .NET environment. What would be the best way to make...
Hi,
This may be a stupid question, but I'll ask it anyway. Is it possible to merge a bunch of lib-files into one static library that has no dependencies? Let's say I have two libraries lib1.lib and lib2.lib. Lib1 uses lib2 to function correctly. Can I merge lib1 and lib2 into lib3 which has...
Hi,
I created a little app that just shows a modal dialog window with a message for the users to wait while the OS is installing devices. In the OnInitDialog function from the dialog window a thread is started which checks if there are pending install events and closes the dialog window when...
Hi,
Our company uses USB drives to distribute new software updates for our machines. The problem with the USB drives on the XP embedded systems is that they are either detected very slow (I guess the driver installation is taking long...) or even not detected at all. In the first case we want...
Hi,
I'm using DAO to open an excel file as a database (I know, it can be done much better...) with the OpenDatabase method. The problem is that this method sometimes fails with the error message "Workgroup File is missing or file is opened in exclusive mode by other user". I downloaded a...
Hi,
I use a DAO recordset to change some values in an excel worksheet. The problem is every time the update method from the recordset is fired the memory usage increases and stays allocated. Is this a known issue? Here is some pseudo-code to show you where the problem is:
<code>
Dim db as...
Hi,
Our company uses USB memory sticks to let users update their machinesoftware. The problem is that even when we install the drivers for those sticks before the machines are delivered, new sticks (even sometimes when they are the same brand) need a driver update and that can take a while. The...
Hi,
Is there a way to make all variables declared outside a function available for the function without having to write a long list like: global $var1, $var2, ... ?
I need this for an error handling function which has to prematurely end the php script after including a template page which uses...
Dear programmers,
I would like to know if and how I can detect when a file is corrupt (e.g. power down while file was being copied). I thought the function CopyFile() would fail in that case, but that was not the case. I did the following test: I took a very big file and copied it to a specific...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.