TheSwamp

Code Red => ARX Programming => Topic started by: Andrey Bushman on August 14, 2013, 09:54:36 AM

Title: Creating the DLL resource for the CUI file
Post by: Andrey Bushman on August 14, 2013, 09:54:36 AM
Hi all.
I try to create an resource dll for the CUI file (AutoCAD 2009 SP1 Enu x64). In the MS Visual Studio 2005 I did next steps:
1. Select Win32 Project in the New Project dialog box and specify a DLL project type in the Win32 Project Wizard.
2. On the Project menu, click Add New Item, and then add the new resource.rc file into the project.
3. On the Resource view tab, from resource.rc item context menu, select the "Add Resource..." item and select some bmp file (32x32 bit).
4. Specify the /NOENTRY linker option.
5. Build the DLL.

Building was successfully. I've got the 123.dll and copy him into the same directory, where the 123.cui file are located. I set the ID (IDB_BITMAP1) for the button's images (look the screens below):

I try to do it for the Release x32, and for the Release x64. The result is the same.

Thank you.
Title: Re: Creating the DLL resource for the CUI file
Post by: owenwengerd on August 14, 2013, 10:52:30 AM
Your resource IDs must be strings, not numbers. Put double quotes around the IDs, then it should work.
Title: Re: Creating the DLL resource for the CUI file
Post by: Andrey Bushman on August 14, 2013, 11:13:00 AM
Thank you.