LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I associate an Icon with my program???? Thanks....

I can't find a way to associate in LabWindows an Icon
that I drew with the LabWindows Icon editor. By the way...
I don't want to associate it from the operating system,
but in the developement of the application.

Thanks!!
0 Kudos
Message 1 of 7
(4,040 Views)
You'll find this setting under the Build menu, Target Settings. The third line will allow you to specify an icon to associate with the application.

Regards,

Alex
0 Kudos
Message 2 of 7
(4,039 Views)
It was so easy, but I'm really bad in finding even simple things...

So thanks again!!
0 Kudos
Message 3 of 7
(4,030 Views)
OK, let's increase the "degree of difficulty" here:

How can I put two (or more) icons into my application?

For example I'd like one icon for the app itself, but also embed another icon that will be associated with the data file for the app via a registry entry. (See this thread for more on those registry entries.)

Thanks in advance,
Ian
0 Kudos
Message 4 of 7
(3,959 Views)
Ian,

You use CVI for the Application, (the EXE since they all get different ICOs based on what is embedded in their EXE). For the Data file, you will need to give it a extension that is unique. Then use the registry entries in the other thread to associate it with an ICO or another ICO in an EXE.

Let me know if this is not enough info and I can try and give you an example.

Jeff
NI
0 Kudos
Message 5 of 7
(3,930 Views)
Thanks, Jeff.

What I'm taking from your answer is that:
(a) there is no easy way to embed a second icon into my app's .exe file, and that
(b) I should stick with distributing the second icon (in its own .ico file) within my installation kit, or with whatever separate method I might use to establish the registry entries described in that other thread.

--Ian
0 Kudos
Message 6 of 7
(3,922 Views)
CORRECTION - There is no easy way in LabWindows, convert your project to VS and then this is easy as pie just add resources to your hearts content. I also recommend including your UIR as a resource and having your app write it out so that UIR versions dont get confused. I dont understand why ni has not moved into the world of resources like everybody else.
0 Kudos
Message 7 of 7
(3,918 Views)