{"id":1078,"date":"2024-07-05T09:53:00","date_gmt":"2024-07-05T01:53:00","guid":{"rendered":"http:\/\/www.wyrcad.com\/?p=1078"},"modified":"2024-07-05T07:37:31","modified_gmt":"2024-07-04T23:37:31","slug":"%e6%b3%a8%e5%86%8c%e8%a1%a8registry%e4%b8%8e%e5%88%9d%e5%a7%8b%e5%8c%96%e6%96%87%e4%bb%b6initialization-file%e5%87%bd%e6%95%b0%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.wyrcad.com\/?p=1078","title":{"rendered":"\u5229\u7528\u6ce8\u518c\u8868(Registry)\u4e0e\u521d\u59cb\u5316\u6587\u4ef6(Initialization File)\u51fd\u6570\u8bfb\u5199\u4fe1\u606f"},"content":{"rendered":"\n<p>&#8216; \u5229\u7528\u521d\u59cb\u5316\u6587\u4ef6\u8bfb\u5199\u4fe1\u606f<br>lRet = <a href=\"https:\/\/www.wyrcad.com\/?p=1031\">WriteIniFile<\/a>(&#8220;General&#8221;, &#8220;Name&#8221;, &#8220;wyrcad&#8221;, &#8220;D:\\Test.ini&#8221;)<br>lRet = WriteIniFile(&#8220;General&#8221;, &#8220;Age&#8221;, &#8220;36&#8221;, &#8220;D:\\Test.ini&#8221;)<br>sRet = <a href=\"https:\/\/www.wyrcad.com\/?p=1031\">ReadIniFile<\/a>(&#8220;General&#8221;, &#8220;Name&#8221;, &#8220;D:\\Test.ini&#8221;)<br>Debug.Print sRet<br>sRet = ReadIniFile(&#8220;General&#8221;, &#8220;Age&#8221;, &#8220;D:\\Test.ini&#8221;)<br>Debug.Print sRet<\/p>\n\n\n\n<p>&#8216; \u5229\u7528\u6ce8\u518c\u8868\u8bfb\u5199\u4fe1\u606f<br>Call <a href=\"https:\/\/www.wyrcad.com\/?p=1026\">SaveString<\/a>(HKEY_CURRENT_USER, &#8220;Software\\Yager\\WCAD&#8221;, &#8220;Name&#8221;, &#8220;wyrcad&#8221;, &#8220;General&#8221;, &#8220;D:\\Test.ini&#8221;)<br>Call SaveString(HKEY_CURRENT_USER, &#8220;Software\\Yager\\WCAD&#8221;, &#8220;Age&#8221;, &#8220;36&#8221;, &#8220;General&#8221;, &#8220;D:\\Test.ini&#8221;)<br>sRet = <a href=\"https:\/\/www.wyrcad.com\/?p=1026\">GetString<\/a>(HKEY_CURRENT_USER, &#8220;Software\\Yager\\WCAD&#8221;, &#8220;Name&#8221;, &#8220;General&#8221;, &#8220;D:\\Test.ini&#8221;)<br>Debug.Print sRet<br>sRet = GetString(HKEY_CURRENT_USER, &#8220;Software\\Yager\\WCAD&#8221;, &#8220;Age&#8221;, &#8220;General&#8221;, &#8220;D:\\Test.ini&#8221;)<br>Debug.Print sRet<\/p>\n\n\n\n<p>&#8216; \u5220\u9664\u6ce8\u518c\u8868\u6216\u521d\u59cb\u5316\u6587\u4ef6\u4fe1\u606f<br><a href=\"https:\/\/www.wyrcad.com\/?p=1026\">DelSetting<\/a> HKEY_CURRENT_USER, &#8220;Software\\Yager\\WCAD&#8221;, &#8220;Name&#8221;, &#8220;General&#8221;, &#8220;D:\\Test.ini&#8221;<br>DelSetting HKEY_CURRENT_USER, &#8220;Software\\Yager\\WCAD&#8221;, &#8220;Age&#8221;, &#8220;General&#8221;, &#8220;D:\\Test.ini&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8216; \u5229\u7528\u521d\u59cb\u5316\u6587\u4ef6\u8bfb\u5199\u4fe1\u606flRet = WriteIniFile(&#8220;General&#038;# &hellip; <a href=\"https:\/\/www.wyrcad.com\/?p=1078\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u5229\u7528\u6ce8\u518c\u8868(Registry)\u4e0e\u521d\u59cb\u5316\u6587\u4ef6(Initialization File)\u51fd\u6570\u8bfb\u5199\u4fe1\u606f\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[24,17],"class_list":["post-1078","post","type-post","status-publish","format-standard","hentry","category-bianchengyuandi","tag-vb","tag-biancheng"],"_links":{"self":[{"href":"https:\/\/www.wyrcad.com\/index.php?rest_route=\/wp\/v2\/posts\/1078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wyrcad.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wyrcad.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wyrcad.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wyrcad.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1078"}],"version-history":[{"count":5,"href":"https:\/\/www.wyrcad.com\/index.php?rest_route=\/wp\/v2\/posts\/1078\/revisions"}],"predecessor-version":[{"id":1093,"href":"https:\/\/www.wyrcad.com\/index.php?rest_route=\/wp\/v2\/posts\/1078\/revisions\/1093"}],"wp:attachment":[{"href":"https:\/\/www.wyrcad.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wyrcad.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wyrcad.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}