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

Antworten
m8nix
Beiträge: 9
Registriert: Samstag 17. Juli 2010, 17:38

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

Beitrag von m8nix » Mittwoch 21. Juli 2010, 21:50

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

m8nix
Beiträge: 9
Registriert: Samstag 17. Juli 2010, 17:38

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

Beitrag von m8nix » Donnerstag 22. Juli 2010, 19:21

... 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

Uncle
Beiträge: 32
Registriert: Donnerstag 12. August 2010, 21:32

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

Beitrag von Uncle » Donnerstag 26. August 2010, 07:49

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?

abacom
Site Admin
Beiträge: 3917
Registriert: Dienstag 23. September 2008, 10:54
Kontaktdaten:

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

Beitrag von abacom » Donnerstag 26. August 2010, 13:03

??? DLL´s can be imported from anywhere you like.
ABACOM support

Uncle
Beiträge: 32
Registriert: Donnerstag 12. August 2010, 21:32

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

Beitrag von Uncle » Donnerstag 26. August 2010, 18:41

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.

abacom
Site Admin
Beiträge: 3917
Registriert: Dienstag 23. September 2008, 10:54
Kontaktdaten:

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

Beitrag von abacom » Montag 30. August 2010, 11:21

Set path in config dialogue correctly?
This is really NOT a problem!
Explain your steps more detailed, please.
ABACOM support

Uncle
Beiträge: 32
Registriert: Donnerstag 12. August 2010, 21:32

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

Beitrag von Uncle » Montag 30. August 2010, 22:22

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.

abacom
Site Admin
Beiträge: 3917
Registriert: Dienstag 23. September 2008, 10:54
Kontaktdaten:

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

Beitrag von abacom » Dienstag 31. August 2010, 09:19

So there is something wrong with your compilation, but that´s not a matter of directories.
ABACOM support

Antworten

Zurück zu „DLL-Programmierung“