Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

[C++] Getting errors trying to include a header file on a resource file.


  • Please log in to reply
1 reply to this topic

#1 TOMIS13LACK

TOMIS13LACK

  • Members
  • 213 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:12:38 AM

Posted 09 June 2017 - 11:05 PM

Trying to add an icon to a small console program i made. I have made a header and resource file.

 

resources.rc:

#include "resources.h"

aet ICON "1.ico"

/*
C:\Users\THOMAS~1\DOCUME~1\cpp\RESOUR~1.RC|1|error: invalid preprocessing directive #i|
||can't open file `t': No such file or directory|
||preprocessing failed.|
*/

resources.h:

#define aet 300

/* No errors on this one or my main cpp file*/

Anyone know the problem?


ooh, i have a signature


BC AdBot (Login to Remove)

 


#2 GoofProg

GoofProg

  • Banned
  • 224 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:38 PM

Posted 12 June 2017 - 02:31 PM

Console apps do not use windows resources.  You will have to program it in windows and use the dreaded terminal functions.  (sorry no ncurses really for windows).  I would just leave a JPG image with the app in a folder like they do in file sharing. 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users