Warning: Use of undefined constant ipaddress - assumed 'ipaddress' (this will throw an Error in a future version of PHP) in /home/www/acp/lib/session.php on line 98

Warning: Use of undefined constant useragent - assumed 'useragent' (this will throw an Error in a future version of PHP) in /home/www/acp/lib/session.php on line 98

Warning: Use of undefined constant request_uri - assumed 'request_uri' (this will throw an Error in a future version of PHP) in /home/www/acp/lib/session.php on line 98

Warning: Cannot modify header information - headers already sent by (output started at /home/www/acp/lib/session.php:98) in /home/www/acp/lib/functions.php on line 82

Warning: Cannot modify header information - headers already sent by (output started at /home/www/acp/lib/session.php:98) in /home/www/acp/lib/functions.php on line 82

Warning: Use of undefined constant postid - assumed 'postid' (this will throw an Error in a future version of PHP) in /home/www/print.php on line 27

Warning: Use of undefined constant postid - assumed 'postid' (this will throw an Error in a future version of PHP) in /home/www/print.php on line 27

Warning: Use of undefined constant postid - assumed 'postid' (this will throw an Error in a future version of PHP) in /home/www/print.php on line 27
Forum www.Kopierschutzsysteme.de - Hier findet Ihr Informationen rund um das Thema Kopierschutz - Druckvorschau: Assemblercode ausführen unter VB - Seite 1

Forum www.Kopierschutzsysteme.de - Hier findet Ihr Informationen rund um das Thema Kopierschutz (http://www.Kopierschutzsysteme.de/index.php)
- Programmierung (http://www.Kopierschutzsysteme.de/board.php?boardid=12)
-- Visual Basic (http://www.Kopierschutzsysteme.de/board.php?boardid=21)
--- Assemblercode ausführen unter VB (http://www.Kopierschutzsysteme.de/threadid.php?threadid=109)


Geschrieben von rob am 29.06.2008 um 16:29:

Assemblercode ausführen unter VB

Hallo,

beschäftige mich gerade mit Visual Basic und möchte einige programmierte Assemblerroutinen unter VB ausführen lassen. Hat jemand eine Idee wie man das machen kann? In Visual C++ gibt es hierzu ja die __asm Anweisung.

Gruß
Rob


Geschrieben von Michael Bauer am 29.06.2008 um 16:50:

Hallo Rob,

leider gibt es in VB keine direkte Möglichkeit wie z.B. in C.

Möglich wäre aber folgendes, Du lagerst Deinen Assemblercode in eine DLL aus und rufst die DLL aus VB heraus auf. Eine andere Möglichkeit wäre den Assemblercode in ein Array zu schreiben und mittels der Funktion CallWindowProc() aufzurufen. Unter http://www.activevb.de/tutorials/tut_asm/asm.html findest Du ein Tutorial das die CallWindowProc Methode sehr ausführlich beschreibt.

Gruß
Michael


Geschrieben von rob am 30.06.2008 um 18:42:

Danke für den Link.

An die Idee mit einer DLL dachte ich auch schon aber finde die Idee mit der CallWindowProc Methode nicht schlecht. Mal schauen wieviel Aufwand es ist.

Gruß
Rob

Powered by: Burning Board Lite 1.0.2 © 2001-2004 WoltLab GmbH