I've been just started in navision. I made a simple ocx in delphi 6, registered it, and tried to use in navision attain 3.7:
- opened an existing code unit
- made a global var. type of OCX
- set the subtype
- tried to compile the unit: navision failed - restart needed
i have done the above steps with an other - not self written OCX - and it worked. What made I wrong?
0
Comments
RIS Plus, LLC
thanx for your quick reply. Yes, I know what you wrote. My OCX is a TWinControl descendant, and to the best of my ability in Delphi all ActiveX control must be a TWinControl descendant, needn't it? On the other hand I have tried also to use a Delphi-shipped OCX control (named ChartFX) - that is a real visible control - and Navision compiled it successfully (maybe itt won't work at runtime because it is a visible control, but Navision has not failed at compile time). So I think there must be other resrictions causing this failure.
if you have any idea to solve my problem, pelase write me
the major "mistake" was that i have "forgotten" to check the "licence file" (and maybe the "version info" and "about box") checkboxes at the OCX's compile time. After I have done this, Navision has "accepted" my OCX ...