<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:evnet="http://www.mscommunities.com/rssmodule/"><channel><title>Entries for mohit.chawla</title><atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/niners/mohit.chawla/rss/default.aspx" /><image><url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url><title>Entries for mohit.chawla</title><link>http://channel9.msdn.com/Niners/mohit.chawla/</link></image><description>Entries, comments and threads posted by mohit.chawla</description><link>http://channel9.msdn.com/Niners/mohit.chawla/</link><language>en-us</language><pubDate>Thu, 23 Mar 2006 04:28:36 GMT</pubDate><lastBuildDate>Thu, 23 Mar 2006 04:28:36 GMT</lastBuildDate><generator>EvNet (EvNet, Version=1.0.3149.21012, Culture=neutral, PublicKeyToken=null)</generator><item><title>Immediate Help - Save Image to Database Image feild - .Net Compact Framework [Immediate Help - Save Image to Database Image feild - .Net Compact Framework]</title><description>Hi,&lt;br /&gt;&lt;br /&gt;I have a very strange problem coming. I have done this many times in the past but this time it just doesn't seem to work. I have a picture box where i display an image. Now i want to save that image into the SQL CE database. It has a field Pic1 with Image datatype. I want it to be saved there. &lt;br /&gt;&lt;br /&gt;If anyone has any clue how this thing will be done please reply back to this post. If u can provide some appropriate code, that would be more useful to me. Please, any help from you will be appriciated.&lt;br /&gt;&lt;br /&gt;Thanks in Advance,&lt;br /&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/170202-Immediate-Help-Save-Image-to-Database-Image-feild-Net-Compact-Framework/'&gt;Immediate Help - Save Image to Database Image feild - .Net Compact Framework&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/170202/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/170202-Immediate-Help-Save-Image-to-Database-Image-feild-Net-Compact-Framework/</comments><link>http://channel9.msdn.com/forums/TechOff/170202-Immediate-Help-Save-Image-to-Database-Image-feild-Net-Compact-Framework/</link><pubDate>Thu, 23 Mar 2006 04:28:36 GMT</pubDate><guid isPermaLink="true">http://channel9.msdn.com/forums/TechOff/170202-Immediate-Help-Save-Image-to-Database-Image-feild-Net-Compact-Framework/</guid><evnet:views>3754</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/170202/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Hi,&lt;br /&gt;&lt;br /&gt;I have a very strange problem coming. I have done this many times in the past but this time it just doesn't seem to work. I have a picture box where i display an image. Now i want to save that image into the SQL CE database. It has a field Pic1 with Image datatype. I want it to be saved there. &lt;br /&gt;&lt;br /&gt;If anyone has any clue how this thing will be done please reply back to this post. If u can provide some appropriate code, that would be more useful to me. Please, any help from you will be appriciated.&lt;br /&gt;&lt;br /&gt;Thanks in Advance,&lt;br /&gt;</evnet:previewtext><dc:creator>mohit.chawla</dc:creator><slash:comments>1</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/170202-Immediate-Help-Save-Image-to-Database-Image-feild-Net-Compact-Framework/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/170202/Trackback.aspx</trackback:ping></item><item><title>Editable DataGrid - .Net Compact Framework [Editable DataGrid - .Net Compact Framework]</title><description>&lt;p&gt;I am using SmartDeviceApplications for Pocket Pc where I want to use a &lt;strong&gt;datagrid which can be modified&lt;/strong&gt;, like we have the property to&amp;nbsp; &lt;strong&gt;datagrid.readonly = false&lt;/strong&gt; in Desktop applications. If you have some source code snippet, please send it over. It is a very urgent requirement, so any help will be appriciated.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I should be able to &lt;strong&gt;modify rows in a datagrid from the datagrid itself&lt;/strong&gt; instead of doing it programatically. &lt;br /&gt;&lt;br /&gt;Do v also have other work arounds, If any please let me know.&lt;br /&gt;&lt;br /&gt;Thanks in advance,&lt;br /&gt;mohit Chawla&lt;br /&gt;&lt;/p&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/163120-Editable-DataGrid-Net-Compact-Framework/'&gt;Editable DataGrid - .Net Compact Framework&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/163120/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/163120-Editable-DataGrid-Net-Compact-Framework/</comments><link>http://channel9.msdn.com/forums/TechOff/163120-Editable-DataGrid-Net-Compact-Framework/</link><pubDate>Thu, 02 Mar 2006 07:11:25 GMT</pubDate><guid isPermaLink="true">http://channel9.msdn.com/forums/TechOff/163120-Editable-DataGrid-Net-Compact-Framework/</guid><evnet:views>4102</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/163120/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>&lt;p&gt;I am using SmartDeviceApplications for Pocket Pc where I want to use a &lt;strong&gt;datagrid which can be modified&lt;/strong&gt;, like we have the property to&amp;nbsp; &lt;strong&gt;datagrid.readonly = false&lt;/strong&gt; in Desktop applications. If you have some source code snippet, please send it over. It is a very urgent requirement, so any help will be appriciated.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I should be able to &lt;strong&gt;modify rows in a datagrid from the datagrid itself&lt;/strong&gt; instead of doing it programatically. &lt;br /&gt;&lt;br /&gt;Do v also have other work arounds, If any please let me know.&lt;br /&gt;&lt;br /&gt;Thanks in advance,&lt;br /&gt;&lt;/p&gt;</evnet:previewtext><dc:creator>mohit.chawla</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/163120-Editable-DataGrid-Net-Compact-Framework/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/163120/Trackback.aspx</trackback:ping></item><item><title>So far over 2000 Views But not replies - Any Good Programmer Around [So far over 2000 Views But not replies - Any Good Programmer Around]</title><description>I have created an application in vb.net. where i have used all / every way to transfer data to an access database. Download the code and you will be amazed to know that the recordset is the fastest of them all. If RecordSet is the fastest then why did ADO.NET come into existance. Any reason why do we use dataset over recordset(disconnected). &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If anyone is able to find a faster code than this please let me know. But do remember to only use ado.net or ado. &lt;br /&gt;&lt;br /&gt;Please find DBTest_VS2003 file attached.&lt;br /&gt;&lt;br /&gt;Best of Luck to all !!&lt;br /&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/playground/Sandbox/159162/'&gt;So far over 2000 Views But not replies - Any Good Programmer Around&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/159162/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/playground/Sandbox/159162/</comments><link>http://channel9.msdn.com/playground/Sandbox/159162/</link><pubDate>Wed, 15 Feb 2006 07:40:07 GMT</pubDate><guid isPermaLink="true">http://channel9.msdn.com/playground/Sandbox/159162/</guid><evnet:views>3133</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/159162/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I have created an application in vb.net. where i have used all / every way to transfer data to an access database. Download the code and you will be amazed to know that the recordset is the fastest of them all. If RecordSet is the fastest then why did ADO.NET come into existance. Any reason why do&amp;#8230;</evnet:previewtext><media:group><media:content url="http://mschnlnine.vo.llnwd.net/d1/ch9/2/6/1/9/5/1/163100_DBtest_VS2003.zip" expression="full" type="video/x-ms-wmv" medium="video" /><media:content url="http://mschnlnine.vo.llnwd.net/d1/ch9/2/6/1/9/5/1/163100.jpg" expression="full" type="image/jpeg" medium="image" /></media:group><dc:creator>mohit.chawla</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://channel9.msdn.com/playground/Sandbox/159162/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/159162/Trackback.aspx</trackback:ping></item><item><title>Passing Integer Value from .NetCF to eVC4 dll [Passing Integer Value from .NetCF to eVC4 dll]</title><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I am trying to pass an integer value from .NET CF to evc4 ATL Com dll function through &amp;lt;dllImport&amp;gt; attribute. As soon as i Pass this value this value is converted to 0 in evc4. For eg: if i am pass an interger value 7 thorugh .Net CF, &amp;nbsp;then i receive an interger value 0 in eVC4 dll function. &lt;br /&gt;Can anyone help me find the reason for this behaviour. Below is the signature for both functions at both ends:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;In eVC4 Dll function defination:&lt;/p&gt;
&lt;p&gt;#define EXP extern "C" __declspec(dllexport)&lt;/p&gt;
&lt;p&gt;EXP int Sample::intValPassTest(int var)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;/*&amp;nbsp;&amp;nbsp; //Code for converting the integer value to string and see it through MessageBox in .Net CF&lt;/p&gt;
&lt;p&gt;&amp;nbsp;TCHAR arr[5];&lt;br /&gt;&amp;nbsp;wsprintf(arr,TEXT("%d"),var);&lt;br /&gt;&amp;nbsp;MessageBox(NULL,arr,L"emVC4",NULL);&lt;br /&gt;&amp;nbsp;*/&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;return var;&lt;/p&gt;
&lt;p&gt;}&amp;nbsp; ///Class Sample declaration with all function declarations is given in a Header file which is included in the project.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;VB.Net CF Function.&lt;/p&gt;
&lt;p&gt;&amp;lt;DllImport("Sample_ATL_COM.dll", CallingConvention:=CallingConvention.Winapi, CharSet:=CharSet.Auto, EntryPoint:="intValPassTest", SetLastError:=True)&amp;gt; _&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Shared Function intValPassTest(ByVal i As Integer) As Integer&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Function&lt;/p&gt;
&lt;p&gt;And I am calling this function on a button_click event. And its code is written below:&lt;/p&gt;
&lt;p&gt;Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim i As Integer = 55&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ii As Integer&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ii = intValPassTest(i)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox(ii)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Catch ex As Exception&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox(ex.ToString)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Try&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Any help from your side is invited, thank you in Advance,&lt;br /&gt;&lt;br /&gt;mohit chawla&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/158945-Passing-Integer-Value-from-NetCF-to-eVC4-dll/'&gt;Passing Integer Value from .NetCF to eVC4 dll&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/158945/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/158945-Passing-Integer-Value-from-NetCF-to-eVC4-dll/</comments><link>http://channel9.msdn.com/forums/TechOff/158945-Passing-Integer-Value-from-NetCF-to-eVC4-dll/</link><pubDate>Tue, 14 Feb 2006 09:59:10 GMT</pubDate><guid isPermaLink="true">http://channel9.msdn.com/forums/TechOff/158945-Passing-Integer-Value-from-NetCF-to-eVC4-dll/</guid><evnet:views>6376</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/158945/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I am trying to pass an integer value from .NET CF to evc4 ATL Com dll function through &amp;lt;dllImport&amp;gt; attribute. As soon as i Pass this value this value is converted to 0 in evc4. For eg: if i am pass an interger value 7 thorugh .Net CF, &amp;nbsp;then i receive an interger value 0 in eVC4 dll function. &lt;br /&gt;Can anyone help me find the reason for this behaviour. Below is the signature for both functions at both ends:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;In eVC4 Dll function defination:&lt;/p&gt;
&lt;p&gt;#define EXP extern "C" __declspec(dllexport)&lt;/p&gt;</evnet:previewtext><dc:creator>mohit.chawla</dc:creator><slash:comments>9</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/158945-Passing-Integer-Value-from-NetCF-to-eVC4-dll/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/158945/Trackback.aspx</trackback:ping></item><item><title>Calling eVC4 dll from vb.net Compact Framework [Calling eVC4 dll from vb.net Compact Framework]</title><description>Hi,&lt;br /&gt;&lt;br /&gt;I have created a dll in eVC4 using ATL for signature capture on PPC. This dll needs to be called from .net, when i am returning a char* from eVC dll, all I get is the address over here. I have tried Marshalling and others but nothing seems to help. I am still not able to see the string but only the address to the returned value. &lt;br /&gt;&lt;br /&gt;Can any one suggest any thing that I am missing. Every thing is invited.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;mohit chawla&lt;br /&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/157752-Calling-eVC4-dll-from-vbnet-Compact-Framework/'&gt;Calling eVC4 dll from vb.net Compact Framework&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/157752/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/157752-Calling-eVC4-dll-from-vbnet-Compact-Framework/</comments><link>http://channel9.msdn.com/forums/TechOff/157752-Calling-eVC4-dll-from-vbnet-Compact-Framework/</link><pubDate>Thu, 09 Feb 2006 06:49:09 GMT</pubDate><guid isPermaLink="true">http://channel9.msdn.com/forums/TechOff/157752-Calling-eVC4-dll-from-vbnet-Compact-Framework/</guid><evnet:views>2845</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/157752/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Hi,&lt;br /&gt;&lt;br /&gt;I have created a dll in eVC4 using ATL for signature capture on PPC. This dll needs to be called from .net, when i am returning a char* from eVC dll, all I get is the address over here. I have tried Marshalling and others but nothing seems to help. I am still not able to see the string but only the address to the returned value. &lt;br /&gt;&lt;br /&gt;Can any one suggest any thing that I am missing. Every thing is invited.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;mohit chawla&lt;br /&gt;</evnet:previewtext><dc:creator>mohit.chawla</dc:creator><slash:comments>1</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/157752-Calling-eVC4-dll-from-vbnet-Compact-Framework/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/157752/Trackback.aspx</trackback:ping></item><item><title>Dispose and Nothing keyword [Dispose and Nothing keyword]</title><description>Lately i have come accross a very strange behaviour of the dispose &lt;br /&gt;method. But before that can anyone tell me the difference between the &lt;br /&gt;Dispose method and calling Nothing. Can one replace the other. &lt;br /&gt;Now the problem: &lt;br /&gt;I created a datatable and filled it with some rows using dataadapter. &lt;br /&gt;then i accessed the rows, which worked fine. But even if you call the &lt;br /&gt;dispose method of the datatable, and then try to access the rows in it. &lt;br /&gt;You will be amazed that it will still show the rows. This behaviour is &lt;br /&gt;very strange and now has put me in a state of confusion.&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/Coffeehouse/155907-Dispose-and-Nothing-keyword/'&gt;Dispose and Nothing keyword&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/155907/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/Coffeehouse/155907-Dispose-and-Nothing-keyword/</comments><link>http://channel9.msdn.com/forums/Coffeehouse/155907-Dispose-and-Nothing-keyword/</link><pubDate>Wed, 01 Feb 2006 12:44:07 GMT</pubDate><guid isPermaLink="true">http://channel9.msdn.com/forums/Coffeehouse/155907-Dispose-and-Nothing-keyword/</guid><evnet:views>3789</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/155907/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Lately i have come accross a very strange behaviour of the dispose &lt;br /&gt;method. But before that can anyone tell me the difference between the &lt;br /&gt;Dispose method and calling Nothing. Can one replace the other. &lt;br /&gt;Now the problem: &lt;br /&gt;I created a datatable and filled it with some rows using dataadapter. &lt;br /&gt;then i accessed the rows, which worked fine. But even if you call the &lt;br /&gt;dispose method of the datatable, and then try to access the rows in it. &lt;br /&gt;You will be amazed that it will still show the rows. This behaviour is &lt;br /&gt;very strange and now has put me in a state of confusion.</evnet:previewtext><dc:creator>mohit.chawla</dc:creator><slash:comments>3</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/Coffeehouse/155907-Dispose-and-Nothing-keyword/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/155907/Trackback.aspx</trackback:ping></item></channel></rss>