Edmundas's Q&A profile
Visual Studio Express Editions How to create libraries in c++ express?
Hi, I made some c++ code that I want to access in other program I make. I do not want to copy and past it will make it to messy. I know library can do the job, but I do not know how to use them. Can someone explain. Thank You in advance. Here's how I got something like that to work. Note that I only got it working yesterday so I'm also new at making libraries. Anyway here's the steps I took to get a simple library to work... Steps: Created a new console project in solution “Solution A” called LibMaker set as a static library set use no pre-compiled header create a new item called LibTest.h This class contained the code: #pragma comment ( lib , "LibMaker.lib& ...Show All
Visual Studio Modify WCF Guidance Package
I need to modify some custom pages in WCF service factory. I installed a copy of service factory code from the installer in sourcecode directory. From other posts in this forum, I understand that I need to change the GUID and manifest file. This may be a stupid question, but do I still need to change the GUID in WCF Guidance Package.xml It looks like the name there is already changed to "CustomWCFGuidancePackage". And besides that, anything else I need to change I just want to make sure my custom package won't corrupt anything in the original one. Thanks! Thanks for the link. I read from Don Smith's blog about recipe runner and he confirmed on Service Factory's forum that it will be available ...Show All
SQL Server Monitor database not backup
Hello, I'm monitor my SQL 2005 using MOM 2005. I would like to create a VB script to get database list that are not backup in the last X days. how can I do that http://www.extremeexperts.com/SQL/Scripts/Lastbackup.aspx fyi. ...Show All
.NET Development TransactionScope promotes to DTC when connection is reopenned!!
The transaction scope gets promoted when two or more connection objects gets opened and enlists in the scope. This also applies when using the exact same connection string against a single SQL Server 2005 database to open the connection multiple times within the transaction scope. It is the number of sqlConnObject.Open() calls that count, not the number of connection strings used. How can I solve this !! I can't pass open connections to data access layer methods in order to prevent them from opening and closing new connections. I had the same problem. But I was able to solve it by using DbConnectionScope() class. Refer to http://blogs.msdn.com/dataaccess/archive/2006/02/14/532026.aspx for ...Show All
Software Development for Windows Vista Windows WorkFlow Introduction
Friends, Our next scheduled project will need a workflow engine. I am new to WorkFlow system. So i would like to get simple notes that tells abt Windows workflow foundation. I want to know how to install, configure Windows Workflow foundation and design and develop workflow enabled applications using Windows Workflow Foundations and VS.NET 2005. Pls just mail me some links and notes if u have. My mail id getsreejith@gmail.com Sreejith Did you install the VS Extensions for Workflow Look at my post below to find the location to download them. This get you the Wf templates in your VS 2005 IDE. Thanks, Kushal. ...Show All
Visual Studio Express Editions combo box
Hi, I'm trying to use the SELECT DISTINCT Query in combo box in a form i've created by draging the table in data grid view......where do i put this query at..........is it somewhere in the edit column area Thanks I'm trying to get the values in my combo box to show only once instead of showing the same value 10 or 20 times. I know that i need to use the SELECT DISTINCT query, i've used this query before in Access 2003, i inserted the query into the row source. I have an Access database linked to my project. I have dragged a Table into my form using the dataview and now want to use a combo box with one of the fields using the SELECT DISTINCT query to show values in that field only once. How and wh ...Show All
Visual Studio Team System Can't delete orphaned version control project
Buck Hodges wrote: ... You might be able to delete it by first creating a new Team Project, specify that there should be no version control folder created in the project creation wizard, and then use tfsdeleteproject to delete the team project after you finish creating it. I'd already tried that. If it's created without a version cotrol project, then deleting it doesn't remove the "orphaned" VC project, even though it has the same name. TFS won't let me add/associate the VC project with the new (same-named) Team Project, complaining of a duplicate name. --Rich Buck Hodges wrote: If the /force switch on tfsdeleteproject won't do it, then I don't know of a wa ...Show All
Windows Forms Form base with a BindingSource - problem
Hi, I am really frustrated, windowsforms designer is a big source of headaches. Well, my problem is the following: In Visual Studio 2005 I have a Form base with a BindingSource and an ErrorProvider which DataSource is precisely the BindingSource, all is fine until here. In other project I created a Form, which inherits of FormBase, I set DataSource of BindingSource's FormBase with an Object Data Source with this structure: Object Details1 (inherits from BindingList<T>) Details2 (inherits from BindingList<T>) For this reason I add 2 bindingSources for 2 datagridviews so: BindingSourceDetails1.DataMember = "Details1" BindingSourceDetails1.DataSource = BindingSource DataGridViewDetails ...Show All
Visual Basic FSO DeleteFolder Issues
Hi, all. I am new to this forum, and figured, why not go to the source with a problem I cannot find any reference to on the web!! I have an application that is using FSO to scan through folders, archiving the data from the network drive, to a zip and then bitstreamed into a SQLServer 2000 RDBMS. The folder structure is: <network>\\MainData\SN\TEST <date> <time>\<data> There can be multiple TEST folders for each serial numbered item (I work for a medium sized manufacturing concern in SoCal). My goal is to delete the SN folder and all its contents. When I step through the code, it works PERFECTLY. When I run the code, it will not delete the folders! It will delete the data within the TEST folder, but bo ...Show All
Visual Studio Setting up debugging with ISA
I have developers using VS 2005 who connect to a development environment using VPN. The development environment exists behind ISA 2006. How do I configure the ISA to enable a developer who connects using a VPN to debug a webservice I've installed the debugging tool from VS 2005. Any assistance and guidance will be appreciated. ...Show All
.NET Development 32bit assembly 64bit application
I developed an application in .Net 2.0, compiled for any platform, and ran successfully on my 32bit XP. I then ran on Windows 2003 x64 edition and my 32bit assembly throws an exception (unfortunately Matlab only supports .Net 1.1). If I take out the assembly it works on x64. My question is whether I can write my program in 2.0 and take advantage of 64bit but have the assembly run as 32bit I notice that despite more horsepower my program performs worse on x64 server. I'm guessing this is due to OS having to load it in 32bit environment vs running natively as 32bit on XP. What are my options If you compiled /platform:anycpu then when you run the application on Windows 2003 SP1 X64 edition your appli ...Show All
SQL Server Trouble importing numbers from Excel file
I'm using SQL Server 20005. I'm trying to import an Excel file that has column with some values being exlcusively numbers and other values that are text. Before importing, I formatted this column as text in Excel. To import the data I'm using the SQL Server Import and Export Wizard. The problem: The wizard sets this particular field to nvarchar(255). This length works and the data type seems like it should too. But, when I complete the import, none of the numbers are imported - only the text. Where the numbers should be, it is null. No errors are given. I've tried changing to the data type to text, ntext, varchar but none seem to work - only the text is imported. Can anyone suggest how to get all of the data, both numbers and ...Show All
Windows Forms how to use picturebox
Hi! I have a question that how to use picturebox. If I want to load pictures from a file. My reference says something like; pictureBox1.Image = Image.FromFile( ); What would it be after FromFile Should I put file address of the pictures Thank you for help. Interesting Thread ...Show All
Visual Basic link vb to fortran
I have several subroutines which are written in FORTRAN. Can anyone tell me in a step-by-step manner ... 1) how I need to compile the FORTRAN subroutines 2) what I need to do within VB 2005 to call these FORTRAN subroutines within the VB 2005 code The dll you are building in fortran in not a COM or .NET dll, but instead is a "regular" dll that mimicks the Win32 API. To access it you need to use the VB declare statement. You can find documentation for the VB side of things here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vblr7/html/vastmDeclare.asp Also, the link to the fortran information I sent you (click the "next" button a couple of times) should provide you with help on w ...Show All
Windows Forms Checked List Box File Type Sorting
I am trying to write a program that will automatically change a users wallpaper image based on a list of images that I ahve shown in a Checked List box. The first Method i want to use to add files to it is by selecting a folder with images in it and adding them to an array. Then use a foreach loop to add them one by one to the Checked List Box. What I have now works, but it adds everything I want to know how to check the file extensions and sort out only jpeg, jpg, bmp, png, gif, and whatever else is viable for a wallpaper. Also do i need to detect sub directories incase they select a folder with subfolders Here is what I have now: [code] if (fbdWallpaperDirectory.ShowDialog() == DialogResult.OK) { string ...Show All
