Mikael,
The other Microsoft classes (treeview etc.) have caused me some trouble too.
Sorry for the confusing previous awnser...
I had some problems too, on a new, clean labtop. The strange thing was that
an LV executable was allowed to create a treeview control, but LV
development environment was not.
Mike's awnser should do the trick, but I solved it by installing office.
There is a tag in the registry that says if a PC is allowed to be developed
on. Office installs VB for Applications, and sets this tag. Installing VC++
will do the same.
But even after doing this, the Common Dialog Control does not work, while
all the other controls (treeview etc.) do work.
Regards,
Wiebe.
"Wiebe@AIR"
wrote in message
news:3e9abf8c$0$157$e4fe514c@dreader8.news.xs4all.nl...
> Mikael,
>
> The Common Dialog Control seems somewhat special. I got almost every COM
> object working, except the Common Dialog Control...
>
> I think the CDC is not ment to have a front panel interface. If I open it
> with an "Automation Open", at least I get properties and methods. The
> automation open returns an error "Class is not licensed for use". The SDK
> says that an application must first call the InitCommonControl function
> (void InitCommonControls(VOID)).
>
> This did not help... I use the GetOpenFileName API instead (which has a
set
> of problems of it's own).
>
> Regards,
>
> Wiebe.
>
> "Mikael Garcia" wrote in message
> news:5065000000080000004A820000-1042324653000@exchange.ni.com...
> > Hi guys,
> > Some time ago I posted a question regarding a "Save as type" function
> > in which you could choose file type from a drop-down list as seen in
> > many programs today. I got an excellent answer from Brian Vibert that
> > did the trick. However, at that time I used LabVIEW 6.02 under Windows
> > 98. Now I am using 6.1/2K and my VI does not work anymore. The problem
> > can be traced to the ActiveX for the Common dialog control 6.0. I have
> > read some threads about it but the problem seems to be unsovled from
> > what I can tell. The thing is that my ActiveX container remains empty
> > when I add this control to it. Is this a known bug that 6.1 does not
> > support this ActiveX control under Win2K? Any input in this matter is
> > very welcome. Thanks.
>
>