Notifications
Clear all

[Closed] 3ds Max 2016 SDK problem in Visual Studio 2012

hello,

I’m facing a problem with resource editor in Visual Studio 2012.

Problem : After creating or editing the buttons in visual studio’s resource editor (.rc) ,the buttons are not getting displayed in 3dsMax 2016 . If I don’t create additional buttons in resource editor ,then it is showing the default button . I don’t know what i’m doing wrong. If anyone has a solution to this ,please help me.

I’m attaching the code here. please correct wherever needed.

// Microsoft Visual C++ generated resource script.
//
#include “resource.h”

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include “afxres.h”

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (United States) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_PANEL DIALOGEX 0, 0, 108, 184
STYLE DS_SETFONT | WS_CHILD | WS_VISIBLE
FONT 8, “MS Sans Serif”, 0, 0, 0x1
BEGIN
CTEXT “Generated by Autodesk 3ds Max SDK plugin wizard”,IDC_STATIC,11,15,85,25
CONTROL “”,IDC_EDIT,“CustEdit”,WS_TABSTOP,30,160,35,10
CONTROL “”,IDC_SPIN,“SpinnerControl”,0x0,66,160,7,10
LTEXT “Spinner Cust Control:”,IDC_STATIC,20,148,67,8
CTEXT “TODO: Place panel controls here.”,IDC_STATIC,15,45,78,18
LISTBOX IDC_LIST1,14,69,79,40,LBS_SORT | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
CONTROL “Add”,IDC_CUSTOM1,””,WS_TABSTOP,14,112,37,14
CONTROL “Remove”,IDC_CUSTOM2,””,WS_TABSTOP,54,112,37,14
END

/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_PANEL, DIALOG
BEGIN
LEFTMARGIN, 4
RIGHTMARGIN, 103
TOPMARGIN, 7
BOTTOMMARGIN, 177
END
END
#endif // APSTUDIO_INVOKED

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE
BEGIN
“resource.h\0”
END

2 TEXTINCLUDE
BEGIN
#include ““afxres.h””

“\0”
END

#endif // APSTUDIO_INVOKED

/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE
BEGIN
IDS_CLASS_NAME “maxProject3”
IDS_PARAMS “Parameters”
IDS_SPIN “Spin”
END

#endif // English (United States) resources
/////////////////////////////////////////////////////////////////////////////

/////////////////////////////////////////////////////////////////////////////
// English (India) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENN)
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_INDIA
#pragma code_page(1252)

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

3 TEXTINCLUDE
BEGIN


“\0”
END

#endif // APSTUDIO_INVOKED

#endif // English (India) resources
/////////////////////////////////////////////////////////////////////////////

#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//

/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

HERE IS THE SCREENSHOT OF RESOURCE EDITOR BUTTONS:

Thanks.

2 Replies

Have you tried setting the button class manually?


CONTROL “Add”,IDC_CUSTOM1,“CustButton”,WS_TABSTOP,14,112,37,14
CONTROL “Remove”,IDC_CUSTOM2,“CustButton”,WS_TABSTOP,54,112,37,14

It’s working now
Thank you so much hdmaster for helping .