| |

ActiveX-ProgrammierungHilfe zu Callback-Funktionen!! | |  | Autor: Schü | Datum: 29.11.02 10:29 |
| Hallo!
Ich habe ein schwerwiegendes Problem.
Nachdem ich fast den gesamten Code für ein Plugin geschrieben habe, geht es nun an die
Einbindung meiner DLL in die Hauptanwendung (WhereIsIt).
(Das Plugin ermittelt u.a. von diversen Musik-Dateien Tags, Bitraten etc. und diverse Änderungen, aber das nur nebenbei.)
Soweit, so gut aber leider muß ich mich nun mit Callback-Funktionen rumschlagen, wovon ich (fast)
keine Ahnung habe.
Die Kommunikation, die ich brauche, beschränkt sich eigentlich auf 3 Funktionen, die meine DLL
bereitstellen muß und 2 Callback Funktionen und das kriege ich nicht hin!!!!!
Wer kann mir helfen, um die Kommunikation (das Grundgerüst) mit der Anwendung zu erstellen?
meine e-mail: cadexc@aol.com
Schü
Hier die wichtigsten Funktionen zur Kommunikation mit der Hauptanwendung:
VOID ModuleInfo(
LPTCSTR lpszModuleName, // address of buffer to store module name
LPTCSTR lpszAuthor, // address of buffer to store author's name
LPTCSTR lpszVersion // address of buffer to store version string
);
Return Values: None.
INT ImportDesc_SameFileEx(
WORD wPluginID, // ID of description plugin to be used with provided file
LPIMPORTSAMEFILEREC lpImportSameFileInfo // points to the IMPORTSAMEFILEREC structure
);
Return Values:
Function should return 0 if it has completed sucessfully, or a negative value (error code) if retrieving
description or alias name was not successful.
VOID RegisterDescPlugins(
PROC lpRegisterPlugin // pointer to a callback function
);
Parameters
lpRegisterPlugin
Points to address of WhereIsIt-defined function to call when registering a new plugin.
See the RegisterPlugin function description for details.
Return Values: None.
Callback:
INT RegisterPlugin(
WORD wPluginID, // unique plugin's ID inside your description module
BYTE byPluginType, // specifies plugin type
LPTCSTR lpszPluginName, // specifies the name of the plugin, as visible to users
LPTCSTR lpszPluginMask, // address of buffer to store plugin's target file masks
PROC lpConfigProc // address of function used to configure plugin
);
Return Values
If returned value is equal or greater to zero, plugin was successfully registered with WhereIsIt
and return value is plugin's assigned serial number on WhereIsIt's plugin list. This value is
informative only and will not be referenced later, you may safely discard it.
Negative return value is an error code, by the following table:
-1 Invalid plugin type
-2 Plugin with this ID already exists in your module
-3 The name of plugin is invalid
-4 File mask provided for plugin is invalid
-5 Module does not export required description function for this plugin type
Callback
LPTSTR RequireFile(
LPTCSTR lpszFileName // path to file to access
);
Parameters:
lpszPluginMask
Points to the null-terminated string containing a path to file that plugin would like to use.
Path to file should be the same one as provided by WhereIsIt to the ImportDesc_xxx function.
Return Values:
Returns a pointer to null-terminated string, containing full path to the requested file that
plugin can use. This path is not necessary the same as the one provided as parameter to this function.
Die komplette Hilfedatei ist zu finden auf: http://www.whereisit-soft.com/DescAPI21.zip |  |
 | Sie sind nicht angemeldet! Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.
Einloggen | Neu registrieren |
  |
|
Neu! sevEingabe 3.0 
Einfach stark!
Ein einziges Eingabe-Control für alle benötigten Eingabetypen und -formate, inkl. Kalender-, Taschenrechner und Floskelfunktion, mehrspaltige ComboBox mit DB-Anbindung, ImageComboBox u.v.m. Weitere InfosTipp des Monats Oktober 2025 Matthias KozlowskiUmlaute konvertierenErsetzt die Umlaute in einer Zeichenkette durch die entsprechenden Doppelbuchstaben (aus ä wird ae, usw.) TOP Entwickler-Paket 
TOP-Preis!!
Mit der Developer CD erhalten Sie insgesamt 24 Entwickler- komponenten und Windows-DLLs. Die Einzelkomponenten haben einen Gesamtwert von 1866.50 EUR...
Jetzt nur 979,00 EURWeitere Infos
|
|
|
Copyright ©2000-2025 vb@rchiv Dieter Otter Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.
Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel
|
|