Seite 1 von 1

DEV-C++ und Dev_CounterDLL-Beispiel funktioniert nicht.

Verfasst: Mittwoch 21. Juli 2010, 21:50
von m8nix
Hallo,

ich hab mir mal den neuesten DEV-C++ Compiler (V 4.9.9.2) runtergeladen und damit versucht das Programmbeispiel "Dev_CounterDLL" neu zu compilieren. Die Compilierung läuft ohne Fehlermeldung ab und heraus kommt auch die gewünschte Dev_CounterDLL.dll.
Nur leider läßt sich die DLL nicht in PL importieren. Ich bekomme beim Importieren den Hinweis "Keine Funktionen importiert".
Ein Vergleich der orginalen Dev_CounterDLL.dll und der neu compilierten DLL zeigt auch unterschiede.

Kann mir jemand sagen was da bei der Compilierung schief läuft? Sind dort noch bestimmte Compiler/Linker-Optionen einzustellen?

Mein eigentliches Ziel ist ja, die Beispiel-DLL Step by Step leicht zu verändern und so langsam den Aufbau einer PL-DLL erlernen zu können. Das funzt jedoch nur wenn die DLL auch korrekt erstellt wird.

Gruß
M8nix

Re: DEV-C++ und Dev_CounterDLL-Beispiel funktioniert nicht.

Verfasst: Donnerstag 22. Juli 2010, 19:21
von m8nix
... nach einem WebUpdate diverser DEV-C++ Module funktioniert die Compilierung jetzt korrekt und die DLL läßt sich Problemlos importieren. :D
Ich kann aber nicht sagen an welchem Update-Modul es letztendlich lag, das waren zuviele auf einmal. :oops:

Gruß
M8nix

Re: DEV-C++ und Dev_CounterDLL-Beispiel funktioniert nicht.

Verfasst: Donnerstag 26. August 2010, 07:49
von Uncle
I noticed that if .dll (compiled by devC++) is in any directory exept programfiles/profilab/examples/counterdll devC++, it can't be included in project.
Where are You .dll files?

Re: DEV-C++ und Dev_CounterDLL-Beispiel funktioniert nicht.

Verfasst: Donnerstag 26. August 2010, 13:03
von abacom
??? DLL´s can be imported from anywhere you like.

Re: DEV-C++ und Dev_CounterDLL-Beispiel funktioniert nicht.

Verfasst: Donnerstag 26. August 2010, 18:41
von Uncle
I am even more ???????????????
May be it is some key?
If my .dll file is lokated in ///examples/counterdll devC++/ directory, it work fine.
If I copy .dll to any other directory and try to include it, .dll module appears in layout without inputs/outputs.

Re: DEV-C++ und Dev_CounterDLL-Beispiel funktioniert nicht.

Verfasst: Montag 30. August 2010, 11:21
von abacom
Set path in config dialogue correctly?
This is really NOT a problem!
Explain your steps more detailed, please.

Re: DEV-C++ und Dev_CounterDLL-Beispiel funktioniert nicht.

Verfasst: Montag 30. August 2010, 22:22
von Uncle
I make my own .dll file with devC++, and when .dll file is in ...c:/programfiles/ProfilabExpert40/Examples/COUNTERDLL-DevC++ source directory, it appears in layout with all inputs/outputs. If I copy .dll file to any other directory, or try to load it from DevC++ directory, I have no inputs/outputs and have a message like "no inputs outputs imported".

May be the reason is in some DevC++ parameter? For example, .dll from //examples/ new features4.0/strings/DLL/HexToWordDLLDelphisource (HexToWord.dll) can be read from any directory and works.

Of course I can work with all the .dll in the same directory, but it is not convenient.

Re: DEV-C++ und Dev_CounterDLL-Beispiel funktioniert nicht.

Verfasst: Dienstag 31. August 2010, 09:19
von abacom
So there is something wrong with your compilation, but that´s not a matter of directories.