Hello i was trying to use .rc files in Qt using like compiler MinGW and worked. But now i'm trying with visual studio and not seems to work. the code is the follow:
i add in the .pro file:
resources.rc:Code:
RC_FILE += resources.rc
Code:
#include <windows.h> #include "resource.h" PROGRAM RCDATA "C:/Users/moh/Desktop/Example1.exe"
resource.h:
Code:
#ifndef RESOURCE_H_INCLUDED #define RESOURCE_H_INCLUDED #define PROGRAM "PROGRAM" #endif // RESOURCE_H_INCLUDED
findresource:
Code:
HRSRC res=FindResourceA(NULL,"PROGRAM",MAKEINTRESOURCEA(PROGRAM));
return error 1813