Jump to content

abrissbirne

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Germany

LabVIEW Information

  • Version
    LabVIEW 2011
  • Since
    2007

Recent Profile Visitors

818 profile views

abrissbirne's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi Tomi! Is it possible to get this example? The link do not work. Regards Andreas
  2. I fixed the problem but it isn't really a fix. It is more a workaround. - Place the Cll library function node on the blockdiagram of the vi that generate the error. - Set the properties by hand. - Replace all call library function nodes like this.
  3. Same problem here. After updating LV to LV2010 (32 Bit) and MS Visual Studio 2010 my dll causes error 13. Anybody fixed that prob? thx
  4. Hi at all, I am trying to write an interface between 3thr party hardware (Cams) an LabVIEW in C++. So I will synchronize C++ thread with LabVIEW by PostLVUserEvents. Because we have more cameras and also SDK's (software developer kit) I will write most modular as I can. So I wrote abstract main class which choose the right SDK. But when I grab some images and will post as event I receive fatal error LabVIEW.lib could not locate "PostLVUserEvent". I worked with this function many times before so I don't understand why happens this error. Hope to get some support. Best regards, Andreas
  5. QUOTE (rpodsim @ Jan 29 2009, 10:54 PM) Does someone fixed that prob? I tried to catch the WM_MOVING message but I cant receive it. I've tried something like that: #include "stdafx.h"#include "extcode.h"</P> <P>HHOOK hWndProc;</P> <P>BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ){switch (ul_reason_for_call){case DLL_PROCESS_ATTACH: hWndProc = NULL; break; case DLL_THREAD_ATTACH:case DLL_THREAD_DETACH:case DLL_PROCESS_DETACH: if(hWndProc != NULL) UnhookWindowsHookEx(hWndProc); break;}return TRUE;}</P> <P>// Prototypesextern "C" __declspec(dllexport) int CatchWindowMessage(LVRefNum *ptargetWnd);LRESULT WINAPI WndProc(int nCode, WPARAM wParam, LPARAM lParam);</P> <P>extern "C" __declspec(dllexport) int CatchWindowMessage(LVRefNum *ptargetWnd){ HWND LVhWnd = (HWND)(*ptargetWnd); DWORD targetThread = GetWindowThreadProcessId(LVhWnd, NULL); hWndProc = SetWindowsHookEx(WH_GETMESSAGE, &WndProc, NULL, targetThread); return 0;}</P> <P>/**************************************************************** WH_GETMESSAGE hook procedure ****************************************************************/ </P> <P>LRESULT WINAPI WndProc(int nCode, WPARAM wParam, LPARAM lParam) {MSG *msg = (MSG*)lParam;</P> <P>if (nCode < 0) // do not process message return CallNextHookEx(hWndProc, nCode, wParam, lParam); switch (nCode) { case HC_ACTION:switch(msg->message){case WM_MOVING:MessageBox(NULL, "Wnd moving", "WM Info", MB_OK);</P> <P> default:break;} return CallNextHookEx(hWndProc, nCode, wParam, lParam); } Unfortunately I can't catch WM_MOWING like I tried to do. Best regards and sorry about my english.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.