From: Mark M. <mie...@gm...> - 2012-04-04 17:19:16
|
On Wed, Apr 4, 2012 at 10:52 AM, Oliver Sims <oli...@si...> wrote: > I'm using Mark's program 'makeDLL.rex' to make a DLL (so I can explain how > to do it using RC.exe in the Guide). > I'm having trouble with "including" the .h files. It seems that I have to > copy them all into the makeDLL.rex folder. Well, I was going to say the 'easist way', but I guess I'll say 'one way' is to be sure the include statement for the .h file, in the rc file, correctly points to the .h file. The "easiest" way is to have the .rc file and the .h file in the same directory and just include the .h file name. The rc compiler should search the "INCLUDE" path for .h files. On Windows the INCLUDE environment variable has the same format as PATH, but will not exist unless you have explicitly set it. I.e.: set INCLUDE=C:\ooRexx\samples\listview\rc;C:\ooRexx\samples\treeview\rc Right now, at least some of the .rc files in the user guide exercises are set up in a way that is most convenient for building and packaging the Windows distribution. This does not make them a good example for showing someone unfamiliar with the compilation process how to use makeDLL.rex. I would use a simple example where all the files are in the same directory to show how to compile a resource file. Then note that the process is more complex if you start putting files in different directories. And that, in that case, the different files specified in the .rc file have to be specified in a way that the rc compiler can find them. Note that if you start getting messages like: CustomerView.rc(85) : error RC2135 : file not found: .\customer\bmp\Customer.ico you need to change the .\customer\bmp\Customer.ico to something else that points correctly to Customer.ico -- Mark Miesfeld |