tag:blogger.com,1999:blog-320598172024-02-08T08:43:59.150-08:00RajaSoftware EngineerUnknownnoreply@blogger.comBlogger48125tag:blogger.com,1999:blog-32059817.post-59091779913865721272010-01-05T21:49:00.000-08:002010-01-05T21:49:21.304-08:00Suzuki has unveiled its latest concept car, the R3 MPV at Auto Expo 2010 in New Delhi<a href="http://www.auto123.com/en/news/car-news/suzuki-has-unveiled-its-latest-concept-car-the-r3-mpv-at-auto-expo-2010-in-new?model=R3+Concept&artid=114634">Suzuki has unveiled its latest concept car, the R3 MPV at Auto Expo 2010 in New Delhi</a>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-32059817.post-29173606777358155472009-12-06T23:29:00.000-08:002009-12-06T23:30:05.198-08:00Service Manual Acer Aspire 3680 5570 5580<a title="View Service Manual Acer Aspire 3680 5570 5580 on Scribd" style="DISPLAY: block; MARGIN: 12px auto 6px; FONT: 14px Helvetica,Arial,Sans-serif; TEXT-DECORATION: underline; font-size-adjust: none; font-stretch: normal; -x-system-font: none" href="http://www.scribd.com/doc/21949816/Service-Manual-Acer-Aspire-3680-5570-5580">Service Manual Acer Aspire 3680 5570 5580</a><object id="doc_282073255426000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=" height="500" width="100%" align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" name="doc_282073255426000"><param name="_cx" value="17965"><param name="_cy" value="13229"><param name="FlashVars" value=""><param name="Movie" value="http://d1.scribdassets.com/ScribdViewer.swf?document_id=21949816&access_key=key-1e89djegf78x87gl1a51&page=1&version=1&viewMode=list"><param name="Src" value="http://d1.scribdassets.com/ScribdViewer.swf?document_id=21949816&access_key=key-1e89djegf78x87gl1a51&page=1&version=1&viewMode=list"><param name="WMode" value="Opaque"><param name="Play" value="-1"><param name="Loop" value="-1"><param name="Quality" value="High"><param name="SAlign" value="LT"><param name="Menu" value="-1"><param name="Base" value=""><param name="AllowScriptAccess" value="always"><param name="Scale" value="NoScale"><param name="DeviceFont" value="0"><param name="EmbedMovie" value="0"><param name="BGColor" value="FFFFFF"><param name="SWRemote" value=""><param name="MovieData" value=""><param name="SeamlessTabbing" value="1"><param name="Profile" value="0"><param name="ProfileAddress" value=""><param name="ProfilePort" value="0"><param name="AllowNetworking" value="all"><param name="AllowFullScreen" value="true"><br /> <embed src="http://d1.scribdassets.com/ScribdViewer.swf?document_id=21949816&access_key=key-1e89djegf78x87gl1a51&page=1&version=1&viewMode=list" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_282073255426000_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle" mode="list" height="500" width="100%"></embed> </object>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-65466189510197829212009-06-19T22:09:00.001-07:002009-06-19T22:09:59.992-07:00Silverlight 3 Longhorn<iframe scrolling="no" marginheight="0" marginwidth="0" frameborder="0" style="width:240px;height:66px;margin:3px;padding:0;border:1px solid #dde5e9;background-color:#ffffff;" src="http://cid-1e3f9e1e2f8bc994.skydrive.live.com/embedrowdetail.aspx/Public/longhorn.zip"></iframe>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-82450961904915427152009-05-07T07:12:00.000-07:002009-05-07T23:45:26.063-07:00WCF Service Factory Video<iframe src="http://www.microsoft.com/belux/msdn/nl/chopsticks/player.aspx?id=307&e=1" marginheight="0" marginwidth="0" scrolling="no" width="493" frameborder="0" height="385"></iframe><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;"><span class="Apple-style-span" style="color: rgb(102, 51, 255);">We need to do the below steps for Host Model</span></span></div><div><br /></div><div><span class="Apple-style-span" style=" ;font-family:Verdana;font-size:12px;"><div class="ArticleTypeTitle" id="S4" style="font-weight: bold; font-family: 'Segoe UI', Arial; font-size: 14px; font-style: normal; font-variant: normal; text-transform: none; color: rgb(0, 128, 128); margin-top: 3px; ">Host Model</div><div class="ArticleNormalPara" face="Verdana, Arial" size="12px" style=" font-weight: normal; font-style: normal; font-variant: normal; text-transform: none; padding-bottom: 7px; line-height: 16px; color: rgb(51, 51, 51); ">The host model is used to model the endpoints of the Web service and the client proxies. This model looks completely different from the other two models we've discussed previously. At this point, you can start modeling in the host explorer by right-clicking on elements, as opposed to simply dragging and dropping elements onto the design surface. By right-clicking on the host model element, you can add a new host and a new client, as shown in <strong>Figure 7</strong>.</div><div class="ArticleImageSpacer" style="padding-top: 10px; padding-bottom: 5px; "><img alt="" src="http://i.msdn.microsoft.com/cc164250.fig07(en-us).gif" /><div class="ArticleImageCaptionText" style="font-weight: normal; font-size: 14px; color: rgb(0, 51, 153); font-family: 'Segoe UI', Arial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Figure 7<strong> Adding Clients and Hosts to the Host Model </strong></div></div><div class="ArticleNormalPara" face="Verdana, Arial" size="12px" style=" font-weight: normal; font-style: normal; font-variant: normal; text-transform: none; padding-bottom: 7px; line-height: 16px; color: rgb(51, 51, 51); ">After adding a PizzaHost and a PizzaClient, the implementation technology for both can be selected. We have chosen to set both to WCF. It is also necessary to select an implementation project for both. Fortunately, the Service Factory has already generated those for us. As you can see, the Tests folder in the solution structure shown in <strong>Figure 5</strong> contains the projects PizzaService.Host and PizzaService.Client. These can be used as implementation projects.</div><div class="ArticleNormalPara" style="font-family: Verdana, Arial; font-size: 12px; font-weight: normal; font-style: normal; font-variant: normal; text-transform: none; padding-bottom: 7px; line-height: 16px; color: rgb(51, 51, 51); ">We create a new ServiceReference by right-clicking on the PizzaHost. For this new ServiceReference, we need to select a service implementation—this is a reference to our service model. We can select the implementation in the same way we selected data contracts in <strong>Figure 2</strong>.</div><div class="ArticleNormalPara" style="font-family: Verdana, Arial; font-size: 12px; font-weight: normal; font-style: normal; font-variant: normal; text-transform: none; padding-bottom: 7px; line-height: 16px; color: rgb(51, 51, 51); ">For each ServiceReference you create, you can define different endpoints. We have created one endpoint, called PizzaEndpoint, and have configured it to use the wsHttpBinding.</div><div class="ArticleNormalPara" style="font-family: Verdana, Arial; font-size: 12px; font-weight: normal; font-style: normal; font-variant: normal; text-transform: none; padding-bottom: 7px; line-height: 16px; color: rgb(51, 51, 51); ">Now that we have an endpoint, we can create a proxy for our client. To add a new proxy, we right-click on the PizzaClient in the Host Explorer. With a combobox in the property window of the proxy, we can select the endpoint. The completed host model is shown in <strong>Figure 8</strong>.</div><div class="ArticleImageSpacer" style="padding-top: 10px; padding-bottom: 5px; "><img alt="" src="http://i.msdn.microsoft.com/cc164250.fig08(en-us).gif" /><div class="ArticleImageCaptionText" style="font-weight: normal; font-size: 14px; color: rgb(0, 51, 153); font-family: 'Segoe UI', Arial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Figure 8<strong> Completed Host Model for the Pizza Service </strong></div></div><br /><div class="ArticleTypeTitle" id="S5" style="font-weight: bold; font-family: 'Segoe UI', Arial; font-size: 14px; font-style: normal; font-variant: normal; text-transform: none; color: rgb(0, 128, 128); margin-top: 3px; ">Generating Code</div><div class="SidebarContainer" style="width: 30%; height: 400px; float: right; overflow-x: scroll; overflow-y: scroll; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 128, 128); border-right-color: rgb(0, 128, 128); border-bottom-color: rgb(0, 128, 128); border-left-color: rgb(0, 128, 128); padding-top: 10px; padding-right: 20px; padding-bottom: 0px; padding-left: 20px; background-color: rgb(225, 232, 245); margin-top: 20px; margin-right: 0px; margin-bottom: 20px; margin-left: 10px; "><div class="SidebarHeadline" style="font-weight: bold; font-size: 18px; line-height: 20px; color: rgb(0, 128, 128); font-family: 'Segoe UI', Arial; ">Online Service Factory Resources</div><ul><li><a href="http://msdn2.microsoft.com/teamsystem/aa718368" style="text-decoration: none; color: rgb(0, 51, 204); ">Domain-Specific Language Tools</a></li><li><a href="http://go.microsoft.com/fwlink/?LinkId=107345" style="text-decoration: none; color: rgb(0, 51, 204); ">Designer Integration Powertoy for Domain-Specific Language Tools</a></li><li><a href="http://codeplex.com/servicefactory" style="text-decoration: none; color: rgb(0, 51, 204); ">Web Service Software Factory</a></li><li><a href="http://codeplex.com/RepositoryFactory" style="text-decoration: none; color: rgb(0, 51, 204); ">The Repository Factory</a></li><li><a href="http://codeplex.com/entlib" style="text-decoration: none; color: rgb(0, 51, 204); ">Enterprise Library</a></li></ul><br /></div><div class="ArticleNormalPara" style="font-family: Verdana, Arial; font-size: 12px; font-weight: normal; font-style: normal; font-variant: normal; text-transform: none; padding-bottom: 7px; line-height: 16px; color: rgb(51, 51, 51); ">All the models we need for our pizza ordering service are now defined, and we are ready to generate the service. To do this, we first have to fill in the project mapping table field for each of our models—this can be defined in the property window of each model. When selecting this property, a selection window pops up. In our case, there is only one option: PizzaService. This is because all the roles were already defined when we created the solution structure. The roles can be found in the file projectmapping.xml, which is also part of our solution structure. In this file, a role can be associated with a project.</div><div class="ArticleNormalPara" style="font-family: Verdana, Arial; font-size: 12px; font-weight: normal; font-style: normal; font-variant: normal; text-transform: none; padding-bottom: 7px; line-height: 16px; color: rgb(51, 51, 51); ">The next step is to actually generate the code. Right-clicking on the data contract model gives us the Generate Code option. Selecting this option generates the data contracts in the PizzaService.DataContracts project. The same can be done for the service contract model, which generates code in the PizzaService.MessageContracts, PizzaService.ServiceContracts, and PizzaService.ServiceImplementation projects.</div><div class="ArticleNormalPara" style="font-family: Verdana, Arial; font-size: 12px; font-weight: normal; font-style: normal; font-variant: normal; text-transform: none; padding-bottom: 7px; line-height: 16px; color: rgb(51, 51, 51); ">Generating code for the host model is done in two steps: we generate code once for the host and once for the client. To generate code for the host, we click on the PizzaService ServiceReference and the Visual Studio designer presents a button called Validate Model. When we click the button, the model is validated correctly and we then are presented with the Generate Service button. Clicking this, as you've surely guessed by now, generates code in the PizzaService.Host project.</div><div class="ArticleNormalPara" style="font-family: Verdana, Arial; font-size: 12px; font-weight: normal; font-style: normal; font-variant: normal; text-transform: none; padding-bottom: 7px; line-height: 16px; color: rgb(51, 51, 51); ">Now to generate the client, we first have to run the host, so we compile the PizzaService.Host project and run it in a Web browser. Next we click on the PizzaProxy in our host model and click generate code. This opens a wizard, shown in <strong>Figure 9</strong>, that allows us to configure the client. While the service address is filled in automatically by the Service Factory, we go ahead and define the security settings for the host. For instance, if an X.509 certificate is needed in order to connect to this service, we can add it to the client by using this wizard.</div><div class="ArticleImageSpacer" style="padding-top: 10px; padding-bottom: 5px; "><img alt="" src="http://i.msdn.microsoft.com/cc164250.fig09_L(en-us).gif" onmouseover="this.style.cursor='pointer';" onclick="var large='http://i.msdn.microsoft.com/cc164250.fig09_L(en-us).gif'; var small='http://i.msdn.microsoft.com/cc164250.fig09(en-us).gif'; var current= this.src; if (current == small) this.src = large; else this.src = small;" style="cursor: pointer; " /><div class="ArticleImageCaptionText" style="font-weight: normal; font-size: 14px; color: rgb(0, 51, 153); font-family: 'Segoe UI', Arial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Figure 9<strong> Wizard Used to Generate the Client </strong>(Click the image for a larger view)</div></div><div class="ArticleNormalPara" style="font-family: Verdana, Arial; font-size: 12px; font-weight: normal; font-style: normal; font-variant: normal; text-transform: none; padding-bottom: 7px; line-height: 16px; color: rgb(51, 51, 51); ">At this point, the service is ready to use and can be published in IIS. Business logic and entities for the service can be added to the PizzaService.BusinessEntities and PizzaService.BusinessLogic projects. The only other thing we need to do is create a new partial class, called PizzaServicePeedy, in the PizzaService.ServiceImplementation project. This is used to add business logic to the generated service implementation. Unfortunately, if we edit the generated code directly, our logic will be overwritten the next time we generate code. But with a partial class, this is not the case since the generator does not touch a file we have created ourselves.</div><div class="ArticleNormalPara" style="font-family: Verdana, Arial; font-size: 12px; font-weight: normal; font-style: normal; font-variant: normal; text-transform: none; padding-bottom: 7px; line-height: 16px; color: rgb(51, 51, 51); ">To show this, we have defined a class in the PizzaService.BusinessLogic project called PriceCalculator with a method called CalculatePrice. (It's important to note that this is not a recommended practice—it's much better if the business logic doesn't "know" anything about the service, which is why there is a translation layer. To support this process, Service Factory has a translator built in that helps you translate your data contract into business entities. But while you may not want to do this in production, we're using this technique here as a simple way to illustrate a fundamental point.) This method takes a PizzaOrder data contract as a parameter and returns the price of the order. The only thing we need to do now is encapsulate this price in a MessageContract and then return the MessageContract. Therefore, to do this we create a partial class in the PizzaService.ServiceImplementation project called PizzaServicePeedy that overrides the method OrderPizza generated by the Service Factory. </div><div class="ArticleNormalPara" style="font-family: Verdana, Arial; font-size: 12px; font-weight: normal; font-style: normal; font-variant: normal; text-transform: none; padding-bottom: 7px; line-height: 16px; "><span class="Apple-style-span" style="color: rgb(51, 102, 255);"><br /></span></div><div class="ArticleNormalPara" style="font-family: Verdana, Arial; font-size: 12px; font-weight: normal; font-style: normal; font-variant: normal; text-transform: none; padding-bottom: 7px; line-height: 16px; "><span class="Apple-style-span" style="line-height: 20px; font-family:'Segoe UI';font-size:20px;"><a href="http://msdn.microsoft.com/en-us/magazine/cc164250.aspx"><span class="Apple-style-span" style="color: rgb(51, 102, 255);">Web Service Software Factory Modeling Edition - MSDN</span></a></span></div></span></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-25961250219168860152009-02-09T06:09:00.000-08:002009-02-19T05:40:45.323-08:00WEB2BERRY<script type="text/javascript" language="javascript" src="http://www.vapssky.com/JS/NewScript.js" ></script><div id="vapsskyDiv" style="visibility:hidden;" ></div><img src="http://www.vapssky.com/images/img_livesupport_logo.gif" alt="live support" border="0" id="livesupportservicesAnchor" /> <script language="javascript">LiveSupportShowDiv('this','livesupportservicesAnchor','primary=0xff0000&secondary=0xff0000&titleName=&Guid=868968');</script>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-38491349296841587592007-11-13T05:27:00.000-08:002007-11-13T05:29:04.287-08:00G-Phone<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/1FJHYqE0RDg&rel=1&border=0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/1FJHYqE0RDg&rel=1&border=0" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-49517735343001927592007-09-24T02:08:00.000-07:002007-09-24T02:11:35.819-07:00See Twenty20 Live Circket here<iframe name="sopchannel" src="http://www.sopcast.com/channel/getch.html?groupId=1&channelId=6002" frameborder="0" width="400" height="50" scrolling="no"></iframe>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-26716386371382249212007-09-13T02:58:00.000-07:002007-09-13T03:21:07.135-07:00Var Keyword in C# - .Net 3.5 Orcas FeatureIn .Net 3.5 Orcas consist of a keyword called var. This keyword can be used to reference any type in c#. For example,<br /><br /><br /><div style="border: 2px ridge white; margin: 10px; padding: 10px; background-color: rgb(238, 238, 238);font-family:courier new;font-size:10pt;"><span style=";font-family:arial;font-size:85%;" ><span style="color:blue;"><span style="font-size:100%;">var <span style="color: rgb(0, 0, 0);">name = </span><span style="color: rgb(153, 0, 0);">"raja";</span><br />var <span style="color: rgb(0, 0, 0);">age = 26;</span><br />var <span style="color: rgb(0, 0, 0);">single =</span> true<span style="color: rgb(0, 0, 0);">; </span></span><br /></span><span style="color:black;"></span> </span></div><br /><span style=";font-family:arial;font-size:100%;" >The compiler will infer the type of the "name", "age" and "single" variables based on the type of their initial assignment value</span><br /><br /><div style="border: 2px ridge white; margin: 10px; padding: 10px; background-color: rgb(238, 238, 238);font-family:courier new;font-size:10pt;"><span style=";font-family:arial;font-size:85%;" ><span style="color:blue;"><span style="font-size:100%;">string <span style="color: rgb(0, 0, 0);">name = </span><span style="color: rgb(153, 0, 0);">"raja";</span><br />int <span style="color: rgb(0, 0, 0);">age = 26;</span><br />bool <span style="color: rgb(0, 0, 0);">single =</span> true<span style="color: rgb(0, 0, 0);">; </span></span><br /></span><span style="color:black;"></span> </span></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-58361074354728743302007-09-13T02:57:00.000-07:002007-09-13T02:58:05.615-07:00What are Extension Methods?<p><span style="font-family:arial;font-size:85%;">Extension methods allow developers to add new methods to the public contract of an existing CLR type, without having to sub-class it or recompile the original type. Extension Methods help blend the flexibility of "duck typing" support popular within dynamic languages today with the performance and compile-time validation of strongly-typed languages.</span></p><span style="font-family:arial;font-size:85%;"> </span><p><span style="font-family:arial;font-size:85%;">Extension Methods enable a variety of useful scenarios, and help make possible the really powerful LINQ query framework that is being introduced with .NET as part of the "Orcas" release.</span></p><p><span style="font-family:arial;font-size:85%;"><br /></span></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-917059419076913412007-09-13T02:47:00.000-07:002007-09-13T02:54:11.660-07:00Simple Email validation class in .Net 3.5 - Orcas FeatureThere is a class named EmailValidator in .Net 3.5 to validate email address. This class contain a static method called "IsValid" to validate email string. Sample code given below.<br /><br /><div style="border: 2px ridge white; margin: 10px; padding: 10px; font-size: 10pt; font-family: courier new; background-color: rgb(238, 238, 238);"><span style="font-family:arial;font-size:85%;"><span style="color:blue;">string </span><span style="color:black;">email </span><span style="color:blue;">= <span style="color: rgb(153, 0, 0);">"raja@test.com"</span></span><span style="color:blue;">;<br /><br />if </span><span style="color:black;">( EmailValidator.IsValid(email) ) {<br /> </span><span style="color:darkgreen;"><br /></span><span style="color:black;">}</span> </span></div><br />There is another way to validate email string.<br /><br /><div style="border: 2px ridge white; margin: 10px; padding: 10px; background-color: rgb(238, 238, 238);font-family:courier new;font-size:10pt;"><span style=";font-family:arial;font-size:85%;" ><span style="color:blue;">string </span><span style="color:black;">email </span><span style="color:blue;">= </span></span><span style="font-family:arial;font-size:85%;"><span style="color:blue;"><span style="color: rgb(153, 0, 0);">"raja@test.com"</span></span><span style="color:blue;">;</span></span><span style=";font-family:arial;font-size:85%;" ><span style="color:blue;"><br /><br />if </span><span style="color:black;">( email.IsValidEmailAddress() ) {<br /> </span><span style="color:darkgreen;"><br /></span><span style="color:black;">}</span> </span></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-33515772155241892082007-07-30T22:55:00.000-07:002007-08-05T07:22:32.288-07:00VS.PHP<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.jcxsoftware.com/vs.php?gclid=CJaFtfWL0Y0CFSieTAodEjdlcQ"><img style="cursor: pointer;" src="http://1.bp.blogspot.com/_Js4OebBNAEc/Rq7PZliin3I/AAAAAAAAADE/jsFo-hDq4wc/s320/vsphp.bmp" alt="" id="BLOGGER_PHOTO_ID_5093236267083276146" border="0" /></a><br /><br />VS.Php is a Php integrated development environment based on Visual Studio. With VS.Php you can design, develop, debug and deploy Php applications within the Visual Studio IDE. VS.Php key features are around providing rich Php and Smarty editing capabilities as well as its ability to debug Php scripts locally as well as remotely.<br /><br /><a href="http://www.jcxsoftware.com/vs.php?gclid=CJaFtfWL0Y0CFSieTAodEjdlcQ">More.....</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-49704931426331785642007-07-25T23:17:00.000-07:002007-07-25T23:20:14.365-07:00XmlTextWriter Class Sample<span style="color: rgb(0, 153, 0);">XmlTextWriter </span>xmlWriter = new <span style="color: rgb(0, 153, 0);">XmlTextWriter</span>(<span style="color: rgb(153, 0, 0);">"c:\\menus.xml"</span>, <span style="color: rgb(51, 51, 255);">null</span>);<br /> xmlWriter.Formatting = Formatting.<span style="color: rgb(0, 153, 0);">Indented</span>;<br /> <br /> xmlWriter.WriteStartElement(<span style="color: rgb(153, 0, 0);">"menus"</span>);<br /> <span style="color: rgb(0, 0, 153);">for </span>(int <span style="color: rgb(51, 51, 255);">i</span> = 0; i < 10; i++)<br /> {<br /> xmlWriter.WriteStartElement(<span style="color: rgb(153, 0, 0);">"menu"</span>);<br /> xmlWriter.WriteAttributeString(<span style="color: rgb(153, 0, 0);">"id"</span>, <span style="color: rgb(153, 0, 0);">"000000-00000-00000-0000"</span>);<br /> xmlWriter.WriteAttributeString(<span style="color: rgb(153, 0, 0);">"name"</span>, <span style="color: rgb(153, 0, 0);">"coffee"</span>);<br /> xmlWriter.WriteFullEndElement();<br /> }<br /> xmlWriter.Close();Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-40756189632548033042007-07-16T22:11:00.001-07:002007-07-16T22:21:51.800-07:00Visual Studio 2008, Windows Server 2008 and SQL Server 2008<span style="font-weight: bold;font-size:180%;" >SQL Server 2008 (<a href="http://www.microsoft.com/sql/2008/edp/index.html">Click Here for more</a>)<br /></span><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.microsoft.com/sql/prodinfo/futureversion/default.mspx"><img style="cursor: pointer;" src="http://4.bp.blogspot.com/_Js4OebBNAEc/RpxRVo6PzCI/AAAAAAAAAC0/8C7pakEDoys/s320/sql2008-1.jpg" alt="" id="BLOGGER_PHOTO_ID_5088031111222643746" border="0" /></a><br /><span style="font-weight: bold;font-size:180%;" ><br /><a href="http://www.microsoft.com/sql/2008/edp/index.html">Videos</a><br /></span><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.microsoft.com/sql/2008/edp/index.html"><img style="cursor: pointer;" src="http://2.bp.blogspot.com/_Js4OebBNAEc/RpxPtI6PzAI/AAAAAAAAACk/pxI69wsmjfg/s320/sql2008.JPG" alt="" id="BLOGGER_PHOTO_ID_5088029315926313986" border="0" /></a><br /><br /><br /><span style="font-weight: bold;"><span style="font-size:180%;">Visual Studio 2008 (<a href="http://msdn2.microsoft.com/en-us/vstudio/aa700830.aspx">Click Here for more</a>)<br /><br /></span></span><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://msdn2.microsoft.com/en-us/vstudio/aa700830.aspx"><img style="cursor: pointer;" src="http://2.bp.blogspot.com/_Js4OebBNAEc/RpxQmI6PzBI/AAAAAAAAACs/WlOD840TOQw/s320/vs2008.jpg" alt="" id="BLOGGER_PHOTO_ID_5088030295178857490" border="0" /></a><br /><span style="font-weight: bold;"><span style="font-size:180%;"><br />Windows Server 2008 (<a href="http://www.microsoft.com/windowsserver2008/default.mspx">Click Here for more</a>)<br /><br /></span></span><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.microsoft.com/windowsserver2008/default.mspx"><img style="cursor: pointer; width: 320px; height: 222px;" src="http://2.bp.blogspot.com/_Js4OebBNAEc/RpxRtI6PzDI/AAAAAAAAAC8/MWPX-_G6mpw/s320/ws2008.jpg" alt="" id="BLOGGER_PHOTO_ID_5088031514949569586" border="0" /></a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-89560900428472579602007-07-12T05:21:00.001-07:002007-07-12T05:21:57.363-07:00Shakira - Ojos Asi<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/8p7TzHsv3wk"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/8p7TzHsv3wk" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-90146995700081863312007-07-12T02:43:00.000-07:002007-07-12T02:44:21.806-07:00Love Video Song<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/68UEDjK89ic"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/68UEDjK89ic" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-43931349168265598852007-07-10T01:31:00.000-07:002007-07-10T01:32:34.345-07:00Hiroshema Reenactment<object width="425" height="343"><param name="movie" value="http://www.vidivodo.com/VideoPlayerShare.swf?lang=en&vidID=31393&vCode=v200703261451050031393&dura=118&File=vidservers/server184/videos/2007/03/26/14/v200703261451050031393.flv"></param><param name="wmode" value="transparent"></param><embed src="http://www.vidivodo.com/VideoPlayerShare.swf?lang=en&vidID=31393&vCode=v200703261451050031393&dura=118&File=vidservers/server184/videos/2007/03/26/14/v200703261451050031393.flv" type="application/x-shockwave-flash" wmode="transparent" width="425" height="343"></embed></object>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-91572073422432623622007-07-03T02:48:00.001-07:002007-07-03T02:48:49.101-07:00Convert CString to LPBYTECString str = "la-la-la";<br />LPBYTE pByte = new BYTE[str.GetLength() + 1];<br />memcpy(pByte, (VOID*)LPCTSTR(str), str.GetLength());Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-37108435422958516732007-07-02T03:49:00.001-07:002007-07-02T03:49:22.588-07:00Top 3 laughing baby´s<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/x3Rw_3ky-uo"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/x3Rw_3ky-uo" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-24237465641703676792007-07-01T22:17:00.000-07:002007-07-02T01:41:50.353-07:00Funny Video<embed src="http://www.metacafe.com/fplayer/664630/comedy.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed><br/><font size="1"><br /> <a href="http://www.metacafe.com/watch/664630/comedy/">Comedy - video powered by Metacafe</a></font>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-52908927418180958552007-06-30T03:39:00.000-07:002007-06-30T03:42:29.301-07:00Convert LRESULT to LPARAM vc++ win32<span style="color: rgb(51, 51, 255);font-size:100%;" >LRESULT tt =12;<br />wchar_t buf[20];<br /> _itow_s(tt,buf,20,10);<br />LPARAM lp = (LPARAM) buf;<br /></span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-88394095339694630622007-06-30T02:38:00.000-07:002007-06-30T02:39:25.092-07:00Read key string from registry c++ win32<span style="color: rgb(51, 51, 255);font-size:100%;" >LPTSTR DStudioRegistry::GetStringValue(HKEY hKey, LPCWSTR key, LPCWSTR string)<br />{<br /> DWORD dwType, dwSize;<br /> HKEY hSubKey;<br /> KString temp;<br /> LPTSTR result;<br /> BYTE buff[512];<br /> if (RegOpenKeyEx(hKey, key, NULL, KEY_ALL_ACCESS ,&hSubKey)== ERROR_SUCCESS)<br /> {<br /> if (RegQueryValueExW(hSubKey, string , NULL, &dwType, buff, &dwSize) == ERROR_SUCCESS)<br /> {<br /> KString str( (LPCTSTR)buff);<br /> <br /> result = str.m_sString;<br /> }<br /> }<br /> RegCloseKey(hKey);<br /> return result;<br />}</span>Unknownnoreply@blogger.com3tag:blogger.com,1999:blog-32059817.post-746411673218922052007-06-30T02:37:00.000-07:002007-06-30T02:38:25.605-07:00Read DWORD from registry c++ win32<span style="color: rgb(51, 51, 255);font-size:100%;" >DWORD DStudioRegistry::GetDWORDValue(HKEY hKey1, LPCWSTR key, LPCWSTR string)<br />{<br /> DWORD dwSavePageSettings = 0;<br /> HKEY hKey = NULL;<br /> REGSAM sam = KEY_READ;<br /> char* pszKey = "Software\\Microsoft\\Raja";<br /><br /> if ( ERROR_SUCCESS != RegOpenKeyEx ( hKey1, key, 0, sam, &hKey)) {<br /><br /> return dwSavePageSettings;<br /><br /> } else {<br /><br /> DWORD dwType = REG_DWORD;<br /> DWORD dwSize = sizeof ( DWORD);<br /> if ( ERROR_SUCCESS != RegQueryValueEx ( hKey, string, NULL, &dwType, ( LPBYTE) &dwSavePageSettings, &dwSize))<br /> {<br /> // error<br /> }<br /> }<br /><br /> RegCloseKey ( hKey);<br /><br /> return dwSavePageSettings;<br />}</span>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-32059817.post-12058068397114617372007-06-30T02:27:00.000-07:002007-06-30T02:31:25.109-07:00How to convert BYTE array to CString<pre style="color: rgb(51, 51, 255); font-family: lucida grande;"><span style="font-size:100%;">BYTE x[5];<br />x[0] = 'A';<br />x[1] = 0;<br />x[2] = 'B';<br />x[3] = 'C';<br />x[4] = 0;<br />CString str( (LPCSTR) &x, sizeof(x) );</span></pre>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-24503352609932105452007-06-12T02:56:00.000-07:002007-06-12T02:58:05.901-07:00Registry Key Creation using RegCreateKey<span style="font-size:100%;">HKEY hKey;<br />LONG iSuccess = RegCreateKeyEx( HKEY_CURRENT_USER, L"SOFTWARE\\Raja", 0L,NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hKey,0);</span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-32059817.post-81495457143595092652007-06-06T22:31:00.000-07:002007-06-06T22:36:08.330-07:00Windows Mobile 5.0 Tweaks<span style="font-size:100%;"> </span><p><span style="font-size:100%;"><b><span style="color: fuchsia;">Make WM5 keep CAB files around after installing (2)</span></b><span style="color: fuchsia;"><o:p></o:p></span></span></p> <p><span style="font-size:100%;">An alternative method of making WM5 keep the original .CAB file around after installing the application is by adding the "/nodelete" option to the Windows CE loader:</span></p> <pre><span style="font-size:100%;"><code>HKCR\cabfile\Shell\open\command = 'wceload.exe "%1" /nodelete' (REG<i>SZ string, no quotes)</i></code></span></pre> <p class="tightenabletopbottom"><span style="font-size:100%;">An alternative method of making WM5 ask where to install a program is by adding the "/askdest" option to the Windows CE loader:</span></p> <p class="tightenabletopbottom"><span style="font-size:100%;"><code><span style="font-size: 10pt;">HKCR\cabfile\Shell\open\command = 'wceload.exe "%1" /askdest' (REG_SZ string, no quotes)</span></code></span></p> <p class="MsoNormal"><span style="font-size:100%;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size:100%;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size:100%;"><b style=""><span style="color: maroon;">Brigthness<o:p></o:p></span></b></span></p> <p class="MsoNormal"><span style="font-size:100%;">[HKEY_CURRENT_USER\ControlPanel\BackLight]<span style=""> </span>- ACBrigthness [Dword] 1-6<span style=""> </span></span></p> <p class="MsoNormal"><span style="font-size:100%;">[HKEY_CURRENT_USER\ControlPanel\BackLight]<span style=""> </span>- BatteryBrigthness [Dword] 1-6</span></p> <p class="MsoNormal"><span style="font-size:100%;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size:100%;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size:100%;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size:100%;"><b style=""><span style="color: red;">Show clock in task bar <o:p></o:p></span></b></span></p> <p class="MsoNormal"><span style="font-size:100%;">[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\TaskBar]<span style=""> </span>LimitedClock [Dword] 0</span></p> <p class="MsoNormal"><span style="font-size:100%;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size:100%;"><b style=""><span style="color: red;">To hide<o:p></o:p></span></b></span></p> <p class="MsoNormal"><span style="font-size:100%;">[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\TaskBar]<span style=""> </span>LimitedClock [Dword] 1<span style=""> </span></span></p> <p class="MsoNormal"><span style="font-size:100%;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size:100%;"><b><span style="color: red;">Remove operator skin from Phone app to remove</span></b><span style="color: red;"><o:p></o:p></span></span></p> <p class="MsoNormal"><span style="font-size:100%;"><span style="color: red;">[HKEY_LOCAL_MACHINE\Security\Phone\Skin]<span style=""> </span>Enabled [DWord] 0<o:p></o:p></span></span></p> <p class="MsoNormal"><span style="font-size:100%;"><b style=""><span style="color: red;">To show<o:p></o:p></span></b></span></p> <p class="MsoNormal"><span style="font-size:100%;"><span style="color: red;">[HKEY_LOCAL_MACHINE\Security\Phone\Skin]<span style=""> </span>Enabled [DWord] 1</span></span></p> <p class="MsoNormal"><span style="font-size:100%;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size:100%;"><o:p> </o:p></span></p>Unknownnoreply@blogger.com0