OCX, Microsoft Common Dialog Control

MatzeMatze Member Posts: 4
edited 2006-06-12 in Navision Attain
Hi,

i tried to use the "Microsoft Common Dialog Control" (comdlg32.ocx) via an ocx variable.
If i try to save my code i get the error message, that there is a designer license missing for the ocx control. Could this be? Do i need a special developer edition of the comdlg32.ocx file?

Has anybody an idea?

Regards
Matthias

Comments

  • bruno77bruno77 Member Posts: 62
    Could it be:

    Microsoft Knowledge Base Article - 194751
    http://support.microsoft.com/default.as ... s%3B194751

    Regards,

    Bruno
  • MatzeMatze Member Posts: 4
    Hello Bruno,

    thanks for the information.
    But i have no Visual Basic installed. So, if i understand the Knowledge Base Artice in the right way i need to install some development environment from Microsoft (e.g. Visual Basic) to use the ActiveX components from Microsoft. By the way, Navision is (now) also an development environment from Microsoft and i have purchased the C/OCX Granule to use even those Microsoft ActiveX components. This is really incomprehensible to me.

    Do do have some other ideas?
    Thanks for your assistance.

    Best regards,
    Matthias
  • bruno77bruno77 Member Posts: 62
    Hi Matthias,

    Try this:

    regsvr32 c:\winnnt\system32\comdlg32.ocx
    (or: regsvr32 c:\windows\system\comdlg32.ocx)

    If that doesn't work your comdlg32.ocx is most likely outdated and you need an updated version (which ships with win2000->, I don't know about NT, 98 and 95)

    You could aslo use the automation controller instead of the OCX (which only is a wrapper for the dll anyways)

    Name DataType Subtype
    MSComDialog Automation 'Microsoft Common Dialog Control 6.0 (SP3)'.CommonDialog
  • MatzeMatze Member Posts: 4
    Hi Bruno,

    i found a solution.

    I unregistered the comdlg32.ocx shipped with Win2k and replaced it by an older version (file date 24.06.1998) which shippes with Microsoft Visual Studio 6. At this opportunitiy i copied the file comdlg32.dep to my system and registered the "old" comdlg32.ocx.

    Navision now accepts the OCX variable and i can use the Common Dialog Control. This i a really unorthodox solution, but i works ;-)

    Anyway, i talk to my NSC to open a support call with Microsoft to check this problem.

    I like to thank you. You took me on the right way.

    Best regards,
    Matthias

    P.S.: This solution works also on my second developer machine!?
  • sinergysinergy Member Posts: 5
    hello. does this got fixed yet? i still get the same problem with ms comdlg sp3.
  • ara3nara3n Member Posts: 9,256
    In you codeunit change the ID of the function where you are using the MS Comdlg to 400, and you should be able to compile and use it.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.