Alexander Olekhnovich's Q&A profile
Windows Forms shrinking menu width when rendermode = system
If you set the rendermode for a menu to anything but system you get the blue vertical strip on the left side running from the top to the bottom. If you set the rendermode to system, it disappears but you still have the entire width where the strip was on the menu. How do you get rid of this margin I don't want the strip but without it it makes the menu too wide and ugly. Well that's not really an option. I need it to disappear. This wasn't the case with VS 2003. I don't know why they had to change it. ...Show All
SQL Server Tuning Advisor errors
Hi, the tuning wizard in sql server was a very good help for me. I was hoping to do the same after we installed SQL Server 2005. But the tuning advisor doesn't seem to work! At least not for our database. I have tried several times to create a trace when I run a heavy workload on the database. When I have finished the tuning, I get 0% recommended improvements, I should get plenty and always did before installing 2005. But I also get a Warning - "50 % of consumed workload has syntax errors. Check tuning log for more information." And there are many errors in the tuning log, but I can't see why the advisor complains. Here is one example of an error in the tuning log: E000 [Microsoft][SQL Native Client][SQL Server]The text ...Show All
Visual Studio Express Editions How to solve AccessViolationException when call matlab function usind C#?
Hello, I've cretaed a Matlab function and managed to call it out in C++. But, when i convert my C++ to C#, there's an 'AccessViolationException Unhandled' error. Besides, i have successfully import the mclmcr.dll and my function dll in C# by using [DllImport(@"mclmcr70.dll")] method. Below is my C++ codes: [mxArray *imageName = NULL; imageName = mxCreateString("demo1.jpg"); // Call the function mlfVaanalysis(imageName, outputName); mxDestroyArray(imageName); imageName=NULL;] After converted to C#: [IntPtr imgName= VamDLL.mxCreateString("demo1.jpg"); VamDLL.mlfVaanalysis(imgName,outputName); VamDLL.mxDestroyArray(imgName);] where the VamDLL is the C# class i use [DllImport(@"mclmcr70.dll") ...Show All
SQL Server SQL Server 2005 Service Pack 2 - December CTP Now Available
Thank you to everybody who has submitted feedback on Microsoft Connect. We have taken a lot of your comments/ideas into account for SQL Server 2005 Service Pack 2. Many of the top requests for SQL Server Management Tools have been addressed in this service pack. What's New in SP2 http://go.microsoft.com/fwlink/ LinkId=71711 SQL Server 2005 SP2 - December CTP: http://www.microsoft.com/sql/ctp.mspx The SQL Server Manageability team has focused on a few main items. If you have a question in any of the following areas, please take a look at the November CTP of SP2: Management Studio Reports Generate Script Wizard Copy Database Wizard Maintenance Plans Database Mail I will blog about the first four over the next few months @ ht ...Show All
SQL Server SSIS + SSAS => Fairly consistent hanging?
I have an SSIS package that reprocesses part of my cube. I've tested that it works, and deployed it as a SQL Job to run regularly. Strangely, it seems that the SSAS server hangs fairly regularly and when the SSIS job starts to run, it'll be stuck for hours. Is this expected Should I be bumping our SSAS service nightly Are there tools available to monitor SSAS service health Had the same problem recently with SSIS and SSAS. Started when I added unprocessed measure groups to my cube. All of the sudden my SSIS tasks would hang with the "building processing schedule" message, and only one task would go at a time. I processed the all cube measure groups so that the only objects left unprocessed in ...Show All
SharePoint Products and Technologies Getting the UDF Directory Pathname
In my Excel Services UDF, is there a way to determine what the pathname of the directory the UDF dll was loaded from I need some more help as this is new to me. I'm using VB.NET and need the path in my New() method of my UDFClass(). How do I set an Assembly variable to the instance of the assembly And what do I pass as the type parameter (required) to GetAssembly() Thanks! ...Show All
.NET Development WinFX and Interop
Hello everyone! Right i was wondering since WinFX (.Net 3) is part of the Subsystem in Windows Vista if its possible to use the Managed API framework to communicate with other running applications using User32.dll in .net 2.0 i have to use Interop to import the dll and manually managed the code. But since WinFX is a subsystem surely there is already a managed API for User32 or something I cant find anything about the new WinFX features or documentation on the new procedures, namespaces and classes. Does anyone have any links or ideas to some form of documentation or anything of interest Thanks WinFX never included changes to the existing .NET 2.0 framework--it only contains the adjuncts like workflow a ...Show All
Visual Studio Express Editions How to compile C using Visual C++?
Is that possible at all If it is, what are the steps to compile a C program in Visual C++ When I start up a new project, what kind of project I should pick Many thanks! Hi.......... Yes..You can compile your c programms in visual c++. 1. Open Microsoft Visual Studio 2005. Go to File Menu click New->Project. 2. Select Visual c++ and select win32 console application from the template menu. 3. Give File name with .c extention then press ok. (ex:- helloworld.c ). ...Show All
Smart Device Development Compact Framework 2.0 / Web Service Performance
Hi all, I want to connect to my sql server 2005 database from a device (there is compact framework 2.0 on it). But i can do this by connecting to database directly or by using web services. I want to ask you that which one will show better performance Regards.. sourvil wrote: Hi all, I want to connect to my sql server 2005 database from a device (there is compact framework 2.0 on it). But i can do this by connecting to database directly or by using web services. I want to ask you that which one will show better performance Regards.. ...Show All
Visual Studio RSClientController is not defined
I am using a webforms reportviewer in local mode with a dataset. I have confirmed that the filler method of the business object is being called and a filled dataset is being returned. However, when the page renders, the reportviewer is missing the button images, none of the report is displayed and I get a script error of RSCLientController is not defined. I have checked the IIS setting about checking that a file exists and it is not selected. It looks like your site is blocking the request for report viewer scripts and images by redirecting it to your login page. Is this information stored in a cookie Usually an authentication cookie like that will be submitted by the browser on subsequent requests, su ...Show All
Visual Studio Express Editions Wavy underlines in RTBs
How can I format selected text in a richTextBox with a wavy underline ...Show All
.NET Development .NET remoting not working in windows service
I have a program the exposes a single instance of an object. This works fine when I load the server and client normally. However, I have set up the server to start when the computer turns on via a windows service (XYNTService, the service I use to start the program). When I start and stop the service manually remoting works fine here to. However when I boot up the computer or restart it the application is running in the background just fine however there is no exposed object this time. I don't know if this is a security issue or a bug but the remoting only fails with a boot/restart of the computer. 1st, what is the relationship between the Service, the single instance exposed, the server and the client ...Show All
Visual Studio Express Editions Update function
I created a access database file. And I opened a datadrid view on my form, then I clicked DataGridView Tasks/Choose Data Source/Add Project Data Source. Now I can make changes on dataGridView but I can't save changes to my database file(Access). I looked up local helps. It says I must use -tableAdapter1.Update(..);- but, my table adapter hasn't got Update function.(I am usin Visual C# 2005 Express Edition) ...Show All
Visual C++ summing elements of a vector(class) with class elements
Hi, I'm using Visual Studio 2005 and trying to use "accumulate" function in order to sum elements of type vector class. However, the elements of the vector in question have are objects, namely: class bond { public: double strength, prob; bond() : strength(0), prob(0) {} bond(double x, double y) : strength(x), prob(y) {} }; void main() { vector<bond> bond_array(N); // N: very large double sum_total //say the elements of vector bond_array are full with values ... sum_total=accumulate(bond_array.begin(), bond_array.end(), 0); //This command is incomplete, see the question. ... } What I'm trying to accumulate is actually ".prob" of all elements of type bond in vector, and the parameter sum_total will be assigne ...Show All
Visual C++ Active Accessibilty trouble with accNavigate
Hey all, I"m trying to navigate throught the objects of Active Accessibilty. I give my program a mouse coordinate and retrive the IAccessible object using AccessibleObjectFromPoint, at this stage I have the object and I get its name. Now I wish to move to the next object using accNavigate function. I need help with using this function, which parameters do I need to send it inorder to navigate to the next active accessibilty object. The whole point of this program is to be able to read a paragraph of text from Internet Explorer.. IAccessible* pAcc = NULL; HRESULT hr; VARIANT varChild,varNext; // See if there is an accessible object under the cursor. hr = AccessibleObjectFromPoint(ptCursor, &pAcc, &varChil ...Show All
