Fusion54's Q&A profile
Visual Studio Express Editions How do i get the filename from OpenFileDialog to do a save to the filename's directory?
Hey there, can onyone tell me what do i do now I can do a saveAs() but not a save() because i don't have the file name of the opened file from the openfiledialog. How do i transfer the file name from the saveAs() private sub to the save() private sub Here's my saveAs() code. Sub SaveAs() Dim sw As StreamWriter = Nothing Dim content As String content = My .Computer.FileSystem.ReadAllText(path & "temp.txt" ) 'streamwriter is used to write text Try With SaveFileDialog1 .FileName = FileName .Filter = "Text files (*.txt)|*.txt|" & "All files|*.*" If .ShowDialog() = Windows.Forms.DialogResult.OK Then FileName = .FileName sw = New Stre ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How I get the skin weights?
Hey, I am trying to understand how animations works in XNA. I have modified the content processor to get the vertex buffer of a mesh from a model in a raw data, and I believe that it is in the vertex buffer where the skin weights indices of each vertex for each bone is stored. Does anyone has some clue how to get the skin weights or how they are stored in the vertex buffer Or even better, does anyone know the proper way to retrieve the vertex buffer, index buffer and skin weigths from a model I am not sure if I undestand completly, but I promise I will take a look on what you suggest. My big problem is just I don't have direct access to the vertex information o ...Show All
Windows Live Developer Forums How to insert the title?
How do you insert new content from a plugin to the title The HelloWorld plugin inserts into the body. I want to set the title. Thanks! See this post Any way to get post Title, URL, etc. from within a plugin ...Show All
Visual Studio Express Editions Thanks Orcmid, I checked that website, a lot of things there, it's helpful.
Dear all, I am using VC 2005 to read the HDF file. Linked the HDF41r2 library into the project, but the error message shows up: fatal error LNK1104: cannot open file 'HD412md.lib' . . I am very confused since there's no 'HD412md.lib' in the library package supplied by NASA. Anyone have experience with this please help me !!! Thanks.. It seems that you would have more luck checking with the sources for the software you are using (e.g., at http://newsroom.gsfc.nasa.gov/sdptoolkit/toolkit.html ). The list server for users of those ane related toolkits might be more helpful than this forum. - Dennis ...Show All
.NET Development How to load the xml in memory?
hi I am using the below code (highlighted in blue) to save the xml file from xmlwriter(higlighted in red). It is opening the save dialog and giving me the option to enter the file name. My question is How can I load xml to the memory (from the highlighted in red ) instead of save as a file Private Sub Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Save.Click Try If Me.SaveFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then Me.Tbl_SDLT1BindingSource.EndEdit() Me.LoadXML(Me.SDLTDataSet1.Tbl_SDLT1, Me.SaveFileDialog1.FileName) 'End If Catch ex As Exception MsgBox(ex.Message, MsgBoxStyle.Information, "") End Try End Sub Private Sub Loa ...Show All
Windows Forms List View HotTracking Property
Hi, I have a requirement for the HotTracking property feature which underlines list items as the mouse moves over them. However, it appears that the hoverSelection must also be enabled for it to be allowed. The HoverSelection provides a blue background as the mouse moves over the text. This is very poor in response and not required. Is there away to only have the HotTracking without the HoverSelection Me .ListAccounts.HotTracking = True Me .ListAccounts.HoverSelection = False ' not allowd must set to true Ron Nobugz, Thanks for the Tip, need your help a little more please. I have added the following, which underlines each item as the mouse hovers over it. ...Show All
Visual Studio asp.net
How to added the multiple textbox dynamically in asp.net Hi Yes. In HTMLInputHidden is present in HTML. If i use that code i have get only one textbox. Instead of HiddenField, i have used HTMLInputHidden. This is the coding i have used. Dim textbox As New TextBox() Dim i As Integer Dim hi as new HTMLInputHidden() hi.value=0 hi.Value = Convert.ToString((System.Convert.ToInt32(hi.Value) + 1)) For i = 0 To System.Convert.ToInt32(hi.Value) - 1 textbox = New TextBox() textbox.ID = i.ToString() PlaceHolder1.Controls.Add(textbox) Next Please check ...Show All
Visual Basic Capitalize a string
I want to ask if is there any way to capitalize an entire string, so that a string looking like QweRtY can be automatically changed into QWERTY Thanks a lot!! Actually, what i need now is a function that can change characters like a e i o u into a e i o u Thanks and sorry for posting so many replyes :P ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3D DirectSound 5.1 playback w/ DSBCAPS_LOCSOFTWARE?
I've been playing around with the Play3DSound example as a testbed for a problem I'm working on. When I run this test app, the 3D sound plays just fine through my 5.1 speaker system as expected. But if I add the DSBCAPS_LOCSOFTWARE flag to the sound buffer, it plays through the L/R speakers only. After some research, I'm pretty sure this is due to DirectSound's internal HRTF calculations. So my question is: Is there any way I can use software buffers and still get 5.1 3D sound (Or, do 5.1 3D sounds always require hardware buffers/acceleration ) My config: WinXP SP2, C++, DirectX SDK (Oct '06), aBit IC7 mobo, no special sound card (only using the mobo's RealTek ALC650 chip). Cheers! -john ...Show All
Audio and Video Development Any method for MF PVP application fail gracefully if video driver is not PVP signed?
I am working on an application that runs protected playback with Media Foundation. I've encountered a problem that with some graphics cards, an error dialog box pops up from another process saying " Bad Image: X is either not designed to run on Windows or it contains an error". After repeatedly pressing OK for the same dialog poping up many times, I can see the application hits a debug assertion saying that ESP is not properly restored. I've read about the following previous thread in this forum and know that this symptom happens because video driver is unsigned and mfpmp.exe failed. "MF_ProtectedPlayback Sample doesn't work for Video on Vista Beta 2: Thread Start ...Show All
Windows Forms Need advice on Winforms HTML Controls
Hi, I'm looking for advice on the following matter. I'm looking to provide simple HTML WYSIWYG editing capabilities in a winforms control. So far i've been experimenting with the control found here ( http://www.windowsforms.net/Default.aspx tabindex=4&tabid=49#Controls ) but it seems to have some issues here and there, And i was wondering if anyone knows of a better free solution. More or less, I need the following formatting options - bold\underline\italic, indent\outdent, unordered\ordered lists (nested) and simple tables. Why HTML Because it can be easily converted to XML later with XSLT to something more useful in an application wide manner. Thanks in advance for any advice. ...Show All
SQL Server Can a WHERE clause refer to a column based on a subquery ?
I've got a stored procedure that contains a query similar to the following which works. (The real query contains lots more columns and the subquery is quite long) SELECT table1.ColA, table1.ColB, (SELECT TOP 1 colX from table2 WHERE etc. ) FROM table1 Sometimes the sub-query returns nulls which is fine. I now want to modify the stored procedure so that it will optionally only return the rows where the sub-query returns non-null values. I've added an int parameter @filter to the procedure. If @filter = 0 I will return all rows; if @filter = 1 I will filter the results. The query now looks like this: SELECT table1.ColA, table1.ColB, subquery = (SELECT TOP 1 colX from table2 WHERE etc. ) FROM table1 WHERE (@filter = 0 or not subquery is nul ...Show All
Visual Studio Multiple project contexts per solution configuration?
Hi! I am just improving the project config for a project of mine, and on the go I once had the situation that in the configuration manager, there were two project contexts assigned to one solution configuration. I could individually select which one is to be built or not, meaning that I could build two contexts with the same config. That was only a test case, and I have no idea how I achieved that and can't recreate it. I can't add a second project context to one solution config anymore. The table shown, listing all project contexts for a solution config (default: one is shown), suggests that there is a possibility to add a second context... but how http://www.intercomm.com/shrinker/temp2/projectcontexts.png Tha ...Show All
SharePoint Products and Technologies Active Directory Forms Authentication problem
Hello! I am now trying for hours to get our external sharepoint 2007 webserver to authenticate users to our active directory which is here at the office. The LDAP connection on port 389 works, we have various other external applications using it. I followed the following instructions: http://channel9.msdn.com/wiki/default.as px/ Channel 9.HowToUse Membership http://weblog.vb-tech.com/nick/archive/2 006/06/14/ 1617.aspx I expanded our default site (port 80, Windows authentication) with an external one (port 4197, forms enabled). I added the following lines to both the administration and extranet site web.config file: <connectionStrings> <add name="ADConnString" connectionString="LDAP://xxx.de:389/CN=U sers,DC= ...Show All
Audio and Video Development NO SOUND!!!!!!
I recently bought a sony VAIO laptop. It was working fine and it came with vista pre installed. However, there was a CD that said 'Upgrade your Windows Vista Experience'. So I installed the software and once (after some hours) it was installed I saw the speaker icon at the bottom right with an X on it. Placed pointer over it and it said 'No Audio Output Device is Installed'. I have tried many things that people have posted here but nothing. I dont know what to do. This is not the only problem I have had with Vista, I was told that that Vista does not read USB ports, is this true Also I have been having wireless problems. I contacted my ISP (AOL) and they said Vista is not compatible with wireless, is this true As you can tell im not an ...Show All
