Author Topic: Creating the DLL resource for the CUI file  (Read 4986 times)

0 Members and 1 Guest are viewing this topic.

Andrey Bushman

  • Swamp Rat
  • Posts: 860
Creating the DLL resource for the CUI file
« 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.

owenwengerd

  • Bull Frog
  • Posts: 440
Re: Creating the DLL resource for the CUI file
« Reply #1 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.

Andrey Bushman

  • Swamp Rat
  • Posts: 860
Re: Creating the DLL resource for the CUI file
« Reply #2 on: August 14, 2013, 11:13:00 AM »
Thank you.