Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15064

RC5 spline demo issue - was not a loaded control class

$
0
0
Hey Schmidt

Windows XP SP3 v2002.

I copied vb_cairo_sqlite.dll, vbRichClient5.dll, vbRichClient5.manifest and vbWidgets.dll to C:\Windows\System32, then registered both vbRichClient5.dll and vbWidgets.dll and all the demos are working fine.

I created a new folder, C:\rc5spline, and copied the following files to it:
fCairoDemo.frm
fCairoDemo.frx
modCairo.bas
ucCanvas.ctl

I created a new "Standard EXE" VB6 project, removed Form1, added a reference to vbRichClient5, then added modCairo.bas and ucCanvas.ctl, and saved Project1.vbp and closed VB6. So far so good.

Now I open the VBP and try to add fCairoDemo.frm...

Code:

---------------------------
Microsoft Visual Basic
---------------------------
Errors during load. Refer to 'C:\rc5spline\fCairoDemo.log' for details
---------------------------
OK  Help 
---------------------------

The log file:
Code:

Line 40: Class CairoTutorial.ucCanvas of control ucCanvas1 was not a loaded control class.
Line 46: The property name _ExtentX in ucCanvas1 is invalid.
Line 47: The property name _ExtentY in ucCanvas1 is invalid.

If I try to save the project, it asks me to "Save File As" for fCairoDemo.frm... As if VB6 made some changes to the file due to the failure. I saved it as ffCairoDemo.frm (note the double "ff") and compared.

It replaced
Code:

Begin CairoTutorial.ucCanvas ucCanvas1
with
Code:

Begin VB.PictureBox ucCanvas1
The frx files are identical.

Why is it not loading fCairoDemo.frm?

I attached rc5spline.zip which contains the files up to this point.
Attached Files

Viewing all articles
Browse latest Browse all 15064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>