Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.
Thanks, now I got it working. It is really not so intuitive as one might wish, but given the step-by step procedure from you it is Ok. There is one little glitch though, I have placed the resource.h file in the protocols folder (took a copy of the cvsnt one). But this led to a message popping up after a while where VC++ told me that this file was being used by cvsnt.rc so I stopped to check up on things. I found a line in the file referring to cvsnt (otherwise it just contains a few constants), which I changed to point at ntserver.rc. Question 1: Since I have planned to set up resources for all the dll:s and they are all in the protocols folder, there is a problem with respect to the resource.h file. Can this be shared between different target files? (All the protocol dll:s in this case?) Question 2: Once I have thrown in all of this, how do I get it included in the main cvsnt project? Sending the files in a mail to Tony, or how? /Bo On Sun, 31 Mar 2002 04:26:58 +0000 (UTC), "Jerzy Kaczorowski" <jerzyk at wndtabs.com> wrote: >You need to also add the .rc file, which then in turn includes .rc2 file. >What you need to do is: >1. Copy the cvsnt.rc file to a protocols directory and rename to ntserver.rc >2. Copy the \res\cvsnt.rc2 to the protocols\res\ directory and rename it to >ntserver.rc2 >3. In the VC++ IDE right-click the folder and add both these files to the >ntserver_protocol project, >4. Switch to the ResourceView tab in the workspace view and you should see >ntserver resources listed. >5. Right click on it and select Resource includes >6. Change Compile-time directives to: >#ifdef _WIN32 >LANGUAGE 9, 1 >#pragma code_page(1252) >#endif >#include "..\windows-NT\version_no.h" // master version number defs >#include "..\windows-NT\version_fu.h" // version number macros >#include "res\ntserver.rc2" // non-Microsoft Visual C++ edited resources > >Save, compile - there you have it ;) >As you can see the last line is including the .rc2 file - which is how it >gets "in". > >Good Luck, >Jerzy > >----- Original Message ----- >From: "Bo Berglund" <bo.berglund at telia.com> >To: <cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook> >Sent: Sunday, March 31, 2002 6:38 AM >Subject: [Cvsnt] How to add a resource file for a configuration?? > > >> How is it done in VC6++? >> I can't for the life of me figure out how to add the rc2 file to one >> of the protocol dll:s and make it recognize that it should stuff it >> inside the dll. I have made a copy of cvsnt.rc2 and edited in some >> ntserver specific description texts. Then I have opened the Resource >> folder for config ntserver_protocol and added the rc2 file. >> I thought that this would be enough for VC6++ to actually understand >> that it now needs to add this information to the dll file it builds, >> but no. There is something I am missing here. >> >> So how (exactly, since I am no good using VC6++) do I add the version >> resource to the dlls??? >> >> >> /Bo >> (Bo Berglund, developer in Sweden) /Bo (Bo Berglund, developer in Sweden) _______________________________________________ Cvsnt mailing list Cvsnt at cvsnt.org http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs