Files
envi-code/SourceCode/Code2026/Pool3dCmd/PoolSectionTemp.h
T

11 lines
393 B
C
Raw Normal View History

#pragma once
// 水池截面 SAT 中转文件路径。
// 同一个 CAD 进程内所有调用点返回同一路径;不同进程用 PID 区分,
// 避免两个实例同时写同一个 JMSJ.sat 互相覆盖。
inline CString GetPoolSectionSatPath(LPCTSTR lpszDir)
{
CString sPath;
sPath.Format(_T("%s\\JMSJ_%lu.sat"), lpszDir, (unsigned long)::GetCurrentProcessId());
return sPath;
}