Category Creo Parametric TOOLKIT fundamentals, Object ProWstring

Function ProWstringToString


Description
Converts a wide string to a multibyte character string.

NOTES:

  • This function accepts strings only in the active encoding of the Creo Parametric TOOLKIT application. Strings from other encodings may not be properly converted.
  • This function does not change the encoding of the string during the conversion.
  • This function replicates the performance of wstostr, which exists on some operating systems.
  • Each wide-string character is either 2 or 4 bytes, depending on the machine. For applications to be used in a multi-byte environment, PTC recommends providing enough memory in the "str" buffer to store 3 * the length of the "wstr" input.
Synopsis
#include <ProUtil.h>
char*ProWstringToString(
char* str
/* (Out)
The buffer to contain the multibyte character string. The caller must declare or allocate enough memory for this argument.
*/
wchar_t* wstr
/* (In)
The wide string, terminated by WNULL character
*/
)
Returns
The multibyte character string

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Element Trees: Principles of Feature Creation: Validation Using XML Schema
  3. Fundamentals: String and Widestring Functions
  4. Fundamentals: String and Widestring Functions
  5. Element Trees: Sections: Error Reporting
  6. Core: Utilities: Wide Strings

Sample Code References:

  1. pt_af_examples ( PTAFExampleUtils.c )
  2. pt_af_examples ( PTAFExampleUtils.c )
  3. pt_af_examples ( PTAFExampleUtils.c )
  4. pt_af_examples ( PTAFExampleUtils.c )
  5. pt_af_examples ( PTAFExampleUtils.c )
  6. pt_af_examples ( PTMfgTemplateBOM.c )
  7. pt_af_examples ( PTMfgTemplateBOM.c )
  8. pt_af_examples ( PTMfgTemplateBOM.c )
  9. pt_af_examples ( PTMfgTemplateBOM.c )
  10. pt_af_examples ( PTMfgTemplateBOM.c )
  11. pt_af_examples ( PTMfgTemplateBOM.c )
  12. pt_async ( TestAsync.c )
  13. pt_async ( TestAsync.c )
  14. pt_examples ( TestAnalysis.c )
  15. pt_examples ( TestAnalysis.c )
  16. pt_examples ( TestAnalysis.c )
  17. pt_examples ( TestAnalysis.c )
  18. pt_examples ( TestAsm.c )
  19. pt_examples ( TestAsm.c )
  20. pt_examples ( TestAsm.c )
  21. pt_examples ( TestAsm.c )
  22. pt_examples ( TestAsm.c )
  23. pt_examples ( TestAsm.c )
  24. pt_examples ( TestDrag.c )
  25. pt_examples ( TestExtref.c )
  26. pt_examples ( TestExtref.c )
  27. pt_examples ( TestImm.c )
  28. pt_examples ( TestImm.c )
  29. pt_examples ( TestMechanism.c )
  30. pt_examples ( TestMoldbase.c )
  31. pt_examples ( TestMoldbase.c )
  32. pt_examples ( TestMoldbase.c )
  33. pt_examples ( TestMoldbase.c )
  34. pt_examples ( TestMoldbase.c )
  35. pt_examples ( TestProcstep.c )
  36. pt_examples ( TestProcstep.c )
  37. pt_examples ( TestProcstep.c )
  38. pt_examples ( TestProcstep.c )
  39. pt_examples ( TestProcstep.c )
  40. pt_examples ( TestProcstep.c )
  41. pt_examples ( TestProcstep.c )
  42. pt_examples ( TestSkelet.c )
  43. pt_examples ( TestWeld.c )
  44. pt_examples ( TestWeld.c )
  45. pt_examples ( TestWeld.c )
  46. pt_examples ( TestConfig.c )
  47. pt_examples ( TestConfig.c )
  48. pt_examples ( TestConfig.c )
  49. pt_examples ( TestConfig.c )
  50. pt_examples ( TestDbms.c )
  51. pt_examples ( TestDbms.c )
  52. pt_examples ( TestDbms.c )
  53. pt_examples ( TestDbms.c )
  54. pt_examples ( TestDbms.c )
  55. pt_examples ( TestDbms.c )
  56. pt_examples ( TestDbms.c )
  57. pt_examples ( TestDbms.c )
  58. pt_examples ( TestDbms.c )
  59. pt_examples ( TestDbms.c )
  60. pt_examples ( TestDbms.c )
  61. pt_examples ( TestDbms.c )
  62. pt_examples ( TestDbms.c )
  63. pt_examples ( TestDbms.c )
  64. pt_examples ( TestDbms.c )
  65. pt_examples ( TestDbms.c )
  66. pt_examples ( TestDimension.c )
  67. pt_examples ( TestDimension.c )
  68. pt_examples ( TestDimension.c )
  69. pt_examples ( TestGeomdata.c )
  70. pt_examples ( TestImportfeat.c )
  71. pt_examples ( TestInterface.c )
  72. pt_examples ( TestInterface.c )
  73. pt_examples ( TestSolid.c )
  74. pt_examples ( TestExtobj.c )
  75. pt_examples ( TestExtobj.c )
  76. pt_examples ( TestFamTab.c )
  77. pt_examples ( TestFamTab.c )
  78. pt_examples ( TestFamTab.c )
  79. pt_examples ( TestFamTab.c )
  80. pt_examples ( TestFamTab.c )
  81. pt_examples ( UtilFeats.c )
  82. pt_examples ( UtilFeats.c )
  83. pt_examples ( TestGeneRandom.c )
  84. pt_examples ( TestGenedata.c )
  85. pt_examples ( TestGenedata.c )
  86. pt_examples ( TestGenedata.c )
  87. pt_examples ( TestGenedata.c )
  88. pt_examples ( TestGenedata.c )
  89. pt_examples ( TestExport.c )
  90. pt_examples ( TestExport.c )
  91. pt_examples ( TestGeom.c )
  92. pt_examples ( TestGeom.c )
  93. pt_examples ( TestGeom.c )
  94. pt_examples ( TestGeom.c )
  95. pt_examples ( TestGeom.c )
  96. pt_examples ( TestGeom.c )
  97. pt_examples ( TestGeom.c )
  98. pt_examples ( TestSmtlSurf.c )
  99. pt_examples ( TestXsec.c )
  100. pt_examples ( TestXsec.c )
  101. pt_examples ( TestDrawTbl.c )
  102. pt_examples ( TestDrawTbl.c )
  103. pt_examples ( TestDrawTbl.c )
  104. pt_examples ( TestDrwInfo.c )
  105. pt_examples ( TestDrwInfo.c )
  106. pt_examples ( TestDrwInfo.c )
  107. pt_examples ( TestDrwInfo.c )
  108. pt_examples ( TestDrwInfo.c )
  109. pt_examples ( TestDrwInfo.c )
  110. pt_examples ( TestDrwSimprep.c )
  111. pt_examples ( TestDrwSimprep.c )
  112. pt_examples ( TestDrwView.c )
  113. pt_examples ( TestDrwView.c )
  114. pt_examples ( TestDrwView.c )
  115. pt_examples ( TestDrwView.c )
  116. pt_examples ( TestDtlentity.c )
  117. pt_examples ( TestDtlgroup.c )
  118. pt_examples ( TestDtlnote.c )
  119. pt_examples ( TestDtlnote.c )
  120. pt_examples ( TestDtlnote.c )
  121. pt_examples ( TestDtlnote.c )
  122. pt_examples ( TestDtlsyminst.c )
  123. pt_examples ( TestDtlsyminst.c )
  124. pt_examples ( TestDtlsyminst.c )
  125. pt_examples ( TestDtlsyminst.c )
  126. pt_examples ( TestLayer.c )
  127. pt_examples ( TestLayer.c )
  128. pt_examples ( TestLayer.c )
  129. pt_examples ( TestLinestyle.c )
  130. pt_examples ( TestLinestyle.c )
  131. pt_examples ( TestLinestyle.c )
  132. pt_examples ( TestLinestyle.c )
  133. pt_examples ( TestLinestyle.c )
  134. pt_examples ( TestLinestyle.c )
  135. pt_examples ( TestSymDefMenu.c )
  136. pt_examples ( TestSymDefMenu.c )
  137. pt_examples ( TestSymDefMenu.c )
  138. pt_examples ( TestSymDefMenu.c )
  139. pt_examples ( TestText.c )
  140. pt_examples ( TestView.c )
  141. pt_examples ( TestView.c )
  142. pt_examples ( TestView.c )
  143. pt_examples ( TestView.c )
  144. pt_examples ( TestWindow.c )
  145. pt_examples ( TestMain.c )
  146. pt_examples ( TestMain.c )
  147. pt_examples ( TestMain.c )
  148. pt_examples ( TestMenu.c )
  149. pt_examples ( TestMessage.c )
  150. pt_examples ( TestCavityLayout.c )
  151. pt_examples ( TestCavityLayout.c )
  152. pt_examples ( TestCavityLayout.c )
  153. pt_examples ( TestCavityLayout.c )
  154. pt_examples ( TestCavityLayout.c )
  155. pt_examples ( TestCavityLayout.c )
  156. pt_examples ( TestClCmd.c )
  157. pt_examples ( TestClCmd.c )
  158. pt_examples ( TestMfgOper.c )
  159. pt_examples ( TestMoldLayout.c )
  160. pt_examples ( TestMoldLayout.c )
  161. pt_examples ( TestMoldLayout.c )
  162. pt_examples ( TestMoldLayout.c )
  163. pt_examples ( TestRoute.c )
  164. pt_examples ( TestTool.c )
  165. pt_examples ( TestTool.c )
  166. pt_examples ( UtilMfgNew.c )
  167. pt_examples ( TestMisc.c )
  168. pt_examples ( TestMisc.c )
  169. pt_examples ( TestMisc.c )
  170. pt_examples ( TestNotify.c )
  171. pt_examples ( TestNotify.c )
  172. pt_examples ( TestNotify.c )
  173. pt_examples ( TestNotify.c )
  174. pt_examples ( TestNotify.c )
  175. pt_examples ( TestNotify.c )
  176. pt_examples ( TestNotify.c )
  177. pt_examples ( TestNotify.c )
  178. pt_examples ( TestNotify.c )
  179. pt_examples ( TestNotify.c )
  180. pt_examples ( TestNotify.c )
  181. pt_examples ( TestNotify.c )
  182. pt_examples ( TestNotify.c )
  183. pt_examples ( TestNotify.c )
  184. pt_examples ( TestNotify.c )
  185. pt_examples ( TestNotify.c )
  186. pt_examples ( TestNotify.c )
  187. pt_examples ( TestNotify.c )
  188. pt_examples ( TestNotify.c )
  189. pt_examples ( TestNotify.c )
  190. pt_examples ( TestNotify.c )
  191. pt_examples ( TestNotify.c )
  192. pt_examples ( TestNotify.c )
  193. pt_examples ( TestNotify.c )
  194. pt_examples ( TestNotify.c )
  195. pt_examples ( TestNotify.c )
  196. pt_examples ( TestNotify.c )
  197. pt_examples ( TestNotify.c )
  198. pt_examples ( TestNotify.c )
  199. pt_examples ( TestNotify.c )
  200. pt_examples ( TestNotify.c )
  201. pt_examples ( TestNotify.c )
  202. pt_examples ( TestGtol.c )
  203. pt_examples ( TestGtol.c )
  204. pt_examples ( TestGtol.c )
  205. pt_examples ( TestGtol.c )
  206. pt_examples ( TestGtol.c )
  207. pt_examples ( TestGtol.c )
  208. pt_examples ( TestGtol.c )
  209. pt_examples ( TestGtol.c )
  210. pt_examples ( TestGtol.c )
  211. pt_examples ( TestParams.c )
  212. pt_examples ( TestParams.c )
  213. pt_examples ( TestParams.c )
  214. pt_examples ( TestParams.c )
  215. pt_examples ( TestParams.c )
  216. pt_examples ( TestParams.c )
  217. pt_examples ( TestParams.c )
  218. pt_examples ( TestParams.c )
  219. pt_examples ( TestParams.c )
  220. pt_examples ( TestRelation.c )
  221. pt_examples ( TestRelation.c )
  222. pt_examples ( TestRelation.c )
  223. pt_examples ( TestRelation.c )
  224. pt_examples ( TestRelation.c )
  225. pt_examples ( TestSetup.c )
  226. pt_examples ( TestSetup.c )
  227. pt_examples ( TestPartMaterial.c )
  228. pt_examples ( TestSecerr.c )
  229. pt_examples ( TestSect.c )
  230. pt_examples ( UtilSect.c )
  231. pt_examples ( UtilSect.c )
  232. pt_examples ( UtilSect.c )
  233. pt_examples ( UtilSect.c )
  234. pt_examples ( UtilSect.c )
  235. pt_examples ( TestSelect.c )
  236. pt_examples ( TestSelect.c )
  237. pt_examples ( TestSelect.c )
  238. pt_examples ( TestSelect.c )
  239. pt_examples ( TestSelect.c )
  240. pt_examples ( TestSelect.c )
  241. pt_examples ( TestSelect.c )
  242. pt_examples ( TestSimpRep.c )
  243. pt_examples ( TestSimpRep.c )
  244. pt_examples ( TestSimpRep.c )
  245. pt_examples ( TestSimpRep.c )
  246. pt_examples ( TestSimpRep.c )
  247. pt_examples ( TestCollect.c )
  248. pt_examples ( TestCollect.c )
  249. pt_examples ( TestCollect.c )
  250. pt_examples ( TestCollect.c )
  251. pt_examples ( TestCollect.c )
  252. pt_examples ( TestCollect.c )
  253. pt_examples ( TestCollect.c )
  254. pt_examples ( TestCollect.c )
  255. pt_examples ( TestCollect.c )
  256. pt_examples ( TestCollect.c )
  257. pt_examples ( UtilFiles.c )
  258. pt_examples ( UtilMenu.c )
  259. pt_examples ( UtilMenu.c )
  260. pt_examples ( UtilMenu.c )
  261. pt_examples ( UtilMessage.c )
  262. pt_examples ( UtilNames.c )
  263. pt_examples ( UtilNames.c )
  264. pt_examples ( UtilString.c )
  265. pt_examples ( UtilString.c )
  266. pt_examples ( UtilString.c )
  267. pt_examples ( UtilString.c )
  268. pt_examples ( UtilString.c )
  269. pt_examples ( UtilString.c )
  270. pt_examples ( UtilString.c )
  271. pt_examples ( UtilString.c )
  272. pt_examples ( UtilString.c )
  273. pt_examples ( UtilTree.c )
  274. pt_examples ( UtilTree.c )
  275. pt_examples ( UtilVisit.c )
  276. pt_examples ( UtilVisit.c )
  277. pt_examples ( UtilVisit.c )
  278. pt_examples ( UtilVisit.c )
  279. pt_geardesign ( GearDesignUI.c )
  280. pt_geardesign ( GearDesignUI.c )
  281. pt_install_cxx ( TestInstall.cxx )
  282. pt_install_cxx ( TestInstall.cxx )
  283. pt_install_test ( TestInstall.c )
  284. pt_install_test ( TestInstall.c )
  285. pt_mech_examples ( PTMechExItemInfo.c )
  286. pt_mech_examples ( PTMechExItemInfo.c )
  287. pt_mech_examples ( PTMechExItemInfo.c )
  288. pt_mech_examples ( PTMechExItemInfo.c )
  289. pt_mech_examples ( PTMechExItemInfo.c )
  290. pt_mech_examples ( PTMechExItemInfo.c )
  291. pt_mech_examples ( PTMechExItemInfo.c )
  292. pt_mech_examples ( PTMechExItemInfo.c )
  293. pt_mech_examples ( PTMechExItemInfo.c )
  294. pt_mech_examples ( PTMechExItemInfo.c )
  295. pt_mech_examples ( PTMechExItemInfo.c )
  296. pt_mech_examples ( PTMechExMagChange.c )
  297. pt_mech_examples ( PTMechExMagChange.c )
  298. pt_mech_examples ( PTMechExMagChange.c )
  299. pt_mech_examples ( PTMechExMagChange.c )
  300. pt_mech_examples ( PTMechExUtils.c )
  301. pt_mech_examples ( PTMechExUtils.c )
  302. pt_mech_examples ( PTMechExUtils.c )
  303. pt_mfg_proctable ( PTMfgProcTable.c )
  304. pt_mfg_proctable ( PTMfgProcTable.c )
  305. pt_mfg_proctable ( PTMfgProcTable.c )
  306. pt_mfg_proctable ( PTMfgProcTable.c )
  307. pt_udf_examples ( PTUDFExParamInfo.c )
  308. pt_udf_examples ( PTUDFExParamInfo.c )
  309. pt_udf_examples ( PTUDFExParamInfo.c )
  310. pt_udf_examples ( PTUDFExParamInfo.c )
  311. pt_udf_examples ( PTUDFExParamInfo.c )
  312. pt_udf_examples ( PTUDFExParamInfo.c )
  313. pt_udf_examples ( PTUDFExParamInfo.c )
  314. pt_udf_examples ( PTUDFExParamInfo.c )
  315. pt_udf_examples ( PTUDFExParamInfo.c )
  316. pt_udf_examples ( PTUDFExParamInfo.c )
  317. pt_udf_examples ( PTUDFExParamInfo.c )
  318. pt_udf_examples ( PTUDFExParamInfo.c )
  319. pt_udf_examples ( PTUDFExParamVerify.c )
  320. pt_udf_examples ( PTUDFExParamVerify.c )
  321. pt_udf_examples ( PTUDFExParamVerify.c )
  322. pt_userguide ( UgAsmCompVisit.c )
  323. pt_userguide ( UgAsmCompVisit.c )
  324. pt_userguide ( UgAsmCompVisit.c )
  325. pt_userguide ( UgAsmCompVisit.c )
  326. pt_userguide ( UgAsmcompConstraint.c )
  327. pt_userguide ( UgAsmcompConstraint.c )
  328. pt_userguide ( UgAsmcompConstraint.c )
  329. pt_userguide ( UgAsmcompTransfGet.c )
  330. pt_userguide ( UgDatumCreate.c )
  331. pt_userguide ( UgDrawingSheets.c )
  332. pt_userguide ( UgDrawingSheets.c )
  333. pt_userguide ( UgDrawingViews.c )
  334. pt_userguide ( UgDrawingViews.c )
  335. pt_userguide ( UgDrawingViews.c )
  336. pt_userguide ( UgDrawingViews.c )
  337. pt_userguide ( UgDtlnoteExamples.c )
  338. pt_userguide ( UgDtlsymdefExamples.c )
  339. pt_userguide ( UgDtlsymdefExamples.c )
  340. pt_userguide ( UgDwgtableExamples.c )
  341. pt_userguide ( UgDwgtableExamples.c )
  342. pt_userguide ( UgDwgtableExamples.c )
  343. pt_userguide ( UgDwgtableExamples.c )
  344. pt_userguide ( UgModelAdd.c )
  345. pt_userguide ( UgModelDelete.c )
  346. pt_userguide ( UgSheetsList.c )
  347. pt_userguide ( UgSheetsList.c )
  348. pt_userguide ( UgExtAnalysisSurfcsys.c )
  349. pt_userguide ( Ug3DSection.c )
  350. pt_userguide ( UgCreoSweepCreate.c )
  351. pt_userguide ( UgCreoSweepCreate.c )
  352. pt_userguide ( UgSectModelCreate.c )
  353. pt_userguide ( UgSktFirstFeatureCreate.c )
  354. pt_userguide ( UgSktFirstFeatureRevCreate.c )
  355. pt_userguide ( UgFundStringConv.c )
  356. pt_userguide ( UgFundStringConv.c )
  357. pt_userguide ( UgFundVisit.c )
  358. pt_userguide ( UgGeomInterferCheck.c )
  359. pt_userguide ( UgGeomInterferCheck.c )
  360. pt_userguide ( UgGeomInterferCheck.c )
  361. pt_userguide ( UgGeomInterferCheck.c )
  362. pt_userguide ( UgGeomInterferCheck.c )
  363. pt_userguide ( UgGeomSurfRename.c )
  364. pt_userguide ( UgInterfaceExport.c )
  365. pt_userguide ( UgInterfaceExport.c )
  366. pt_userguide ( UgPlotSetup.c )
  367. pt_userguide ( UgREADME.c )
  368. pt_userguide ( UgREADME.c )
  369. pt_userguide ( UgMenuConfirmGet.c )
  370. pt_userguide ( UgNavigatorPane.c )
  371. pt_userguide ( UgNavigatorPane.c )
  372. pt_userguide ( UgNavigatorPane.c )
  373. pt_userguide ( UgNavigatorPane.c )
  374. pt_userguide ( UgNavigatorPane.c )
  375. pt_userguide ( UgNavigatorPane.c )
  376. pt_userguide ( UgMessageWindowUse.c )
  377. pt_userguide ( UgMfgMillSeqCreate.c )
  378. pt_userguide ( UgMfgMillSeqCreate.c )
  379. pt_userguide ( UgMfgMillSeqCreate.c )
  380. pt_userguide ( UgMfgMillSeqCreate.c )
  381. pt_userguide ( UgMfgMillSeqCreate.c )
  382. pt_userguide ( UgMfgMillSeqCreate.c )
  383. pt_userguide ( UgModelLayerCreate.c )
  384. pt_userguide ( UgPlotUse.c )
  385. pt_userguide ( UgUIListImplement.c )
  386. pt_userguide ( UgUISlider.c )
  387. pt_userguide ( UgUISlider.c )
  388. pt_userguide ( UgFileEdit.c )
  389. pt_userguide ( UgFileEdit.c )
  390. pt_userguide ( UgUtilFile.c )
  391. pt_userguide ( UgUtilFile.c )
  392. pt_userguide ( UgUtilFile.c )
  393. pt_userguide ( UgWeld.c )
  394. pt_userguide ( UgWeld.c )
  395. pt_userguide ( UgWeld.c )
  396. pt_userguide ( UgWeld.c )
  397. pt_userguide ( UgXsecList.c )
  398. pt_userguide ( UgXsecList.c )
  399. pt_userguide ( UgXsecList.c )
  400. pt_userguide ( UgXsecList.c )
  401. pt_userguide ( UgXsecList.c )
  402. pt_wc_server ( PTWCServerUtils.c )
  403. pt_wc_server ( PTWCServerUtils.c )