<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5952528852298706955</id><updated>2024-11-01T16:45:24.726+05:30</updated><category term="VC++"/><category term="Way to VC"/><category term="101 Visual Studio 2010 Tips"/><category term="31 Windows Shortcuts"/><category term="50 C++ Interview Question and Answers"/><category term="C#"/><category term="C# DateTime.UtcNow in ISO 8601 date formatVisual CPP"/><category term="C# Exception"/><category term="C# write xml file using XmlDocument classVisual CPP"/><category term="C++ Interview Question and Answers"/><category term="C++ operator overloading"/><category term="Create and Embed an Application Manifest (UAC)&#xa;Visual CPP"/><category term="DataGridView"/><category term="DataTable"/><category term="Debugging a DllVisual CPP"/><category term="How to do proper Code Maintenance"/><category term="MFC"/><category term="Memory Management"/><category term="Message Reflection for Windows Controls"/><category term="Raspberry PI"/><category term="Root Cause Analysis&#xa;Visual CPP"/><category term="SCARY iterator"/><category term="SQL Server"/><category term="SetCurrentCellAddressCore"/><category term="Short cut keys in Visual Studio"/><category term="Singleton"/><category term="Singleton Using Mutex"/><category term="Singleton design pattern"/><category term="Tiny Bugs"/><category term="Using resources from a DLLVisual CPP"/><category term="WM_PAINT"/><category term="Winforms"/><category term="waytovc"/><title type='text'>Visual C++</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>37</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-4382703836544988460</id><published>2020-08-14T11:04:00.003+05:30</published><updated>2020-08-14T11:04:17.395+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Raspberry PI"/><title type='text'>Move the Raspberry PI root file system to a USB drive</title><summary type="text">&amp;nbsp;Move the Raspberry PI root file system to a USB driveHere is the articlehttps://www.pragmaticlinux.com/2020/08/move-the-raspberry-pi-root-file-system-to-a-usb-drive/</summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/4382703836544988460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/4382703836544988460' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/4382703836544988460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/4382703836544988460'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2020/08/move-raspberry-pi-root-file-system-to.html' title='Move the Raspberry PI root file system to a USB drive'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-8537616546392050775</id><published>2020-08-03T17:12:00.005+05:30</published><updated>2020-08-03T17:12:52.584+05:30</updated><title type='text'>Closures in Javascript</title><summary type="text">A&amp;nbsp;closure&amp;nbsp;is the combination of a function and the scope object in which it was created. Closures let you save stateAn examplefunction ageRelaxation(a) {
  return function(b) {
    return a + b;
  };
}
var boy2 = ageRelaxation(2);var girl5 = ageRelaxation(5);
boy2(18);  // This  results 20 
girl5(20); // This  results 25</summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/8537616546392050775/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/8537616546392050775' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/8537616546392050775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/8537616546392050775'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2020/08/closures-in-javascript.html' title='Closures in Javascript'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-752759260437036068</id><published>2020-06-12T12:10:00.003+05:30</published><updated>2020-06-12T12:13:13.022+05:30</updated><title type='text'>Raspberry Pi 4 Enable SSH without having Display/HDMI Monitor</title><summary type="text">When there is no HDMI monitor available for Raspberry Pi 4 and you want to enable SSH (as if it was not done before) Here are the steps to perform to enable SSH without a Monitor connected to Raspberry&amp;nbsp;pi.Switch off Power of Raspberry&amp;nbsp;Pi Remove the SD card from Raspberry&amp;nbsp;PiInsert the SD card into SD card reader and connect to other computer. Check for that SD card mounts </summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/752759260437036068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/752759260437036068' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/752759260437036068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/752759260437036068'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2020/06/raspberry-pi-4-enable-ssh-without.html' title='Raspberry Pi 4 Enable SSH without having Display/HDMI Monitor'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-6049225369881522977</id><published>2019-12-24T11:43:00.004+05:30</published><updated>2019-12-24T11:43:40.371+05:30</updated><title type='text'>Step by step reference for Extract Transform and Load (ETL) and Extract Load and Transform using Amazon Redshift</title><summary type="text">
ETL and ELT design patterns for lake house architecture using Amazon Redshift: Part 1



https://aws.amazon.com/blogs/big-data/etl-and-elt-design-patterns-for-lake-house-architecture-using-amazon-redshift-part-1/?nc1=b_rp





ETL and ELT design patterns for lake house architecture using Amazon Redshift: Part 2



https://aws.amazon.com/blogs/big-data/</summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/6049225369881522977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/6049225369881522977' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/6049225369881522977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/6049225369881522977'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2019/12/step-by-step-reference-for-extract.html' title='Step by step reference for Extract Transform and Load (ETL) and Extract Load and Transform using Amazon Redshift'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-5513478068965163592</id><published>2019-09-18T11:36:00.000+05:30</published><updated>2019-09-18T11:36:09.327+05:30</updated><title type='text'>Time Complexities</title><summary type="text">
Common Data Structure Operations


    

      Data Structure
      Time Complexity
      Space Complexity
    

      
      Average
      Worst
      Worst
    

      
      Access
      Search
      Insertion
      Deletion
      Access
      Search
      Insertion
      Deletion
      
    

      Array
      Θ(1)
      Θ(n)
      Θ(n)
      Θ(n)
      O(1)
      O(n)
      O(n)
      O(n)
</summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/5513478068965163592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/5513478068965163592' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/5513478068965163592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/5513478068965163592'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2019/09/time-complexities.html' title='Time Complexities'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-3706022039633572068</id><published>2018-12-04T12:51:00.001+05:30</published><updated>2018-12-04T12:51:24.357+05:30</updated><title type='text'>IFTTT - A platform for connected Apps</title><summary type="text">Read more here:https://platform.ifttt.com/docs</summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/3706022039633572068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/3706022039633572068' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/3706022039633572068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/3706022039633572068'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2018/12/ifttt-platform-for-connected-apps.html' title='IFTTT - A platform for connected Apps'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-3777523826346742329</id><published>2018-05-28T10:11:00.002+05:30</published><updated>2018-05-28T10:14:06.469+05:30</updated><title type='text'>Get All tables in Schema in Amazon Redshift</title><summary type="text">select datname, nspname, relname
from pg_class, pg_namespace, pg_database
where pg_namespace.oid = relnamespace
and datname =&#39;schema_name_here&#39;
and nspname not in
(&#39;information_schema&#39;,&#39;pg_catalog&#39;,&#39;pg_toast&#39;)
group by datname, nspname, relname
order by datname, nspname, relname
;
















</summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/3777523826346742329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/3777523826346742329' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/3777523826346742329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/3777523826346742329'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2018/05/get-all-tables-in-schema-in-amazon.html' title='Get All tables in Schema in Amazon Redshift'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-2798726716291985354</id><published>2017-11-09T10:49:00.002+05:30</published><updated>2017-11-09T10:49:28.762+05:30</updated><title type='text'>Cross-origin resource sharing [CORS]</title><summary type="text">Cross-origin resource sharing (CORS) is a mechanism that allows restricted resources (e.g. fonts) on a web page to be requested from another domain outside the domain from which the first resource was served. A web page may freely embed cross-origin images, stylesheets, scripts, iframes, and videos. Certain &quot;cross-domain&quot; requests, notably Ajax requests, however, are forbidden by default by the </summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/2798726716291985354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/2798726716291985354' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/2798726716291985354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/2798726716291985354'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2017/11/cross-origin-resource-sharing-cors.html' title='Cross-origin resource sharing [CORS]'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-7214561757040331043</id><published>2017-03-23T10:46:00.002+05:30</published><updated>2017-03-23T10:46:31.031+05:30</updated><title type='text'>Copy files from folders and sub folders to destination folder</title><summary type="text">Command to copy all files with an extension from folders and sub-folders to a single destination folders

Example: copy all pdf files in folders and sub folders of source folder to destination folder

for /R D:\SourceFolder %f in (*.pdf) do copy &quot;%f&quot; D:\DestinationFolder\


</summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/7214561757040331043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/7214561757040331043' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/7214561757040331043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/7214561757040331043'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2017/03/copy-files-from-folders-and-sub-folders.html' title='Copy files from folders and sub folders to destination folder'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-2808221016773022497</id><published>2017-03-22T17:00:00.001+05:30</published><updated>2017-03-22T17:02:39.546+05:30</updated><title type='text'>What is Visual Studio Code</title><summary type="text">&quot;Visual Studio Code&quot; A&amp;nbsp;lightweight &amp;amp; powerful source code editor which runs on desktop and is available for Windows, mac OS and Linux.

It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages like C++, C#, Python, PHP, Go) and runtimes

Download it from here&amp;nbsp;

https://code.visualstudio.com/docs?dv=win&amp;amp;</summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/2808221016773022497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/2808221016773022497' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/2808221016773022497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/2808221016773022497'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2017/03/what-is-visual-studio-code.html' title='What is Visual Studio Code'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-5677305314934671105</id><published>2017-03-22T14:54:00.000+05:30</published><updated>2017-03-22T14:55:12.098+05:30</updated><title type='text'>What&#39;s new for VC++ in Visual Studio 2017</title><summary type="text">What&#39;s New for Visual C++ in Visual Studio 2017
---------------------------------------------------------------------
https://docs.microsoft.com/en-gb/cpp/what-s-new-for-visual-cpp-in-visual-studio


Community Edition Download link
https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community&amp;amp;rel=15

</summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/5677305314934671105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/5677305314934671105' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/5677305314934671105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/5677305314934671105'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2017/03/whats-new-for-vc-in-visual-studio-2017.html' title='What&#39;s new for VC++ in Visual Studio 2017'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-7946629184100200806</id><published>2015-10-29T13:42:00.000+05:30</published><updated>2015-10-29T13:44:00.024+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C# Exception"/><category scheme="http://www.blogger.com/atom/ns#" term="DataGridView"/><category scheme="http://www.blogger.com/atom/ns#" term="SetCurrentCellAddressCore"/><category scheme="http://www.blogger.com/atom/ns#" term="Winforms"/><title type='text'>Fix WinForms DataGridView Exception: &#39;Operation is not valid because it results in a reentrant call to the SetCurrentCellAddressCore function.&#39;</title><summary type="text">&quot;Operation is not valid because it results in a reentrant call to the SetCurrentCellAddressCore function.&quot;

The exception may occur while calling a refresh function on DataGridView after doing a cell edit and click another cell.&amp;nbsp;

To fix this add the below line in the CellEndEdit event method of the DataGridView.

&amp;nbsp;this.BeginInvoke(new MethodInvoker(Refresh_MyDataGridView_Method));&amp;nbsp</summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/7946629184100200806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/7946629184100200806' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/7946629184100200806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/7946629184100200806'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2015/10/fix-winforms-datagridview-exception.html' title='Fix WinForms DataGridView Exception: &#39;Operation is not valid because it results in a reentrant call to the SetCurrentCellAddressCore function.&#39;'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-4152578283404138681</id><published>2015-09-03T09:49:00.000+05:30</published><updated>2015-09-03T09:49:07.454+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="DataTable"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>Get System.Data.DataTable from SQL Server Stored Procedure.</title><summary type="text">  public DataTable GetDataTableFromSP(string strParams)  
     {  
            string strConnectionString = &quot;.......&quot;;  
             string strSPName = &quot;.....&quot;;  
       DataTable dt = null;  
       using (SqlConnection conn = new SqlConnection(strConnectionString))  
       {  
         try  
         {  
           using (SqlDataAdapter da = new SqlDataAdapter())  
           {  
</summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/4152578283404138681/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/4152578283404138681' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/4152578283404138681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/4152578283404138681'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2015/09/get-systemdatadatatable-from-sql-server.html' title='Get System.Data.DataTable from SQL Server Stored Procedure.'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-5584005096508004897</id><published>2015-04-09T12:28:00.004+05:30</published><updated>2015-04-09T12:30:16.549+05:30</updated><title type='text'>ASP .Net HTTP Error 500.21 - Internal Server Error</title><summary type="text">Resolve this error by doing below steps.


1. Open command prompt run as Administrator.




.2.&amp;nbsp;Run the following



C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i&amp;nbsp;















</summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/5584005096508004897/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/5584005096508004897' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/5584005096508004897'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/5584005096508004897'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2015/04/asp-net-http-error-50021-internal.html' title='ASP .Net HTTP Error 500.21 - Internal Server Error'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPyHOvtkGXxO3Z4MYQeaofdhC0xGsiujnwWFNwHDcc1HhZimCWtj1B__mxZRgsFtSG3yHt3wE4Ti6ibHzV0j1lQyrRkqTRsB_J4sodQ5LVTqiYCQi7nBebdDzlMtH4zLhDE1xIZ8tQVcA/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-615393219417706037</id><published>2015-03-03T14:55:00.001+05:30</published><updated>2015-03-03T14:55:06.839+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Singleton"/><category scheme="http://www.blogger.com/atom/ns#" term="Singleton design pattern"/><category scheme="http://www.blogger.com/atom/ns#" term="Singleton Using Mutex"/><title type='text'>Singleton pattern design and implementation</title><summary type="text">Singleton pattern is a design pattern that restricts the instantiate of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system.&amp;nbsp;

One way of creating Singleton using Mutex

&quot;A Mutex is essentially the same thing as a binary semaphore and sometimes uses the same basic implementation. The differences between them are in how they are used</summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/615393219417706037/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/615393219417706037' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/615393219417706037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/615393219417706037'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2015/03/singleton-pattern-design-and.html' title='Singleton pattern design and implementation'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-4596138377178814432</id><published>2015-03-02T21:33:00.001+05:30</published><updated>2015-03-02T22:28:50.219+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++ Interview Question and Answers"/><title type='text'>C++, VC++ and MFC interview questions.</title><summary type="text">1.) How many constructor can a class have?

A class can have any number of constructors. However after creating a constructor explicitly the default constructor becomes invalid for that class. We will need to define a constructor with zero argument explicitly.


2.)What is the difference class and structure?

The main difference between structure and class is that members in structure is public </summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/4596138377178814432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/4596138377178814432' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/4596138377178814432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/4596138377178814432'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2015/03/c-vc-and-mfc-interview-questions.html' title='C++, VC++ and MFC interview questions.'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXcpLQumpI150CqxqVH4b22CBOr_HTdQ7ztyEokmjuCaxiFDahghvzq3gRI61vkSQZfod7ZQxB7cGiLpd5KmsCpQcZwKor359-mumciztV-2uQFEDa6ihkErNunFESFHtDrA_wORdSTMA/s72-c/Capture.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-3823294102185317315</id><published>2015-03-02T17:53:00.001+05:30</published><updated>2015-03-02T17:54:26.599+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="MFC"/><category scheme="http://www.blogger.com/atom/ns#" term="WM_PAINT"/><title type='text'>MFC OnPaint() vs OnDraw()</title><summary type="text">The two are more or less the same. OnPaint is the handler for a WM_PAINT message. OnDraw is the function that a MFC CView window calls when it receives a WM_PAINT message.&amp;nbsp;



We should use OnDraw if the window is derived from CView, otherwise OnPaint.




 

  
OnDraw()

  
OnPaint()

 

  
A member function of CView.



OnDraw is a virtual function.&amp;nbsp;
  
  OnPaint handler
  for views </summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/3823294102185317315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/3823294102185317315' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/3823294102185317315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/3823294102185317315'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2015/03/mfc-onpaint-vs-ondraw.html' title='MFC OnPaint() vs OnDraw()'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-6924726849284726358</id><published>2015-03-02T12:28:00.001+05:30</published><updated>2015-03-02T13:10:16.190+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++ operator overloading"/><title type='text'>Common operators to overload</title><summary type="text">

 Assignment Operator
 X&amp;amp; X::operator=(X rhs) { swap(rhs); return *this; }

 Bitshift Operators (used for Stream I/O)
 The bitshift operators &amp;lt;&amp;lt; and &amp;gt;&amp;gt;, although still used in hardware interfacing for the bit-manipulation functions they inherit from C, have become more prevalent as overloaded stream input and output operators in most applications. For guidance overloading as </summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/6924726849284726358/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/6924726849284726358' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/6924726849284726358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/6924726849284726358'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2015/03/common-operators-to-overload.html' title='Common operators to overload'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-3849855126849555933</id><published>2012-02-09T18:06:00.002+05:30</published><updated>2012-02-09T18:06:48.537+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SCARY iterator"/><title type='text'>SCARY iterator</title><summary type="text">&lt;!--[if gte mso 9]&gt;     Labuser   14.00          &lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;     Normal   0               false   false   false      EN-US   X-NONE   X-NONE                                                                                             &lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;</summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/3849855126849555933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/3849855126849555933' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/3849855126849555933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/3849855126849555933'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2012/02/scary-iterator.html' title='SCARY iterator'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-2523033251572855541</id><published>2011-11-29T16:21:00.000+05:30</published><updated>2011-11-29T16:21:29.358+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="31 Windows Shortcuts"/><category scheme="http://www.blogger.com/atom/ns#" term="VC++"/><category scheme="http://www.blogger.com/atom/ns#" term="Way to VC"/><title type='text'>31 Windows Shortcuts</title><summary type="text">&lt;!--[if gte mso 9]&gt;     Normal   0         false   false   false                             MicrosoftInternetExplorer4   &lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;     &lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt; 
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Table Normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0in 5.4pt</summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/2523033251572855541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/2523033251572855541' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/2523033251572855541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/2523033251572855541'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2011/11/31-windows-shortcuts.html' title='31 Windows Shortcuts'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-4409514760486767607</id><published>2011-09-01T23:55:00.004+05:30</published><updated>2011-09-02T23:37:40.928+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tiny Bugs"/><category scheme="http://www.blogger.com/atom/ns#" term="waytovc"/><title type='text'>Catch the Bug - 1</title><summary type="text">After a long time, I am restarting this blog.

Today I am introducing a programming bug.
Look at the pseudo code below.

unsigned long uCount;
unsigned long uMaxVal;
....
....
//uMaxVal assigned some unsigned value here
....
for(uCount = 0; uCount &amp;lt; uMaxVal -1; uCount++)
{
&amp;nbsp;//Do whatever
}

Do you find anything wrong on seeing this simple statements? You thinks the loop will terminates </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/4409514760486767607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/4409514760486767607'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2011/09/catch-bug-1.html' title='Catch the Bug - 1'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-2253870480604164724</id><published>2011-06-29T10:03:00.003+05:30</published><updated>2011-06-29T10:19:42.435+05:30</updated><title type='text'>Visual Studio 2010 IDE Hangs when menu items are activated</title><summary type="text">Sometimes, When mouse over the main menu items (File, Edit, View … Window or Help), the IDE hangs. Sometimes, when clicking on the menu item it will highlight or turn completely black.The same happens when using the keyboard. Alt+F highlights the File menu. Sometimes (after a few seconds) the region that should display the menu will be drawn in a solid color, but the menu is not populated.On rare</summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/2253870480604164724/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/2253870480604164724' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/2253870480604164724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/2253870480604164724'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2011/06/visual-studio-2010-ide-hangs-when-menu.html' title='Visual Studio 2010 IDE Hangs when menu items are activated'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-1859823076113688954</id><published>2010-12-17T16:34:00.001+05:30</published><updated>2010-12-17T16:34:16.074+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Root Cause Analysis&#xa;Visual CPP"/><category scheme="http://www.blogger.com/atom/ns#" term="VC++"/><category scheme="http://www.blogger.com/atom/ns#" term="Way to VC"/><title type='text'>Root Cause Analysis</title><summary type="text">If I have an unwanted situation which consumes resources and tends to happen in a repeated fashion then there is a possibility that it might be beneficial to figure out what is really causing this situation to occur and remove it so the situation does not occur again. This is generally referred to as Root Cause Analysis, finding the real cause of the problem and dealing with it rather than simply</summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/1859823076113688954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/1859823076113688954' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/1859823076113688954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/1859823076113688954'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2010/12/root-cause-analysis.html' title='Root Cause Analysis'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-2118815403025682661</id><published>2010-12-17T16:24:00.001+05:30</published><updated>2010-12-17T16:24:51.729+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Using resources from a DLLVisual CPP"/><category scheme="http://www.blogger.com/atom/ns#" term="VC++"/><category scheme="http://www.blogger.com/atom/ns#" term="Way to VC"/><title type='text'>Using resources from a DLL</title><summary type="text">Using Resources from DLLRequirements:----------------------Let us consider we have a DLL named &#39;FilingResource.DLL&#39; containing resource of Dialog having ID as IDD_NETWORK_PATH_SETUP.  We have class CFilingResourceDlg associated with this dialog. We want to import this dialog in the DLL, in our program by inheriting CFilingResourceDlg class with the class CDerivedClass.Steps to use Resource stored</summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/2118815403025682661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/2118815403025682661' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/2118815403025682661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/2118815403025682661'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2010/12/using-resources-from-dll.html' title='Using resources from a DLL'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5952528852298706955.post-7391026121434046333</id><published>2010-12-16T13:06:00.001+05:30</published><updated>2010-12-16T13:06:00.831+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C# write xml file using XmlDocument classVisual CPP"/><category scheme="http://www.blogger.com/atom/ns#" term="VC++"/><category scheme="http://www.blogger.com/atom/ns#" term="Way to VC"/><title type='text'>C# write xml file using XmlDocument class</title><summary type="text">step1.using System.Xml;//...//something//...//DeclarationXmlDocument xmldoc;XmlElement xmlelem; XmlElement xmlelem2; XmlText xmltext;//....//something//....            xmldoc = new XmlDocument();            XmlDeclaration declaration = xmldoc.CreateXmlDeclaration(&quot;1.0&quot;, &quot;utf-8&quot;, null);            xmldoc.AppendChild(declaration);            xmlelem = xmldoc.CreateElement(&quot;Root&quot;);            </summary><link rel='replies' type='application/atom+xml' href='http://waytovc.blogspot.com/feeds/7391026121434046333/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5952528852298706955/7391026121434046333' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/7391026121434046333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5952528852298706955/posts/default/7391026121434046333'/><link rel='alternate' type='text/html' href='http://waytovc.blogspot.com/2010/12/c-write-xml-file-using-xmldocument.html' title='C# write xml file using XmlDocument class'/><author><name>WaytoVC</name><uri>http://www.blogger.com/profile/08831434753332144296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>