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

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

Cammyr

Member List

2162
Helen999888
bk13
Narayanan_N_852dc7
Bachi
Pravindabade
Dave_AC
Greg Knierim
Quirk
Belly
Atanu Maity
iosys
Mike Riley
KML67
AlexLancaster
dumian
Tom_Liu
Peer Larsen
donkaiser
Singersinger
Only Title

Cammyr's Q&A profile

  • Visual C# SoundPlayer Exception: The wave header is corrupt

    Platform: .NET 2005 with .NET 2.0 framework. Windows XP Professional When attempting to utilize the SoundPlayer I always get the error message: "An unhandled exception of type 'System.InvalidOperationException' occurred in System.dll Additional information: The wave header is corrupt." I first thought that my source wave files were corrupt but when attempting to play system sounds (c:\Windows\Media) I get the same exception every time. The other unusual behavior is that the player actually plays the entire wave file while raising the exception. Has anybody else seen similar behavior Thanks for any help given. i had the error aswell.. this is how i fixed it: soundplayer.Stream.Position = 0; possitio ...Show All

  • SQL Server How to create a constraint like this:

    Hi, Suppose the following table definition in Sql Server 2005, create table CompanySymbol    CompanyId int,    SymbolId int,    IsPrimarySymbol bit Primary Key (CompanyId, SymbolId) How can I create a constraint which wil ensure that IsPrimarySymbol will be set to 1(true) only once per CompanyId while allowing it to be set to 0 an unlimited amount of time per CompanyId. i.e.: CompanyId   SymbolId   IsPrimarySymbol -----------------------------------------------------------                   1                 ...Show All

  • .NET Development ADO.Net open Excel 2.1 file

    I'm using ADO.Net in Visual Studio 2005 to build a Visual Basic.Net Windows application. The application need to import an Excel 2.1 file, which is generated by FoxPro 2.6 DOS version from my client. Unfortunately, I can't read the Excel 2.1 file directly from my OleDB. Since I can do it successful when I open the Excel 2.1 file using Excel 2003 and save it again. Then using the ConnectionString "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & FileName & ";Persist Security Info=False;Extended Properties=Excel 8.0;"... But the client cannot accept this manual step. Does anyone know how to read the Excel 2.1 file to ADO.Net or any alternative method to achieve the requirement Hello. I ran into the same prob ...Show All

  • Windows Forms Outlook 2003 Style Navigation Pane Buttons

    Hi All, Can any one please provide some resource or thought to how to build Outlook 2003 Style Navigation Pane Buttons Does vs2005 has any controls which we can customise to look like Outlook 2003 Style Navigation Pane Buttons thanks Tom Microsoft actually has a demo that does precisely that. Sorry I can't give you a link because it was a while ago when I saw it. But check out the demos on msdn.microsoft.com. That would be where I would look. Regards Jero   ... ok I found it. Check this out http://www.windowsforms.net/default.aspx tabindex=4&tabid=49#User%20Interface ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. kW X-port for 3ds Max 9 (X file exporter with XNA support)

    I have made a preliminary version of the kW X-port plug-in available for Max 9. The full Max 9 download from Autodesk is almost 3 GB and is still going, so I haven't been able to test it yet -- it's just re-compiled with their new SDK. I give it a good 90% chance of working fine, though :-) The version for Max 8 has been tested, of course, and is still available. It might work as far back as Max 6, because they are apparently version compatible from 6 through 8, but I have only tested on 8. kW has some features that might help with XNA usage, such as support for the Max Direct3D9 material with shader parameters; support for mirroring along Z and mirroring the V coordinate ; support for properly exported skinned meshes even if ...Show All

  • SQL Server maximum Data flow tasks execution

    Hi guys, i got a foreach loop that has about 20 data flow tasks(same database connections but different extractions) but i notice that when i execute the project it only runs 4 data flow tasks at a time. i know that there is an option for each data flow to set the "Engine Threads", but is there a way to set the thereads in a foreach loop or for the whole project so it will execute all data flow tasks in one go for each loop. please help Thanks for the post Rafael, hmm, it wasn't exactly what i was looking for but it certainly gave me a good knowledge SSIS performance tuning. the examplease that they had they were all in side data flows tasks, my problem sort of lies outside, inside a foreach loop ...Show All

  • SQL Server Vista, 18452 and the remote domain

    Hello We have a setup of two very separate domains, they are connected via a couple of routers, we connect to the remote domain mainly for administration mostly via remote desktop. We setup the same user name & password on both domains, with XP as the operating system we can setup the sql link via odbc using windows authentication which works fine, a couple of PC's have now been upgraded to Vista but the increased security stops this from working, we now get error 18452 error code with the user name of "null" I assume vista has stopped the passing of local credentials to what it considers an untrusted domain, fair enough, does anyone know a way of either adding another trusted domain to Vista I do not want to setup an ...Show All

  • Software Development for Windows Vista Locked vs open activities in workflow design time

    Hi! I have a workflow project with a few custom activities. All my activities derive from a custom class which derives from SequenceActivity. It works fine when running but in the main flow, in design time, a couple of my activities are just default icons while others are expandable (plus sign on control and when opened all contained controls are showed with small locks). I would like all my controls to be non-expandable and wonder why there is a difference All my controls have been built the same way but I guess I must have changed something Thanks for your help, Markus Expandable activities are normally ones which contain their own children, non-expandable ones dont. If you want to ret ...Show All

  • Visual C++ TerminateThread ???

    In MSDN it is mentioned that TerminateThread is dangerous function and given some disadvantages of using it. So we should never use TerminateThread If so then what is the use of this function Consider a situation where I am calling a function from third party library and that function some time takes long time to return may be 5 hours or may be more than a day (I am not sure about the reason and that is not in my control). I need to implement some timeout mechanism so I called that function in a thread and waiting for 15 minutes to return it and then terminating the thread and proceeding further. The thread is just calling that function doing nothing else. So is it ok if I call TerminateThread to terminate that thread after tim ...Show All

  • Visual Studio Team System Unit Test Mocking - experiences

    I'm currently looking at several Mocking tools to try and break various component dependancies when unit testing. So for example I want to unit test MyObject.SayHello(arg1) but that uses MyDataService.GetData(Request). When I unit test I don't want to actually want to invoke MyDataService but simply assume a return value. That way I can unit test only MyObject and not worry about any incorrect behaviour (or setup problems) from MyDataService. Looking at the options the majority of the Mocking objects work in the following fashion: MyUnitTest() MockObject("MyDataService.GetDate", "MyInputValue", "AssumedReturnValue"); MyObject.SayHello("Hello"); ..... What I really dislike about this ...Show All

  • Visual C# Monitoring an object for changes

    Hi, I have an object which contains many Properties. Actually, this object is only one type of object inside of a hierarchal based object model using the Collections.ObjectModel.KeyedCollection. To give you an idea as to what I am trying to do, let me explain some of the objects and the properties that I need notification of. "Rod" class has a .Length property. "Part" has a .Shape, .Pin, and .Socket property. "Wheel" has a .Diameter and .Radius property. "NonStationary" has a .CurrentValue property. That's just a small example, just to get to my question. I was wondering what is the standard practice of notifying when property values have changed. The trick is that I am not concerned about single individual object property changes, only T ...Show All

  • .NET Development Returning a recordset from a Stored Procedure... what am I missing?

    It seemed simple enough, and I think it probably is, but I've tried a dozen ways and wasted a day. First, the simple stored procedure, existing in a SQL 2000 database: CREATE PROCEDURE [dbo].[insertNewDir] ( @Directory varchar(500), @CreateDate datetime ) AS BEGIN INSERT into tblDirectory (Directory, Created) VALUES (@Directory, @CreateDate) SELECT @@Identity AS MyID END GO If I call this in Query Analyzer, it works just fine. No problem. If I create a connection and pass the same SQL to try and get a recordset, the SP creates the record, but the recordset returned is closed. No errors. Dim objCon As New ADODB . Connection Dim oConnect As clsDataConnect = Me . GetConnected () Dim oRS As ...Show All

  • SQL Server Adding new column to Flat File Source Connection

    What is the best way to deal with a flat file source when you need to add a new column This happens constantly in our Data Warehouse, another field gets added to one of the files to be imported, as users want more data items. When I originally set the file up in Connection Managers, I used Suggest File Types, and then many adjustments made to data types and lengths on the Advanced Tab because Suggest File Types goofs a lot even if you say to use 1000 rows. I have been using the Advanced Tab revisions to minimize the Derived Column entries. The file is importing nightly. Now I have new fields added to this file, and when I open the Connection Manager for the file, it does not recognize the new columns in the file unless I click Reset Fiel ...Show All

  • Windows Forms Abstract controls

    Let's say I have a custom control derived from a RichTextBox: public abstract class BaseTextBox : RichTextBox; I also have two custom controls that derive from my BaseTextBox public class DeriveTextBox1 : BaseTextBox; public class DeriveTextBox2 : BaseTextBox; Can I make a custom control that must contain a control derived from BaseTextBox In other words, the custom control has to contain either DeriveTextBox1 OR DeriveTextBox2 hi you could use your panels as follows class PanelA: BasePanel<TextboxA>{} where BasePanel is a custom generic Panel... class BasePanel<T> : Panel where T : BaseTextBox{ } Hope this helps, please close the thread if ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Creating Texture from Bitmap and Update the former Texture

    Hi all, I`m relative new to directX so forgive me if i make a few nobbie-Mistakes. :) I`m currently developing in c# and directX. My Application gives the user a small and limited Desktop, which is Realized by GDI+. The Desktop stores the created Data in a Bitmap (Snapshot of the current Display as a bitmap) which should be used as a texture for the second Part of my Application. The second Part is a simple directX-Window with 4 Vertices and a Camera. When creating a "static" Texture with Textureloader.FromFile() everything is is ok, so I think the primary setup is ok. My Goal is as i wrote above, to set the generated Bitmap as the Texture of my Rectangle dynamically. Is there any simple Approach someone knows of Is it not possib ...Show All

©2008 Software Development Network