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

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

DavidThi808

Member List

BlackManWah
LeoSly
F.Costa
Charley Lou
Javier Carvajal
RhysDavies
sgmuser
JesperStaal
elgor
Kajal Sinha
jongas
barkingdog
Mike Greenway
sunil_sg
Vinayak Kamat
Alexander Petukhov
search and deploy
Inglewood_jack
zzattack
Dave Britton - VERTIGO
Only Title

DavidThi808's Q&A profile

  • Visual Studio 2008 (Pre-release) Create and Attach Custom Behavior to Client and Service in Web.Config

    I am trying to create a custom message inspector and attach them to the client and service. I was able to create the Behaviors successfully, but am not sure how to attach it to using the config file. I have a ClientMessage inspector and a server message inspector class. I created a BehaviorExtensionElement for the service side as given below: public class ServerMessageInspectorBehaviorSection : BehaviorExtensionElement { public override Type BehaviorType{ get { return this .GetType(); } } protected override Object CreateBehavior(){ return new ServerMessageInspector (); } } Is this right and Do I have to create another one for the Client. If yes Will it be almost the same. Then I ...Show All

  • Visual C++ Creating an Object

    Hi All, I have class, which is used for synchronization purpose the class is declared as follows Lock(CriticalSection& crSection) : m_CriticalSection(crSectio) { crSection.Lock() } The code will unlock the critical section in it's destructor. I'm using the class as follows in another class which has an critical section object Lock(m_CriticalSection); // Note that I'm not specifying the object name But it's saying that no default constructor available It's working fine for a class like this class CBase { public: CBase(int i ){cout<<"Ctor";} ~CBase(){cout<<"dtor";} }; int main(int argc, char* argv[]) { CBase(10); return 0; } What would be the problem I suspect that whatever m_CriticalSection ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XACT Audio / Minor Rant

    <minor-rant> Can you please, *please* consider supporting a more low level way to play sounds than XACT. The Microsoft Cross Platform Audio Creation Tool (XACT) is a pain to use. I mean seriously how many devs do you have budget for to maintain this so called "IDE" It might be okay for professional game studios but I don't think it's that simple for the XNA GS crowd. Then again having looked in the XACT forum it doesn't look like a lot of professional studios are using it either. So then you have to ask why are we having it forced on us since this audio content creation tool has so far fallen on deaf ears ;). Perhaps it's a secret plot to get the XACT folk to make it better in future perhaps (hmm bite my tongue) A ...Show All

  • .NET Development Question about nextsink of ImessageSink

    Hi Everybody, I want to know that when the nextsink of IMessagesink is called. Do we have to call it explicitly What if we have only one sink and one provider implemented. Will nextsink remain null How to handle it in when SyncProcessmessage of IMessageSink is called Regards ...Show All

  • SQL Server Inconsistent performance from queues

    Hi everyone! I have a very brief question... I have 10 queues in my database and each of them are sent equal number of messages... There are instances where they execute/activate the stored procedures very fast but there are times where they don't, does anyone have an idea why this happens Thank you very much for taking the time to read my post. :) I just noticed that I'm only ending the conversation in the TargetQueue and never in the InitiatorQueue (this is associated with the service that initiated the conversation). Could this be a possible cause I noticed that after all the processing, the InitiatorQueue contains a lot of message with message type of http://schemas.microsoft.com/SQL/ServiceBroke ...Show All

  • Visual Basic how to bind 2 comboboxto the same data table but make them select separately?

    Hello, I am trying to bind two comboboxesto the same data table created using the getSchema method.(I wanted to put the list of columns in the combobox) so I used this Dim colSchema As New DataTable Dim colView As String() = New String() {Nothing, Nothing, colClass, Nothing} colSchema = fileConnection.GetSchema("COLUMNS", colView) cmbScore1.DataSource = colSchema cmbScore1.DisplayMember = "COLUMN_NAME" cmbScore1.ValueMember = "COLUMN_NAME" cmbScore2.DataSource = colSchema cmbScore2.DisplayMember = "COLUMN_NAME" cmbScore2.ValueMember = "COLUMN_NAME" now, after testing, I find that whenever I scroll things in cmbScore1, the same thing will ha ...Show All

  • .NET Development Slick way to do BinarySearch for StringValue in Table Data?

    I want to easily search a Data Table for a particular string value. Is there an easy way to used the BinarySearch function on a table Perhaps DataTableReader would be helpful... Anway, the table data seems to be locked up in Rows, Columns, or Items. I suppose I could take each Item and convert it to a string and build my own string array, but that seems clumsy. Is there a way to do something like this : BinarySearch(DataArray.Column[0], "hello"), where the DataArray.Column[0] would ideally return a 1D array of strings, and then I could search for the word "hello" within that string array. Any help would be useful. Here are the statements I have to open and read the table info..I'm just messing around with th ...Show All

  • SQL Server T-sql for configuring and setting up log shipping

    Hi I am implementing logshipping I need to know how to setup logshipping using t-sql code ... i cant use management studio. where do i get sql code to do this.If any one has done this please provide code Thanks in advance Just use the wizards. If you don't you won't get support from Microsoft. Although, nobody is stopping you from using scripts. Here's a guideline I use for manually configuring Log Shipping , both 2000 and 2005 ...Show All

  • SQL Server Date out of range?!

    Greetings! I have a data source that gets generated based on a variable with the following SQL : "select * from result where deletion_ind = 1 and when_deleted >= '" + (dt_str, 50, 1252) @[User::Last_Run_Date] + "'" But when I run my package I get an error message saying: The conversion of CHAR to DATETIME resulted in a DATETIME value out of range The Last_Run_Date variable is set to '2006-06-25 14:35:05.450' When I run the code in a QA session it works, but in the package it complains! What am I doing wrong Thanks for your help in advance. You've already told me further up this thread that the error is getting thrown by SQL Server when you issue that query from SSIS. You have 2 ...Show All

  • Visual C# Prebuilt collection class?

    Does .NET 2.0 have any pre-built (non-abstract) collection or dictionary classes I'd like to have a simple collection with strings as indices and some custom objects as values, where I can add, remove, check if an item exists, and get an item by index. I really don't want to have to implement all of the needed methods, but I haven't been able to find any ready-made collection classes in the .NET libraries. Any ideas Concerning your last point: There is also a "KeyValuePair". So you do not have the seperation between keys and values. ...Show All

  • Visual Studio Express Editions Problem with VB source code/original

    I was baffled by some code that didn't work when it looked correct. I inserted a breakpoint, and it was never reached. I noticed the breakpoint icon change into a "yellow ring" with a message that my breakpoint can never be reached because my "source code is different from the original version." This seems to be caused by an attempt to change code whilst debugging. I never do this. I searched for help and found that this problem can be corrected in the full version of VS - but I have Express and the options mentioned are not available. I also read that by deleting files from Bin and Obj, the problem could be fixed. Didn't work either. Luckily, I had a copy of the project from a few hours earlier. This ...Show All

  • .NET Development Inherit from parent the permission entries....

    I'm am looking for a way to set the ACE of a folder so it does not inherit from the parent and removes the permission entries that were previously applied. For the record after about 12+ hours of reading and searching i found the solution. DirectorySecurity dsMyFolder = diMyFolder.GetAccessControl(); sMyFolder.SetAccessRuleProtection( true , false ); Directory .SetAccessControl(myFolder, dsMyFolder); ...Show All

  • Internet Explorer Development Cross-site/Cross-platform Data Access on Intranet Dilemma

    Here's my predicament: We are running an intranet page that needs to hit two intranet servers, http://jupiter/ and http://neptune/ . The master page is on jupiter, which is a J2EE environment. This page needs to make another AJAX-like HTTP request when a button is clicked to pull info from neptune, which is an IIS/ASP environment. Making the request to neptune inside the jupiter page causes an annoying message: This page is accessing information that is not under its control. This poses a security risk. Do you want to continue Why am I being prompted like this, and how do I resolve this See http://en.wikipedia.org/wiki/Same_origin_policy for background. If you must, use Tools/Internet Options/Sec ...Show All

  • SQL Server SSIS Optimization

    Hi There We have a package that simply reads a rows from a table and puts it into a flat file destination, this repeats through a for each loop. It is a very simple package. Problem is it takes 10 minutes to do a thousand rows. This is incradible slow, i have check indexes are fine, the table are only 1000 rows, but it seems to only read and write about 3 rows a second, this is crawling. Please how can we make tis faster, are there any obviously properties setting we should be checking We have started using SSIS alot around here, main problem is that all our packages seem very slow ! Whether they run in GUI debug or in a job in sql server (twice as fast but still slow). Anyone know some good resources on SSIS optimization Thanx ...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

©2008 Software Development Network