<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/class-problem/m-p/328946#M41998</link>
    <description>Jeroen,&lt;BR /&gt;
&lt;BR /&gt;
In any C++ book or in the C++ help!&lt;BR /&gt;
&lt;BR /&gt;
You can format the string prior to output using this option!&lt;BR /&gt;
e.g.&lt;BR /&gt;
sprintf("\n%-35s %s %10.2f", temp, comma, total);&lt;BR /&gt;
&lt;BR /&gt;
Note the "-" for justification!&lt;BR /&gt;
&lt;BR /&gt;
Have fun!&lt;BR /&gt;
&lt;BR /&gt;
Gary&lt;BR /&gt;
www.drcauto.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Jeroen Henckaerts" &lt;JEROEN.HENCKAERTS&gt; wrote in&lt;BR /&gt;
message news:7BD33EC91F81C5416436DE6399ACB44C@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; "Gary D'Arcy" &lt;GARYD&gt; wrote in&lt;BR /&gt;
&amp;gt; news:FA3CD034B5B08DD4528839E0FFA5557A@in.WebX.maYIadrTaRb:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks a lot!&lt;BR /&gt;
&amp;gt; Where can I find these format options??&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; regards,&lt;BR /&gt;
&amp;gt; jeroen&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Jeroen,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; acutPrintf("\n  - double value:  %2.4f", ActiveTest.getdVal());&lt;BR /&gt;
&amp;gt; &amp;gt; or a whole range of format options the .4 is the number of decimal&lt;BR /&gt;
&amp;gt; &amp;gt; places.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; You should also initialise dVal = 0.0;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Regards Gary,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; hold your light, Eleven&lt;/GARYD&gt;&lt;/JEROEN.HENCKAERTS&gt;</description>
    <pubDate>Thu, 07 Mar 2002 07:32:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2002-03-07T07:32:30Z</dc:date>
    <item>
      <title>class-problem</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/class-problem/m-p/328943#M41995</link>
      <description>hello,&lt;BR /&gt;
&lt;BR /&gt;
I created a simple class "Test", with 2 member variables: an integer and &lt;BR /&gt;
a double. When I want to get the information back from a class member, &lt;BR /&gt;
the double value always turns out to be 0.&lt;BR /&gt;
Does anyone know what I do wrong??&lt;BR /&gt;
(when I do the same in a simple c++ program, it works fine...)&lt;BR /&gt;
&lt;BR /&gt;
class Test&lt;BR /&gt;
{&lt;BR /&gt;
public:&lt;BR /&gt;
	Test() { iVal = 0; \&lt;BR /&gt;
		dVal = 0; }&lt;BR /&gt;
	Test(int newI, double newD) { iVal = newI; \&lt;BR /&gt;
		dVal = newD; }&lt;BR /&gt;
	~Test() {}&lt;BR /&gt;
	void setiVal (int newI) { iVal = newI; }&lt;BR /&gt;
	void setdVal (double newD) { dVal = newD; }&lt;BR /&gt;
	int getiVal () { return iVal; }&lt;BR /&gt;
	double getdVal () { return dVal; }&lt;BR /&gt;
private:&lt;BR /&gt;
	int iVal;&lt;BR /&gt;
	double dVal;&lt;BR /&gt;
};&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
void CreateAndReadTest()&lt;BR /&gt;
{&lt;BR /&gt;
	Test NewTest(5, 5.8);&lt;BR /&gt;
&lt;BR /&gt;
	acutPrintf("\n *** New Test Parameters ***");&lt;BR /&gt;
	acutPrintf("\n  - integer value: %i", ActiveTest.getiVal());&lt;BR /&gt;
    	    	// gives the correct info&lt;BR /&gt;
&lt;BR /&gt;
	acutPrintf("\n  - double value:  %d", ActiveTest.getdVal());&lt;BR /&gt;
    	    	// always gives zero...&lt;BR /&gt;
&lt;BR /&gt;
    	return;&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
hold your light, Eleven</description>
      <pubDate>Thu, 07 Mar 2002 05:51:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/class-problem/m-p/328943#M41995</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-03-07T05:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: class-problem</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/class-problem/m-p/328944#M41996</link>
      <description>Jeroen,&lt;BR /&gt;
&lt;BR /&gt;
acutPrintf("\n  - double value:  %2.4f", ActiveTest.getdVal());&lt;BR /&gt;
or a whole range of format options the .4 is the number of decimal places.&lt;BR /&gt;
&lt;BR /&gt;
You should also initialise dVal = 0.0;&lt;BR /&gt;
&lt;BR /&gt;
Regards Gary,&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Jeroen Henckaerts" &lt;JEROEN.HENCKAERTS&gt; wrote in&lt;BR /&gt;
message news:B22C84EB64216A03304331F11402761F@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; hello,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I created a simple class "Test", with 2 member variables: an integer and&lt;BR /&gt;
&amp;gt; a double. When I want to get the information back from a class member,&lt;BR /&gt;
&amp;gt; the double value always turns out to be 0.&lt;BR /&gt;
&amp;gt; Does anyone know what I do wrong??&lt;BR /&gt;
&amp;gt; (when I do the same in a simple c++ program, it works fine...)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; class Test&lt;BR /&gt;
&amp;gt; {&lt;BR /&gt;
&amp;gt; public:&lt;BR /&gt;
&amp;gt; Test() { iVal = 0; \&lt;BR /&gt;
&amp;gt; dVal = 0; }&lt;BR /&gt;
&amp;gt; Test(int newI, double newD) { iVal = newI; \&lt;BR /&gt;
&amp;gt; dVal = newD; }&lt;BR /&gt;
&amp;gt; ~Test() {}&lt;BR /&gt;
&amp;gt; void setiVal (int newI) { iVal = newI; }&lt;BR /&gt;
&amp;gt; void setdVal (double newD) { dVal = newD; }&lt;BR /&gt;
&amp;gt; int getiVal () { return iVal; }&lt;BR /&gt;
&amp;gt; double getdVal () { return dVal; }&lt;BR /&gt;
&amp;gt; private:&lt;BR /&gt;
&amp;gt; int iVal;&lt;BR /&gt;
&amp;gt; double dVal;&lt;BR /&gt;
&amp;gt; };&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; void CreateAndReadTest()&lt;BR /&gt;
&amp;gt; {&lt;BR /&gt;
&amp;gt; Test NewTest(5, 5.8);&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; acutPrintf("\n *** New Test Parameters ***");&lt;BR /&gt;
&amp;gt; acutPrintf("\n  - integer value: %i", ActiveTest.getiVal());&lt;BR /&gt;
&amp;gt;         // gives the correct info&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; acutPrintf("\n  - double value:  %d", ActiveTest.getdVal());&lt;BR /&gt;
&amp;gt;         // always gives zero...&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     return;&lt;BR /&gt;
&amp;gt; }&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; hold your light, Eleven&lt;/JEROEN.HENCKAERTS&gt;</description>
      <pubDate>Thu, 07 Mar 2002 06:19:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/class-problem/m-p/328944#M41996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-03-07T06:19:57Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/class-problem/m-p/328945#M41997</link>
      <description>"Gary D'Arcy" &lt;GARYD&gt; wrote in&lt;BR /&gt;
news:FA3CD034B5B08DD4528839E0FFA5557A@in.WebX.maYIadrTaRb: &lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot!&lt;BR /&gt;
Where can I find these format options??&lt;BR /&gt;
&lt;BR /&gt;
regards,&lt;BR /&gt;
jeroen&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Jeroen,&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; acutPrintf("\n  - double value:  %2.4f", ActiveTest.getdVal());&lt;BR /&gt;
&amp;gt; or a whole range of format options the .4 is the number of decimal&lt;BR /&gt;
&amp;gt; places. &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; You should also initialise dVal = 0.0;&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Regards Gary,&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
hold your light, Eleven&lt;/GARYD&gt;</description>
      <pubDate>Thu, 07 Mar 2002 06:48:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/class-problem/m-p/328945#M41997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-03-07T06:48:56Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/class-problem/m-p/328946#M41998</link>
      <description>Jeroen,&lt;BR /&gt;
&lt;BR /&gt;
In any C++ book or in the C++ help!&lt;BR /&gt;
&lt;BR /&gt;
You can format the string prior to output using this option!&lt;BR /&gt;
e.g.&lt;BR /&gt;
sprintf("\n%-35s %s %10.2f", temp, comma, total);&lt;BR /&gt;
&lt;BR /&gt;
Note the "-" for justification!&lt;BR /&gt;
&lt;BR /&gt;
Have fun!&lt;BR /&gt;
&lt;BR /&gt;
Gary&lt;BR /&gt;
www.drcauto.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Jeroen Henckaerts" &lt;JEROEN.HENCKAERTS&gt; wrote in&lt;BR /&gt;
message news:7BD33EC91F81C5416436DE6399ACB44C@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; "Gary D'Arcy" &lt;GARYD&gt; wrote in&lt;BR /&gt;
&amp;gt; news:FA3CD034B5B08DD4528839E0FFA5557A@in.WebX.maYIadrTaRb:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks a lot!&lt;BR /&gt;
&amp;gt; Where can I find these format options??&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; regards,&lt;BR /&gt;
&amp;gt; jeroen&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Jeroen,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; acutPrintf("\n  - double value:  %2.4f", ActiveTest.getdVal());&lt;BR /&gt;
&amp;gt; &amp;gt; or a whole range of format options the .4 is the number of decimal&lt;BR /&gt;
&amp;gt; &amp;gt; places.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; You should also initialise dVal = 0.0;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Regards Gary,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; hold your light, Eleven&lt;/GARYD&gt;&lt;/JEROEN.HENCKAERTS&gt;</description>
      <pubDate>Thu, 07 Mar 2002 07:32:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/class-problem/m-p/328946#M41998</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-03-07T07:32:30Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/class-problem/m-p/328947#M41999</link>
      <description>"Gary D'Arcy" &lt;GARYD&gt; wrote in &lt;BR /&gt;
news:9911307A5FCBAD66BB6DE8F3823E63A6@in.WebX.maYIadrTaRb:&lt;BR /&gt;
&lt;BR /&gt;
Thanks again. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
in a program that's not arx I always use "cout", and so did my c++ course, &lt;BR /&gt;
that's why I'm not familiar to these notations...&lt;BR /&gt;
&lt;BR /&gt;
greetz,&lt;BR /&gt;
jeroen&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Jeroen,&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; In any C++ book or in the C++ help!&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; You can format the string prior to output using this option!&lt;BR /&gt;
&amp;gt; e.g.&lt;BR /&gt;
&amp;gt; sprintf("\n%-35s %s %10.2f", temp, comma, total);&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Note the "-" for justification!&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Have fun!&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Gary&lt;BR /&gt;
&amp;gt; www.drcauto.com&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
hold your light, Eleven&lt;/GARYD&gt;</description>
      <pubDate>Thu, 07 Mar 2002 08:08:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/class-problem/m-p/328947#M41999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-03-07T08:08:27Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/class-problem/m-p/328948#M42000</link>
      <description>Even A C book will provide the info.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Gary D'Arcy" &lt;GARYD&gt; wrote in message&lt;BR /&gt;
news:9911307A5FCBAD66BB6DE8F3823E63A6@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Jeroen,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; In any C++ book or in the C++ help!&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; You can format the string prior to output using this option!&lt;BR /&gt;
&amp;gt; e.g.&lt;BR /&gt;
&amp;gt; sprintf("\n%-35s %s %10.2f", temp, comma, total);&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Note the "-" for justification!&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Have fun!&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Gary&lt;BR /&gt;
&amp;gt; www.drcauto.com&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Jeroen Henckaerts" &lt;JEROEN.HENCKAERTS&gt; wrote in&lt;BR /&gt;
&amp;gt; message news:7BD33EC91F81C5416436DE6399ACB44C@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; "Gary D'Arcy" &lt;GARYD&gt; wrote in&lt;BR /&gt;
&amp;gt; &amp;gt; news:FA3CD034B5B08DD4528839E0FFA5557A@in.WebX.maYIadrTaRb:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks a lot!&lt;BR /&gt;
&amp;gt; &amp;gt; Where can I find these format options??&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; regards,&lt;BR /&gt;
&amp;gt; &amp;gt; jeroen&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Jeroen,&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; acutPrintf("\n  - double value:  %2.4f", ActiveTest.getdVal());&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; or a whole range of format options the .4 is the number of decimal&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; places.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; You should also initialise dVal = 0.0;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Regards Gary,&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; hold your light, Eleven&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/GARYD&gt;&lt;/JEROEN.HENCKAERTS&gt;&lt;/GARYD&gt;</description>
      <pubDate>Fri, 08 Mar 2002 02:18:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/class-problem/m-p/328948#M42000</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-03-08T02:18:49Z</dc:date>
    </item>
  </channel>
</rss>

