Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

NI Controls do not run in MFC sample ViewEx

Hello,

Please take a look on my previous question:

NI Controls in CFormView running in a dll applications"

I think the problem is not the dll.

Copy the sample VIEXEX from MSDN and let it run
then you see everything is ok.
When you place a NI Control via ActiveX (CW..)or Measurement Studio (CNi..) in the resource editor,
the applikation do not create the view.

Can tell my anybody why?

Juergen
0 Kudos
Message 1 of 5
(3,428 Views)
Juergen,

please check the following examples from NI homepage:
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3EFE056A4E034080020E74861&p_node=DZ52118&p_source=External

and

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B4B175A57C2065D6E034080020E74861&p_node=174961&p_source=External

hope it helps.

stefan
0 Kudos
Message 2 of 5
(3,428 Views)
Stefan,

I am sorry this document and example descripes the dynamic creation.

I have got a problem with static controls in Doc/View Apps. The view is derived from CFromView

If you create a test App(Doc/"Form"View) with the Wizard it works fine.

If you place the same Ni-Control in ViewEx sample it does´t work !?!

please also see the question:
NI Controls in CFormView running in a dll applications

greetings

Juergen
0 Kudos
Message 3 of 5
(3,428 Views)
Hi,
I have a similar problem. I am creating a Dialog based MFC Application, If I include NI Controls in any of the Dialog's in my Application, That Dialog is not creation Fails.
However, I can compile and Run successfully any other similar sample application posted on this forum.
It seems to me that, It could be some compiler/project setting problem. But I can't see any differences.

Thanks,
Vinod
0 Kudos
Message 4 of 5
(3,428 Views)
Thanks for your answer,

This is the first time that hear that the conrtols
dont run in a Dialog

I think it would be the best to post a new question
about your problem, because this is an old one.

When it is posted a lot of developers will see it.
Maybe you can give a hint on this old question.

greetings juergen
0 Kudos
Message 5 of 5
(3,428 Views)