L.A's Q&A profile
Visual C# How to define arrays in C# Struct
Hello, I've searched through forum using search for my problem and finally I got to make new one. Here we go. I'm trying to make a structure in C# which converted from this Delphi code. When it comes to "Array [0..3] of String[128]", I don't know how to make a C# structure to match this type of structure. I'd like to know if there is any method available to declare arrays like this in C# or not. So far I've tried, I cannot decla ...Show All
Visual Studio 2008 (Pre-release) query and cache
So under what kind of query is the cache used instead of actually making another query Is it only for exact match (i.e. "==") queries Could you expand or ref an article. The cache is checked when the query is a simple table.Where(pred) or table.First(pred) where the predicate refers only to the primary key. Otherwise the query is always sent and the cache only checked after the results are retrieved. ...Show All
Visual C# ManagedThreadID doesn't work for interop for SetWindowsHookEx.
I am converting a VB6 program to be C#. Therefore I was looking up how to hook the application for mouse, key activity and I found this article by Microsoft. http://support.microsoft.com/kb/318804/ In the code it uses AppDomain .GetCurrentThreadId() to set a callback thread for Hooking. It uses interop to the user32.dll. I modified/used the code and it works. However, the compiler insists that I should not use this function (GetCur ...Show All
.NET Development Cross-AppDomain data modification
(This is a message posted in another discussion group , hopefully someone in this forum will be able to provide more explanations...) In an attempt to pass data from a default (AppDomain.Current) domain to a domain that gets created on the fly, I've came up with the following code (a minimalistic example): class Program { static void Main( string [] args) { AppDomain domain2 = AppDomain.Creat ...Show All
Visual C++ DLL and distribution files
If I compile a DLL with an /MD switch and I want to distribute it (say with a VBA code that makes a call to the DLL), what are the other files that I also need to distribute so other people can run it I suspect the same answer applies also if I distribute .exe file compiled with /MD. Thanks, Bumbrlik Take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=398802&SiteID=1 for deploy ...Show All
Visual Basic Outlook add-in not working under Outlook 2003 need suggestions please
Hello everyone, First off thanks for any help, suggestions, or advice that you can give me. Here is the background: I have an add-in written in Visual Studios .NET 2003 that is working in Outlook under Windows 2000 Professional. The button for the toolbar appears where it is supposed to and all is good. Here is the problem: We have some new machines now that are running Windows XP Professional and Outlook 2003 and the button for t ...Show All
SQL Server Unable to connect to SSAS
On my local machine i'm unable to connect to my ssas. I'm working with a developper license and the service is running. It is working with a default instance, browser is running. I'm able to connect to the database server, ssrs, ssis, .... This is my error... TITLE: Connect to Server ------------------------------ Cannot connect to BI_DEV. ------------------------------ ADDITIONAL INFORMATION: A connection cannot be made. En ...Show All
SQL Server Slow Startup from Idle
Is it possible to stop the server from going to sleep when it is idle to improve responsiveness to new connections Could you describe your problem it a bit more detail Are you connecting to the express instance using "user instance=true" in the connection string Do logins seem to take longer if the instance is idle some particular amount of time ...Show All
SQL Server Questions about SQL Express
What is the user limit for SQL Express Is there a free way to convert Access files and import them into SQL Express Is there any way to take databases offline without have to detach them http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=232886&SiteID=1 ...Show All
SQL Server Write to Log from Script Task
I know this topic has been touched on a little in the past but I believe I may have a different spin. I would like to place a script task in an event handler that writes to the log providers. I have used both Dts.Log(...) and Dts.Logging.Log(...), but neither result in an entry being written to any log provider. I believe the problem has to do with enabling the ScriptTaskLogEntry in the Configure SSIS Logs dialog. This option is not avail ...Show All
Visual Basic Making a picturebox have a transparent background
I have a picture of a panda with a pink background (panda_down.bmp) and I was wondering: how do I get that pink background to be transparent Draw the image yourself in a paint handler, and use the imageattributes class to make 255/0/255 ( magenta ) transparent. ...Show All
.NET Development (SQLXML) or (XPATH queries) in VB.NET 2005 Express
I have been struggling with a while now in how to figure out how to use SQLXML in VB.NET 2005 Express. I also have Visual Studio 6.0 Enterprise installed but my client wishes that his project be in .NET. I am able to successfully use my XSD schema and an XPATH query to return the data I want in VB 6.0 using ADO and XPATH queries. I would like to duplicate this functionality in VB.NET 2005 but unfortunately I have not yet had any luck. I h ...Show All
SQL Server How can I turn off the encrypted login feature?
Hi all. My question is, is there any option that turning of the login encrypt I've read many post that they said the login encryption is always on and can't turn that off. With MSSQL2K, I made some program that audit who try to login and when and access which db. But I can't check with MSSQL2K5 because the server and client always encrypt the login info (via TLS ) Someone said that profile the client but when the site is busy, that feat ...Show All
SQL Server Executing SQL 2000 DTS packages from VB.NET 2.0
I have to build a simple Windows Forms application that imports data for review and then exports it into a different format. I've created DTS packages in SQL 2000 for the import and the export. What is the recommended way to execute the packages using buttons on a Windows form I couldn't find the DTS forum. The MSDN documentation includes a lot of good information about coordinating .NET 2.0 with SQL ...Show All
Smart Device Development DG CurrentCell.ColumnNumber - HELP!!
I have a windows (specifically mobile) datagrid - I am trying to force/set the CurrentCell.ColumnNumber to 0 but when I do, I get the following: "NullReferenceException Was Handled" This is the code that works but not what I need: grid[currentCell.RowNumber, currentCell.ColumnNumber] = txtEdit.Text; This is really what I want but throws the error: grid[currentCell.RowNumber, 0] = txtEdit.Text; ...Show All
