c++ - Using $(OutDir) in Visual Studio .rc file -


in visual studio c++ project’s .rc file, there 2 included assemblies sources specified using relative paths. instead i’d specify these relative output directory.

here’s i’m starting with:

#ifndef apstudio_invoked ///////////////////////////////////////////////////////////////////////////// // // generated textinclude 3 resource. // language lang_neutral, sublang_neutral #ifdef _debug exceldna.loader         assembly                "..\\exceldna.loader\\bin\\debug\\exceldna.loader.dll" exceldna.integration    assembly                "..\\exceldna.integration\\bin\\debug\\exceldna.integration.dll" #else exceldna.loader         assembly                "..\\exceldna.loader\\bin\\release\\exceldna.loader.dll" exceldna.integration    assembly                "..\\exceldna.integration\\bin\\release\\exceldna.integration.dll" #endif  ///////////////////////////////////////////////////////////////////////////// #endif    // not apstudio_invoked 

i’ve tried defining macros under properties → c/c++ → preprocessor reference $(outdir):

exceldna_integration_path "$(outdir)exceldna.integration.dll" exceldna_loader_path "$(outdir)exceldna.loader.dll" 

and replacing section this:

#ifndef apstudio_invoked ///////////////////////////////////////////////////////////////////////////// // // generated textinclude 3 resource. // language lang_neutral, sublang_neutral exceldna.loader         assembly   exceldna_loader_path exceldna.integration    assembly   exceldna_integration_path ///////////////////////////////////////////////////////////////////////////// #endif    // not apstudio_invoked 

but makes compile error out:

error   rc2135  file not found: exceldna_integration_path error   rc2135  file not found: exceldna_loader_path 

what correct way this? possible?


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -