Doug DeBug's Q&A profile
Smart Device Development Custom Dialer as my primary dialer on windows mobile.
I want to use my custom phone dialer as my primary dialer. Is this possible or probably, is there a way that can hook it up on Dial/Hangup keys Thanks in advance, any reply will be appreciated. If you want to replace a dialer, no, you can not do that as a third party developer. MSCDial is the king of the scene on WM 5.0, and you can not intercept calls to it. ...Show All
Smart Device Development EVC++ 4.0 : float to string conversion unicode problem?
hi everyone, i'm new to win32 programming , especially for smart devices. i'm developping an application and i need to show some float variables in edit boxes. so first i need to convert them to strings. here is the code i use: LPTSTR buff = new TCHAR[256+1]; sprintf((char*)buff,"%g", x_coord); SetDlgItemText(hDlg, IDC_XCOORD, buff); delete[] buff; someone told me to use _stprintfl_s instead of sprintf but it seems that is not supported by evc++ 4 i tried to include several files that i read in msdn but with no luck.. so to be quick , with this code i get as output those st ...Show All
Windows Forms Problem with the sample code of showing the error icon when the user is editing the cell
Hi ! I am using the sample code mentioned in the windows forms faq for datagridview. The code is for showing the error icon when the user is editing the cell. The problem with the code is the tooltip does not appear at all when the "BAD" text is typed in one of the cells. Also, when you type bad data and then enter the right data and then come back again to the same cell and type bad data the error icon does not appear. The error icon is only a one time thing. I am not sure if anybody has really tested this piece of code.Or am I missing anything here . Suggestions and advices would be helpful. This should be really a standard code to capture the edits but apparently is not working correctly. The code is as follows: private ToolT ...Show All
Visual C++ CList and template
Hi guys, I made a template that will works on a CList type, but it doesn't work. template <class T> class CIntFile { // ... void Write(T list); }; template <class T> void CIntFile<T>::Write(T list) { //// list.GetAt(0); list.Next(); //// } ///////////////////////////// in another file: CList<CIntMyClass> listMyClass; /// fill it listMyClass.Add(NewData); /// CIntFile<CIntMyClass> intFile; intFile.Write(listMyClass); -------------- Why Tnx Not problem of compilation of linking. Just one problem, I don't know how I can make a template class that can accept a CList of MyClasses and use these by the methods of my template class. ...Show All
Visual Studio Express Editions Lesson #4 - Development
Sometimes the idea of using the debugger, can be intimdating to those unfamiliar with them. This is a tutorial based in a standard piece a source code that we will supply for the purposes of this tutorial. We're going to make a cheap MP3 player. I hope this tutorial is highly interactive and constructive. Needed Ingredients: 1.) A test directory with about 4 mp3 files. Make them as short as possible. 2.) Create a new Windows project. In the form Designer, add: a.) A progressbar called progressbar b.) Two buttons, One named btPlay and the other called btStop. In their respective text property boxes in the designer, insert Play and Stop. c.) A windows Media Player control. This probably is not in your toolbox ...Show All
Software Development for Windows Vista Tablet or UMPC recommendations and questions
1) Which models or brands of UMPC or tablets best support Vista's new features to capture both stylus input (signatures to be specific) yet allow four touch input (finger, not stylus) when application features simple large format tap menus or selections (restaurant or doctors's office apps) 2) How does Vista provide this dual iput technology (writing recognition and touchscreen) Is there a setting in the framework that allows you to switch on the fly between an active or passive screen input Thanks in advance, Jim Hi Jim: It's a little too early to be saying which UMPCs best support Windows Vista. UMPCs were designed to run Windows XP. There will be a next generation of UMPCs designed to run Vista, b ...Show All
Visual Studio Tools for Office Dealing with traceability when inserting values from an add-in in Word 2003 & 2007
Hi, we plan to develop an add-in for word that will retrieve information (for instance, a list of string values) from a web service and insert the selected value (the selected string) into the active word document at cursor position. We unfortunately have several constraints on the way the inserted value should behave: it can not be modified except by re-using an add-in control (we then must be able to add event handling) it have to keep traceability information provided by the web service (kind of attached data that have not to be displayed) inserted values, traceability data and above behaviours have to be kept when closing and reopening the document inserted values must at least be displayed when us ...Show All
SQL Server Image in 2000 to Varbinary(max) in 2005 won't release space
We store PDF files in a SQL table with a total table size of 500 MB. We sucessfully upgraded to SQL 2005 and continued to use image as the data type. I must be missing something, but I cannot seem to make SQL release disk size it has claimed in the past. We are breaking this database up to one database per customer account and we're seeing that as we: Make a copy of the database (one per customer) Delete out all records that do not pertain to that customer The data size of all of the PDF tables remain constant at 500 MB. Even when deleting all records from the table it will remain at the full size. I'm getting the table size from sp_spaceused I've tried: running DBCC UpdateUsage Changing from IMAGE to varbinary(m ...Show All
Visual Studio Express Editions Video won't play correctly?
I've been trying to play the tutorial videos, and they sort of... Glitch out, like I don't have the correct codec or something. I remember this from a Raknet (a network API mostly used for games) video a long time ago, had the same problem, but I can't remember what I did in order to fix it. Nevermind, I fired up DivX player and it works fine. Windows Media Player probably needs to be update or something... I will move the other half of this post into a new thread. ...Show All
Windows Forms Enabling/Disabling ToolStripMenuItem objects
Hi, I have a big MenuStrip and I want to create a Sub to enable or disable each ToolStripMenuItem, where the Item name and the status are parameters for the Sub. The Sub can be something like: Sub SetMenuEnable(ByRef MenuName As String, ByRef Status As Boolean) myMenu.Items(MenuName).Enabled = Status End Sub Any idea how to do it in vb.net 2005 Thanks Cristian The following code I've just written should do the trick... Private Sub SetAllMenuItems( ByRef menuStrip As MenuStrip, ByVal enable As Boolean ) Dim c As ToolStripItem Dim t As ToolStripMenuItem For Each c In menuStrip.Items c.Enabled = enable If c.GetType Is GetType (ToolS ...Show All
Visual Studio 2008 (Pre-release) Databinding, Templates
Hi, I'm experimenting with WPF and Cider, and I have a couple of comments regarding things that I miss: - Databinding: I'd be nice to have some kind of wizard to create ListViews/GridViews, kind of what Sparkle has. Of course I can write directly the xaml code, but I think it will save time, even if the default code will be modified later. - Templates and Styles: I'm thinking features like we have when we design an ASP.NET app., for example in the templates of a gridview. Is there any chance that something like that will be in a next release of Cider I think that those things will we helpfull, because right now I feel that I'm writing too much xaml by hand, although this way I learn more about WPF. Thanks, Andres. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Future of DirectX
I'm starting to get worried about DirectX, because mostly it becomes deprecated, first there was DirectPlay, and now it is the same thing for DirectInput and DirectSound, I've recently read that they are becoming deprecated in favor of XACT and XInput. Could you tell me why is this happening What will become of DirectX in the future Will be there only Direct3D, or will it disappear either I'd like to give you my opinion that deprecating good API's like DirectInput and DirectSound is a bad idea. Take a look at XInput- it allows only xbox controllers, and what about mice, keyboards, or other joypads And mostly I'm concerned about DirectSound, In Vista there is no hardware support for it, does that mean I have to stop working with Direc ...Show All
Visual Basic Make a paragraph using the Label.
Hey, my first post in this forum, the friend who told me about Visual Basics 2005 Express Edition told me to ask my question here since he couldn't answer it. Anyways as the Subject says, I'm trying to find out how to put a paragraph in a Label. In Example... ____________ Hello, | How Are You | ----------------- ^(Labels text)^ Anyone here can help me out Thanks :D! If you want to set the property right away, you can go to the text property in the properties window and enter the text in paragraph style. However, if you want the code to do it, just use the same method as you would a msgbox. Label1.Text = "Hello" + Environment.NewLine + "How Are ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Putting a Window on top of a DirectX fullscreen window?
I'm trying to paint on top of a running full screen DirectX app (seperate process), similar to how XFire In Game works. Is there a way I can do this Currently anything I do just either knocks out my applications Device (DeviceLost event) or causes the other application to minimize. If possible I'd like to be able to do it without obtaining a handle to the other application's Device object. Any ideas Thanks in advance When an app has full screen it own the whole screen - windows can't draw over the top which is why it minimizes when other apps get focus. The only way to draw on top is to intercept the DirectX API calls and insert your own. I suspect this is is what Xfire, Pix and Fraps all do to draw ...Show All
Visual Basic Minimum function
I'm working on a project that has the user input 15 grades, calculates the average, and finds the maximum and minimum values. The average and maximum calculations work but I can't figure out how to get the minimum value. Here is my code so far: Public Sub DetermineClassAverage() Dim total As Integer ' sum of grades entered by user Dim gradeCounter As Integer ' number of grades input Dim grade As Integer ' grade input by user Dim average As Integer ' average of grades Dim max As Integer Dim min As Integer ' initialization phase total = 0 ' set total to zero gradeCounter = 1 ' prepare to loop ' processing phase While gradeCounter <= 15 ' loop 15 ...Show All
