Jump to content
Sign in to follow this  

Text from COM garbled/formatted ?

Recommended Posts


Ive done some looking and the only thing I can find that mentions garbled data is from '_ClipBoard_SetData'

Also, do NOT pass $CF_UNICODETEXT in Binary format (causes garbled data).

Im expecting plain text but receive this set of data:

Posted Image

Im hoping that this is just formatted in away that can translate

(since they always return with a proceeding '?')

Here are the calls producing the return values:

; GetCustomByIndex (3) Works
For $i = 0 to $oAcadActDoc.SummaryInfo.NumCustomInfo -1
$oAcadActDoc.SummaryInfo.GetCustomByIndex($i,$tTemp5,$tTemp6); GetCustomByIndex 0, Key0, Value0
ConsoleWrite("Ok Loop=" & $i & @CRLF)
ConsoleWrite("$tTemp5:" & $tTemp5 &@CRLF& "$tTemp6:" & $tTemp6 & @CRLF)
; GetCustomByKey (2) Works
$oAcadActDoc.SummaryInfo.GetCustomByKey('1',$tTemp4); GetCustomByIndex 0, Key0, Value0
ConsoleWrite("$tTemp4:" & $tTemp4 &@CRLF)

I think I read somewhere that passing variable containers to a COM handler wouldn't work. If this is the case, can some one verify this please because Im able to get data back from the containers, its just garbled/formated.

Thanks for any info!

Edited by Shane0000

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.