parameter block error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi
i trying to create a simple spline plugin
max keep crashing when i add my parameter block.
here's my code:
resource.h code
```
#define IDS_ROLLN 6
#define IDD_PANEL 101
#define IDC_CLOSEBUTTON 1000
#define IDC_DOSTUFF 1000
#define IDC_COLOR 1456
#define IDC_EDIT 1490
#define IDC_SPIN 1496
```
.rc file code
```
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_PANEL DIALOGEX 0, 0, 108, 156
STYLE DS_SETFONT | WS_CHILD | WS_VISIBLE
FONT 8, "MS Sans Serif", 0, 0, 0x0
BEGIN
CONTROL "",IDC_EDIT,"CustEdit",WS_TABSTOP,29,114,35,10
CONTROL "",IDC_SPIN,"SpinnerControl",0x0,65,114,7,10
END
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_PANEL, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 101
TOPMARGIN, 7
BOTTOMMARGIN, 149
END
END
#endif // APSTUDIO_INVOKED
```
cpp file code
```
enum ParamBlocks
{
Test_params,
Test_num_param_blocks,
Test_keyboard
};
static ParamBlockDesc2 TestKeyboardBlock
(
Test_keyboard, _T("sdfsdf") , 0 ,&theDescReturn,
P_AUTO_CONSTRUCT + P_AUTO_UI,
0,
IDD_PANEL, IDS_ROLLN, 0, 0, NULL,
p_end
);
```
i haven't added individual parameter specification but it should still show spinner on create or modify panel.
if i remove ParamBlockDesc2 TestKeyboardBlock function it still show Rendering and Interpolation rollout