Hi Ben.
It works ! ! !
Now I have a VLX that
asks for an MNU
and
save the old MNU
modify the MNU removing the ".BMP" sub strings,
and writes the DLL.
So, now, if a VLisper needs to create a DLL od Bitmaps from a MNU file,
he has only to enter in the command line :
-------------------
MNU2BMPDLL
-------------------
Soon this utility will be freely available for all.
Thanks a lot for your suggestion.
Ciao
Domenico
Ben Maki wrote in message
news:EE836760ED0BB0BAEDB13AA15E4AAAD2@in.WebX.maYIadrTaRb...
> [I posted this message under the old thread before I realized you'd
started
> a new one]
>
> Change the script file so it comes out like this:
>
> [FILENAMES]
> Exe=C:\@\[VLISP]\---PDM-ACAD-TOOLS.dll
> SaveAs=C:\@\[VLISP]\---PDM-ACAD-TOOLS.dll
> Log=
> [COMMANDS]
> -addoverwrite C:\@\[BMP-MNU]\AAA.bmp, BITMAP,AAA,0
> -addoverwrite C:\@\[BMP-MNU]\BBB.bmp, BITMAP,BBB,0
> -addoverwrite C:\@\[BMP-MNU]\BLOCK_INSERT.bmp, BITMAP,BLOCK_INSERT,0
> -addoverwrite C:\@\[BMP-MNU]\BLOCK_MAKE.bmp, BITMAP,BLOCK_MAKE,0
> -addoverwrite C:\@\[BMP-MNU]\BLOCK_MAKE_INSERT.bmp,
> BITMAP,BLOCK_MAKE_INSERT,0
> -addoverwrite C:\@\[BMP-MNU]\BLOCK_MANAGER.bmp, BITMAP,BLOCK_MANAGER,0
> -addoverwrite C:\@\[BMP-MNU]\BLOCK_PURGE.bmp, BITMAP,BLOCK_PURGE,0
> -addoverwrite C:\@\[BMP-MNU]\BLOCK_RENAME.bmp, BITMAP,BLOCK_RENAME,0
> -addoverwrite C:\@\[BMP-MNU]\BWMI_CFG.bmp, BITMAP,BWMI_CFG,0
>
> The last three pieces on the [commands] lines are somewhat like the file
> structure inside the DLL. It tells reshacker to store this bmp as a
BITMAP,
> named AAA, version 0. The version can be any number, but it can be used
to
> have different versions of the icons (16-bit and 24-bit, large and small).
> I'm not sure how to number them so ACAD uses the correct one, but it will
> use 0 if its the only one there.
>
> You may also want to put quotes around the path names just in case the
user
> enters a path with a space in it.
>
> Good luck!
>
> --
> Ben Maki
> NDC Inc.
>
> "Domenico Pisano" wrote in message
> news:E7F6670F11C039CEC17313E74438BA0E@in.WebX.maYIadrTaRb...
> > Hi
> >
> > Now I have written a lisp that,
> > asks the name of a menu (.MNU),
> > the name of an empty DLL,
> > the full name (including path) of ResHacker.exe,
> >
> > and
> >
> > copy the empty DLL in another filte that has the same path and base name
> of
> > the menu file,
> >
> > reads the menu file,
> >
> > finds the ***TOOLBARS section,
> >
> > extracts all the rows that contain the ".BMP" sub string ,
> >
> > extract all the names of the BMPs,
> >
> > remove duplicates,
> >
> > and WRITES an SCR file,
> >
> > to pass to ResHacker.exe
> >
> >
> > The script file is something as this :
> >
> > [FILENAMES]
> > Exe=C:\@\[VLISP]\---PDM-ACAD-TOOLS.dll
> > SaveAs=C:\@\[VLISP]\---PDM-ACAD-TOOLS.dll
> > Log=
> > [COMMANDS]
> > -addoverwrite C:\@\[BMP-MNU]\AAA.bmp, AAA,0,
> > -addoverwrite C:\@\[BMP-MNU]\BBB.bmp, BBB,1,
> > -addoverwrite C:\@\[BMP-MNU]\BLOCK_INSERT.bmp, BLOCK_INSERT,2,
> > -addoverwrite C:\@\[BMP-MNU]\BLOCK_MAKE.bmp, BLOCK_MAKE,3,
> > -addoverwrite C:\@\[BMP-MNU]\BLOCK_MAKE_INSERT.bmp, BLOCK_MAKE_INSERT,4,
> > -addoverwrite C:\@\[BMP-MNU]\BLOCK_MANAGER.bmp, BLOCK_MANAGER,5,
> > -addoverwrite C:\@\[BMP-MNU]\BLOCK_PURGE.bmp, BLOCK_PURGE,6,
> > -addoverwrite C:\@\[BMP-MNU]\BLOCK_RENAME.bmp, BLOCK_RENAME,7,
> > -addoverwrite C:\@\[BMP-MNU]\BWMI_CFG.bmp, BWMI_CFG,8,
> >
> >
> > . . . the last number has to be an index ? . . . or what . . . ?
> >
> > . . . and after,
> > (dos_execute "C:/@/[VLISP]/ResHacker.exe -script
> > C:/@/[VLISP]/---PDM-ACAD-TOOLS.scr" )
> >
> > . . . or the same but from the DOS command line . . .
> > C:\@\[VLISP]\ResHacker.exe -script C:\@\[VLISP]\---PDM-ACAD-TOOLS.scr
> >
> > . . . but nothing happens . . .
> > . . . the empty DLL remains empty . . .
> > . . . this command doesn't fill the empty DLL with bitmaps . . .
> >
> > . . . any idea ?
> >
> >
> > Please help me.
> > I'm trying to write a f r e e w a r e VLX that could allow to
> > VLispers
> > to definitively close this page.
> >
> > Thanks
> >
> > Ciao
> > Domenico
> >
> >
> >
> >
> >
> >
> >
>
>