ChrisNickel's Q&A profile
SQL Server SUM problem in SSRS 2005 report
I don't know how best to explain this but will try. In my SSRS 2005 report, i have one group in my table. In that group, I have a field that for each company record in my dataset, this field value is repeated for each record. This is a transactions table so you'd expect several records in the dataset for each company..that's not the problem. example data from dataset: TransID CompanyID FeeGoal 1 1000 ...Show All
SQL Server Cannot create publication after SP1 upgrade
After upgrading SQL Server 2005 with the recent service pack, I am unable to create a publication. When I right-click on [INSTANCE]/Replication/Local Publications and select "New Publication...," the mouse cursor turns into an hourglass, but the wizard never shows up, nor is any error displayed. There is a logged error that's been showing up that may or may not be related. The error message is "Replication-(null): agent (null) scheduled for retry. Could not clean up the distribution history tables." Any ideas on how we can restore replication functionality on our SQL Server instance Can ...Show All
Visual C# Uploading image and then overwriting it?
I'm making a windows app that allows a user to save an image to their profile. If the user uploads a file and clicks save it works. But if they do it again without restarting the program, I get an IO Exception: "The process cannot access the file 'C:\Program Files\karl\Bosch\dealer_logo.jpg' because it is being used by another process." Here is some of my code: public editDealer() { //load the image if (File.Exists(@"C:\Program Files\karl\Bosch\dealer_logo.jpg")) { pbxImg.ImageLocation = @"C:\Program Files\karl\Bosch\dealer_logo.jpg"; } else if (File.Exists(@&qu ...Show All
Visual Basic OpenFile()
I need help using open file, a module (.dll) actually. I have somthing like this: dim myModule as [Module] and i need to make myModule equal somthing like myModule = openFile("module.dll") I looked for examples online and found nothing of use PS. Actually the goal here is I am trying to inject a dll into a process of mine. I am having a problem though with the proper decleration of the dll. If anyone knows anything more specific about that it would be great, but I think I should be able to make due as soon as I get the openfile api down. You must add this dll as a reference (Project => Ad ...Show All
Visual Studio Team System Create class based on WorkItemTypeDefinition.xsd?
Hi, I am trouble to create a serialized class based on WorkItemTypeDefinition.xsd (VS 2005 SDK) with the xsd -c command. Anyone who knows what is wrong Thanks Thomas Error message: Microsoft (R) Xml Schemas/DataTypes support utility [Microsoft (R) .NET Framework, Version 2.0.50727.26] Copyright (C) Microsoft Corporation. All rights reserved. Schema validation warning: Type 'http://schemas.microsoft.com/VisualStudio/2005/ workitemtracking/typelib:NonEmptyPlainConstant' is not declared, or is not a sim ple type. Line 101, position 10. Schema validation warning: Type 'http://schemas.microsoft.com/VisualStudio/2005/ workitemtracking/typelib:Fie ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Drawing Custom Model Format
hi, im started with DXSDK a few days and i want to know if there is a way to fill a ID3DXMESH with my custom format my code: namespace my_work { struct my_vertex { int vIndex; D3DXVECTOR3 vPosition; D3DXVECTOR3 vNormal; D3DXVECTOR2 vUV; }; struct my_face { int vIndex1,vIndex2,vIndex3; }; } OBS: i've tryed to use vertex buffer with FVF but my models don' ...Show All
Windows Forms Inheritance question
I have a usercontrol base class called say 'UserControlBase'. This inherits from usercontrol. I then have a class that inherits from UserControlBase called say 'SpecificUserControl'. One of the methods in UserControlBase needs to loop through all the controls in an instance of SpecificUserControl. Can I do this During testing, when I access the controls collection in a ...Show All
Visual FoxPro topmost window
Good day to everyone... My problem is about the active mainform of my application which is top level form. All settings has already been set, compiled with no errors and deployed at the workstation. This small VFP program is just to warn me at the server if a certain workstation is already on-line. But when the user start any on-line games, and I wanted to send message to him, my little vfp program will not show's up at the top of the active windows of games but only at the background. which the user doesn't know if he has a message from me. Maybe there is something in my code which I miss. Any help is ...Show All
Visual C++ Is there a Microsoft C++ Profiler?
is there any way to have the cl compiler (Microsoft Visual C++) generate profiling information on which function of the code executes for which amount of time and how many times, etc. If not what are other way to get the same info. I am running VC2003 but can switch to 2005 but if really necessary. Thanks. Here's one for .NET Framework 2.0 you can download. http://www.microsoft.com/downloads/details.aspx FamilyId=86CE6052-D7F4-4AEB-9B7A-94635BEEBDDA&displaylang=en ...Show All
Visual C++ best method for manipulating a file
Hello, I had several years away from C++. When I returned just recently, I found a multitude of ways to open a file. One is the good old ifstream infile("filename"); Another is the HANDLE fileVar = CreateFile(etc.) There also seem to be--though I haven't looked into it--ways to manipulate file streams with methods that use String^. (I won't even go into my confusion with String^!) Two questions. First, is there a prefered method, beyond personal preference, for working with file streams Second, if you use the HANDLE fileVar method, fileVar.eof() fails. How do you do anything but open a file ...Show All
Visual Basic Windows API in VB.Net
Dear All, Q1) In VB6, there are Win32API viewer for helping us to writing Windows API application. In VB.Net, I can't find that tools now. If I want to write some program with WinAPI, how should I do Q2) After installed Platform SDK, I can use the new and platform api in VC++ program. I want to know How to use them in VB.Net Thanks, Kevin Tang. A good site for checking what you need to change when upgrading code to .NET: http://www.thescarms.com/vbasic/VB6vsVBNet.asp Lists things like datatypes (Integer --> Short, and Long --> Integer) as well as other considerations. ...Show All
Visual Studio Trouble with Project Template for Package (ProvideProjectFactory)
I've created a new project type like the sample in Archives\CS_Samples\Project. But I'm confused on how to control the template that is added for the project. I've exported a template from a different project, unzipped the contents and placed them into the Templates\Project folder. It compiles and runs, but there are two templates that show up in New Project, one that is named the same as the .vstemplate file and a second based on the csproj file that is part of the real template. How do I get the second item to disappear I've tried just inserting the zip file that is generated by the export template wizard into the folder, but it does ...Show All
Visual C# App.Config
The following connectionString is present in App.Config <configuration> <appSettings> <add key="ConnectionString" value="Data Source=machine1;Initial Catalog=database1;User Id=user1;Password=password1;"/> </appSettings> </configuration> Now I would like to retrieve it using the following code public static string GetConnectionString { get { return ConfigurationManager.AppSettings["ConnectionString"]; } } Is this correct Thanks Yes, it is correct. Don't forget to implement exception handling when ...Show All
Visual Studio How to support Temporary Projects
Please teach us how to support temporary projects. Please teach us the topics about temporary projects in Visual Studio 2005 SDK. Best Regards. Shinya Watanabe Hi Douglas, I have created a new thread here - " MPF bug: Solution is not saved when "Save new projects when created" is unchecked ". Could you please have a look at Your input will be much appreciated! Thanks, ...Show All
Visual Studio 2008 (Pre-release) How do I invalidate/refresh the window?
How do I invalidate/refresh the window before performing a time consuming operation in the main thread I need the mouse cursor to update and the rect under a dialog box (which just closed) to be repainted before this operation starts. I thought maybe InvalidateVisual() would work, but it didn't. (I know, I should put time consuming operations in background threads, but I'm not quite there yet). Thanks, Tor. The short answer is you can't do this. The solution is exactly what you already know: put your long running operation on a background thread so you don't tie up the main thread. Cheers, Dr ...Show All
