Click here to Skip to main content
16,011,428 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SysAllocString doesnt compile Pin
jmkhael19-Sep-02 5:29
jmkhael19-Sep-02 5:29 
GeneralRe: SysAllocString doesnt compile Pin
ns19-Sep-02 6:09
ns19-Sep-02 6:09 
GeneralRe: SysAllocString doesnt compile Pin
Steve S19-Sep-02 6:15
Steve S19-Sep-02 6:15 
GeneralRe: SysAllocString doesnt compile Pin
ns19-Sep-02 8:07
ns19-Sep-02 8:07 
GeneralRe: SysAllocString doesnt compile Pin
Anonymous19-Sep-02 8:19
Anonymous19-Sep-02 8:19 
GeneralRe: SysAllocString doesnt compile Pin
ns19-Sep-02 8:30
ns19-Sep-02 8:30 
GeneralRe: SysAllocString doesnt compile Pin
Jason Henderson19-Sep-02 9:55
Jason Henderson19-Sep-02 9:55 
GeneralRe: SysAllocString doesnt compile Pin
ns19-Sep-02 10:07
ns19-Sep-02 10:07 
MSDN says SysFreeString frees stuff made from SysAllocString. I used AllocSysString().OK. I found this in MSDN just now for AllocSysString :
In the rare case the client receiving the returned string does not free memory in the string, you might have to free it yourself by using ::SysFreeString.


MSDN contradicts itself (unless I misunderstand):

 SysFreeString Parameters
bstr 
Unicode string that was allocated previously, or NULL. <code>If NULL, the function simply returns</code>. 
Return Values
None.

Remarks
Passing into this function any invalid and, under some circumstances, <code>NULL pointers will result in unexpected termination of the application.</code>


I wonder which statement is true....suggestions?
Smile | :)




Thanks,
ns
GeneralRe: SysAllocString doesnt compile Pin
Jason Henderson19-Sep-02 10:13
Jason Henderson19-Sep-02 10:13 
GeneralRe: SysAllocString doesnt compile Pin
Steve S19-Sep-02 21:44
Steve S19-Sep-02 21:44 
Generalstring formatting Pin
jamiehale19-Sep-02 4:57
jamiehale19-Sep-02 4:57 
GeneralRe: string formatting Pin
Chris Losinger19-Sep-02 5:14
professionalChris Losinger19-Sep-02 5:14 
GeneralRe: string formatting Pin
jamiehale19-Sep-02 5:37
jamiehale19-Sep-02 5:37 
GeneralRe: string formatting Pin
Chris Losinger19-Sep-02 5:42
professionalChris Losinger19-Sep-02 5:42 
GeneralRe: string formatting Pin
jamiehale19-Sep-02 5:50
jamiehale19-Sep-02 5:50 
GeneralRe: string formatting Pin
jhwurmbach19-Sep-02 5:25
jhwurmbach19-Sep-02 5:25 
GeneralRe: string formatting Pin
jamiehale19-Sep-02 5:44
jamiehale19-Sep-02 5:44 
GeneralRe: string formatting Pin
Todd Smith19-Sep-02 7:00
Todd Smith19-Sep-02 7:00 
GeneralRe: string formatting Pin
jamiehale19-Sep-02 7:46
jamiehale19-Sep-02 7:46 
GeneralRe: string formatting Pin
Michael Dunn19-Sep-02 7:59
sitebuilderMichael Dunn19-Sep-02 7:59 
GeneralDoModal() and CDialog caption Pin
ns19-Sep-02 4:36
ns19-Sep-02 4:36 
GeneralRe: DoModal() and CDialog caption Pin
TyMatthews19-Sep-02 4:46
TyMatthews19-Sep-02 4:46 
GeneralThanks! Pin
ns19-Sep-02 4:51
ns19-Sep-02 4:51 
GeneralRe: DoModal() and CDialog caption Pin
ns19-Sep-02 5:08
ns19-Sep-02 5:08 
GeneralRe: DoModal() and CDialog caption Pin
TyMatthews19-Sep-02 5:27
TyMatthews19-Sep-02 5:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.