CodeButcher's Q&A profile
Smart Device Development CF recomended books, documents and tutorials.
Dear All, I am completely new to the CF environment. My project consists of a PDA, running windows mobile 5.0, connecting to an SQL Server using GPRS and using the services of GPS. Are there any recommended books, documents or tutorials to help me getting starting with this project My worries are how to create and close a GPRS connection and get the coordinates from the GPS hardware. Any help will be very appreciated. Thank you in advance. Hi For GPS, read the MSDN docs available here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/mobilesdk5/html/wce51oriGPSIntermediateDriverApplicationDevelopment.asp And there is a sample showing how to use this API using managed code i ...Show All
Visual Basic printing contents of a richtextbox
Hello Suppose I have a ricthtextbox and i wish to get users of my app to be able to able to print out the contents of the richtextbox. Is there an easy way to get this done I have been using the PrintDocument object and specifying the correct handler. However when I call PrintDocument.Print, I get this save as dialog asking me to save ghe document.mdi file resulting from the printing command. I do not want this to come up. What is the easiest way to print the contents of the richtextbox to the default printer in visual basic thanks Shyma If you want the full 'richness' (Multiple fonts, pictures etc.) of a richtextbox to print correctly. You must have your print routine ask the richtextbox to render i ...Show All
Visual Basic generic list of buttons that have check property of checkbox that looks like a button.
'need to create at runtime 'n' buttons that have a 'checked' property (1 or 0) Public SelectFrames As New System.Collections.Generic.List(Of Button) ' ' or create 'n' checkboxes that look like buttons. Public SelectFrames As New System.Collections.Generic.List(Of Checkbox) Each button must have a 'checked' property so that the application can keep track of how many items have been selected on a corresponding graphical display and which ones. Are there any properties I can already use for the existing controls to achieve this or do I have to create a new class inheriting either the button or checkbox controls and then subclassing off a new property Thanks for any ideas.. (if this is clear) -greg ******************** ...Show All
.NET Development DateTime.Parse(<dateobjectvar>.ToString()) exception
After installing our ASP.NET (currently still 1.1) application for years successfully on different systems in different countries (even far east and arabic) we finally came across a 'seemingly english' system (installed somewhere in Luxembourg :-), where the line above throws an exception. Although I fixed the problem by using explicit ISO date formatting strings I tried finding related issues, because the construction should NOT throw errors according to the documentation. The date string being parsed looks like this: "27/11/2006 10:19:12 PM" Could this be related to http://www.pcreview.co.uk/forums/thread-1254179.php which seems to indicate that console apps react different then ASP.NET apps, which may be ...Show All
Visual C++ Visual Studio 2005 layout prob
Hi guys I have been trying to compile an app in Visual Studio 2005(its a c++ app) but every time i run the proggy after compiling it, it looks like this: After Compiling(click me) although when i click on the Test Dialog button in Visual Studio 2005 it shows the apps layout like this: Using Test Dialog(click me) I started the project in Visual Studio 2005 and the first time when i compiled the app after adding just a simple button ,nothing else, it worked and my app was compiled in the VS2005 format although after adding som functions and stuff it compiled in Visual C++ 6 format! Visual Studio 2005 Format: Click Here ...Show All
Windows Forms How can I make update version for application which was signed with certificate now expired?
If I change expired code signing certificate to new one and publish updated application, client will fail to launch. And code signing fails if I try to use expired certificate. How can I make update version for application signed with old certificate Hi, If your certificate has expired you need to renew the certificate from Certificate authority like Verisign or say your company has a Certificate server. The new certifcate must have the same public/private key pair as the original certificate which was expired. Alternatively you could continue signing with the expired ceritifcate but the ClickOnce Trust manager prompt will always display Unknow Publisher as the certificate has expired. If you ...Show All
SQL Server Draw Bitmap from Points in report
Hi, i have a database field that has a drawing stored as points, for example.... (x1,y1)(x2,x2)(x1,y1)(x2,x2)(x1,y1)(x2,x2)(x1,y1)(x2,x2)(x1,y1)(x2,x2)(x1,y1)(x2,x2)(x1,y1)(x2,x2) In my VB.NET application, i can take those points and recreate the image. I need to do the same in reporting services... i am trying to replace a legacy ACCESS report, that had the drawing object. How can i recreate the image in reporting services is there an easy way to do so i believe i tried to create a class and tried to reference it and call the function to return the data as an image, but i got a system.drawing not found error... There are at least two options: 1. use the built-in charts with chart type = scatt ...Show All
Visual Studio Team System Deploy with Unit Test
I wish to use VSTSForDP to support my pre-existing unit tests. Currently the process we use is anytime we make a change to the database schema we use SQL management studio to generate a script that will create the database. We then check that .sql file into TFS as a solution item. Our unit tests have a piece of init code that reads in the .sql file and executes it against our test server to create a fresh database that our unit tests will use. We wish to simplify this process using DataDude. When our Unit Test init code runs I would like to run the .sql file that is the result of the build on our DataDude project. How can I do this With a solution item I can use the test run config to make that solution item deploy along with the unit ...Show All
SQL Server SQL 2005 SP1 install Failure
I have attempted to install SP1 on to my SQL 2005 Server numerous times and cannot get it to be successful. It failes on database services everytime and the log and event log report that my account cannot change permissions on the Data directory. My system is running Server 2003 R2 Ent x64. I have a Cluster setup with no second node at this time (future additon). I am also using a mount point inside the Data directory for logs. I have monitored the install using FileMon and do not see any file access issues during the installation process. I have also looked at the files and directories within the Data directory and all security ACLs seem fine. I am running the install with an account that has admin permission on the box. The service accou ...Show All
Visual C++ CPU temperature
Hi, I need to measure the CPU temperature. I understand that I need to use WMI for this. Using wbemtest.ext (present on every computer) i connect to root\wmi namespace and query "select * from MSAcpi_ThermalZoneTemperature". When I search for currenttemperature propery , it shows "null". does that mean that I will not be able to measure the CPU temperature Im using windows XP. Can anyone please help. If I cannot use this meathod, is there any other method that I can use Any information in this regard will be very helpful. Thanks, Manasi You can use the microsoft.public.win32.programmer.wmi newsgroup for this; the online interface is at Discussions in win3 ...Show All
SQL Server Select GetDate() Just the month or year
I wonder if someone can help me with getting JUST the month and year from SQL DB. Using the Select Getdate() Statement. If I need to use another one that would work that would be appretiated as well. Thanks! Arnie Rowland wrote: Waldrop wrote: select year(getdate()) % 100 Careful with this one -it will drop the leading zero and return only That was odd -just put 6 in square brackets...(No negativity meant! -LOL) ...Show All
.NET Development Open-source managed debugger
I would like to let you know that I have written open-source managed debugger which is part of SharpDevelop 2.0 (open-source IDE for .NET Framework): http://www.icsharpcode.net/OpenSource/SD/ A few features of the managed debugger are: - Open-source, LGPL licensed (but other arrangements are also possible) - One stand-alone assembly file (it is independent of SharpDevelop) - All source code is in C# (no .il files; no assembly merging required) - All standard features - stepping, breakpoints, exceptions, etc... - Property evaluation SharpDevelop uses this library to provide the GUI features like debug windows or multi-level tooltips. You can take a look at this code to see how to use the debugger library. At the moment I am ...Show All
Windows Forms Thank you!!
Dear all, Me and my friend are new to visual studio 2005 express edition. We are trying to build a simple desktop database application. Now both of us have different connectionString to the database in our computers (which is quite obvious).At first, we used hardcoded connection strings in our apps. So it was a huge task to replace all those lines as we shifted our computers to share our works. For compatibality, we were trying to use the app.config file for the connectionString, which looks like : (in my computer) < xml version = " 1.0 " encoding = " utf-8 " > < configuration > < configSections > </ configSections > < connectionStrings > < add name = & ...Show All
Game Technologies: DirectX, XNA, XACT, etc. membership? important!!
uhm, when u get a membership for 4 months on xbox , can u still play games when the membership runs out,, cuz if not, this whole thing is a waste and money. and.. when ur creating for the 360, can u preview or liek .. play.. ur games on windows b4 sending it over newb question , but i havent tried XNA yet darknemesis25 wrote: uhm, when u get a membership for 4 months on xbox , can u still play games when the membership runs out,, cuz if not, this whole thing is a waste and money. The membership allows you to deploy and debug games. Once they're on your 360, you can play them forever AFAIK. darknemesis25 wrote: when ur creating for the 360, can u preview or liek .. play.. ur games on windows b4 ...Show All
Visual Basic Recieving '' character symbols when loading text files not containing them
I am writing a cross-platform application and I am using Visual Basic 2003 Standard for the Windows XP version of the application. My Windows Mobile version writes information out to a text file and my Windows XP version can load and modify them. The text files do not contain the i symboles, but when I load the text files into my Visual Basic application each file loaded has those symbols attached to the begining of the first line I read into my XP application. Does anyone know why this is happening At first I thought my Windows Mobile Program was the culprit but considering the fact that those symbols are not in the text file when I view them (I used 3 different text editors to make sure) so I am assuming it's something I need to ...Show All
