Inca o intrebare: prin <br>1. The directory from which the application loaded.<br>ar trebui sa inteleg si subdirectoarele directorului? <br><br>Ca sa explic mai bine care era problema, eu am nevoie de o librarie care exista pe windows 2003 si windows 2008 in system32, dar pe 2000 o creez eu intr-un director predefinit in aplicatie. <br>De asta vroiam doar sa verific existenta ea, fara sa o incarc.<br><br>Multumes pentru raspunsurile prompte :).<br><br><b><i>Lucian Adrian Grijincu <lucian.grijincu@gmail.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> stiu, LoadLib cauta in mai multe locuri si are niste prioritati bine<br>determinate.<br><br>am luat "(presupun ca e setata in PATH)" ca o premisă.<br><br><br>2008/5/29 Maximilian Machedon <maximilian.machedon@gmail.com>:<br>><br>> Tin sa nu fiu de acord. Nu folosi path-ul pentru ca poti obtine altceva<br>> decat ar incarca
LoadLibrary.<br>><br>> Vezi http://msdn.microsoft.com/en-us/library/ms682586.aspx<br>><br>> 2008/5/29 Lucian Adrian Grijincu <lucian.grijincu@gmail.com>:<br>>><br>>> 2008/5/29 mihaela m <mihaela_im86@yahoo.com>:<br>>> > Functia si incarca libraria.<br>>> tu vrei doar sa vezi daca fisierul ăla există?<br>>> Te poți uita in PATH: parsezi manual șirul și apendezi numele dll-ului<br>>> la fiecare cale de director din PATH.<br>>> verifici daca fisierul exista (exista o func. care iti zice daca un<br>>> fisier exista sau nu, i-am uitat numele).<br>>><br>>> > In plus trebuie sa fie suportata pe orice Windows Server de la 2000 la<br>>> > 2008.<br>>> ><br>>> Client Requires Windows Vista, Windows XP, or Windows 2000 Professional.<br>>> Server Requires Windows Server 2008, Windows Server 2003, or Windows<br>>> 2000 Server.<br>>><br>>><br>>> >
Maximilian Machedon <maximilian.machedon@gmail.com> wrote:<br>>> ><br>>> > LoadLibraryEx()<br>>> > http://msdn.microsoft.com/en-us/library/ms684179.aspx<br>>> ><br>>> > Foloseste flag-ul LOAD_LIBRARY_AS_DATAFILE.<br>>> > 2008/5/29 mihaela m <mihaela_im86@yahoo.com>:<br>>> >><br>>> >> Buna.<br>>> >><br>>> >> Stie cineva cum as putea verifica existenta unui fisier .dll fara sa<br>>> >> incerc sa il deschid sau sa incarc libraria? As prefera o varianta in<br>>> >> care<br>>> >> nu trebuie sa ii dau calea completa catre librarie (presupun ca e<br>>> >> setata in<br>>> >> PATH).<br>>> >><br>>> >><br>>> >> Multumesc,<br>>> >> Mihaela Mihalache<br>>> >><br>>> >> _______________________________________________<br>>> >> so mailing
list<br>>> >> so@cursuri.cs.pub.ro<br>>> >> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so<br>>> >><br>>> ><br>>> > _______________________________________________<br>>> > so mailing list<br>>> > so@cursuri.cs.pub.ro<br>>> > http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so<br>>> ><br>>> ><br>>> > _______________________________________________<br>>> > so mailing list<br>>> > so@cursuri.cs.pub.ro<br>>> > http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so<br>>> ><br>>> ><br>>><br>>><br>>><br>>> --<br>>> Lucian<br>>> _______________________________________________<br>>> so mailing list<br>>> so@cursuri.cs.pub.ro<br>>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so<br>><br>><br>> _______________________________________________<br>> so mailing
list<br>> so@cursuri.cs.pub.ro<br>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so<br>><br>><br><br><br><br>-- <br>Lucian<br>_______________________________________________<br>so mailing list<br>so@cursuri.cs.pub.ro<br>http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so<br></mihaela_im86@yahoo.com></maximilian.machedon@gmail.com></mihaela_im86@yahoo.com></lucian.grijincu@gmail.com></maximilian.machedon@gmail.com></blockquote><br><p>