Forbes.Pu's Q&A profile
Visual Studio Express Editions SQL Server 2005 Express Samples (Adventure Works) with Visual Web Developer
I have downloaded the SQL Server 2005 Express Edition Documentation and Samples. The attachement of the AdventureWorks Sample database files to SQL Server 2005 Express Edition on Windows XP Home Edition SP 2 works well. The Adventure Works Cycles Integrated Samples (Storefront) suppose Visual Studio and Internet Information Services. Is there a way to run the samples with Visual Web Developer and its build in web server Thank you. Thank you for your answer Omar. I created Adventure Works Cycles Storefront as ASP.NET application in Visual Web Developer. The problem was not ...Show All
Visual C# GetRows Method works in VB but not in C#
Can someone look at my code below and tell me what I'm doing wrong I converted VBScript to C# for ASP to ASP.NET migration. (I wasn't able to successfully convert legacy ADO to ADO.NET, so sticking with this) I'm getting an error at this line: cartValues = RS.GetRows(-1, null, null); Error Message: Exception Details: System.Runtime.InteropServices.COMException: Application uses a value of the wrong type for the current operation. C# Code: ADODB.ConnectionClass con; object[] arrVals; string sqlStr; ADODB.Recordset RS; object cartValues; int i = 0; con = new ADODB.ConnectionClass(); con.Open("Provider=SQLOLEDB;Data Sourc ...Show All
Visual Studio macro definitions in VS8 IDE
How do you define or redefine a macro in the VS8 IDE -- for example TargetDir Hi Paul, There isn't a way to programmatically reset/change the macro. The macro is stipulated by the project's Output Path: property. If you change the output path setting on the Build tab of your project's property pages, you should see the change reflected in the TargetDir macro. I'll see if I can dig up something that will allow you to programatically change that Output Path setting. I seem to recall this was possible, but the docs for the OutputPath property for CSharpProjectConfigurationProperties3 seems to indicate th ...Show All
Visual C# reading excel file from C# already opened by Excel application
Hi all, Please tell me how to read excel file which is kept opned by another user from excel application. i want to read few cells in excel file which is kept opened by another user. when file is closed i can read the content bu not when it is kept opened. please suggest a solution. thanx in advance I ususaly use VB.NET for Ms Office automation because of optional parameters you should do the following 1. Get running instance of Excel //this is reflected VB.NET code public object GetExcelApp ( ref bool Created) { object obj2 = null ; try { obj2 = Runt ...Show All
Visual Studio Obtaining a reference for a existing project
Hello, I'm starting to work with VStudio Extensibility, I need to know how to obtain a reference for an existing project If you are writing an add-in or a macro you can get the the Project object by enumerating the Projects collection, e.g DTE.Solution.Projects.Item(1) will return the the first project object in the list of projects. If you don't know much about the DTE object model I would recommend the following web page on msdn, showing you the full graph of objects in the DTE. http://msdn.microsoft.com/library/default.asp url=/library/en-us/vsintro7/html/vxlrfDTEObject.asp /Ole ...Show All
Visual C++ Error including queue.h
When I include queue.h I get the following compiler errors in list.h c:\program files\microsoft visual studio\vc98\include\list.h(37) : error C2146: syntax error : missing ';' before identifier 'Length' c:\program files\microsoft visual studio\vc98\include\list.h(37) : error C2501: 'DWORD' : missing storage-class or type specifiers c:\program files\microsoft visual studio\vc98\include\list.h(37) : error C2501: 'Length' : missing storage-class or type specifiers c:\program files\microsoft visual studio\vc98\include\list.h(53) : error C2146: syntax error : missing ';' before identifier 'GetPrevLink' c:\program files\microsoft visual studio\vc9 ...Show All
.NET Development Reusing classes without creating a dll
Hi I am working with several different web sites hosted on the same Windows 2003 IIS server. These web sites need to use similar functionality, and therefore the same class files should be able to be used. I tried to create virtual directories in the website to point to the App_Code folder where the class files are stored, however, I then get the error "The path '/App_Code/' maps to a directory outside this application, which is not supported". I don't really wish to create a dll file, although even then, without putting this into the GAC, I would have to copy the dll into all of the Bin folders of each web site that requi ...Show All
.NET Development system.objectdisposedexception
Hi, I have a multithreaded application that crashes with the following msg in event log ... EventType clr20r3, P1 smartserver2005.exe, P2 1.0.0.0, P3 43f6cc52, P4 system, P5 2.0.0.0, P6 4333ae87, P7 3ad8, P8 a5, P9 system.objectdisposedexception, P10 NIL. I have provided try catch block in all routines in the code & still the appl crashes with the above msg. Note that crash is not consistent for a particular sequence of events. Any suggestions -S.Malathi Hi! It appears that one of your threads Dispose() some object and another reference this object later. Disposing doesn't mean obj ...Show All
SQL Server XML source
I used a URL to xml feed as source and it worked great. A nother URL I visit requires me to add the lastvisited time to the URL. Any suggestions how to do this in SSIS (Assume I can select time lastvisited from database but how do I add it to the url and make it execute every 5 min for example) Regards, Throstur I'm assuming the URL is in the connection string of an http connection manager, is that correct If so, you can use an expression on the ConnectionString property of the connection manager to set it to whatever you want. If you need any help in doing that then reply here but to get you start ...Show All
Visual C++ error in rewrite CDocment::Serialize()
void CmyPainterDoc::Serialize(CArchive& ar) { if (ar.IsStoring()) { CFile mfile=ar.GetFile(); char buf[100]="this should be ok!"; mfile.Seek(0L, CFile::begin); mfile.Write(buf,sizeof(buf)); ~~~ when i wana save a file as 111.tmp, whether it already exists or not, this error occur: "cannot find file 111.tmp" why This code must be invalid: CFile mfile=ar.GetFile(); GetFile returns a pointer. Also why you are not using the standard << operator of the CArchive object Also repsoitioning the file pointer in an archive may lead in a ...Show All
Windows Forms Research on Terrarium...Please Help me ASAP!
Hello to all the developers here! My name is Logas ... I am a student in Malaysia doing my Final Year Project for my Degree.. Well basically my research is on Terrarium....indepth research. but i am stuck .... so here i am looking for help! basically i understand what terrarium is all about and i am impressed that initiative is taken to simulate and prove t ...Show All
Visual Studio 2008 (Pre-release) Using {Static} in a resource dictionary
I use the following syntax in a Window xaml: <ToolBarTray Background="{x:Static SystemColors.ControlBrush}"> And this work fine. However, when I use the same syntax in a Resource Dictionary: <GradientStop Color="{x:Static SystemColors.ControlBrush}" Offset="1" /> I get a runtime error: {"Invalid value '#FFD4D0C8' for property 'Color'."} Now I have seen the wavey lines before in my xaml editors underneath the hardcoded colors but I have always been able to ignore these and get the results I want. Is there an error in the ColorConverter or am I missing something Thanks! ...Show All
Visual Studio Tools for Office Adjusting columnwidth to data in excel
I fill my excelworksheet with data of a datatable. How can I adjust the columnwith to the data in them Because now it doesn't look that good. Thanks! ...Show All
Windows Forms Location in the Panel with "AutoScroll=true"
I have a Panel in which, in runtime, I put a “PictureBox” when I click on a button control. When I click on this button, the PictureBox is positioned in a point with coordinates: (PosX,8) where “PosX” is calculated to place the PictureBox side by side. When the number of the PictureBox increases, appear an horizontal scrollbar, because of I have selected the AutoScroll property to “true”. If I move the Scrollbar, and THEN I click on the button to insert a new PictureBox, It will appear in WRONG position. The “PosX” variable is correct, but the new coordinates are calculated from the ...Show All
Visual Basic Code snippet to read/write file ratings?
Does anybody know how to programatically set the "star rating" on a file under Vista Dear Customer, Thanks for your posting. For Vista programming, I think you may try to post in the forum below. http://forums.microsoft.com/MSDN/default.aspx ForumGroupID=24&SiteID=1 Thanks for your understanding! Best regards, Peter Huang ...Show All
