13.07.2015 Aufrufe

DG8SAQ VECTOR NETWORK ANALYZER VNWA HILFE - SDR-Kits

DG8SAQ VECTOR NETWORK ANALYZER VNWA HILFE - SDR-Kits

DG8SAQ VECTOR NETWORK ANALYZER VNWA HILFE - SDR-Kits

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

MS Visual C++ UserDLL exampleMS Visueller C ++ UserDLL BeispielDer folgende Microsoft Visual C definiert ++-code ein einfaches Beispiel dll mit dem Namen userdll.dll:// Example 'User Processing' DLL for use with <strong>VNWA</strong>.EXE by M0PUB#define WIN32_LEAN_AND_MEAN // Exclude rarely-used definitions from Windows headers// Windows Header Files:#include #include #include #include // DLL entry point - called when DLL is loaded and unloaded. Also when the system starts or terminates a processorthread,// it calls DllMain() for each loaded DLL using the first thread of the process.// *** Warning *** Be careful what you do in this routine. Generally better to perform// initialisation elsewhere.BOOL APIENTRY DllMain( HANDLE hModule,DWORD ul_reason_for_call,LPVOID lpReserved){return TRUE;}HANDLE ho; //console handle// User Function 'Init'// Will be called when this DLL is loaded by <strong>VNWA</strong>.EXE, and is a better place to perform initialisation// than DllMain()// Note: Visual C++ Express 2008 does not automatically prefix 'extern "C" __declspec" functions with an// underscore, so we explicitly add one to the function name for this build environmentextern "C" __declspec(dllexport)void _Init (void){char *string = "UserDLL function Init called.";DWORD d;// release current console if anyFreeConsole();// create new consoleAllocConsole();// get console output handleho = GetStdHandle(STD_OUTPUT_HANDLE);// output stringWriteConsole(ho, string, lstrlen(string),&d, NULL);}// User Function 'Close'// Will be called when UserDLL is being unloaded by <strong>VNWA</strong>.EXE// Note: Visual C++ Express 2008 does not automatically prefix 'extern "C" __declspec" functions with an// underscore, so we explicitly add one to the function name for this build environmentextern "C" __declspec(dllexport)void _Close (void){// close console output handleCloseHandle(ho);- 381 -

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!