Sorry Daniel, I saw a reply but did not see you replied yourself.
Your code might work, I don't know without having examined it in detail.
The code I have posted is how I have solved a similar problem in the past. It does work and may be an alternative if yours does not work. If your code does...
Something like this should work (SINGLE-THREADED ONLY).
The idea is :
- Every WM_MOUSEMOVE stores its parameters in global variables, so every WM_MOUSEMOVE is lost except the last
- The message you post to yourself comes last in the message queue. Every WM_MOUSEMOVE between the first and the...
Most of them (if not all) are resources in <windows-dir>\system32\shell32.dll
This dll is already loaded by most applications by default.
So try GetModuleHandle("shell32") first to get it's HMODULE.
If that fails, call LoadLibrary("shell32") (Don't specify a path) to load it and get it's...
Thank you all for the replies.
I agree with Skip that reasons 1 and 2 are more likely than reasons 3 and 4.
For me reason 2 (buying from the internet) might be the answer: None of the disks I bought from a local shop ever failed within 3 years. Having bought 4 disks from the internet at this...
Just for curiosity, there is no problem:
I have bought and installed many hard drives over the last 25 years. Never had any problems, except with old (>3 years) drives or with the one which fell from my desk.
But in the last few months two new drives (not the same manufacturer, but both SATA...
One and a half year ago, in this thread : thread713-1298257, somebody asked how to get the name of a registered Windows message. Although I knew it should be possible (Spy++ can do it), I didn't know how.
Only by lucky coincidence (searching for something completely different) I found the...
Although i have never done such a thing, i should try doing the following:
- On receiving a WM_LBUTTONDOWN message on your button, call SetCapture to start capturing the mouse
- From this point, all mouse messages are going to your program, even if the mouse pointer moves out of your window.
-...
No, I want the NGEN'ed dll to be loaded and used.
(Sorry, I meant NGEN'ed C:\MyManagedDll\MyManagedDll.dll instead of NGEN'ed C:\MyManaged.dll - there is no C:\MyManagedDll.dll)
Marcel
In the meantime, I have made one step forward.
Current situation:
MyManagedDll.dll is located in a separate directory, let's say C:\MyManagedDll\MyManagedDll.dll and in the GAC.
this is working (it loads MyManagedDll.dll from the GAC)
LPCWSTR MyManagedDll =...
Thank you for answering, Jason.
Unfortunately the link you supply is a question from somebody with maybe a similar issue, but no answer.
If you say "problem with referencing the correct version in the GAC", do you mean there is an error in the string "MyManagedDll, Version=1.0.0.0...
Yeah, if the assembly is not strong named, it is not even possible to put it into the GAC. But I have succeeded putting it into the GAC. So that part should be ok (at least i hope).
Marcel
I have written in C# some code which needs to be called from several unmanaged applications (located in different directories).
I have written in unmanaged C++ a dll which is used by every application to load and execute the C# code. It looks like this:
ICLRRuntimeHost * IRuntime = NULL...
Task Manager can show the number of threads per process. On the "Processes" page, choose "View" --> "Select columns" and check "Number of threads" (I guess it is something like that, on my Dutch system it is: On the "Processen" page, choose "Beeld" --> "Kolommen selecteren ..." and check "Aantal...
When using multiple cores (or multiple cpu's), each thread is being assigned a core (cpu) to run on when the thread is started. Once assigned a core, there is no way to change it. Also, one thread will not run on multiple cores.
But that does not mean that a single-threaded application does not...
You have to tell the compiler not to use C++ name decoration. Unforunately I don't know gcc.
In MS VC++ you should write :
extern "C" BOOL ... etc;
instead of
extern BOOL ... etc;
So give that a try.
Marcel
Declaring int B after the if/else statement would be a local variable, not a global one. It will not cause any problems, because there is no variable B known at that point of declaration. Local variables are allocated on the stack, the compiler does not delete or release them, nor does it have...
Bob,
Is that file you want to link in really called d:\vtk50\lib (without extension?) Maybe the linker adds the .obj extension by itself for every input file without extension. In that case replacing in the dependancy ...\lib with ...\lib. (with an extra period) may solve the problem. Otherwise...
Writing in the directory where the application is installed might go wrong because non-admin users don't have permission to write in the Program Files directory or in a subdirectory of Program Files.
Consider writing in the Application Data directory.
string dirname =...
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.