Software Development Network Logo
  • Smart Device
  • Visual C#
  • Game Technologies
  • VS Express Editions
  • Visual Studio
  • Visual Basic
  • Visual J#
  • SQL Server
  • Visual C++
  • Windows Vista
  • Windows Live
  • Windows Forms
  • .NET Development
  • Visual FoxPro
  • VS Team System

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

CPRKris

Member List

A.Y. Faizal Ahmd
Graham P
Ola Sprauten
dpogo
mkruluts
Tom Nt
FvS
espeir
tom-b
pwu123
Dan Wahlin
Elisabeth
exortech
Bluedevil229
SagayaBabu
stoneyowl
A D SRIKANTH
Richard Chenglo
vistalad
Alain Vezina
Only Title

CPRKris's Q&A profile

  • .NET Development A Question on GC

    I have a MDI program in which user can open different document and edit it. After several user use it, they report that it becomes more and more slow. So I watch the memory usage of it carefully and found a problem : it seems the memory is never released after a document is closed. I watch the memory cost in Tesk Manager, and found that whenever a document is opened, the memory cost increases. However, after the document is closed, the memory cost does not drop. When another document is opened, it cost more memory. I later realize that since the document is opened for a while, the objects it allocated have been moved to Generation 2. So ...Show All

  • Visual Basic Prevent form of stealing focus

    Hi There, I'm currently building a application where i'm in need to show a alert message (a popup). Now i have made a little form that will do this for me. But when the form comes up, it draws the focus right to it. This isn't nessecery becasue it just a message no respone on it is needed. Is it possible to disable a form to take the focus. In VB6 there where a api i can call, in 2005 i can't get the api to work. Can anyone help me What Windows' API call did you use in VB6 ...Show All

  • Visual C# Indexers concept in C#

    Hello! I am quite new to C#, and one concept that really gives me a headache is "indexer". I have gone through the MSDN examples, and, at some level know how to use indexers. But, the thing is I do not understand the specification that says something along this line "with indexers you can index objects of a class like an array". The thing is, in all the examples, there is only one "new" call when only one object is created! There is no array of objects. Yet, right after the "new" call, indexer is used, like obj[0], obj[1], obj[2], ..., obj . When these objects are instantiated Also, I have ...Show All

  • Visual Studio Tools for Office Create a store and assign it a name (Outlook)

    Hello world! I would like to know how to create a store in C# and assign it a name other than Personal Folders. I try this: this.Session.AddStore("c:\\test.pst"); Now I need to change it name. Thank you very much! Hi, You can specify the name of the new store instead of the store path: e.g.: this.Sessions.AddStore ("Work Folders"); ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. MDX, where do I put the symbol files?

    Sorry for the newbie question, but where do I put the Symbol files I am using April 2006 release, VS2003, MDX, x86. Thank you. Well I didn't have that directory, but after a little hunting I discovered that its a separate download. http://www.microsoft.com/downloads/details.aspx familyid=562D72FC-61C8-41A3-8BFF-509466F3D6AA I always assumed these were for C++ only but you are correct that there are symbols for the managed assemblies too. I believe that you don't have to copy them anywhere - you just have to tell Visual Studio where to look for them. Tool/Options/Debugging/Symbols. I'm not sure if you can specify the root direct ...Show All

  • SQL Server Does a synchronous transformation process all rows in a buffer before outputting to next transformation?

    Hi, If you have two synchronous transformation components and the input of the second is connected to the output of the first, does the first transformation process (loop through) all rows in the buffer before outputting these rows to the second transformation Or does the first transformation output each individual row to the second transormation as soon as it has finished processing it Thanks in advance, Lawrie. Parts: Component A (CA), Component B (CB), Row 1 (R1), Row 2 (R2), Row 3 (R3) Example Synchronous: CA and CB are Synchronous transforms (as defined by something like: output.SynchronousInputID ...Show All

  • SQL Server Working with an integer array in a stored procedure

    hi there, i need a procedure that works with C# e.g.: using ( SqlCommand cmd = GetCommand( "Procedure_Name" )) { //i=an array of integer values cmd.Parameters.Add( "@array" , SqlDbType. ! ! ).Value = i; cmd.ExecuteScalar(); } i need to write a stored procedure that takes as input an array of integers (amongst other values) this procedure must loop through every integer in the array and INSERT a new record into a table. i have never used T-SQL before. Many thanks You could do that but with not using a array type (which isn’t accessible in here), rather than using a string ...Show All

  • SQL Server SQL Server 2000 "Personal" to "Standard" Upgrade

    Hello all, By mistake I have installed a MSSQL-Personal-Edition instead of teh Standard-Edition. I have ste up all Databases and SP4 (runing on W2K3-Server). I know, that i can upgrade to Standard-Edition by simply doing an other setup on top. (I have found that Information on the MS-Websites) But: Won't there be any problems with SP4 I can't find any Word about that. Is there anyone, who can help me The system is up and running, I can't afford much downtime. Thanks in advance.   Kind Regards: reesthil ...Show All

  • .NET Development Accessing a client id from within a web service

    Hi I am using Visual Studio 2005 with VB 2005 and investigating Web Services. I have a VB client application that accesses a Web Service. This works fine, but I would like to know if there is a way to obtain some kind of unique id/reference of the VB client application from within the Web Service. I would like to save this id/reference somewhere (possibly in a file or database) and then, when the Web Service responds back to the client and the connection between the client and Web Service is then closed, I would like some other application to be able to access the saved id/reference and send a message to the client. Does anyone k ...Show All

  • Windows Forms Trouble drawing theme elements transparently

    I'm trying to draw a windows theme element (the window close button, specifically) to an image, and whenever I do, the image has ragged non-transparent bits. I got this code from a sample that didn't do this (it was all owner-drawn, mine draws to an image.) Any idea why it won't draw with full transparency Bitmap output = new Bitmap(closeButton.Width, closeButton.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb); Graphics fx = Graphics.FromImage(output);        IntPtr hTheme = OpenThemeData (Handle, "Window");           Rectangle rClose = new Rectang ...Show All

  • SQL Server Excel pivot table

    Hi, I have created an OLAP Cube in SQL Server 2005 CTP2 and can browse it fine in the Analysis Studio / Browse tab. When I use the pivot table feature in Excel (2003) I get: XML for Analysis parser: The LocaleIdentifier property is not overwritable and cannot be assigned a value. Any help is appreciated. Cheers, Adam Hi, I realise that this is an old post but as we had this issue for some of our users january 2006 it might help someone... We had an old version of IntelligentApps installed (4.5.0.29) on the clients where we had the XMLA-LocaleIdentifier issue. When we disabled that plugin the probl ...Show All

  • Software Development for Windows Vista sending data to a single workflow instance.

    newbie here. trying to grasp how communication from outside the workflow works. in one of the examples supplied communication is set up creating an instance of VotingService and passing in effectively to the workflow runtime. Since the runtime can be hosting multiple instnces of the same type of workflow. How does it know to which workflow instance to send data to or will all instances receive data example: WorkflowRuntime workflowRuntime = new WorkflowRuntime (); ExternalDataExchangeService dataService = new ExternalDataExchangeService (); workflowRuntime.AddService(dataService); votingService = new VotingServic ...Show All

  • Visual Basic System.IO locking my files preventing another Sub to run properly

    Once I get to this point and call this function below, I get a lock error on the incoming .mnt and .naf files that it tries to move.   here's my entire code: http://www.webfound.net/allcode.txt Here's the Error System Error Information: The process cannot access the file because it is being used by another process.Place: 6 System.IO.IOException: The process cannot access the file because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.__Error.WinIOError() at System.IO.File.Move(String sourceFileName, String destFileName) at HEDI2.Module1.MoveInputFiles() in Y:\ine ...Show All

  • SQL Server How to check two datetime values intercepted

    Anybody can tell me how to check whether two datetime values are intercepted If you are asking to determine if two date ranges overlap, it turns out that there is a simple query. Suppose you have 4 values, @start_1, @end_1, @start_2, @end2. Then they will overlap if: @start_1 <= @end2 and @start_2 <= @end1 Use less-than or less-than-or-equal depending on how you want to treat the end points. If you have a date and a date-range, then between will work. If all you have is two dates, you can compare them normally. ...Show All

  • Visual C++ process a function every 5 minutes

    I want to develop a function that process every 5 minutes. How can I do this You can just create a thread that sleeps for 5 minutes and then calls the function then sleeps once more (a loop that keeps running). To know more about threads: http://msdn2.microsoft.com/library/bkb1k2x8(en-us,vs.80).aspx To know more about the sleep method: http://msdn2.microsoft.com/library/8zhz0ef8(en-us,vs.80).aspx Thanks,   Ayman shoukry   VC++ Team ...Show All

©2008 Software Development Network