Autor Beitrag
shr00m
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 18

WIN 95, XP Home, Vista HP; Ubuntu 7.10; openSUSE 10.3
D3 Prof., D6 P, D2005 P, C++, VB6
BeitragVerfasst: Sa 23.06.07 17:49 
Ich hab mal angefangen ein Kartenspiel zu programmieren, nur bin ich an dem Problem cards.dll gescheitert, wie binde ich diese zunächst erstmal in mein Programm ein, und greife dann auf die Karten zu? Ich habe mich nocht nicht mit DLL's beschäftigt, bisher nur "spaßenshalber" mit Delphi programmiert. Kann man das auch einfach erklären?

Danke im voraus ^^
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Sa 23.06.07 18:51 
Was bitte ist cards.dll und wo hast du sie her? :shock:

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
shr00m Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 18

WIN 95, XP Home, Vista HP; Ubuntu 7.10; openSUSE 10.3
D3 Prof., D6 P, D2005 P, C++, VB6
BeitragVerfasst: Sa 23.06.07 18:54 
die is meiner Meinung nach auf jedem Windoof-rechner im system32 auf dem das Spiel Solitär oder FreeCell geht, kA
JensLaskowski
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 168

Win XP
BDS 2006 Architect
BeitragVerfasst: Sa 23.06.07 18:56 
cards.dll wird von windows verwendet. sie findet einsatz in den kartenspielen von windows. In ihr sind alle karten gespeichert.

Meine Erfahrung mit cards.dll sind, dass sie im System32 Ordner liegt, aber dies kommt auf die Windows Version an. Also musste einfach mal nachschauen.

Wenn du die cards.dll ansehen willst, oder dir die karten rausholen willst nimmt einfach den Resource Hacker.

Mit freundlichen Grüßen
JensLaskowski

_________________
Nichtstun macht nur dann Spaß, wenn man eigentlich viel zu tun hätte.
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Sa 23.06.07 19:02 
Man sollte schon dazu sagen, wo diese Datei ist, wenn man eine Frage zu ihr hat ;)
Dass das ne standard Windows-Datei ist, dachte ich mir fast. Aber einfach zu sagen "cards.dll" ... Da könnt ich auch sagen "Aus irgendeinem Grund lässt sich die Projekt1.dll vom Projekt2 nicht in meine Projekt123.exe einbinden" ;)

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
shr00m Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 18

WIN 95, XP Home, Vista HP; Ubuntu 7.10; openSUSE 10.3
D3 Prof., D6 P, D2005 P, C++, VB6
BeitragVerfasst: Sa 23.06.07 19:06 
ja sorry, ich sagte doch schon dassich da Neuland betrete. Hab gedacht, das solche tollen Programmierer wie ihr die .DLL's im Kopf haben :lol:
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Sa 23.06.07 19:09 
Ein letztes mal Offtopic ;)
Nun, was, wenn ich jetzt eine cards.dll programmiere? ;)

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
shr00m Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 18

WIN 95, XP Home, Vista HP; Ubuntu 7.10; openSUSE 10.3
D3 Prof., D6 P, D2005 P, C++, VB6
BeitragVerfasst: Sa 23.06.07 19:32 
@JensLaskowski: das mit dem Resource Hacker klappt super, Danke.
Aber das Problem ist ja, dass ich auf alle zugreifen möchte, und alle kopieren wird mir zu umständlich :(
Gibts da keine andere Lösung auf die .dll zuzugreifen?
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Sa 23.06.07 19:41 
Ich vermute, dass die Bilder als Resource in der dll sind. Dann kann man vermutlich per Picture.LoadFromResource darauf zugreifen, ich weiß aber nicht, wie man auf die Resourcen einer DLL zugreift. Einfach mal danach suchen ;)

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
_frank_
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 343
Erhaltene Danke: 1

Win XP
Delphi 3 Prof / Turbo Delphi Explorer
BeitragVerfasst: So 24.06.07 05:25 
per LoadLibrary die DLL laden und das zurückgegebene Handle bei LoadFromResource angeben (statt hInstance). Freigeben der Dll nicht vergessen...

Gruß Frank

_________________
EB FE (die wahrscheinlich kürzeste Endlosschleife der Welt :) )
BA 01 00 00 00 52 EB 09 BB 4D 11 86 7C FF D3 EB 0D E8 F2 FF FF FF 63 68 61 72 6D 61 70 00 C3