OCX generated in Delphi 6 - navision fails at compile time

DigiDigi Member Posts: 4
edited 2004-06-25 in Navision Attain
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?

Comments

  • DenSterDenSter Member Posts: 8,307
    If your OCX has any visual component, it will not work. So custom controls or datepickers, things like that simply don't work in Navision. You can only use a non-visual OCX in Navision.
  • DigiDigi Member Posts: 4
    Dear DenSter,

    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 :)
  • DigiDigi Member Posts: 4
    so ... I've found the answer to my problem on the page http://www.nowecor.de/users/stephan/ind ... eneral.htm
    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 ...
Sign In or Register to comment.