Information générale
Catégorie:
Codage, syntaxe et commandes
Exporting your functions from code (not using a def file) also allows other languages to access the dll functions.
In fact, there's no differences from the outside. The difference is that if you do it in code, you can see "in place" if a function is exported or not, while a def file has the advantage of grouping all functions in a single place. Persoanlly, I prefer exporting them from code because I can use other tools to see at a glance what functions are exported. The def file also has the disadvantage of having one more place to modify when changing functions and this can be a one more source of problems during development.
Vlad
>Another way to do this is to create an *.def file which specifies the exportable functions. This method also alows the dll to be used by "alian" platforms such as VB and VFP. I'm not sure about the internal #ifdef.
>
>Regards,
>
>Jason
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement