Hi!
I've almost finished my mcu-mod with the "where-am-i"-display and some other improvements (from my p.o.v
) especially for bcf2000 in mackie mode. The problem I have now is that I don't understand the mechanism of saving and restoring parameters for an instance of the controlsurface. can anyone explain this?
as far as i get it the parameters are sequentially stored in a string:
char *initConfigString
they are stored like:
sprintf(tmp,"%d %d %d %d",offs,size,indev,outdev);
lstrcpyn((char *)lParam, tmp,wParam);
and they are restored with parseParms from the array parms[4]
this means that there are only 4 params, all int < 10.
How can I store my own stuff in there (like a DWORD, boolean or other int's > 9)? wherever I try to add something to the string or the array i get stack overflows at runtime. ´(Run-Time Check Failure #2 - Stack around the variable 'parms' was corrupted.)
I hope is this is not too confusing...