Difference between revisions of "Coding Hints"
m (Svan moved page Using temp files location to Coding Hints: Wrong caption) |
|||
Line 1: | Line 1: | ||
+ | =How to debug two versions= | ||
+ | ==Modules== | ||
+ | * Create two git repos. | ||
+ | * In one of them change | ||
+ | **'''Modules.32\Common\Project\CommonProject.props''' | ||
+ | ***<code><IntDir>U:/Modules.32/$(ProjectName)\</IntDir></code> to <code><IntDir>U:/TEMP/Modules.32/$(ProjectName)\</IntDir></code> | ||
+ | **'''Modules.32\Common\Project\CommonProjectCSDll.props''' | ||
+ | ***<code><IntermediateOutputPath>u:\Modules.32\$(RootNamespace)\</IntermediateOutputPath></code> to <code><IntermediateOutputPath>u:\TEMP\Modules.32\$(RootNamespace)\</IntermediateOutputPath></code> | ||
+ | ***<code><BaseIntermediateOutputPath>u:\Modules.32\$(RootNamespace)\</BaseIntermediateOutputPath></code> to <code><BaseIntermediateOutputPath>u:\TEMP\Modules.32\$(RootNamespace)\</BaseIntermediateOutputPath></code> | ||
+ | =Using temp files= | ||
<pre> | <pre> | ||
_com_ptr(ITempFilesManager); | _com_ptr(ITempFilesManager); |
Latest revision as of 14:09, 24 September 2020
How to debug two versions
Modules
- Create two git repos.
- In one of them change
- Modules.32\Common\Project\CommonProject.props
<IntDir>U:/Modules.32/$(ProjectName)\</IntDir>
to<IntDir>U:/TEMP/Modules.32/$(ProjectName)\</IntDir>
- Modules.32\Common\Project\CommonProjectCSDll.props
<IntermediateOutputPath>u:\Modules.32\$(RootNamespace)\</IntermediateOutputPath>
to<IntermediateOutputPath>u:\TEMP\Modules.32\$(RootNamespace)\</IntermediateOutputPath>
<BaseIntermediateOutputPath>u:\Modules.32\$(RootNamespace)\</BaseIntermediateOutputPath>
to<BaseIntermediateOutputPath>u:\TEMP\Modules.32\$(RootNamespace)\</BaseIntermediateOutputPath>
- Modules.32\Common\Project\CommonProject.props
Using temp files
_com_ptr(ITempFilesManager); if (FAILED(GetPROInterface(IID_ITempFilesManager, (void**)&pITempFilesManager)) || FAILED(pITempFilesManager->GetTempFilesAutoDeleteHolder(&m_pITempFilesHolder))) m_pITempFilesHolder = NULL;