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

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

sham_huss

Member List

PDav
THURST80
Caleb T
Arrakis777
HomeBunny
Toni Greco
robert12345
unahb
FrankSp
QWERTYtech
David S. Anderson
Sameer Bhatnagar
enric vives
thukralz
VRATZ
prawin
cedubose
danych
Andrey Makarov
Shahid Mahmood
Only Title

sham_huss's Q&A profile

  • Visual Studio Team System CriticalError, Certainty 95, for DoNotNestGenericTypesInMemberSignatures on return typs

    Hi i get CriticalError, Certainty 95, for DoNotNestGenericTypesInMemberSignatures Resolution : "Consider a design where TNode`1.BreadthFirstNodeEnumerator:IEnumerable`1<PPSD.BL.Decomposition.TNode`1<Element>> doesn't nest generic type 'System.Collections.Generic.IEnumerable`1<PPSD.BL.Decomposition.TNode`1<Element>>'. " Info : "Avoid API that require users to instantiate a generic type with another generic type as type argument. The syntax gets too complex." on the code below. I can *not* see where the syntax gets too complex when i use this definition for a return type. public IEnumerable < TNode <Element>> BreadthFirstNodeEnumerator { get { Queue < TN ...Show All

  • Visual Studio Problems building help with HelpStudio Lite

    I receive the following error when i try to build my help project: Error: HXC4001: XML syntax error: Element 'HelpTOC' cannot be empty according to the DTD/Schema. The help project has an TOC with lots of entries. It was working fine before and now i get this error no matter what i do. I even created a new help project and i get the same error. I'm using version 2.1.0.8 build # 2.00.0035 from the latest VS 2005 SDK. Any suggestions, besides using a different tool :) Thanks in advance. Hi Gary, I don't think that the problem lies within HelpStudio Lite. I don't use it (it's not installed), but had a similar issue and managed to solve it. What happened in my ...Show All

  • Visual C++ How to 'List' pointers to multiple threads?

    I'm trying to encapsulate a simple multi threading startup and stop process within a class. I thought about making it able to create and control an undefined number of threads, so naturally, a list of pointers came to mind. Unfortunately, CList<CWinThread,CWinThread&> doesnt seem to work, so is there another way to 'List' the pointers for each thread thats been initialized like so: ThreadPoint = ::AfxBeginThread(... ); ThreadPointList.AddTail(ThreadPoint); ...elsewhere pointer = ThreadPointList.GetAt(ThreadPointList.FindIndex(Index)); pointer->SuspendThread(); //and etc. If this doesnt seem proper or efficient, i agree. I'm pretty new at multi threading programming, but i guess there should be a much cleaner way of monitoring ...Show All

  • .NET Development How to dispose all undisposed objects

    In the end of my mixed C++/CLI application I use _CrtDumpMemoryLeaks function to detect unmanaged memory leaks. However, if there are still undisposed objects which have unmanaged allocations, all these allocations are reported as memory leaks. Is there any way to dispose all undisposed objects I tried: GC::Collect(); GC::WaitForPendingFinalizers(); _CrtDumpMemoryLeaks(); but this doesn't solve the problem. Thank you, disposing from finalizer together with WaitForPendingFinalizers solves my problem. I didn't know that object can be finalized without disposing. ...Show All

  • Visual Studio Express Editions C# Program Ideas

    Hello, I am trying to learn C# and so I have been reading the book and doing the sample apps, but now I would like to go a little farther. I want to write an app that I can sharpen and learn more with C#, but I am out of ideas for applications. I could write a game and that might not be bad, but I was wonder if anyone had any ideas for a program. I feel like a writter who just can not come up with an idea for a book. So any Ideas Cryptography might be an interesting topic. Buy a book on the history of cryptography and write programs that implement coders/decoders or perhaps code breakers. You will do a lot of string manipulation, arrays etc. Try to write the code using object oriented programming principle ...Show All

  • .NET Development "Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host."

    Hi, I have the follwing piece of code which works fine when the file size is below 3 mb the moment it crosses 3mb limit it gives me the error . "Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host." This is a file transfer via https: following is the piece of code: private string WriteToURL( HttpWebRequest Request, byte [] data) { string responseFromServer = string .Empty; try { byte [] byteArray = data; // Set the ContentType property of the WebRequest. Request.ContentType = "text/xml; charset=utf-8" ; // Set the ContentLength property of the WebRequest. Request.ContentLength = byteArray.Le ...Show All

  • SQL Server Problem appending to a raw file

    I have subscription records for five different magazine titles that i process by looping each one though a dataflow using a for-each loop. I am using the following instructions to append to the raw file: http://blogs.conchango.com/jamiethomson/archive/2005/12/01/2443.aspx This works fine when I pass four different magazine titles. when i try to run all of the titles(five), i get the following errors: [Raw File Destination [131195]] Warning: The parameter is incorrect. [DTS.Pipeline] Error: component "Raw File Destination" (131195) failed the pre-execute phase and returned error code 0x80070057. Any ideas Thanks. Frank Yes, me too. It does seem to have something to do with t ...Show All

  • Visual FoxPro Purging data from Visual Foxpro using oledb in .Net

    Hi, Can any one help me on the below.... I am using Visual Foxpro as backed an Vb.Net as the front end... I am using the oleddb connection..... the following is the parameter.... "Provider=vfpoledb.1;Data Source= \\Data; Collating Sequence=general" I have a Visual Foxpro open table dabase which contains nearly a million record.... When I give select * from transcation where id='001' and cust='03' the time taken to purge this record is very high (nearly 5 min).... I have indexed the table on the basis of the above too (id, cust) feild. The purging of record is done thru front end vb.Net OleDB adapter Can any one tell me how to use the indexes which is creted in foxpro to return th ...Show All

  • SQL Server custom handler replication error

    hi we're having a very weird problem, we are developing a outlook addin using VSTO, in order to replicate data we are using a merge replication with a Merge Pull Subscription between SQL server 2005 and SQL express 2005, from that subscription we obtain the MergeSynchronizationAgent specifying the following properties: syncAgent = mergePullSub.SynchronizationAgent; syncAgent.ExchangeType = MergeExchangeType.Bidirectional; syncAgent.DistributorSecurityMode = SecurityMode.Integrated; syncAgent.PublisherSecurityMode = SecurityMode.Integrated; syncAgent.SubscriberSecurityMode = SecurityMode.Integrated; syncAgent.SubscriptionType = SubscriptionOption.Pull; BTW, the publication has a custom conflict Handler registered in the GAC, this clas ...Show All

  • Visual Studio 2008 (Pre-release) The futher of WPF?

    Hi all Is it true that none of the application that ship as part of the windows vista OS use WPF And if so, what is that saying I'm trying to develop our companies first "for Cash" app using WPF. Is MS really committed to making WPF the new programming model If MS can't afford to use WPF, how can I (It is the state of the tools , more then the readiness of WPF, that really make me ask this question.) I would appreciate your thoughts, it is after all the further of my company. A worried Mike Greenway Ashish I can’t remember the words exactly but someone at MS said “MS is successful when the developers that use our products are successful.” and I think that sharing the early bits goes ...Show All

  • Visual Basic TimeSpan Calculation - Crosses Midnight

    I'm working on an employee timekeeping program where the users can enter multiple In/Out clock times for a given day. I need to add up the hours/minutes worked for each day. The below code seems to work fine except if the Out time crosses over midnight. Example: Clock In: 10:30PM Clock Out: 2:30AM Any ideas on how to calculate this Dim inTime As DateTime = dtpIn.Value Dim outTime As DateTime = dtpOut.Value Dim timeDiff As TimeSpan Dim hrs As Double Dim min As Double If inTime > outTime Then 'Check if times cross midnight boundary 'Looking for a better way to do this timeDiff = inTime.Subtract(outTime.AddDays(1)) Else timeDiff = outTime.Subtract(inTime) End If ...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. Hi Jamie, The error does not occur while the SQL Task is being validated. The Task correctly picks the right date and assigns it to my v ...Show All

  • Windows Forms Problem with my custom control crashing the Windows Forms Designer

    If i add my control with this.controls.add(Mycontrol) in form_load i have no problems but if i add it from the toolbox, the designer crashes. Here is the code for my control: enum ScrollDirection { Up, Down }; public partial class ScrollingText : Control { private int _LineSpacing; private Timer _timer; Bitmap b; int yPos; ScrollDirection _direction; int _scrollAmount; bool _scrolling; public ScrollingText() { InitializeComponent(); _LineSpacing = 2; this .Text = "Testing Line #1" ; for ( int i = 0; i < 20; i++) this .Text += "\nTesting Line #" + (i + 2); this .Size = new Size (50, 50); _timer = new Ti ...Show All

  • SQL Server Can I retrieve a result set from a sp into a variable within a Execute SQL Task?

    Can I retrieve a result set from a sp into a variable within a Execute SQL Task I looked at Jamies example and it is pretty much what I am doing with the exception I am trying to get a result set from a sp not a select statement. This is the error message I am getting . Error: 0xC001F009 at D3OLNAC3: The type of the value being assigned to variable "User::spmessage" differs from the current variable type. Variables may not change type during execution. Variable types are strict, except for variables of type Object. Error: 0xC002F210 at Run sp_D3ALNAC1, Execute SQL Task: Executing the query "exec sp_D3acls1 '20061204'" failed with the following error: "The type of the value being as ...Show All

  • Visual Studio Team System Deleted an administrative account from the Valid Users group !

    I've managed to delete the only administrative account (mine) from TFS Valid Users group so now i cannot log in ! I've tried to Repair the instalation but i get Error 28002 during the process - the domain controler + DNS are set ok (the same configuration was on during the first install) - looking over the logs i'm told that my user is already member of the Administration group - which is probabily true because i only deleted it from Licensed users - is there a way to overcome this Pls. help ! Some more details from msi log: User <me> already a member of the Administration group. User TFS already a member of ...Show All

©2008 Software Development Network