Click here to Skip to main content
15,888,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Interfacing Pin
Bob Stanneveld21-Sep-05 20:14
Bob Stanneveld21-Sep-05 20:14 
QuestionWindows Procedure Pin
benjnp21-Sep-05 4:36
benjnp21-Sep-05 4:36 
AnswerRe: Windows Procedure Pin
Blake Miller21-Sep-05 5:05
Blake Miller21-Sep-05 5:05 
AnswerRe: Windows Procedure Pin
Bob Stanneveld21-Sep-05 5:34
Bob Stanneveld21-Sep-05 5:34 
QuestionWhy does a non-blocking socket get blocked when call connect? Pin
alvaro21-Sep-05 4:32
alvaro21-Sep-05 4:32 
QuestionLength of VARIANT V_BSTR Pin
Kreatief21-Sep-05 4:23
Kreatief21-Sep-05 4:23 
AnswerRe: Length of VARIANT V_BSTR Pin
Steen Krogsgaard21-Sep-05 23:51
Steen Krogsgaard21-Sep-05 23:51 
GeneralRe: Length of VARIANT V_BSTR Pin
Kreatief22-Sep-05 0:32
Kreatief22-Sep-05 0:32 
Hmmm thats strange...

If I use a direct string:

V_BSTR(&v) = SysAllocString(OLESTR("blabla"));

then, it works. Even if the "blabla" string is more than 500 chars long!

If I use it the way I mentioned before, then it behaves strange:

The first time it cuts some bytes off, the second time and so on, it works!
If I put the same command twice, then it never works...

It seems as if the memory management is totally sh*t!


DKT
GeneralRe: Length of VARIANT V_BSTR Pin
Steen Krogsgaard22-Sep-05 0:49
Steen Krogsgaard22-Sep-05 0:49 
GeneralRe: Length of VARIANT V_BSTR Pin
Kreatief22-Sep-05 1:10
Kreatief22-Sep-05 1:10 
GeneralRe: Length of VARIANT V_BSTR Pin
Steen Krogsgaard22-Sep-05 1:26
Steen Krogsgaard22-Sep-05 1:26 
GeneralRe: Length of VARIANT V_BSTR Pin
Steen Krogsgaard22-Sep-05 1:33
Steen Krogsgaard22-Sep-05 1:33 
GeneralRe: Length of VARIANT V_BSTR Pin
Kreatief22-Sep-05 2:37
Kreatief22-Sep-05 2:37 
GeneralRe: Length of VARIANT V_BSTR Pin
Steen Krogsgaard22-Sep-05 2:41
Steen Krogsgaard22-Sep-05 2:41 
QuestionDisplay colour depth - what's the point? Pin
Taka Muraoka21-Sep-05 3:42
Taka Muraoka21-Sep-05 3:42 
AnswerRe: Display colour depth - what's the point? Pin
Chris Losinger21-Sep-05 4:18
professionalChris Losinger21-Sep-05 4:18 
GeneralRe: Display colour depth - what's the point? Pin
Taka Muraoka21-Sep-05 4:33
Taka Muraoka21-Sep-05 4:33 
GeneralRe: Display colour depth - what's the point? Pin
Chris Losinger21-Sep-05 4:39
professionalChris Losinger21-Sep-05 4:39 
GeneralRe: Display colour depth - what's the point? Pin
Taka Muraoka21-Sep-05 5:00
Taka Muraoka21-Sep-05 5:00 
GeneralRe: Display colour depth - what's the point? Pin
Shog921-Sep-05 6:12
sitebuilderShog921-Sep-05 6:12 
GeneralRe: Display colour depth - what's the point? Pin
El Corazon21-Sep-05 6:15
El Corazon21-Sep-05 6:15 
GeneralRe: Display colour depth - what's the point? Pin
Taka Muraoka21-Sep-05 6:23
Taka Muraoka21-Sep-05 6:23 
QuestionInstall Project Pin
el_dude21-Sep-05 3:35
sussel_dude21-Sep-05 3:35 
AnswerRe: Install Project Pin
Blake Miller21-Sep-05 4:13
Blake Miller21-Sep-05 4:13 
QuestionMessage window scrolling Pin
Member 222024521-Sep-05 3:17
Member 222024521-Sep-05 3:17 

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.