 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; C++</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/development/c-plus-plus/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 14:35:25 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>C++ Question on Char*.</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/you-know-why-c-plus-plus-question-on-char/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/you-know-why-c-plus-plus-question-on-char/#comments</comments>
		<pubDate>Fri, 22 Jun 2012 14:08:43 +0000</pubDate>
		<dc:creator>Sirama</dc:creator>
				<category><![CDATA[C++]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Look at the code below: #include &#8220;stdafx.h&#8221; #include &#8220;conio.h&#8221; int _tmain(int argc, _TCHAR* argv[]) { //Snippet 1 char name[20] = "Some Name"; printf("%sn", name); name[1] = 'a'; printf("%sn", name); //Snippet 2 char * name2 = "Some Name"; printf("%sn", name2); name2[1] = 'a';                 //==&#62;Error Here printf("%sn", name2); getch(); [...]]]></description>
				<content:encoded><![CDATA[<p>Look at the code below:</p>
<div></div>
<div>#include &#8220;stdafx.h&#8221;</div>
<div>#include &#8220;conio.h&#8221;</div>
<div></div>
<div></div>
<div></div>
<pre>
<div>int _tmain(int argc, _TCHAR* argv[])</div>
<div>{</div>
<div>	//Snippet 1</div>
<div>	char name[20] = "Some Name";</div>
<div>	printf("%sn", name);</div>
<div>	name[1] = 'a';</div>
<div>	printf("%sn", name);</div>
<div></div>
<div>	//Snippet 2</div>
<div>	char * name2 = "Some Name";</div>
<div>	printf("%sn", name2);</div>
<div>	name2[1] = 'a';                 //==&gt;Error Here</div>
<div>	printf("%sn", name2);</div>
<div></div>
<div>	getch();</div>
<div>	return 0;</div>
<div>}</div>
</pre>
<div> </p>
<div></div>
<div> Why we get runtime error from code snippet2?</div>
</div>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/you-know-why-c-plus-plus-question-on-char/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Inventory App</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/inventory-app/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/inventory-app/#comments</comments>
		<pubDate>Fri, 22 Jun 2012 00:52:14 +0000</pubDate>
		<dc:creator>RiceCooker</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[If you can help me out with understanding this type of coding, I would really appreciate it. I took a couple of classes on C++, but it has been a while. Currently I&#8217;m new to Visual Basic. I work in a chemistry lab and I want to make an inventory serach application / database. I [...]]]></description>
				<content:encoded><![CDATA[<p>If you can help me out with understanding this type of coding, I would really appreciate it. I took a couple of classes on C++, but it has been a while. Currently I&#8217;m new to Visual Basic. I work in a chemistry lab and I want to make an inventory serach application / database. I don&#8217;t want to connect it to a server. I just want it to read from the files i have on my computer. </p>
<div></div>
<div>So lets say I wanted to look up an Organic Chemical or Inorganic Chemcial Category. For now lets just call it chemical X. I can either type it in or it will be in a drop down menu. Once I pick chemical X, it would bring up basic information about it. Such as the weight, boiling point, size, where it is stored, cost to purchase and location ect. </div>
<div></div>
<div></div>
<div>Thanks</div>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/inventory-app/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Why C/C++ over Java?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/why-c-c-plus-plus/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/why-c-c-plus-plus/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 11:27:13 +0000</pubDate>
		<dc:creator>Ankiet21</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[why we not go for java for every s/w why we use c c++ whether java is very much advance than these ?]]></description>
				<content:encoded><![CDATA[<p>why we not go for java for every s/w why we use c c++ whether java is very much advance than these ?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/why-c-c-plus-plus/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>what is relocatable loader and absolute loader?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/what-is-relocatable-loader-and-absolute-loader/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/what-is-relocatable-loader-and-absolute-loader/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 17:28:11 +0000</pubDate>
		<dc:creator>Rajeshu</dc:creator>
				<category><![CDATA[C programming]]></category>
		<category><![CDATA[C++]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Please explain me about the absolute loader and relocatable loader concepts. And  also suggest me some good source, either book or websites which will provide me core concepts of these loaders, so that I can use the knowledge gained, to implement these loader as a program.]]></description>
				<content:encoded><![CDATA[<p>Please explain me about the absolute loader and relocatable loader concepts.</p>
<p>And  also suggest me some good source, either book or websites which will provide me core concepts of these loaders, so that I can use the knowledge gained, to implement these loader as a program.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/what-is-relocatable-loader-and-absolute-loader/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Help needed in making firewall in either C or C++ language</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/help-needed-in-making-firewall-in-either-c-or-c-plus-plus-language-2/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/help-needed-in-making-firewall-in-either-c-or-c-plus-plus-language-2/#comments</comments>
		<pubDate>Fri, 08 Jul 2011 14:18:46 +0000</pubDate>
		<dc:creator>Vishalgoel003</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Firewall]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[project management standard]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[i have to make a program in C/C++ to be run Client pc(windows platform) for followings: 1. to block access to a site(s), either by drop down menu or user entered. 2. act as a url filter to block any url consisting any word from a given list, for example &#8220;Facebook&#8221; or a bad word. [...]]]></description>
				<content:encoded><![CDATA[<p>i have to make a program in C/C++ to be run Client pc(windows platform) for followings:<br />
1. to block access to a site(s), either by drop down menu or user entered.<br />
2. act as a url filter to block any url consisting any word from a given list, for example &#8220;Facebook&#8221; or a bad word.<br />
progress:<br />
for the problem #1 i have &#8220;C:windowssystem32driversetchosts&#8221; file i can block unblock any site using data file handling.<br />
I found a program for blocking a site on net which is in attached. for unblocking i will make my code.<br />
For the problem #2 i cannt get any clue to sort the problem! i searched for any system variable that cosists the url requested, so that i can search whether it contains any word in the provided list and block it. In reality i need to block url requested from all browsers, but if i fail to find a common variable i am allowed to run it for specific browser.<br />
this program will always running in background or minimized in tray. and user will only interect with browser</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/help-needed-in-making-firewall-in-either-c-or-c-plus-plus-language-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get the user certificates with the API</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/get-the-user-certificates-with-the-api/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/get-the-user-certificates-with-the-api/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 22:24:07 +0000</pubDate>
		<dc:creator>GraceP</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[API parameter format]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Certificate]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi, I have the next code to get the user certificates:   int main () {   char *Qualified_user_space_name = "GRACE     QGPL      "  ;   void *User_name = "GRACE     " ;   char *Format_name = "CERT0200" ;   char *Selection_control = "   8   0\0" ;   char error_code[100]; [...]]]></description>
				<content:encoded><![CDATA[<p>Hi,<br />
I have the next code to get the user certificates: </p>
<div>
<pre></div>
<div>
<div> int main () {</div>
<div></div>
<div>  char *Qualified_user_space_name = "GRACE     QGPL      "  ;</div>
<div>  void *User_name = "GRACE     " ;</div>
<div>  char *Format_name = "CERT0200" ;</div>
<div>  char *Selection_control = "   8   0\0" ;</div>
<div>  char error_code[100];</div>
<div>                       </div>
<div>  QsyListUserCertificates</div>
<div>          (Qualified_user_space_name, </div>
<div>           User_name,                 </div>
<div>           Format_name,               </div>
<div>           Selection_control,         </div>
<div>           &#038;error_code) ;             </div>
<div>		   </div>
<div>		   return 0 ; </div>
<div>}</div>
<div></pre>
</div>
<div></div>
<div></div>
<div> but I cannot get the certificates I guess is the selection control parameter, Could you help me please?</div>
</div>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/get-the-user-certificates-with-the-api/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>C++ const correctly use</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/c-plus-plus-const-correctly-use/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/c-plus-plus-const-correctly-use/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 00:00:23 +0000</pubDate>
		<dc:creator>Thetonatiuh</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Visual Studio Test Edition]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have this sample code ( below ), whatever1() method works with no problem, whatever2() is similar but I must force const_char to make it compile, although I consider as whatever1() method is not needed, whatever2() would be not needed either.  My question is, how can I modify add() method to make both compile or [...]]]></description>
				<content:encoded><![CDATA[<p>I have this sample code ( <i>below</i> ), <b>whatever1()</b> method works with no problem, <b>whatever2()</b> is similar but I must force const_char to make it compile, although I consider as <b>whatever1()</b> method is not needed, <b>whatever2()</b> would be not needed either. </p>
<div></div>
<div>My question is, how can I modify <b>add() method</b> to make both compile or how must I correctly call <b>buffer.add()</b> in <b>whatever2()</b> without forcing const_cast? <b>add()</b> method is not modifying item, so const_cast is unnecessary. Which is the correct or suitable form? </div>
<div></div>
<div><b>SAMPLE CODE</b><br />
==========</p>
<div></div>
<div>
<div>template &lt;class Item&gt;</div>
<div>class Buffer</div>
<div>{</div>
<div>public:</div>
<div></div>
<div>    Item *      _pItems;</div>
<div>    int         _nItems;</div>
<div></div>
<div>    // &#8230; constructor / destructors etc</div>
<div></div>
<div>    void    add( const Item &#038; item ) // or maybe Item const &#038; item</div>
<div>    {</div>
<div>        _pItems[_nItems++] = item;</div>
<div>    }</div>
<div>};</div>
<div></div>
<div>class MyClass</div>
<div>{</div>
<div>public:</div>
<div></div>
<div>    // data</div>
<div>};</div>
<div></div>
<div></div>
<div>void    whatever1( const MyClass &#038; item )</div>
<div>{</div>
<div>    Buffer&lt;MyClass&gt;        buffer;</div>
<div></div>
<div>    buffer.add( item );  // WORKS, no problem</div>
<div>}</div>
<div></div>
<div>void    whatever2( const MyClass &#038; item )</div>
<div>{</div>
<div>    Buffer&lt;MyClass *&gt;        buffer; // NOW with pointers to MyClass</div>
<div></div>
<div>    //buffer.add( item );  // ERROR: &#8216;Buffer&lt;Item&gt;::add&#8217; : cannot convert parameter 1 from &#8216;const MyClass&#8217; to &#8216;MyClass *const &#038;&#8217;</div>
<div>    buffer.add( const_cast&lt;MyClass *&gt;( &#038;item ) );  // forcing const_cast WORKS</div>
<div>}</div>
</div>
<div></div>
</div>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/c-plus-plus-const-correctly-use/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Visual Studio 8 report form</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/visual-studio-8/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/visual-studio-8/#comments</comments>
		<pubDate>Sun, 12 Dec 2010 20:49:11 +0000</pubDate>
		<dc:creator>Soccer11</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[Visual Studio ReportViewer]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[My question is fairly simple, I have created a report form. I don&#8217;t know what to program in to get my information to appear in my report. It has to show customer id, last name, first name, number of policies and amount of insurance, all of which are already working well when I test and run [...]]]></description>
				<content:encoded><![CDATA[<p>My question is fairly simple, I have created a report form. I don&#8217;t know what to program in to get my information to appear in my report. It has to show customer id, last name, first name, number of policies and amount of insurance, all of which are already working well when I test and run the program. I have to test to get those text box answers to come up, but then I need them to go the report when i press the ok button&#8230;.any ideas.<br/><br/>  <br/><br/> Thanks<br/><br/> Chris<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/visual-studio-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cannot Generate C++ Stubs With WSDL2Ws</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cannot-generate-c-plus-plus-stubs-with-wsdl2ws/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/cannot-generate-c-plus-plus-stubs-with-wsdl2ws/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 17:45:37 +0000</pubDate>
		<dc:creator>400Programmer</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Programming Languages]]></category>
		<category><![CDATA[QSH]]></category>
		<category><![CDATA[WSDL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Question Edited by Serena3]]></description>
				<content:encoded><![CDATA[Question Edited by Serena3]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/cannot-generate-c-plus-plus-stubs-with-wsdl2ws/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Any c++ or java prog for calculating WhiteSpace in exchange 2010?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/any-c-plus-plus-or-java-prog-for-calculating-whitespace-in-exchange-2010/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/any-c-plus-plus-or-java-prog-for-calculating-whitespace-in-exchange-2010/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 12:31:53 +0000</pubDate>
		<dc:creator>Nhrp6579</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Exchange 2010 Administration]]></category>
		<category><![CDATA[Java programming]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi all.. I am doing a project on white space for my academic curriculum. In this am unable to calculate the amount of whitespace in Exchange Server 2010 as there is no 1221 event. So for till Exchange 2007 i have been using wmiquery to get the details about this event. Now my project is [...]]]></description>
				<content:encoded><![CDATA[<p>Hi all..<br />
I am doing a project on white space for my academic curriculum. In this am unable to calculate the amount of whitespace in Exchange Server 2010 as there is no 1221 event. So for till Exchange 2007 i have been using wmiquery to get the details about this event. Now my project is almost over, only this point make me unable to complete it fully. </p>
<p>Can anyone please help me in calculating the whitespace using any c++ or java codings?!</p>
<p>Thanks in advance;</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/any-c-plus-plus-or-java-prog-for-calculating-whitespace-in-exchange-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/28 queries in 0.039 seconds using memcached
Object Caching 908/1033 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 14:59:42 -->