If I have INT WINAPI f_PLUGIN( LPWSTR psz ) how many WCHARs can I put in psz?
vefatica May 12,625 152 Sep 5, 2017 #1 If I have Code: INT WINAPI f_PLUGIN( LPWSTR psz ) how many WCHARs can I put in psz?
rconn Administrator May 12,830 180 Staff member Sep 5, 2017 #2 32K bytes. That hasn't changed since plugins were introduced.
vefatica May 12,625 152 Sep 5, 2017 #3 rconn said: 32K bytes. That hasn't changed since plugins were introduced. Click to expand... I'm playing with the MAPM API and running into a 16K limit somewhere. This is OK ... Code: v:\> echo %@fact[5015] | wc Lines Words Chars 1 1 16384 And the next one (5016) makes TCC disappear. f_FACT finishes off like this, where psz in the plugin's parameter buffer. Code: m_apm_factorial(f, n); CHAR *szResult = (CHAR*) AllocMem(32768); m_apm_to_integer_string(szResult, f); ASCIIToUnicode(szResult, psz, 32767); FreeMem(szResult);
rconn said: 32K bytes. That hasn't changed since plugins were introduced. Click to expand... I'm playing with the MAPM API and running into a 16K limit somewhere. This is OK ... Code: v:\> echo %@fact[5015] | wc Lines Words Chars 1 1 16384 And the next one (5016) makes TCC disappear. f_FACT finishes off like this, where psz in the plugin's parameter buffer. Code: m_apm_factorial(f, n); CHAR *szResult = (CHAR*) AllocMem(32768); m_apm_to_integer_string(szResult, f); ASCIIToUnicode(szResult, psz, 32767); FreeMem(szResult);
vefatica May 12,625 152 Sep 18, 2017 #5 rconn said: 32K bytes. That hasn't changed since plugins were introduced. Click to expand... Did you increase this? Today I can write 32K WCHARs to it. Code: v:\> echo %@ipow[10 32765] | wc Lines Words Chars 1 1 32768
rconn said: 32K bytes. That hasn't changed since plugins were introduced. Click to expand... Did you increase this? Today I can write 32K WCHARs to it. Code: v:\> echo %@ipow[10 32765] | wc Lines Words Chars 1 1 32768