Si de ce e rau daca o incarci? Folosind acel flag nu se executa cod din ea.<br><br>
<div class="gmail_quote">2008/5/29 mihaela m <<a href="mailto:mihaela_im86@yahoo.com">mihaela_im86@yahoo.com</a>>:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">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 :).
<div class="Ih2E3d"><br><br><b><i>Lucian Adrian Grijincu <<a href="mailto:lucian.grijincu@gmail.com" target="_blank">lucian.grijincu@gmail.com</a>></i></b> wrote:</div>
<blockquote style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">
<div class="Ih2E3d">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></div>2008/5/29 Maximilian Machedon :
<div class="Ih2E3d"><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 <a href="http://msdn.microsoft.com/en-us/library/ms682586.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/ms682586.aspx</a><br>
><br></div>> 2008/5/29 Lucian Adrian Grijincu :<br>>><br>>> 2008/5/29 mihaela m :
<div class="Ih2E3d"><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></div>
<div class="Ih2E3d">>> > Maximilian Machedon wrote:<br>>> ><br>>> > LoadLibraryEx()<br>>> > <a href="http://msdn.microsoft.com/en-us/library/ms684179.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/ms684179.aspx</a><br>
>> ><br>>> > Foloseste flag-ul LOAD_LIBRARY_AS_DATAFILE.<br></div>>> > 2008/5/29 mihaela m :
<div>
<div></div>
<div class="Wj3C7c"><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>>> >> <a href="mailto:so@cursuri.cs.pub.ro" target="_blank">so@cursuri.cs.pub.ro</a><br>
>> >> <a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br>>> >><br>>> ><br>>> > _______________________________________________<br>
>> > so mailing list<br>>> > <a href="mailto:so@cursuri.cs.pub.ro" target="_blank">so@cursuri.cs.pub.ro</a><br>>> > <a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br>
>> ><br>>> ><br>>> > _______________________________________________<br>>> > so mailing list<br>>> > <a href="mailto:so@cursuri.cs.pub.ro" target="_blank">so@cursuri.cs.pub.ro</a><br>
>> > <a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br>>> ><br>>> ><br>>><br>>><br>>><br>
>> --<br>>> Lucian<br>>> _______________________________________________<br>>> so mailing list<br>>> <a href="mailto:so@cursuri.cs.pub.ro" target="_blank">so@cursuri.cs.pub.ro</a><br>>> <a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br>
><br>><br>> _______________________________________________<br>> so mailing list<br>> <a href="mailto:so@cursuri.cs.pub.ro" target="_blank">so@cursuri.cs.pub.ro</a><br>> <a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br>
><br>><br><br><br><br>-- <br>Lucian<br>_______________________________________________<br>so mailing list<br><a href="mailto:so@cursuri.cs.pub.ro" target="_blank">so@cursuri.cs.pub.ro</a><br><a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br>
</div></div></blockquote><br>
<p></p><br>_______________________________________________<br>so mailing list<br><a href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a><br><a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br>
<br></blockquote></div><br>