My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
ChangingMapbook  
Why does editing the code have no effect?
Featured
Updated Mar 3, 2010 by map...@gmail.com
I am trying to edit the code in form_foo.frm. I changed lines 123 and 456, and then installed mapbook, but my changes are not there. Am I doing something wrong?

You can not alter the Map Book coding with VBA. You must have VB6 to make any changes. Once you make the changes, you'll then need to recompile and reinstall Map Book.

Acquiring Visual Basic 6

This is a little difficult because Microsoft no longer sells or supports VB6, but not impossible.

Ebay regularily has Visual Basic 6 and Visual Studio 6 CDs on sale and auction. The buy-now prices range from ~$150-$350 (yes that much!). If the price is significantly less, read the description carefully to make sure the edition offered is not a learning-only version which has compile disabled. It may also be a good idea to make sure it has not been previously registered.

I've read that if you buy a current Visual Studio license from Microsoft you can downgrade to VB6 for a fee.

If you're willing to take the legal and malware risk I'm told it's also possible to locate VB6 on file sharing sites, though be prepared to spend some time swatting popups and backing out of enticing blind alleys. The extracted cd contents will be ~170mb. You'll need a license key; chances are your organization will have one buried somewhere in the archives that is no longer in use.

Modifying and Activating Changes

  1. Backup current configuration - make a copy of or zip up ...\path\to\Mapbook\Visual_Basic
  2. From Visual_Basic folder open DSMapBookPrj.vbp and/or DSMapBookUIPrj.vbp in VB6
  3. Make your changes (a.k.a. magic stuff happens here )
  4. Save and compile -
    1. (File - Save Project)
    2. save any edited class files (File - Save DSMapPage.cls)
    3. Create the DLL (File - Make DSMapBookPrj.dll) and save over the existing file.
  5. Re-register the DLLs (may not be necessary, close ArcMap first) - run INSTALL.BAT

You will need to do this every time you make a change to the code.


Sign in to add a comment
Powered by Google Project Hosting