I try to get the text from a richtextbox control in vb6. However, the unicode text this is not working.
text1=richtextbox1.text
this gave me "????"
Can anybody help me?
This Code does not worked. I try to run it with this declarations:
Const GTL_USECRLF = 1
Const GTL_PRECISE = 2
Const GTL_NUMCHARS = 8
Const CP_UNICODE = 1200
Const GT_USECRLF = 1
Private Type GETTEXTEX
cb As Long
flags As Long
codepage As Integer
lpDefaultChar As String
lpUsedDefChar As Boolean
End Type
Private Type GETTEXTLENGTHEX
flags As Long ' /* flags (see GTL_XXX defines) */
codepage As Long ' /* code page for translation (CP_ACP for default,
'1200 for Unicode */
End Type
And I dont know about :
EM_GETTEXTLENGTHEX , EM_GETTEXTEX
Please send complete Code. (with all declares)