Logicboy's Q&A profile
Smart Device Development windows mobile 5.0 smartphone use serialport reading gps data problem
Hello all : I use serialport.read function read gps data in windows mobile smartphone by vs.net 2005, but it has some problem happened. The error happened in serialport1.read(data,0,50) This following is my code: Private Sub MenuItem2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles MenuItem2.Click SerialPort1.Open() If SerialPort1.IsOpen = True Then Label2.Text = "Open" Label2.Visible = False Else Label2.Text = "close" End If Dim data(999) As Char SerialPort1.Read(data, 0, 50) TextBox1.Text = data(1) SerialPort1.Close() End Sub ...Show All
Visual C++ no Code Snippets in C++?
Somewhere I read that code snippets are not aplicable in C++ code. Is that true and why I only want to use snippets to insert documentation templates for classes, functions etc. at a first look I do not see any technical reason for not supporting that feature. Thanks for your help, Tobias No Insert Snippet, no Snippets folder in the VC folder and no Snippets editor. Perhaps it has something to do with C++ class declarations and method implementations normally stored in separate files ...Show All
Visual J# Difficulty of porting to J# from Sun Java?
I asked the same question in Sun's web site, which got me some cold faces. I hope folks here would be nice. i m only seeking an advice. my app was originaly developed under Sun's JDK 1.1.4, but as i kept adding more fetures on it, it has been optimised to a 1.4.2 app, and some parts of the code are using 1.5's. Due to the fact that my clients mainly use windows and they only like Word(no open office), and i find it's really hard to deal with Word using java, so i m thinking of building a native app for windows and by using the .net library, let me generate word document more easily. we are just small company, we dont have enough man power ...Show All
Visual Studio Enable/Disable property OnValueChanging/OnValueChanged
Is it possible to disable one property in properties grid when another property takes a specific value For example: a Class atribute has 2 properties, DataType and TextSize. I want to enable the property TextSize only when the DataType "String" is selected I have overridden " OnValueChanging/OnValueChanged" methods , but I don't know how to disable the properties on the grid. Thanks Pedro This type of dynamic property grid behavior requires a custom PropertyDescriptor class. In this class, you can override properties such as IsReadOnly to customize the behavior of the propert ...Show All
Audio and Video Development Mpeg1 format support?
Hello everyone, I was trying to rewrite the VideoSource example provided in the MF SDK as a mpeg1 source filter that output two streams (one for video payloads and one for audio payloads). In VideoSource::CreateMediaType() I was supposed to convert a AM_MEDIA_TYPE that presents a mpeg1 video payload media type into a IMFMediaType format, however, the MFCreateMediaTypeFromRepresentation() function does not seems to recognize the AM_MEDIA_TYPE and return E_INVALIDARG. Can someone gives me a hint about what is done in the MFCreateMediaTypeFromRepresentation() and is it currently possible for MF to do mpeg1 file payback, like mpeg decod ...Show All
.NET Development VS.NET 2003 to build applications using .NET Framework 2.0
Can one use VS.NET 2003 to build applications leveraging the .NET framework 2.0 Hi, Definitely. But you should use MSBuild . cheers, Paul June A. Domag ...Show All
Visual C# How can i change string to font object??
I am making a simple text editor using C#. And i want to change the font size of the text. I did it and stored the font settings in the registry, by converting the font object to string. Now when i start the editor i want that font settings to be reloaded in it. So how can i change the string stored in the registry back to the font object so as to restore the font settings ps: I can't save the file as .rtf, as i am dealing with only plain text. thanks. thanks for replying but i asked how to change the whole string to the font object, not just the font name and fontsize. You know that font object has many other properties besides those ...Show All
Visual Studio Team System Single PC - Team Build Error - Build Machine Not Reachable
I've setup the client, data and application tiers on the same machine - a Virtual PC called Dellone. When I try to do a Team Build an error message appears saying Build Machine Not Reachable. Why is this happening I'm following the instructions in the first Team Build Walkthrough - Creating a Build Type in Team Build. It says at step 1 "On the Team menu, select Team Project Settings , then click Build Configurations . The is displayed .", but the Team Project Settings submenu doesn't contain Build Configurations, just Groups, Permissions, Classifications and Source Control. I therefore attempted to set the Build configuration as follows: 1. ...Show All
Windows Forms fotovision panels
Hi can anyone guide me into how to learn how to program the captions/ panels used in for fotovision....Books, links, anything will be appreciated. I looked at the code and it looked quite complex to understand, maybe coz it was a whole appliaction and me trying to understand the little bits was too much.. Thank you. Have you checked out&nb ...Show All
Software Development for Windows Vista Roles and WWF
I've read the articles that Microsoft have published about the new WWF. I saw only in the article by David Chappel a few words about this issue. In People 2 People Workflows one of the major concernes is how flexible is Role resolution and Role assignment works. Where can i get more info about how WWF is going to address this issue Hello Krishna, I'm deriving the class WorkflowRole, and then using it in an EventSink. When the call to the method I ncludesIdentity happens, the identity comes "" (empty). So my question is the next one: How can I set up the identity of the user who makes the call Regards, M ...Show All
Visual C++ msvcr80.dll Problem
Hi there, can someone possibly tell me why Noton WinDoctor is telling me that 10 executables in the .NET Framework 2.0 cannot access the necessary dll file msvcr80.dll I see that the dll exists in the WinSxS directory and I'm running XP pro. I didn't have this problem until I downloaded the 2.0 framework at windows update. Any advice appreciated. Thanks. Naolin I am having the same problem... I even uninstalled it.. and it didnt show a problem then I reinstalled the update and it showed up as a problem in the Windoctor again... any ideas as to what is wrong with this update Im sure its a simpl ...Show All
Visual Studio 2008 (Pre-release) WinFX May CTP ? +"real life and live" WPF application screen shots
Next Week or other time Who can tell me I apologize for not responding sooner. In case you hadn't figured out -- there wasn't a March (or April CTP). Unfortunately, I can't confirm an exact date for the next CTP -- but we are working on one... Sorry that I don't have more data to share right now... -Arik ...Show All
Visual Studio Team System HowTo Update AreaPath through OM
Hi guys, How can we set AreaPath field through Object Model When the field is set, on save Work Item complains on AreaID field. There is no AreaID field defined in our WI. If it is system, reserved field, what should be its value Hi Leon, The behavior you are seeing may be because of a bug in the beta2 workitemtracking code, where the format to set and get values in the Area Path field are different. If the project is (MyProj1), with node Area1: The format to set Area Path is: \ Area1 The format that Area Path is returned in is: \MyProj1\Project Structure\Area1 This bug has been fixed after beta2. Thanks. -Mareen. ...Show All
Visual Basic Including data files in "Click Once" deployment
Hi all, I have an application that uses one of 9 different data files dependending on the application requirements at any given time. How do I include these files in the deployment file in the correct directory so the program can find them. Thanks Dick Hi David, I really , really appreciate this reply. I too am confused about why the data doesn't show up in the published output, I always thought it would until I tried it. I have nothing but time until I get an app I can publish to a web site that is being built. If you will email me at dcroose@comcast.net I will attach the entire application fol ...Show All
Visual Studio Express Editions Getting started walkthrough and the cardgame program
Does this program actually do anything All I get is a brief flash of a DOS window What a way to start! Gordon The program compiles and runs.....it just doesn't do anything. With a module being called cardgame.cpp I expected some sort of game to start unless the whole thing is used just to demonstrate how to but breakpoints in..... but then why not use simpler program like x = 10; y = 5 ; I am slightly mystified as to the relevance of the program PS by the way I include system("pause"); and compilation error occured Thanks Gordon ...Show All
