cards.dll
От: -SS-  
Дата: 16.05.05 09:58
Оценка:
Вот вычитал, что можно загрузив сабжевую библиотеку и используя её функции
работать с игральными картами. Нашёл пример для VB
[DllImport("cards.dll")]
private static extern bool cdtInit( ref int width, ref int height );
[DllImport("cards.dll")]
private static extern bool cdtDraw( IntPtr hdc, int x, int y,
int card, int mode, long color );
IntPtr hdc — Pass in the device context from Graphics.GetHdc().
int x — upper left corner of the card.
int y — upper left corner of the card.
int card — card to draw, (this is dependant upon the mode selected).
int mode — mode
mdFaceUp — draw face up card
mdFaceDown — draw face down card
mdHilite — draw face up card inverted
mdGhost — draw a ghost card, the card parameter is ignored
mdRemove — draw rectangle of background color at x, y
mdDeckX — draw an X
mdDeckO — draw an O
long color — table background color (only required for mdGhost and mdRemove)
or when drawing the cross hatch card back.
скажите как это будет выглядеть на VC++6, с этой строкой вроде понятно
[DllImport("cards.dll")]> HMODULE hLib; hLib = LoadLibrary("cards.dll");
а вот как быть с остальными?
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.