OCX generated in Delphi 6 - navision fails at compile time

Digi
Member Posts: 4
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?
- 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
-
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.0
-
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 me0 -
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 ...0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions