News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Getting the length of a string from a resource.

Started by xanatose, March 15, 2010, 08:03:00 PM

Previous topic - Next topic

xanatose

Is there a way to get the length of a string before getting the string. Basically I want to allocate a bufferjust the right size, before calling LoadString.

oex

"Since the resource strings are not null-terminated, the string length is stored in the word preceeding the start of the resource string"

http://blogs.msdn.com/oldnewthing/archive/2004/01/30/65013.aspx

It has a c function retrieval example
We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv

xanatose