[RESOLVED] Text Length Limit on MESSAGEBOX API ?
Hello PPl,
So I'm using the API version of the messagebox to support Unicode text etc..
Code:
Private Declare Function MessageBox Lib "user32.dll" Alias "MessageBoxW" (ByVal hWnd As Long, ByVal lpText As Long, ByVal lpCaption As Long, ByVal wType As Long) As Long
However there is this size limit which trims off longer bits of text?!
Is there a workaround to increase the buffer size? other than replacing a Fake MSGBOX with a form?
Re: Text Length Limit on MESSAGEBOX API ?
How much text are you able to get the MessageBox API to display? When I tried it before on XP, I was able to display so much text that the dialog box was several times higher than my screen height. Are you certain there are no vbNullChars in the string that you pass to the MessageBox API?
Re: Text Length Limit on MESSAGEBOX API ?
Re: Text Length Limit on MESSAGEBOX API ?
aaaaaaaaaah ... after a few tests... i got it.... its not the MSGBOX causing this, its my INI CLASS which had a buffer size limit of 255 :/
Re: [RESOLVED] Text Length Limit on MESSAGEBOX API ?
I can only get 900+ some characters with MsgBox no matter how many characters are in the string.
Re: [RESOLVED] Text Length Limit on MESSAGEBOX API ?
Quote:
Originally Posted by
jmsrickland
I can only get 900+ some characters with MsgBox no matter how many characters are in the string.
That's a limitation of VB6's MsgBox function. However, as far as I can tell, the MessageBox API is probably limited only by the amount of virtual memory available or the maximum length of VB dynamic Strings (~ 2 GB), whichever is lower.