[so] Intrebare despre librarii windows
Alexandru Radovici
msg4alex at gmail.com
Thu May 29 14:07:46 EEST 2008
Ma gandesc ca ai putea face in felul urmator: incerci sa incarci biblioteca
cu LoadLibrary, vezi daca a mers (asta inseamna ca ai Windows 2003 sau
2008), iar daca nu o incarci din directorul tau cu un al doilea apel la
LoadLibrary, cu cale exacta.
Alexandru
2008/5/29 mihaela m <mihaela_im86 at yahoo.com>:
> Inca o intrebare: prin
> 1. The directory from which the application loaded.
> ar trebui sa inteleg si subdirectoarele directorului?
>
> 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.
> De asta vroiam doar sa verific existenta ea, fara sa o incarc.
>
> Multumes pentru raspunsurile prompte :).
>
> *Lucian Adrian Grijincu <lucian.grijincu at gmail.com>* wrote:
>
> stiu, LoadLib cauta in mai multe locuri si are niste prioritati bine
> determinate.
>
> am luat "(presupun ca e setata in PATH)" ca o premisă.
>
>
> 2008/5/29 Maximilian Machedon :
> >
> > Tin sa nu fiu de acord. Nu folosi path-ul pentru ca poti obtine altceva
> > decat ar incarca LoadLibrary.
> >
> > Vezi http://msdn.microsoft.com/en-us/library/ms682586.aspx
> >
> > 2008/5/29 Lucian Adrian Grijincu :
> >>
> >> 2008/5/29 mihaela m :
> >> > Functia si incarca libraria.
> >> tu vrei doar sa vezi daca fisierul ăla există?
> >> Te poți uita in PATH: parsezi manual șirul și apendezi numele dll-ului
> >> la fiecare cale de director din PATH.
> >> verifici daca fisierul exista (exista o func. care iti zice daca un
> >> fisier exista sau nu, i-am uitat numele).
> >>
> >> > In plus trebuie sa fie suportata pe orice Windows Server de la 2000 la
> >> > 2008.
> >> >
> >> Client Requires Windows Vista, Windows XP, or Windows 2000 Professional.
> >> Server Requires Windows Server 2008, Windows Server 2003, or Windows
> >> 2000 Server.
> >>
> >>
> >> > Maximilian Machedon wrote:
> >> >
> >> > LoadLibraryEx()
> >> > http://msdn.microsoft.com/en-us/library/ms684179.aspx
> >> >
> >> > Foloseste flag-ul LOAD_LIBRARY_AS_DATAFILE.
> >> > 2008/5/29 mihaela m :
>
> >> >>
> >> >> Buna.
> >> >>
> >> >> Stie cineva cum as putea verifica existenta unui fisier .dll fara sa
> >> >> incerc sa il deschid sau sa incarc libraria? As prefera o varianta in
> >> >> care
> >> >> nu trebuie sa ii dau calea completa catre librarie (presupun ca e
> >> >> setata in
> >> >> PATH).
> >> >>
> >> >>
> >> >> Multumesc,
> >> >> Mihaela Mihalache
> >> >>
> >> >> _______________________________________________
> >> >> so mailing list
> >> >> so at cursuri.cs.pub.ro
> >> >> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
> >> >>
> >> >
> >> > _______________________________________________
> >> > so mailing list
> >> > so at cursuri.cs.pub.ro
> >> > http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
> >> >
> >> >
> >> > _______________________________________________
> >> > so mailing list
> >> > so at cursuri.cs.pub.ro
> >> > http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Lucian
> >> _______________________________________________
> >> so mailing list
> >> so at cursuri.cs.pub.ro
> >> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
> >
> >
> > _______________________________________________
> > so mailing list
> > so at cursuri.cs.pub.ro
> > http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
> >
> >
>
>
>
> --
> Lucian
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
>
>
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
>
--
Alexandru RADOVICI
Universitatea "Politehnica" din Bucuresti
e-mail: alex at ipworkshop.ro
telefon: 0742061223
www.ipworkshop.ro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20080529/7e43644e/attachment.htm
More information about the so
mailing list