GoodMorningSky's Q&A profile
Smart Device Development getting GPS position from HP6915 PDA
Hi, I am trying to write an app for WM5 .net CF 2.0. I am trying to communicate with the inbuilt GPSdevice. I need to retrieve just the current GPS position. What is the best way to do this any advice would be great. thanx. thanx for that... once I have opened communications to the device ...how does one read from the device Not really knowing the libraries available in CF 2.0- is there a GPS Library from which I can retrieve my current position using say a getpostion() method . If anyone has code this would be cool. ...Show All
SQL Server Disable Event Logging to Windows Application Log?
Hi, We are starting to work with SSIS in our production environment & due to support issues; we are trying to get rid of the "Package xxx started" log entries inside of the Windows Application Event Log... So far, I have tried many different things, including setting the LoggingMode to "Disabled", as well as adding a new logging reference with a different destination... All of which still do not get rid of the extra log entries... Is this possible & does anyone know how to get this done Thanks! Hi, Unfortunately I still haven't found a way to get this accomplished... At least I'm not the only one with the same problem.. . :) Thanks Bobette.. For now, we are ...Show All
Visual Basic Skipping lines in a test file
I routinely work with text files with well over 3200 lines of text. I am trying to write a routine that will parse the file and skip lines (example every 3 rd line) and save the new smaller text file. I am not a college kid trying to get someone to do his homework for him. I am just trying to teach myself to write simple programs that I find useful. I have 5 or 6 VB.Net books and have not seen this topic in any of these books or the net, does anyone have any tips or pointers to get me moving in the right direction there is no way other thatn writing. a file newer. there no update a single line it seems.. is there any way to update lines or words in a file , other than reading the file and writing the same things. ...Show All
Software Development for Windows Vista WINSOCK DGRAM socket bind() BUG
Hi, I think that I found a bug in Vista winsock implementation, I'm not sure where to report, so I'll post it here. Description: If bind() call on datagram socket returns that scocket is in use WSAEADDRINUSE (10048), then next call of bind() on the same socket on a free port returns WSAEINVAL (10022) i.e socket is bound already. How to reproduce: Write a simple program that opens 2 datagram sockets, bind one of them on a free port, then bind the second socket on the same port, so you'll get WSAEADDRINUSE, then try to bind the second socket on a free port and you'll get WSAEINVAL. Test case: WSADATA wsaData; int iResult = WSAStartup(MAKEWORD(2,2), &wsaData); SOCKET Socket1 = socket(PF_INET, SOCK_DGRAM ...Show All
Visual Studio Team System details about the rules in Fxcop
how to view the details about the rules in Fxcop and how this will be fixed in the project To find out information about a rule, do the following: Open FxCop Choose Windows -> Rules Expand the Naming Rules node and double-click Abstract types should not have constructors Choose the Support tab and click the URL link To find out more information about a rule via an actual message, do the following: Open an FxCop project Choose Windows -> Active Messages Double-click a message Choose the Rule Support tab and click the URL link ...Show All
Smart Device Development AVRCP
Any help in finding documentation on how to use AVRCP in C# CF 2 appreciated :) http://www.google.com/search hl=en&q=AVRCP+Windows+Mobile+Blue+Tooth&btnG=Google+Search ...Show All
.NET Development strange problem with loading an assembly using custom AppDomain
I'm trying to load assembly files using a custom class, which was created through a custom AppDomain. Here's my Main code block: AppDomainSetup setup = new AppDomainSetup(); setup.ApplicationBase = @"C:\test"; setup.ApplicationName = "test"; setup.PrivateBinPath = "bin;plugins"; AppDomain domain = AppDomain.CreateDomain("MyDomain", null, setup); General.Loader load = (General.Loader)domain.CreateInstanceFromAndUnwrap("Loader.dll", "General.Loader"); Type[] types = load.LoadAssembly("TestObject"); All this does is setup an AppDomain and point it to "c:\test" and then I set the assembly folders it should look for when loading an assembly. The General.Loader cla ...Show All
Windows Forms Late binding issue
Hello, I've got a tricky little problem. I have a 3 forms that are very similar and I want to check 10 textboxes to see if the numbers entered in them are out of bounds or not. Now, only one form can be visible at a time and I only want to check the visible one. The code tend to be quite long but I give a short example, here's some code: Private Sub D0Limits() If Form1.Visible Then If Convert.ToDouble(Form1.textbox1.Text) < incISOLow Then Form1.ListBox1.Items.Add( "Value too low" ) Form1.textbox1.BackColor = Color.Red ElseIf Convert.ToDouble(Form1.textbox1.Text) > incISOHigh Then Form1.ListBox1.Items.Add( "Value too high" ) Form1.textbox1.BackColor = Colo ...Show All
Visual C# Dynamic Property Page creation - web app in c#
Hi, I am new to dotNet, i am developing a sample application, ASP.Net WebApplication 2005 and the coding part i am doing in C#. In the Default.aspx i would like to create a Property Sheet, And number of pages(tabs) in this property sheet should be dynamic. User enters a value say 4 then 4 Pages should be in the Created when submit button is cliked. I would to know how can solve this problem. What i have in mind is have a System.Windows.Controls.TabControl() then add items to it in a loop. How can it be implement as a web control using C# Any code snippet,suggestion,Ideas ...... regards, Alex You need Web control not Windows one. Take a look at MS ASP.NET Ajax and Tabs Control form t ...Show All
SQL Server What does "Do not replicate DELETE statements" do?
I'm trying to find information and/or articles on what exactly "Do not replicate DELETE statements" does in transactional replication. How does this affect the Publisher, Distributor, and Subscriber Does information deleted on the publisher not replicate to the subscriber What scenarios would someone use this option on a article Sorry noob to replication and SQL 2005.... For the 1st question you can read what I have done here: "Do not replicate DELETE statements" still replicates deletes to subscribers ...Show All
Visual Studio Express Editions copy dataset
hey everyone, this is not very new question, sorry about that, but i dont know how to manage to do this. i want to a copy dataset with the tables and stuff, and here's the example code they give: Private Sub CopyDataSet(ByVal myDataSet As DataSet ) ' Create an object variable for the copy. Dim copyDataSet As DataSet copyDataSet = myDataSet.Copy() ' Insert code to work with the copy. End Sub what else should i do with the code to get this work, because that dataset.copy() does'nt add new dataset itself, right the row "insert code to work with the copy" is the problem i guess. what short of code will i need then could'nt find any samples, and dont know how to do it myself. any help for this is appreciated. thanks ...Show All
Windows Forms Setting an proxy for the webbrowser tool in VS2005
Hey all, I was wondering if someone could help me with setting a proxy for the webbrowser tool in VS2005, there was already a solution for c#. Code below. Can someone translate this for VB Thanks, Does it matter I just want the code stated above translated for use in Visual Basic. So that if I make a browser that the proxy settings can be configured. ...Show All
Visual Basic Multiple fontstyles for a font
Hi, Another simple question i'm sure... I'm trying to create a font with multiple FontStyles... e.g. bold and italic and underlined I've got the basics for a single fontstyle but just can't work out multiple ones. Current Code: Dim fnt as new Font("Times New Roman", 12, FontStyle.Bold) Any help would be greatly appreciated (can't believe i've been writing apps for the last 5 years and never actually come accross this problem before!!!) Thanks OK i've wprked it out, Just me being a bit slow!!! I've created a Font Generating function that returns a font (below) taking the font name, size, and boolean values for Bold, Italic, Strikeout and Underline. Private Function ...Show All
Windows Forms HTML Editor (WYSIWYG)
I'm looking for a HTML (text) editor for a WinForm application. Do these exist Try this query from the Oracle... ...Show All
Audio and Video Development How to send custom event form MFT?
Hi. I want to send custom event form MFT. Should I implement IMFMediaEventGenerator Interface and use QueEvent() Or is there easer way to send event thanks. kasumi Hi Kasumi, The right way to send events from an MFT is through ProcessOutput, not through IMFMediaEventGenerator. When you get a ProcessOutput call and you have an event that you want to send, use the pEvents member of the MFT_OUTPUT_DATA_BUFFER structure. This is an IMFCollection of zero or more events. Media Foundation will send these events downstream in the order in which they appear in the collection, before sending any samples from the corresponding MFT_OUTPUT_DATA_BUFFER downstr ...Show All
