By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,804 Members | 1,631 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,804 IT Pros & Developers. It's quick & easy.

using resources

P: n/a
I am trying to learn basic resources. I am trying to load a bmp file I
wrote with the win drawing program. I am trying to make this a
pointer. The program complies and runs but the pointer dosnt change.
I am using the free dev c++ complier from bloodshed.

These are the pertent parts of the program. I have gotten another
program to work that uses resources.

resources.rc:

#include"res1.h"
icon_name ICON1 "graphic.bmp"

res1.h:
#define ID_ICON1 100

Main program:

#include <windows.h>
#include <windowsx.h>
#include <iostream>
#include "res1.h"

/* Use default icon and mouse-pointer */
wincl.hIcon = LoadIcon (hThisInstance,MAKEINTRESOURCE(ID_ICON1));
wincl.hIconSm = LoadIcon (hThisInstance,MAKEINTRESOURCE(ID_ICON1));

Jul 23 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
enki wrote:
I am trying to learn basic resources. I am trying to load a bmp file I
wrote with the win drawing program.
I think you're in a wrong newsgroup. C++ *language* does not know squat
about "win drawing" or "resources" or "bmp file".

Have you tried 'comp.os.ms-windows.programmer.win32'?
I am trying to make this a
pointer.
'this' is already a pointer (inside a member function scope).
The program complies and runs but the pointer dosnt change.
I am using the free dev c++ complier from bloodshed.

These are the pertent parts of the program. I have gotten another
program to work that uses resources.

resources.rc:
[...]


Sorry, off-topic.
Jul 23 '05 #2

P: n/a
understood, I just can find a win32 group.

I apoligise.

Jul 23 '05 #3

P: n/a
enki wrote:
understood, I just can find a win32 group.


Try connecting to 'msnews.microsoft.com' news server, it has all
newsgroups that begin with "microsoft.public." I bet there are
several there which you will find helpful.
Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.