Click here to Skip to main content
15,883,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Project1: rc file and resource.h
Project2: rc2 file and resource2.h

My main project is Project1, I had to use Project2's resource in Project1,
that means, I use rc,rc2,resource.h,resource2.h in Project1.
(Project2's UI is very complex, if I redo it in Proect1, it's waste time)

How do I do this? Thanks!
Posted
Updated 29-Dec-14 17:25pm
v2

1 solution

Try it :) :
C++
// *2.rc
#include "./resource.h"
//...

// *1.rc
#include "../prj2/*2.rc"
#include "./resource.h"
//..

However, you can get a painful mixture of the resorce IDs from the both headers...

If your job is not planned for a "day-testing" only
it could be better to think about the "one-header" or even "one-DLL" resorces' sharing :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900