resource file in Necto Studio 1.8.3

Fully featured ARM compilers available on Windows, Linux, and macOS.
Post Reply
Author
Message
dreiber
Posts: 28
Joined: 18 Oct 2012 05:24

resource file in Necto Studio 1.8.3

#1 Post by dreiber » 20 Nov 2021 21:11

I'm trying to use images and fonts in Necto Studio with MikroC AI. I add the image and the font using the resource manager and they show in the list of resources. If I exit and restart Necto Studio, the two resources no longer show up in the resource manager tab. If I double click on the resource.mres file name in the project manager tab, the resources then show up in the resources tab. But they are in the .mres file. I also can't use them in my code as they are marked as an "undeclared identifier". I'm guessing that I'm missing something. I can't find any documentation on the resource manager except a simple example of how to add resources using the resource manager. Any help would be appreciated.

User avatar
Tanja_Kovacevic
mikroElektronika team
Posts: 98
Joined: 09 Aug 2021 11:39

Re: resource file in Necto Studio 1.8.3

#2 Post by Tanja_Kovacevic » 01 Dec 2021 12:16

Hi,

You should add an external declaration at the point of use

For example:
extern const code char my_font[];
extern const code char myimg[];

Kind regards,
Tanja

Post Reply

Return to “ARM AI Compilers”