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:
RC_FILE += resources.rc
RC_FILE += resources.rc
To copy to clipboard, switch view to plain text mode
resources.rc:
#include <windows.h>
#include "resource.h"
PROGRAM RCDATA "C:/Users/moh/Desktop/Example1.exe"
#include <windows.h>
#include "resource.h"
PROGRAM RCDATA "C:/Users/moh/Desktop/Example1.exe"
To copy to clipboard, switch view to plain text mode
resource.h:
#ifndef RESOURCE_H_INCLUDED
#define RESOURCE_H_INCLUDED
#define PROGRAM "PROGRAM"
#endif // RESOURCE_H_INCLUDED
#ifndef RESOURCE_H_INCLUDED
#define RESOURCE_H_INCLUDED
#define PROGRAM "PROGRAM"
#endif // RESOURCE_H_INCLUDED
To copy to clipboard, switch view to plain text mode
findresource:
HRSRC res=FindResourceA(NULL,"PROGRAM",MAKEINTRESOURCEA(PROGRAM));
HRSRC res=FindResourceA(NULL,"PROGRAM",MAKEINTRESOURCEA(PROGRAM));
To copy to clipboard, switch view to plain text mode
return error 1813
Bookmarks