I'm assuming that this is ctDate.ocx from DBI? If yes, then you probably haven't registered the OCX as Admin. I've had problems with Win7 acting like things are okay, but then throwing the OCX not registered error.
My solution is to activate and log in as the ADMINISTRATOR, then register the OCX with "regsvr32 ctdate.ocx" Make sure you are in the same folder as the ctdate.ocx file when you do...my experience is that the OCX can be anywhere. You can try to accomplish this by opening the command window as administrator (find the "command" option in your Win7 Start menu, right-click it and select run as admin.) You'll get a nice little DOS box command prompt. CD to the folder where the OCX file is located and run the regsvr32 command. This assumes you are running Win7 32-bit. If you're on 64-bit it may be a bit more difficult, but can still be done. Mike > Previously, my main machine was a laptop HP9440 and I installed Win7 on it. > Worked fine except either the video card was damaged or the driver wouldn't > work properly. > > So I've built a new pc and I've struck a peculiar problem > After transferring all the data and source code I noticed an Ole error where > I use ctDate.OCX > So I ran my "workstation" set up and all previously compiled apps where I > use this ocx all ran fine again > This workstation set up is an Inno compiled exe which has the vfp runtimes > as well as ocx registrations > > But when I try to "Modi form " the form that contains the ocx, I still get > ole error with message "class is not licenced for use" > I can't figure this > _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

