Dave9999's Q&A profile
.NET Development BitConverter.ToSingle with a two dimensional byte array
i am having trouble converting 4bytes to a single in a two dimensional array. how do i specify the position i want in this array i tried treating it as a long one dimensional array. Short of making it one, does anyone have any ideas Any help is greatly appreciated. int traceLength = 9200; byte [,] cobbleData = new byte [traceLength,6]; . . y1[ i ] = BitConverter.ToSingle(cobbleData, traceLength + 4*i)); Not yet i tried a few more things. i might be able to expand on the actual goal i am trying to achieve. i receive around 100 arrays, each 19kb long. I want to put them into a two dimensional array. Each array has bytes that represent character strings, floats, and in ...Show All
Visual Basic get the location of "start button"
Hi Everyone, How could i get the position of the Start menu's button (i mean the Start button of Windows) in vb.net Thanks a lot; If this is your goal it is best achieved by setting Windows system and security policies and by not allowing ordinary users to have local admin rights. This is the approach you want to take for any limited or restricted usage system such as point-of-sale, information kiosk, or industrial control. ...Show All
Visual C++ Can't dynamically load VC8 library?
I would say I am beginning to hate manifests... unfortunately, I am already well past that point. I have an application that dynamically loads a dll (i.e. LoadLibrary() ). It worked when I built with VC6. Now that I am trying to build with VC8, I get the following error: Runtime Error! Program: <path-to-my-program.exe> R6034 And application has made an attempt to load the C runtime library incorrectly. Please contact the application's support team for more information. I used to get this error trying to run the application itself, but was able to resolve it. Is there something special that needs to be done to use LoadLibrary now that one has to deal with these awful manifest things First, an externa ...Show All
Windows Live Developer Forums GetMapView() TopLeftLatLong/BottomRightLatLong oddity
Im using GetMapView () with TopLeftLatLong and BottomRightLatLong to display a set of pushpins in the visible area of the map and i am seeing some weirdness with the values being returned for BottomRightLatLong. On page load i obtain the values i need using var v = map.GetMapView(); alert( "Vis cTOP LEFT" + v.TopLeftLatLong); alert( "Vis cBOTTOM RIGHT" + v.BottomRightLatLong); The values returned by BottomRightLatLong show as: 42.488966 -83.102903 I also have an event attached to a mouse click which uses the same exact code: var v = map.GetMapView(); alert( "Click cTOP LEFT" + v.TopLeftLatLong); alert( "Click cBOTTOM RIGHT" + v.BottomRightLatLong); The values returned by BottomRightLatLong for the click function show as: ...Show All
Visual Basic trying to import userContro.vb into my main form
Is there a way to do the following. I want to be able to click differant buttons such as button1 button2 button3 and on_click it will pull all the information from a usercontrol into the panel on the form. Simply put i want one form that has a section to show other forms inside itself. Thanks michael I think you're slightly confused about what a UserControl is used as, because UserControls are basically used to be a 'panel' within another form. An example: -- Create a new project (with a Form1) -- Add a FlowLayoutPanel to Form1's design and make it fill Form1 by setting its .Dock property to 'Fill'. A FlowLayoutPanel makes it a little easier to see how a UserControl can be used. -- Add a UserC ...Show All
.NET Development Where to store the XML file
I am having no fun at present trying to find somewhere Global to store my xml settings file. It is important for end users on limited accounts to be able to write to this file.. Any Suggestions Instead of a file, create a SQL database which can be queried for the settings. The user can be authenticated by their login credentials when run from your program. That way common secure access is guaranteed and no need to save a static file.... ...Show All
SQL Server Cannot connect to SQL Server 2005 Express with Management Studio Express
On my home machine without permanent network connections enabled, I cannot get the Management Studio connect to the database server. Always get this error: Cannot connect ot MPLIAM\SQLEXPRESS Additional Information: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, erro: 26 - Error Locating Server/Instance Specified)(Microsoft SQL Server) I have used the SQL Surface Area Configuration Tool to reset the defaults to allow remote connections, stopped and restarted the server, but still get the same message. Please help ...Show All
Windows Forms Sharepoint 7 beta 2
I have purchased the parner program with microsoft and am having serious issues installing sharepoint 7 b2. The issue is, its claiming i need to install the workflow foundation, yet, I'm stitting here, looking at the installed program with frustration pouring out of my ears. I've installed the program...I even tried installing the .net framework 3.0 to do it. Nothing. Visual Studio 2005 Extensions for Windows Workflow Foundation Beta 2_2(EN).exe Windows Workflow Foundation Runtime Components Beta 2_2(EN) for x86.exe my sharepoint simply WILL not go past the stage of the windows icon on load. Help! ...Show All
Microsoft ISV Community Center Forums VBA code to search and modify in Word
I am very new to VBA for word. Please excuse. I am trying to search for text that meets a the following criteria. The "#" reps any number, "T" reps any Letter. "TRACKING NUMBER: #TTT############## " The idea is to find all "tracking number"'s that meeds the text and number "format". I then need to modify the number by modifying the letters and adding two numbers. The result is below. All track numbers need to be modified. "TRACKING NUMBER: #TTT##############-## " You help with this is greatly appreciated. Rob The search is more of a format search. ex. ###AAAA#########. These represent wild cards for text and ...Show All
Visual Studio List of applied fixes in VS2005 RTM
Hello, is there some list of issues and bugs that are fixed in SP1 RTM Thanks in advance, Peter Vrenken Visual Studio 2005 Service Pack 1 release notes What's New in Visual Studio 2005 (Updated for SP1) As far as I know they are still working on the full list of bug fixes, although I remember seeing such a document two days ago. Can't find the url though. ...Show All
Windows Forms any way of multiple file operations???
hello to all; i wanna rename many many files in a folder in my PC which has also multiple subfolders... i want to rename all the folders and files ..... i want to replace some invalid characters with valid ones in file and folder names.. just like replacing o instea of o. or replacing a _ instead of " " (blank )... Is there any way of achieving this with Visual studio with either Windows Forms or Console.. Use recursion as follows: Private Sub RecursiveDirectoryTraversal( ByVal strPath As String) Dim oFS As New DirectoryInfo(strPath & "\") Dim oDir As DirectoryInfo Dim oFile As FileInfo Dim arrDirs() As DirectoryInfo ...Show All
Visual Studio Team System TSD301: <<user>> is not a valid login or you do not have permission.
Hi there, I am confused with dealing with logins and users in dbpro (ctp6). I plan to setup an sql login for our front end connection to our sql 2005 server, and map a user account with the same name in our database. I have created the login through Management studio, and am trying to add the user in dbpro. It scripts it like this: CREATE USER <<user_name>> WITHOUT LOGIN WITH DEFAULT_SCHEMA = dbo; So I'm not sure why it creates it with the WITHOUT LOGIN clause I want it mapped to a login. When I try to delete that clause, it gives me a "Error 1 TSD301: <<login_name>> is not a valid login or you do not have permission." When I try to explicity add a LOGIN <<login_name>> to ...Show All
.NET Development Microsoft JScript Error
Hi everyone I have an issue that deals with javascript and XSL. I get the following error: Microsoft JScript runtime error 'document' is undefined line = 23, col =2(line is offset from the start of the script block). Error returned from property or method call. Now I use two html controls: a hidden html control and button html control. The hidden html control value is being set when the page is loaded and the button html control has a xsl if statement that uses an expr attribute to call a funciton that will evaluate the hiddent control value. The function return the value retrieve from the hiddend html control. Here is my code: if (RoleIdVal == "Global View") { document.getElementById("cc_role_id").value = 1 ...Show All
Software Development for Windows Vista Run a Workflow in a Workflow and cancel it
Hi, As many others i am quite new to this topic. I found some examples and tried some simple things. I just wanted to know if someone maybe has some finished code for my problem or has some hints how to solve it. I have a Seq-WF-App where i start WF1, constisting of: cdBegin - Code : { Log("Beginn"); } Call Workflow 2 cdEnd - Code : { Log("end"); } In Wf2 i have: cdBegin - Code { Log("Begin"), Loop(10) { wait 1 sec; } Log("end"); } cdEnd - Code { Log("End"). I wanted to know how I can call wf2 in wf1 with a timeout. So i want: Call Workflow2 ( 5 sec ). After 5 seconds i want to cancel/abort/terminate the wf2 i called. What i reached yet is: I Abort() wf2. The Wf2 is currently i ...Show All
Visual Studio A problem with SetDataSource
Please, help! I have a report, created based on a SQL command. I pass it a datasource filtered for a specific name but crystal still shows me data for all names instead of my datasource contents. Here is my code: ..... create dataset .... Dim rptDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument rptDocument.Load(ReportName) rptDocument.SetDataSource(ds.Tables(0)) rptDocument.Refresh() crw.ReportSource = rptDocument same result. Report just ignores my dataset: rptDocument.Database.Tables(0).SetDataSource(ds.Tables(0)) crw.ReportSource = rptDocument grd.DataSource = dt ...Show All
