JasonReis's Q&A profile
Smart Device Development Defragmented Internal Memory
Is there a tool that can be used to defragment internal memory. Not an SDCard. I have found lots of tools for that. But nothing for internal memory. Any odeas Thanks What benefits are you expecting from it Defragmentation of hard drives improves performance because it takes some time for HDD heads to move from one file fragment to another. There's no such time penalty in RAM based storage, reading next memory block is just as fast as reading one 30 MB away. By the way, modern flash cards (access time below .5 ms) are also affected by that insignificantly. Defragmentation of a flash card is unlikely to yi ...Show All
SQL Server Stored procedure issues...
Hi, I have a table set up in SQL Server Express with the following columns: PartNumber (PK, smallint, not null) PartName (nchar(50), not null) Status (nchar(10), not null) Price (decimal(8,2), not null) What I want to do is create a simple .Net form where the user types in a search key and the key is matched against the PartName field to provide matches. This was easily done in the .aspx file itself: SELECT * FROM dbo.PartsTemplate WHERE PartName = @PartName ORDER BY PartName ASC It works exactly as it should. However, since I'm still learning my way around SQL Server Express (and to a degree SQL itself) I wanted to try creating it as a stor ...Show All
Visual Studio Addin for Visual studio 6.0(msdev.exe)
Hello, I am trying to develop an addin for Visual studio 6.0(msdev.exe). I am using DevStudio Add in Wizard for it. It provided me default code for handling application events and debugger events. But my objective is to handle copy,cut,paste ,print commands in editor.These command are not the part of IApplication events or IDebugger events. Could anybody please help me in finding the best possible solution for this. As per my understanding Cut,Copy,Paste methods are part of ITextselection interface ,which i try to implement in my class,but unable to handle those events as there is no proper event passing. Thanks and regards, Ruhina. ...Show All
Visual Studio IVsHiColorItem caching
I've implemented an editor line marker that implements IVsHiColorItem to allow the full color range. This part works. Now the trick is when I change that color, I've found that the GetColorData member is only called seemingly once per-marker-per-editor-class, so color changes don't take effect until a VS restart. I've tried clearing the font and color cache with IVsFontAndColorCacheMangager.ClearAllCaches, and this didn't have any affect on my marker. What do I need to do in order to get the GetColorData to be called again after a color change Will, I am a bit confused about what you are tr ...Show All
Windows Forms Combox events - how to trap arrow down clicked
Due to a relatively large result set, I need to control the amount of data returned for a combobox lookup. The user will enter a few characters in the combobox edit area. When they click on the down arrow of the combobox I would like to then go get the data using the entered text in the where clause . Questions: 1. How do I trap the&nbs ...Show All
Visual C++ Error: "Reference mscorlib.dll was not found on the References path."
I just installed VC++ .NET 2003, and am working through the tutorials in the book included with the product, "Getting started with Microsft Visual C++ .NET version 2003." I'm on page 20, and trying to build a new "Console Application (.NET)", but receive the error, "Reference mscorlib.dll was not found on the References path." and my project is not built (animals.cpp is not built) so I can no longer follow along with the tutorial. I've run through the instructions step by step now at least a dozen times, but still receive this error. The file it is looking for (mscorlib.dll) is in the following locations: C:\WINDOWS\ServicePackFi ...Show All
Visual C# performance problem
Hello. I have created our custom ticket-like component. I must place multiple ticket's component on the form in runtime. This tickets must fit in the form's size. their size changes according the amount of tickets to fit on the screen, and this process is to slow. when I have more than 4 components on the form, and I put another one, all of the tickets size is changed and the screen is flickering. I tried Application.DoEvent(), Invalidate etc. but nothing gaved me the result I wanted. anyone knows what's the problem I appreciate your help. thanks in advance. Hello I suggest that you review the Code you have written, there may be ...Show All
Visual Studio Customize DirectiveProcessor
Hi, I have a small question regarding Directive Processor. I created a new DSL named Performance and intended to enhance some functionality of generated PerformanceDirectiveProcessor class. But it is sealed instead of partial class. So, if I want to more functions to PerfomanceDirectiveProcessor I need to create a new class including old and new functions. Is that right Also, I don't know the diffenece between RequiresProvidesDirectiveProcessor and DirectiveProcessor classes. Which one is more powerful Sorry if my question may sound a bit silly. Thanks NB NB/Ran, If you want to customize the generated di ...Show All
Smart Device Development Problem with P/Invoke when double types are passed by value
Hello All, I am using P/Invoke on native dll which is developed in C. I have one query. When I try to call function which takes arguments as double, I get "NotSupportedException". According to following article, we can't pass double type as value to core function. http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/netcfmarshallingtypes.asp "Long types (64-bit integer) and floating-point types (float and double) cannot be marshaled by value into unmanaged code. You should pass these values by reference." As I don't have source code I can't do the suggested changes. So what shoul ...Show All
Windows Forms Problem with the KeyDown event...
Hi, I experienced a strange problem - I am currently building an application that has a user control in it and for this control I want to trap the pressing of the ARROWS keys. BUT... The problem is that only the OnKeyUp event occurs for THOSE KEYS - this is not what I need :((. I tried overriding the ProcessKeyMessage method and found out that&nb ...Show All
Visual C# STA MTA issue: handle returned is IntPtr.Zero when in MTA mode
I'm writing a multi-threaded application. When I call IntPtr hInterface = mySimCan.CanOpenWCS( "CAN1" ); in the main-function of the application the hInterface contains a valid handle because the main-function has a [ STAThread ] attribute: [ STAThread ] static void Main( string [] args) { But when I call it in one of my threads the returned value is IntPtr .Zero The method CanOpenWCS is located in a C# managed DLL (class library project). This method calls a function in an unmanaged DLL written in C using PInvoke. (Compiling the C-DLL doesn't work. Then it always returns an unvalid hInterface . ...Show All
Visual Studio Team System Autogenerated Fields and Methods
Hi all, i wrote a custom rule for checking field- and method naming. As i checked some code with events declared i saw that there are some fields and methods implicitly generated. Example: Public Class TestClass Public Event OnItemClick(ByVal itemName As String) End Class If i check the above code i see the following: TypeNode: CodeRules.TestClass+OnItemClickEventHandler Methods: TestClass.add_OnItemClick(CodeRules.TestClass+OnItemClickEventHandler) TestClass.remove_OnItemClick(CodeRules.TestClass+OnItemClickEventHandler) CodeRules.TestClass+OnItemClickEventHandler.Invoke(System.String) Fi ...Show All
Visual Studio Team System TFS API Help [Urgent]
Hi! I would like to create a team project, work item, resource allocation, etc. from my application using TFS API. But i do not know where to start I found Microsoft.TeamFoundation, Microsoft.TeamFoundation.Client, Microsoft.TeamFoundation.Proxy.Portal provides APIs for all the above functionalities. But it is very difficult to me to understand the usages of these APIs. Please do the needful asap. Regards, Sheik Buck has a great example that shows some simple version control operations (create a workspace, pend a change, check in the change and hook up some event listeners). It' ...Show All
Visual Basic Screen Cap
Ok I am using this to capture the screen. b = New Drawing.Bitmap(My.Computer.Screen.WorkingArea.Width, My.Computer.Screen.WorkingArea.Height) Dim g As Drawing.Graphics = Drawing.Graphics.FromImage(b) Dim s As Drawing.Size = New Drawing.Size(My.Computer.Screen.WorkingArea.Width, My.Computer.Screen.WorkingArea.Height) g.CopyFromScreen(0, 0, 0, 0, s, Drawing.CopyPixelOperation.SourceCopy) My.Computer.Clipboard.SetImage(b) Me.PictureBox1.Image = b I have 2 questions. How can I make it capture the taskbar and how can I make it capture a form and only that form.(the form is not in the project) ...Show All
SQL Server Reporting Services - Variables/Parameters - Is this a bug?
When creating a Reporting Services report and declaring local variables as part of your query in a dataset there is sometimes a problem. When you hit run in the Data section and the “Define Query Parameters” box pops up, all the variables are not there. Sometimes when you go to properties (…) of that dataset the parameters are gone. Is this a bug This is happening both in RS2000 and 2005. Thanks Not an expert in this area of the product, but i tried it briefly on my computer - local variables are recognized when you use the generic query designer (the default). They do not appear in the parameters (a ...Show All
