{"id":388,"date":"2015-06-16T09:54:47","date_gmt":"2015-06-16T16:54:47","guid":{"rendered":"http:\/\/www.icetips.com\/blog_wp\/?p=388"},"modified":"2015-06-27T14:29:43","modified_gmt":"2015-06-27T21:29:43","slug":"using-icetips-utilities-in-hand-coded-projects","status":"publish","type":"post","link":"http:\/\/www.icetips.com\/blog_wp\/2015\/06\/16\/using-icetips-utilities-in-hand-coded-projects\/","title":{"rendered":"Using Icetips Utilities in hand coded projects"},"content":{"rendered":"<p>I do quite a bit of small hand coded test projects. Usually just a few lines of code to test some code or concept. \u00a0One of the things I like to do is add the Icetips Utilities to those projects so I can use methods like ODS (OutputDebugString)<\/p>\n<p>Below I go through the steps and at the bottom is a short video of the whole process (1 minute, 31 seconds)<\/p>\n<p>To create a small project like that you need to create a project using the \"Win32 EXE\" option when you create the solution.<\/p>\n<figure id=\"attachment_390\" aria-describedby=\"caption-attachment-390\" style=\"width: 540px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/2015\/06\/CreateNewSolution.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-390 size-full\" src=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/2015\/06\/CreateNewSolution.png\" alt=\"CreateNewSolution\" width=\"540\" height=\"542\" srcset=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/2015\/06\/CreateNewSolution.png 540w, http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/2015\/06\/CreateNewSolution-150x150.png 150w, http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/2015\/06\/CreateNewSolution-300x300.png 300w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/a><figcaption id=\"caption-attachment-390\" class=\"wp-caption-text\">Creating a new source solution in Clarion 10<\/figcaption><\/figure>\n<p>I also always uncheck the \"Auto create project subdir\" as I have normally create the folder before I create the solution, but if you haven't check this and it will create a sub folder with the name of the project.<\/p>\n<p>The next step is to change the project settings. \u00a0In the Solution Explorer right click on the project node and select \"Properties\" from the popup menu.<\/p>\n<figure id=\"attachment_392\" aria-describedby=\"caption-attachment-392\" style=\"width: 455px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/2015\/06\/Clarion10OpenProjectProperties.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-392 size-full\" src=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/2015\/06\/Clarion10OpenProjectProperties.png\" alt=\"Clarion10OpenProjectProperties\" width=\"455\" height=\"521\" srcset=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/2015\/06\/Clarion10OpenProjectProperties.png 455w, http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/2015\/06\/Clarion10OpenProjectProperties-262x300.png 262w\" sizes=\"auto, (max-width: 455px) 100vw, 455px\" \/><\/a><figcaption id=\"caption-attachment-392\" class=\"wp-caption-text\">Opening the Project Properties in Clarion 10<\/figcaption><\/figure>\n<p>In the project properties, select the \"Compiling\" tab and in the \"Conditional Compilation Symbols\" enter:<\/p>\n<pre><span style=\"font-size: 12pt;\">_ABCDllMode_=&gt;0;_ABCLinkMode_=&gt;1;_ITUtilDllMode_=&gt;0;_ITUtilLinkMode_=&gt;1<\/span><\/pre>\n<figure id=\"attachment_389\" aria-describedby=\"caption-attachment-389\" style=\"width: 797px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/2015\/06\/Clarion10SetProjectProperties.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-389 size-full\" src=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/2015\/06\/Clarion10SetProjectProperties.png\" alt=\"Clarion10SetProjectProperties\" width=\"797\" height=\"443\" srcset=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/2015\/06\/Clarion10SetProjectProperties.png 797w, http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/2015\/06\/Clarion10SetProjectProperties-300x167.png 300w\" sizes=\"auto, (max-width: 797px) 100vw, 797px\" \/><\/a><figcaption id=\"caption-attachment-389\" class=\"wp-caption-text\">Setting Conditional Compile Symbols in Clarion 10<\/figcaption><\/figure>\n<p>This will compile both the ABC classes and the Icetips Utility classes. \u00a0Note that this setting is for an EXE. \u00a0If you are compiling a DLL, then you need to switch\u00a0the 0 and 1 in the settings above.<\/p>\n<p>The first thing you need to do is to include the main header file:<\/p>\n<pre><span style=\"font-size: 12pt;\">  INCLUDE('ITUtilityClass.inc'),ONCE<\/span><\/pre>\n<p>I do this above the MAP statement.<\/p>\n<p>Now you\u00a0can use any code from the Icetips Utilities in your project. \u00a0For example:<\/p>\n<pre><span style=\"font-size: 12pt;\">ITU ITUtilityClass<\/span>\r\n<span style=\"font-size: 12pt;\"> CODE<\/span>\r\n<span style=\"font-size: 12pt;\"> MESSAGE('Icetips Utilities: ' &amp; ITU.EXEName)<\/span><\/pre>\n<p>In the video below (no sound) go through each of the steps to make this happen:<\/p>\n<div style=\"width: 625px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-388-1\" width=\"625\" height=\"401\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/2015\/06\/IcetipsUtilitiesInHandCoded.mp4?_=1\" \/><a href=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/2015\/06\/IcetipsUtilitiesInHandCoded.mp4\">http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/2015\/06\/IcetipsUtilitiesInHandCoded.mp4<\/a><\/video><\/div>\n<p>I hope this may help some of you to use the power of the Icetips Utilities in your source projects \ud83d\ude42<\/p>\n<p><em>Arnor Baldvinsson<\/em><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_388\" class=\"pvc_stats all  \" data-element-id=\"388\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I do quite a bit of small hand coded test projects. Usually just a few lines of code to test some code or concept. \u00a0One of the things I like to do is add the Icetips Utilities to those projects so I can use methods like ODS (OutputDebugString) Below I go through the steps and <a href=\"http:\/\/www.icetips.com\/blog_wp\/2015\/06\/16\/using-icetips-utilities-in-hand-coded-projects\/\" class=\"more-link\">...continue reading <span class=\"screen-reader-text\">Using Icetips Utilities in hand coded projects<\/span><\/a><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_388\" class=\"pvc_stats all  \" data-element-id=\"388\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[17,8,4,5],"tags":[198,208,207,25],"class_list":["post-388","post","type-post","status-publish","format-standard","hentry","category-clarion-10","category-faq","category-products","category-technical","tag-clarion-10","tag-project-properties","tag-source-projects","tag-utilities"],"_links":{"self":[{"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/posts\/388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/comments?post=388"}],"version-history":[{"count":4,"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/posts\/388\/revisions"}],"predecessor-version":[{"id":424,"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/posts\/388\/revisions\/424"}],"wp:attachment":[{"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/media?parent=388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/categories?post=388"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/tags?post=388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}