Pentru detalii vezi <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/unicode_6ort.asp" class="external text" title="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/unicode_6ort.asp" rel="nofollow">
Unicode in the Windows API</a> la linkul <br><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/unicode_6ort.asp">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/unicode_6ort.asp</a><br>
<br>
Dupa cum scrie la FAQ tema 1 puteti folosi CHAR, WCHAR sau TCHAR, totul e sa le folositi corect.<br>
<br>
Catalin<br><div><span class="gmail_quote"><br>
On 11/5/07, <b class="gmail_sendername">Vlad Cananau</b> <<a href="mailto:vladk2k@gmail.com">vladk2k@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"><span class="q">
Eduard-Marius Dragomir wrote:
<blockquote type="cite">
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Functia
GetEnvironmentVariable are unul dintre parametri de tipul LPSTR, care,
dupa<br>
cate am inteles, este un TCHAR. Daca aloc memorie cu malloc folsind
TCHAR sau char<br>
ca tip de baza primesc caractere ciudate cand apelez functia. Daca nu
aloc memorie,<br>
merge doar cand apelez functia mea recursiva ce contine
GetEnvironmentVariable o<br>
singura data si afiseaza ce trebuie. La mai multe apeluri recursive,
crapa....help...<br>
</div>
</div>
<br>
</blockquote></span>
LPSTR este un Long Pointer to String<br>
adica daca vrei sa aloci folosesti
(LPSTR)malloc(<lungime>*sizeof(CHAR))<br>
In mod normal se folosesc LPTSTR si TCHAR, care sunt variante adaptate
de sistemul de operare la LPSTR/CHAR (normal) sau LPWSTR/WCHAR (Unicode)<br>
Eu cel putin asa am facut<br>
</div>
<br>_______________________________________________<br>so mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" 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>