Hey to all,

I have a little c++ prog that is suppose to load a resource file into memory.
I have metafiles that I want to use in my program. Currently they reside on the hard drive, but I don't want to dstribute them anymore. instead I want to include them in the file itself (it's a dll file.). I created a new resource type Metafile and imported all teh metafiles there.

Code:
#include <windows.h>
#include <stdio.h>

LPTSTR Metas[3] = {"Graphic1", "JVEST01C", "JVEST01F"};
HRSRC reshandle;

void main()
{
	printf("1st element: %s\n", Metas[0]);
	printf("2nd element: %s\n", Metas[1]);
	printf("3rd element: %s\n", Metas[2]);
	
	reshandle = FindResource(NULL, Metas[0], "Metafile");
	
	if (reshandle == NULL)
		printf("Did not find resource.\n\n");
	
	printf("Press any key to exit...\n");
	getchar();
}
However, it is not returning the handle to teh resource.
Any ideas why?