Lejing's Q&A profile
Visual Studio Express Editions Errors in compiling code creating a window
First time creating code in VC++ express. Think i did all that was necessary to set things up. Using Microsoft XP Hiome Edition, SP2 Installe: SQL server 2005 Visual C++ 2005 Express SDK for Windows Server 2003 R2 Made the changes indicated (Directories, change in corewyn and commented out 4 lines in <forgot where i did that, but it was successful>) Here is the code: // myfirstwindow.cpp : Defines the entry point for the application. //include the basic windows header file #include "stdafx.h" #include <windows.h> #include <windowsx.h> //the WindowProc function protoype LRESULT CALLBACK WindowProc (HWND, hWnd, UINT messagr, WPARAM wParam, LPARAM lParam ...Show All
Visual Studio Team System Why does TFS's Version Control employ forward slashes as path separators?
What happened to the tried and true back slashes of DOS & NTFS Thanks, Brian One reason we use forward slashes is that it is another way to distinguish server paths from local paths. Our command line takes local paths and server paths as options. True, we use $ to start a server path, but for relative paths the slash is the only distinguishing property. Ed http://blogs.msdn.com/edhintz ...Show All
Visual Studio 2008 (Pre-release) Resize Elements inside the canvas
Canvas contains some UIelements like rectange, ellipse, button etc. I would like to resize child elements, when the canvas is resized. I'm able to resize the Canvas using Adorner. Can someone suggest me the general approach to resize any element that located inside the canvas. for e.g <Canvas><Button>Test Button</Button></Canvas>. In this case Button element should be resized with respect to the canvas. Thanks in advance, Venu Thanks for your time. Reason: I have few UIElements (like rectangle, ellipse, button) that are grouped together. these are added to the canvas and considered as a single object. Resizing the canvas should resize its child UIelements.I tried "Mike&quo ...Show All
SQL Server Password in config file
Hi Config files doesn't seem to work for me :( i want to make a common config file for all of my packages but it is giving me error Validation error. The AcquireConnection method call to the connection manager failed with error code 0xC0202009 I have placed pasword in my config file too. Following is config file which i m using, server name n password are masked. < xml version="1.0" > <DTSConfiguration> <DTSConfigurationHeading> <DTSConfigurationFileInfo GeneratedBy="SSBKD\955688" GeneratedFromPackageName="DTS_ACPM_MarkIT_Indices_Composites_TRAC_X_Asia_Index" GeneratedFromPackageID="{CB3660A1-5E6C-4D08-A7F5-4D6CE83578E2}" GeneratedDate="2006/10/19 14:05:20&q ...Show All
Visual C++ Excel Automation using MFC C++--> How to select a particular sheet in a workbook to read a cell value
In the code below, please tell me how to change the last line so as to read a value from a specified sheet. The code below, specifically the last line, only uses the first sheet in a workbook as the default. if (oExcel.m_lpDispatch == NULL) { oExcel.CreateDispatch("Excel.Application"); } // Show Excel to the user. //oExcel.put_Visible(TRUE); //oExcel.put_UserControl(TRUE); // Add a new workbook and get the first worksheet in that book. oBooks = oExcel.get_Workbooks(); oBook = oBooks.Open(m_Filename, covOptional, covOptional, covOptional,covOptional, covOptional,covOptional,covOptional,covOptional, covOptional,covOptional,covOptional,covOptional,covOptional,covOptional); oSheets = oBook.get_Worksheets() ...Show All
Visual Studio Express Editions Visual Basic 2005 Express Format Painter
Hi, Does Visual Basic 2005 Express have a Format Painter function like Word, Access, Excel... I would like to be able to make all of the buttons on a form the same colour, without having to manually change the background in each button's properties box. I realise I could copy and paste the buttons. I have tried a search for format painter and read throughmany pages of these threads. Cheers, Phil Phil, As jmcilhinney suggests, ctrl-click on the controls you want to change, or use Edit->Select All if you want to change the property for all controls, and then use the property browser to set the properties your want to have the same value. Best regards, Johan Stenberg ...Show All
Windows Forms Reports in VB.net
Hello How am I create reports in Vb.net Please help me with this. Any documents, etc...... to read. or examples. thanks Merovingio ...Show All
Visual C# Using SerialPort with USB and removing USB cable while port is open
If I open a com port and then remove the USB cable from PC before closing the com port then there is now way I can dispose the com port after that. Not even Environment.Exit(o) works, i.e. I can not exit my program properly. The following code describes the problem: SerialPort port = new SerialPort("COM94"); port.Open(); int n=0; while (n < 10) { n++; Thread.Sleep(1000); } // (Remove USB cable before the while loop has finished) port.Close(); // <-- won't work port.Dispose(); // <-- neither will this Environment.Exit(0); // < ---and not even this one will work How can I work around this Btw the same scenario will appear if the USB device crash I hav ...Show All
.NET Development Netframework 1.1 and 2.0
I am just a normal everyday home user that downloaded netframe 2.0. I have 1.1 and the hot fix for 1.1 on my pc. Do I need 2.0 on my machine When I go to control panel under "administrative options" everything is 1.1. I plan on upgrading to Vista soon so I was wondering if I was going to need it then. The other question is why does "admin. options" still just have 1.1 Thank you for your help in advance Tim shockley stepsx12@yahoo.com With the .Net framework it will still use the older classes, if a class was not changed with the new release it will use the older version, so use you will need the 1.1 system as well as the 2.0. When you install Vista it will also include the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Which programming tool is better for control multi-monitor, Vc++, or c#?
Hi, I have a work on image processing. I am a new in using Vs.2005 and DirectX, though I have experiences on Vc++ 6.0. I use two monitors. I want to write two different video images into the two monitors. Is DirectShow is good for writing video data to two display adapters. Which programming tools should I sellect, Vc++, or c# Thanks a lot. ...Show All
SQL Server ssis issue
I am trying to create a job in ssis for a package I created. I able to execute the package, but get the following error when I run the job [298] SQLServer Error: 22046, Encryption error using CryptProtectData. [SQLSTATE 42000] Anybody have any idea how to get around this May I recommend to the forum that this become a "Sticky" Ryan What is the value of the protection level property of the package. An SSIS package does not run when you call the SSIS package from a SQL Server Agent job step http://support.microsoft.com/kb/918760 ...Show All
Visual Studio Team System Problem with references in TFS
Hi guys, I am having troubles with references in a projects under Source Control, VS2005. And because of them cant run TF Builds. The probem is that when I am finished with editing source code of some solution under SC and it runs perfectly, and I check in pending changes after that, but when some other guy from the development team `checks out for edit ` same solution, even though he clicked that `get latest version` before, he gets errors with references to dll files, custom made components, even though path is the same and they all point to valid and up to date dll`s. And every time someone else has to work with particular project, he has to remove all references manually and add them up from that same directory in order to bui ...Show All
Visual Basic 2003 > 2005 Upgrade problem
I have an application written in VB.Net '03 that worked fine until I attempted an upgrade. I have most of the bugs ironed out, but one I can't find a solution to: My buttons light up on MouseHover, and "unlight" on MouseLeave. This is true of all buttons, including the "exit" button. The problem is, after I click the "exit" button, the Windows Form Designer Generated Code "dispose" sub triggers the MouseLeave event, which generates an "ArgumentOutOfRange Exception because the collection the "unlit" Exit Button image is stored in is no longer available. Yikes! This didn't happen in '03 -- how do I sidestep it in '05 Is there a way to say "If the last button clicked was NOT & ...Show All
Visual Studio Express Editions 30 day Free Trial
I am adding "30 day Free Trial" code to my app. I want to write out a file to a secret location with the first run date, etc. Would C:/Windows/System be a good place to put it Clearly Dman had the right answer. Try the SecureString class. You'll be a little challenged in researching them. Securestrings are one of the classes I won't illustrate. Everything I have that uses securestrings are ...well... a secret. ...Show All
SQL Server Error while executing reports from report manager
Hi.. I have deployed reports on to the report server. When I try to open the reports from report server, I get the error," Value does not fall within the expected range." This error message appears as soon as I click on any report on the report manager. I am not able to find the cause of the error. Does anybody have any suggestions Thanks , Viva Viva1 Try checking your C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportManager\web.config and make sure you have the below settings: <appSettings> <add key="ReportViewerServerConnection" value="Microsoft.ReportingServices.UI.WebControlConnection, ReportingServicesWebUserInterface ...Show All
