using resources

E

enki

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));
 
V

Victor Bazarov

enki said:
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.
 
V

Victor Bazarov

enki said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,664
Latest member
RoseannBow

Latest Threads

Top