Diester's Q&A profile
Smart Device Development What is the right way to handle number and text input mode in smartphone
Hi, we developed an application for Smartphone that has text box that we only want user to enter only numbers and decimal point. For some smartphone with keypad such as Motorola Q phone, if we set the text box in number input mode, user can not enter decimal point. If we set text box in text mode, user has to use function and number keys together to enter numbers that is not convenient for user. What is the right way to write code for this Thanks. ...Show All
Visual C++ How to simultaneously trigger multiple threads?
I have 3 worker threads, each created and started in the following manner: HWND pThread = ::AfxBeginThread(ThreadProc,hWnd,THREAD_PRIORITY_NORMAL); within each of the 3 versions of ThreadProc, i placed a ::WaitForSingleObject(ACEventObject.m_hObject,INFINITE); Previously, i have defined a CEvent object as global just for testing purposes. I've tried calling the ACEventObject.SetEvent(), .PulseEvent() and .ResetEvent, but i found out that each call of SetEvent or PulseEvent only set off one thread at a time. Which means, i had to call the setevent() or setpulse() three times so that all three will run. Is there a way to set them off all at one, because i'm working on quite a time critical data acquisition application. Thank You. ...Show All
Smart Device Development How to copy file from CE device using WLAN?
Hi I have used the command My .Computer.Network.UploadFile to copy from one PC to another but My .Computer.Network is not aviable for CE 5.0 How can I do this with Visual Basic Using Visual Studio 2005 If your CE device supports NBT client you can do this: System.IO.File.Copy( "\Full\Path\To\FileOnDevice" , " \\Server\share\path\FileOnDesktop " ) ...Show All
Visual Studio Express Editions Norton like Taskbar ico
Hi. I was wondering if it is possible to make an icon like Norton has on the taskbar (Not the tray icon), the yellow one on it's left. It is directly a button on the task bar. Is there an API function (win32) for it Or maybe even a .NET function Thanks. The button appears on the taskbar. But this only works with windows xp, windows 2000 pro and windows 2003. Try to decomment the messageboxes so that you can see if it get's the handles right. ...Show All
Visual C# How to send data to a field in explorer?
Hello, I am building an application that works alongside explorer. The application generates some data that I then need to enter into som text fields on an explorer page. The application itself is currently in c# but this element could be rewritten in a different language. I am currently using Sendkeys but this relies on the windo having the focus, which I can;t guarentee, so I woudl like to find a way of sending data directly to a field. Any advice or hellp woudl be greatly appreciated. Steve Check this thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1084766&SiteID=1 You can use SendKeys.Send to send keys to active window. You can start IE that will open some website ...Show All
Software Development for Windows Vista What happened to the HelpDeskSupport sample app in .NET RC1 and WinWF CTP5?
Dear all, The HelpDeskSupport sample was in the SDK up until Beta 2.2, but it seems to have vanished. It looks like it exists on the web, but the links to the source code from the documentation are broken. I used it to obtain classes for "simple" communication between asp.net and a state machine workflow. This seemed to work ok, so I didn't look into it to any degree, but under RC1, using manual scheduling, it crashes because the communication interface uses a class global static to keep track of the DataPipeList and this does not persist across re-starts. The idea of a class that abstracts to data pipes with defined message formats is a good one, although the implementation of it here is a bit clumsy. Is there a samp ...Show All
Smart Device Development How do I receive messages that have been sent over HTTP
Hi, I am trying to use msmq over http (or srmp) in a smart device application (.net cf). I have been able to send messages over http in a desktop application ,but I am not able to do the same in .net cf. Is msmq over http supported in .net cf 2.0 For Windows Server 2003 I had to install a msmq over http component , is there something similar that needs to be done on the device/emulator Am I missing something here Thanks, Deepthi First of all, why would you even try creating the local queue (on localhost) via HTTP Always do it locally. Note you can not create/delete/read remote queues on MSMQ CE regardless of protocol. Next, your URL is incorrect, should be: FormatName:Direct= ...Show All
Windows Forms Saving Stream to File
I have the URL of a PDF document, and I'm using this code to read the URL and get a Stream WebRequest MyReq = WebRequest .Create(varURL); WebResponse MyResp = MyReq.GetResponse(); Stream data = MyResp.GetResponseStream(); //Create the bytes array store the Stream byte [] buff = new byte [MyResp.ContentLength]; //Read the Stream and Load the array int len = 0; int cnt; do { cnt = data.Read(buff, len, buff.Length - len); len += cnt; } while (cnt > 0); data.Close(); MyResp.Close(); //Recreate a Stream and pass it as a parameter MemoryStream ms = new MemoryStream (buff); Then I'm showing a Dialog to users in order to save the doc SaveFileDialog ...Show All
Visual Studio Multiple Versions on Same Computer?
Can multiple versions of Visual Studio co-exist on the same computer For example, I currently have Visual Studio Team Edition for Software Developers installed. Can I install the trial version of Team Suite without affecting my copy of VSTE For SD Thanks - Amos. When you install the Trial Edition, it will integrate with Team Ed for Software Developers; however, you should be able to remove the Trial Edition without impacting it. Moving this thread to the Visual Studio setup forum for confirmation. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XACT data loading problems
Well, after a short discussion of what audio library to use, my team and I have decided to use XACT audio for our 2D game on WindowsXP. I got the framework pretty well set up, but I am having a major issue with loading up a wave or sound bank. Loading up a streaming wave bank gives me an S_OK, but the other two give me a XACTENGINE_E_INVALIDDATA error. Ive tried a number of .xwb's, from the ones given in the XACT samples, to others i created myself using XACT. It reads in the file fine, I believe it maps the file to the void* buffer just fine, but I'm unsure how to check if it is. It also gets a correct file size, but when it goes to create the bank it fails. Any help would be greatly appreciated, as I have spent far too much time checking ...Show All
SQL Server Drill through for visualization control
Is there a way to get the Drill through to work with model viewer controls Any workaround Also, where would I find more complex data mining models for review SQLServerDataMining site, Microsoft data mining tutorial site, and Data Mining with SQL 2005 book, all checked. Anything else -Young K Thanks, Jamie and Shuvro. I'm using winform. Any idea on when Yukon SP2 is due to be released I'm trying to balance the benefit (and complexity) of nested tables vs case table model. You can flatten most scenario into case model for simplicity, but nested model seems to fit better in many cases. Is there accuracy benefit to nested models What would be rule of the thumb If you can get away with case table model, stay with case tabl ...Show All
.NET Development call variable from HTML
Hi, I have the following code in code behind of vb.net. Dim _mode as string Protected Sub Page_Load() Dim sb As New StringBuilder Dim scriptStr As String sb.Append( "<script language='javascript' type ='text/javascript'>" ) sb.Append( "var text;" ) sb.Append( "var itemID = document.getElementById('" & txtID.ClientID & "');" ) sb.Append( "text = window.showModalDialog('DialogPage.htm');" ) sb.Append( "alert(text);" ) sb.Append( "itemID .value = text;" ) sb.Append( "alert(itemID.value);" ) sb.Append( "</script>" ) scriptStr = sb.ToString() RegisterStartupScript ...Show All
Visual Studio 2008 (Pre-release) Why NULL values in the CustomerID column?
Hello, I used the Customers and Orders tables from Northwind, I produced the code using SQLMetal this time. I launched the same code used in my previous thread: NorthwindDataContext ndc = new NorthwindDataContext (); Customer customer = ndc.Customers.Single(c => c.CustomerID == "TOMSP" ); ndc.Customers.Remove(customer); ndc.SubmitChanges(); All the records in the Orders table now have a NULL value in the CustomerID column! What is it ! Another bug Why the code doesn't remove them Thanks. DLINQ does not currently model containment/composition, only association. With an association a 'parent' does not control the lifetime of a 'child'. You can control lifetime within the database by adding CA ...Show All
Software Development for Windows Vista Why is the Activity ContextGuid not public???
The execution context of an activity is an important piece of the workflow. So why is this important piece of information hidden Currently, there is no way for me to correctly obtain a specific instance of an activity. The main issue I am running into is with tracking. I need to track additional information that is supplied by custom activities. Also, can see the need for a workflow to be able to access other activities in a specific context in order to complete. Here's some code (based on Joel's explanation) that found the non-zero ContextGuid following the chain of parent activities: private void codeActivity1_ExecuteCode( object sender, EventArgs e) { Guid contextGuid = Guid .Empt ...Show All
Visual Studio Code generator custom tool that uses FileCodeModel ?
Hi, I am trying to write a custom tool that operates on a .vb or .cs file and generates a new file based on some information gathered from the parsed file. To accomplish this, I am using a code generator that gets the FileCodeModel of the project item like this EnvDTE.ProjectItem projItem = (EnvDTE.ProjectItem)codeGen.GetService(typeof(EnvDTE.ProjectItem)); return projItem.FileCodeModel; Where codeGen is a proxy to a BaseCodeGeneratorWithSite (standard class floating around "everywhere"). I manage to get the FileCodeModel successfully, and my code generator generates the correct code now. Problem is, every so often, Visual Studio 2005 crashes when the code generator is run. By crashing I mean it disappears completely from the ...Show All
