Database Handicapping Software- JCapper JCapper Technical Service Bulletin
Resolve Cannot Initialize Data Bindings and MSSTDFMT.DLL Class not registered errors with the MSDATGRD.EXE download
 
ERROR TEXT: "Cannot Initialize Data Bindings"

HAPPENS WHEN: You try to launch one of the grid control views as part of the Profile Table Interface.

CAUSE: JCapper's Profile Table Interface uses a Microsoft Data Grid Control. The Microsoft Data Grid Control in turn uses the following three dependency files: MSDATGRD.OCX, MSSTDFMT.DLL, and MSBIND.DLL. If you are getting a "cannot initialize data bindings" error then one or more of these three files is missing from or not registered on your machine.

SOLUTION: Follow the instructions below to download and install the MSDATGRD.EXE file onto your c:\JCapper\OCX folder.

HINT: Upon successful registration of the components in the download, you will no longer get the error message.




ERROR TEXT: "Class not registered. You need the following file to be installed on your machine. MSSTDFMT.DLL"

HAPPENS WHEN: You try to enter a ticket into the JCapper Wager History Module. (Or alternately, you try to run a Track Weight Report in the SQL Data Window.)

CAUSE: JCapper's Wager History Module uses libraries embedded in the MSSTDFMT.DLL while trying to pull up a horse's UDM Profile. The SQL Data Window uses libraries found in the same DLL while pulling info needed for a Track Weight Report from the StarterHistory table. If the MSSTDFMT.DLL is not registered on your machine you will get this (or a similar) error message.

SOLUTION: Follow the instructions below to download and install the MSDATGRD.EXE file onto your c:\JCapper\OCX folder.

HINT: Upon successful registration of the components in the download, you will no longer get the error message.




Download Link
Data Grid Download (filename: MSDATGRD.EXE)

File Contents/What's Inside?
  • MSDATGRD.EXE - the Extractor File.
  • MSBindRegister.bat - an executable DOS batch file that contains the command line registration commands.
  • MSBindRegister.txt - a non executable text file that contains the same registration commands found in the DOS batch file. Hint: If you want to see the commands, double click this file to open it in Notepad.
  • MSDATGRD.OCX - an OCX dependency file needed to run a Microsoft Data Grid Control.
  • MSSTDFMT.DLL - a DLL containing libraries used by various JCapper Modules.
  • MSBIND.DLL - a DLL containing libraries used by various JCapper Modules.



NORMAL PROCEDURE INSTALL INSTRUCTIONS - ALL Versions of WINDOWS - Including WINDOWS 8:

1. Close all open program windows.

2. Right click the download link and select "Save Target As" (Internet Explorer) or select "Save Link As" (other browsers) and SAVE the download package file to your c:\JCapper\OCX folder.

Note the filename (MSDATGRD.EXE) for the download package. Consider writing it down. (Hint: You will need to know the filename for step 3 below.)

3. Create a new Desktop Shortcut with the program download package file (filename: MSDATGRD.EXE) named as the shortcut's target.
a. Click anywhere on your Desktop, select NEW and select SHORTCUT.

b. Click BROWSE and use the dialog box to browse your C:\JCapper\OCX folder and select the download package file (filename: MSDATGRD.EXE) that you downloaded in step 2 above.

Hint: If you have completed this step correctly the shortcut's target showing in the box should be: C:\JCapper\OCX\MSDATGRD.EXE

c. Click Next and give your shortcut a name.

Hint: The name you use in this step really doesn't matter. (Any name will do.)


4. RIGHT CLICK the shortcut created in step 3 above and select RUN AS ADMINISTRATOR. From there, answer YES at the prompt to get permission from Windows to run the Extractor. (You may need to click YES a 2nd or 3rd time to get permission to run the file from your anti-virus/firewall as well.)

Note about true admin rights under Windows 8: In WIN8, right clicking a program and selecting "run as admin" doesn't get you true admin rights like it does under WIN7 or VISTA. However, right clicking a desktop shortcut and selecting "run as admin" DOES get you true admin rights. So if you're wondering why steps 3 and 4 (above) were included in the instructions - now you know why.

5. The self extracting zip will then open. Click BEGIN to run the Extractor.

6. Click YES at the "Do you Wish to Proceed?" prompt. The Extractor will run, copying files out onto your C:\JCapper\OCX folder. The extraction process may take a minute or so to complete.

7. When file extraction is complete, the extractor will prompt you with the following message: "Extraction Complete. Do you wish to proceed?"
Click YES at this prompt.


8.The Extractor will launch a DOS Batch File (filename: MSBindRegister.bat) that will open up a window to a DOS Command Prompt and execute the needed registration commands.
a. Click YES if prompted by Windows and/or your firewall/anti-virus for permission to run this file.

b. Click OK if prompted by Windows as each of the registration commands executes.

c. Take note of (and email me about) any registration commands that fail to execute.

Hint: Screenshots would be helpful.




That's It!!
After the batch file un-registers and re-registers each of the Dependency Files you should find that the error messages are a thing of the past.

-jp

.






ALTERNATE PROCEDURE - ALL Versions of WINDOWS - Including WINDOWS 8:

Hint: Use this alternate procedure in the event your firewall (or some other program on your machine) keeps blocking you from copying the MSBindRegister.bat file and/or running it from the Extractor.

General description of what you will be doing:

The download includes a text file (filename: MSBindRegister.txt) that contains the same commands as those found in the MSBindRegister.bat file. But because the MSBindRegister.txt file is a non executable text file, it's unlikely your firewall will block the Extractor (or you) from copying this file to your c:\JCapper\OCX folder.

In the event your firewall (or some other program) blocks the Extractor from copying the MSBindRegister.bat file to your c:\JCapper\OCX folder and/or running it afterwards - provided your firewall allows the dependency files MSDATGRD.OCX, MSSTDFMT.DLL, MSBIND.DLL, and the MSBindRegister.txt file to be extracted out onto your c:\JCapper\OCX folder -- Then you're in business!

You should be able to rename the MSBindRegister.txt file from MSBindRegister.txt to MSBindRegister.bat (thus creating the needed .BAT file!) And from there, you should be able to create a new desktop shortcut (naming the MSBindRegister.bat file as the target) -- and after right-clicking the shortcut and selecting RUN AS ADMINISTRATOR -- get the registration commands in the MSBindRegister.bat file to execute and register the needed DLLs!

Now, with the requisite background info out of the way...

Here are the INSTUCTIONS FOR THE ALTERNATE PROCEDURE:

1. Close all open program windows and run steps 1-8 from the Normal Procedure above.
Important! - At a minimum, you do need to run the Extractor in order to get the needed files extracted out onto your c:\JCapper\OCX folder.


2. Launch Windows Explorer (or My Computer) and navigate to your c:\JCapper\OCX folder.

3. If you are not already doing so, view details for your c:\JCapper\OCX folder and sort the files in that folder by Name:
a. Right-click inside the folder and select VIEW. Then select DETAILS.

This will cause Windows Explorer to display details for all of the files in the folder you are looking at.

b. Click the NAME column header to sort the files in the folder you are looking at by filename.

Hint: If you have completed this step correctly the files in your c:\JCapper\OCX folder will be sorted by name - making individual files easy to find.


4. VERIFY that the needed files are in fact on your c:\JCapper\OCX folder:
  • MSBindRegister.bat - an executable DOS batch file that contains the command line registration commands.
  • MSBindRegister.txt - a non executable text file that contains the same registration commands found in the DOS batch file. Hint: If you want to see the commands, double click this file to open it in Notepad.
  • MSDATGRD.OCX - an OCX dependency file needed to run a Microsoft Data Grid Control.
  • MSSTDFMT.DLL - a DLL containing libraries used by various JCapper Modules.
  • MSBIND.DLL - a DLL containing libraries used by various JCapper Modules.
Note: If all three of the dependency files (MSDATGRD.OCX, MSSTDFMT.DLL, and MSBIND.DLL) are present on your c:\JCapper\OCX folder - continue on and complete the steps for the Alternate Procedure.

Note: If any of the three dependency files (MSDATGRD.OCX, MSSTDFMT.DLL, and MSBIND.DLL) are not (repeat not) present on your c:\JCapper\OCX folder -- STOP HERE and shoot me an email (so that we can figure out some other way to get the registration process done.)

Note: If the MSBindRegister.bat file is (repeat is) present on your c:\JCapper\OCX folder, skip step 5 below and procede directly to setp 6.

Note: If the MSBindRegister.bat file is not (repeat not) present on your c:\JCapper\OCX folder, but the MSBindRegister.txt is (repeat is) present on your c:\JCapper\OCX folder -- procede to step 5 below.

Note: If the MSBindRegister.txt file is not (repeat not) present on your c:\JCapper\OCX folder, STOP HERE and shoot me an email (so that we can figure out some other way to get the registration process done.)


5. RENAME the MSBindRegister.txt file on your c:\JCapper\OCX folder from MSBindRegister.txt to MSBindRegister.bat.
Hint: Right click the file, select RENAME, and then change the file extension from .txt to .bat (and then answer Yes when Windows asks you if you really do want to change the file extension.)


6. Create a new Desktop Shortcut (with the MSBindRegister.bat file named as the shortcut's target.)
a. Click anywhere on your Desktop, select NEW and select SHORTCUT.

b. Click BROWSE and use the dialog box to browse to your C:\JCapper\OCX folder. Then select the MSBindRegister.bat file (filename: MSBindRegister.bat) that you either found on your c:\JCapper\OCX folder in step 4 above or created on your JCapper\OCX folder in step 5 above as the target of your shortcut.

Hint: If you have completed this step correctly the shortcut's target showing in the box should be: C:\JCapper\OCX\MSBindRegister.bat

c. Click Next and give your shortcut a name.

Hint: The name you use in this step really doesn't matter. (Any name will do.)


7. RIGHT CLICK the shortcut created in step 6 above and select RUN AS ADMINISTRATOR. From there, answer YES at the prompt to get permission from Windows to run the .BAT file. (You may need to click YES a 2nd or 3rd time to get additional permissions to run the file from your anti-virus and/or firewall as well.)

Note about true admin rights under Windows 8: In WIN8, right clicking a program and selecting "run as admin" doesn't get you true admin rights like it does under WIN7 or VISTA. However, right clicking a desktop shortcut and selecting "run as admin" DOES get you true admin rights. So if you're wondering why steps 6 and 7 (above) were included in the instructions - now you know why.

8. The Extractor will launch the .BAT File (filename: MSBindRegister.bat) which will open up a window to a DOS Command Prompt and execute the needed registration commands.
a. Click YES if prompted by Windows and/or your firewall/anti-virus for permission to run this file.

b. Click OK if prompted by Windows as each of the registration commands executes.

c. Take note of (and email me about) any registration commands that fail to execute.

Hint: Screenshots would be helpful.




That's It!!
After the batch file un-registers and re-registers each of the Dependency Files you should find that the error messages are a thing of the past.

-jp

.

Copyright 2015 JCapper Software