Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. MKuiper

    How to remove duplicate WM_MOUSEMOVE?

    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...
  2. MKuiper

    How to remove duplicate WM_MOUSEMOVE?

    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...
  3. MKuiper

    TraceEventType Icons

    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...
  4. MKuiper

    Are modern drives worse in quality than they used to be?

    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...
  5. MKuiper

    Are modern drives worse in quality than they used to be?

    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...
  6. MKuiper

    Getting the name of a registered message

    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...
  7. MKuiper

    HWD of windows that was clicked on

    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. -...
  8. MKuiper

    Loading an assembly located in the GAC from unmanaged code

    Problem solved, assembly has been made com-visible and is executed using CCW (Com Callable Wrapper) Marcel
  9. MKuiper

    Loading an assembly located in the GAC from unmanaged code

    But if I don't have it in the output folder, it fails to load at all Marcel
  10. MKuiper

    Loading an assembly located in the GAC from unmanaged code

    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
  11. MKuiper

    Loading an assembly located in the GAC from unmanaged code

    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 =...
  12. MKuiper

    Loading an assembly located in the GAC from unmanaged code

    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...
  13. MKuiper

    Loading an assembly located in the GAC from unmanaged code

    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
  14. MKuiper

    Loading an assembly located in the GAC from unmanaged code

    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...
  15. MKuiper

    CPU usage - programmers perspective

    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...
  16. MKuiper

    CPU usage - programmers perspective

    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...
  17. MKuiper

    IsUserAnAdmin?

    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
  18. MKuiper

    Scope of variable defined inside a block in C++

    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...
  19. MKuiper

    Linker Error

    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...
  20. MKuiper

    application location

    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 =...

Part and Inventory Search

Back
Top