I am having great difficulty at using .rc files to access various .txt and .bmp files. I've searched extensively for tutorials but I have only find ones for C# (which I assume won't cross over).
I wish to read and then display a bitmap from my .rc file using opengl (which I have managed to do when reading it from a file but I know nothing about resources) and to also place a .txt file in my .rc file and be able to access it as a string. My project compiles but I don't know how to access/use the resources.
This is the only code I have in my .rc file:
So how would I access that from my code? And what do I need to add to this to include a .txt file? Does anyone know what I need to do, or if anyone knows of any good tutorials on resources that would be great.Code:MYIMAGEBMP BITMAP "myimage.bmp"
Thank you in advance.
edit: I'm using the devcpp compiler in case that is of any particular relevance and i've managed to draw the bitmap using win32 (using LoadBitmap etc) but I wish to use opengl.