Prev Previous Post   Next Post Next
Old 5th October 2009, 20:04   #11
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
no, I already told you, you need to allocate memory with GlobalAlloc, you can't use fixed size arrays ( foo[...] )

code:

void __declspec(dllexport) MyFunction(HWND h,int stringsize)
{
char*mystringbuffer;
mystringbuffer=(char*)GlobalAlloc(GPTR,stringsize);
//call popstring() from sample code I linked to to get string from stack
//do something with mystringbuffer...
GlobalFree(mystringbuffer);
}


IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump