Software Development Network Logo
  • .NET Development
  • Windows Forms
  • Smart Devicet
  • Visual Studio
  • Visual FoxPro
  • Windows Vista
  • IE Development
  • Visual C++
  • SharePoint Products
  • Microsoft ISV
  • Audio and Video
  • Visual Basic
  • SQL Server
  • Game Technologies
  • VS Team System

Software Development Network >> Declan_'s Q&A profile

Declan_

Member List

pandre
Monish Nagisetty
porkpiehat
Álvaro Peñarrubia
shehz
DanglingChap
Bahmanbj
Dietz
fya
David Reynolds
susiekay
B.Young
Chris.Stewart
etalkjoy
Randall Stimson
RajLakamana
Olexandr
Jason D. Camp
b6s
a23rd
Only Title

Declan_'s Q&A profile

  • Visual Basic counting number of words (or regex) that appear in a string

    Is there a way of counting the number of times the word the appears in the sentence out of the frying pan into the fire I have an input string, which I want to test, I've tried:   regularexpresions.regex.ismatch(input, "the") but this only returns true or false   From my reading of the documentation I thought that the following would work regularexpresions.regex.match(input, "the").Groups.Count but this doesn't seem to give me anything that resembles what I want   I tried a loop dim counter as integer = 0 while regularexpresions.regex.ismatch(input, "the")    regularexpresions.regex.replace(input, "the", "") counter = counter+1 end while but the replaces replaces all mat ...Show All

  • Visual Basic modify data, and update datagrid!

    Hi, I am having a problem updating and displaying data. On a form, i have a data grid which, when the user double clicks on a record my data table updates. For this i am using the following commands: dt = Me .FantasyDataSet.Draft dt.Rows(position - 1).Item(Team) = player & ", " & pts dt.AcceptChanges() As i step through my program, i can see that my datatable, dt, is being updated with new values. i have another datagrid which i want to display the datatable i just updated, but it never updates. I have another routine which i call just after dt.AcceptChanges(): Public Sub updateTeamGrids() Dim oCon As OleDb.OleDbConnection Dim oCommand As OleDb.OleDbCommand Dim ...Show All

  • Gadgets DOM and select object

    hi everybody, I have a lot of difficulties with the select option, to write all the option features in the drop-down list. In standart html, it works well : http://albidochon.free.fr/jeu3/test.html but can't resolve the dom code in js, it shows the select drop-down list, but it is empty. i found a lot of code to do this, but not in the dom way, and nothing in the msdn documentation. the problem seems to be in the js function : function tri(){ for (i=0; i< jeu(0).options.length; i++) fill and write the options fields......i miss this } I don't want to do iframe gadget or js innerhtml, so, so.... The js and css files are here http://albidochon.free.fr/jeu3/gadget.xml thank you for the he ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. setting IsMouseVisible to true improves performance

    Does anyone else notice that setting the IsMouseVisible to true improves performance Whenever i move my mouse and IsMouseVisible is set to false, my framerate decreases significantly Any thoughts I've not tried changing that property, but I've had similar issues with the mouse. When running in windowed mode, if the mouse is over the window things run normally, but when moving the mouse outside the window CPU is pegged and frame rate drops significantly. ...Show All

  • Visual Studio C# 2005 - How do I pass parameters from TextBoxes in a windowsform to a Crystal Report IX ?

    Hello everybody, Greetings from Brazil! I need to pass parameters directly from TextBoxes in a windowsform to a Crystal Report IX through code, avoiding that ugly Crystal Report parameter prompt. Can anybody please send me some sample code or let me know where I can find a tutorial I have searched the Internet for days but did not find anything. Thanks a lot for your time and help! I really appreciate it. All the best, JC :) Looks good to me. The only thing you may need to watch out for is with the date parameters. If you make them as type date in the report, you need to pass them a date type, or make sure the string is formatted correctly. ...Show All

  • Software Development for Windows Vista Getting an overview of a Dynamic format change and it's application to a filter derived from CTransformFilter

    Hi I'm trying to do a transform filter derived from CTransformFilter. It does everything should be doing except handling dynamic format changes like when used in a DVD graph with a codec that defaults to 720x480 and then switches to 720x576. As a renderer i use VMR9 in YUV mixing mode and my transform filter doesn't not have any preference towards the YUV format for now. So the goal of the filter would be to have anything relating to the format handling working exactly as if no transform filter was in between and thus letting the codec and VMR9 workout the connection and simply having the transform jacked in between. For performance reasons i choose not to go with CTransInPlace filter. So what I need are some pointers on how ...Show All

  • Windows Live Developer Forums Adding a GeoRSS layer from a local file

    Hello All, I would limke to add a GeoRSS layer from a local file as oppsed to a web server. function OnPageLoad() { map = new VEMap( 'myMap' ); map.LoadMap( new VELatLong(43.85828, -79.3821), 10 , 'r' , false ); AddMyLayer(VELayerType.GeoRSS, "file:///C:/geolayer.xml" , "test" ); } function AddMyLayer(type, source, layerid) { var veLayerSpec = new VELayerSpecification(); veLayerSpec.Type = type; veLayerSpec.ID = layerid; veLayerSpec.LayerSource = source; veLayerSpec.Method = 'get' ; map.AddLayer(veLayerSpec); } However, I get an error when I do that. If I specify http://loaclhost/geolayer.xml or something like that for the LayerSource property then i ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. The future of 3D grahics programming with managed code (Microsoft technology)

    Hi! I would like to ask some information about the future of 3D graphics programming with the managed code. Yesterday, I came across an article where I read that Microsoft(MS) will stop the developoment of DirectX with the managed code, with the managed code I mean C#, Whidbey C++ and VB. The question I have in my mind is : "What's next ".  I have been developing numerical simulators during the last two years. My preffered language is (Managed)C++. The reason I chose Managed C++ is that - I thought that - I can use the MS technology in other parts of the developement, in addition I develop a code which is consistent with the C++ norms, altough Whidbey C++ is violing the traditional C++ syntax - I would not predict this two years ...Show All

  • Visual Studio Express Editions Replace text in main form text box via input from 2nd form old/new text windows

    I have a program in which text is entered into a textbox which is itself, when saved, a load file for a certain database type program. I'm fleshing out the menu items and thought it would be good to have a replace function since sometimes if there is a repetitive entry which isn't right, I could easily go through and replace it... I created a new form for this function, which is small and offers the text boxes for entering the old and new text to replace in the main form's text box. I've read through examples via the MSDN index, but nothing seems to be working. This seems to be rather straightforward, so I don't understand what I am missing. The code I have so far is below: Public Class ReplaceText Private Sub OK_Butto ...Show All

  • Visual C++ DLL questions with Visual Studio using C++

    I'm new to Visual Studio (I have VS 2005 Standard Edition) and I'm trying to learn how to code a DLL with some standard functions I use instead of including a cpp file into every project that needs it. Using the help I got a DLL to work with a Win32 project using __declspec ( dllexport ) and __declspec ( dllimport ). When I try a Windows Form Application I get lots of errors with the linker because of the CLR from what I can tell. I tried various things I read and could never get it to work. I decided to try my hand at a .def file and after reading up on how you write it up I have some questions. Can you export overloaded functions using a .def file From what I read I have to include extern "C" to keep C++ name mangling from ...Show All

  • Visual Studio 2008 (Pre-release) [OperationContract] and properties,

    Hi, Why is the below interface definition not possible Surely the fact that properties are just methods anyway mean that this should be possible. Why should it be necessary to change the perfectly reasonable Length property into a GetLength() method Is there any way to expose a property value /// <summary> /// Service contract definition. /// </summary> [ ServiceContract ] public interface IWorkContract { [OperationContract ] int Length { get ; } } IT WORKS! You have to set the attribute directly before the get- and set-stubs like this: int Length { [OperationContract()] get; [OperationContract()] set; } ...Show All

  • SQL Server how to extract username and password from ftp connection manager?

    Hi, I would like to know how to programmatically extract username and password from an ftp connection manager. Thanks. I got this code but I want to get the values of every available property in a connection manager. Please help. Thanks! For Each connMgr In myConns Dim connProperties As DtsProperties = connMgr.Properties Dim connProp As DtsProperty For Each connProp In connProperties MsgBox(connProp.Name) Next Next this link should help: http://msdn2.microsoft.com/en-us/library/microsoft.sqlserver.dts.runtime.connectionmanager.properties.aspx ...Show All

  • Software Development for Windows Vista ASUS M6A x SpeedStep

    I have nb ASUS M6A ( i915, P M 730, GMA900 1,5GB RAM), but Speedstep doesn’t work me. Frequency is automatic changed by the latest BIOS 200, but it doesn’t work with new version. Changing of PowerPlan doesn’t help me. Any idea thx Vista build 5536 I believe your question is not related to software development therefore I must ask you to redirect your question to the appropriate communities: www.microsoft.com/communities I would also suggest to contact ASUS, your hardware vendor, for this but also keep in mind Vista is still under development and will have some issues. ...Show All

  • .NET Development Random IOExceptions when using .NET apps on an NLB cluster accessing a file share

    We have a situation where we get random IOException errors for a shared drive. We have a MS NLB cluster of 3 accessing a failover cluster for file servers. We randomly keep getting IOExceptions for no reason we can find. The path it complains about when checked manually is valid. Its as if the cluster is "asleep" then slowly wakes up and is "visible" again after a bunch of attempts. There is no appearent pattern to this we can identify - except it usually occurs after prolonged periods of inactivity. But, again, this isn't always the case. Curiously when we reduce the NLB to a cluster of 1 no exceptions are thrown regardless of the machine. Combinations of two or more machines cause trouble. The only other way to ...Show All

  • .NET Development Reading XML from a file

    Hello All, I have the example XML file here: < xml version="1.0" > <catalog> <book id="bk101"> <author>Gambardella, Matthew</author> <title>XML Developer's Guide</title> <genre>Computer</genre> <price>44.95</price> <publish_date>2000-10-01</publish_date> <description>An in-depth look at creating applications with XML.</description> </book> .....<HEAPS MORE BOOKS HERE> All I wish to do is read it into some data structure that maps the TAG . I have been told there are many ways to do this... Ive tried using XmlTextReader and this has been plain confusing - it parses line by line and onl ...Show All

©2008 Software Development Network