Mám nasledující problém: Vytvořil a zkompiloval jsem knihovnu *.dll. A nyni potřebuju přístup k funkcím a procedůrám této knihovny z programu. Nevíte někdo jak na to?
Fórum › Visual Basic
Propojení mezi programem a knihovnou *.dll

To all: Tak už se mi povedlo propojit *.exe a project1.dll ale *.exe nemůže dannou funkci v té knihovně najít. Přitom vím že tam určitě je! Zde jsou zdrojaky:
project1.dll:
Public Function RandomNumber(Min As Long, Max As Long) As Long
RandomNumber = Int((Max + 1 - Min) * Rnd) + Min
End Function
project.exe:
Private Declare Function RandomNumber Lib "Project1.dll" (Min As Long, Max As Long) As Long
Private Sub Form_Click()
Print RandomNumber(5, 15)
End Sub
Když spustím *.exe a kliknu na formulář tak to vyhodí tuto hlášku:
"Can't find DLL entry point RandomNumber in project1.dll" = Nemùže najít DLL vstup bodový RandomNumber v project1.dll
Kdybyste někdo věděl co stím...byl bych vám moc zavázan kdybyste sem napsali. Díky.

Přidej příspěvek
Ano, opravdu chci reagovat → zobrazí formulář pro přidání příspěvku
×Vložení zdrojáku
×Vložení obrázku
×Vložení videa
































Uživatelé prohlížející si toto vlákno
Podobná vlákna
Rozdíl mezi podprogramem a knihovnou — založil Gooo
Vazby mezi tabulkami s programem MS SQL — založil SQL newbie
Rozdíl mezi 32 a 64 bit dll — založil hlucheucho
Nenašly se knihovny tbb.dll a tbb_debug.dll — založil Kevil
Moderátoři diskuze