Javier Carvajal's Q&A profile
Visual C# Q: Working with Graphics object
Hello everybody. I have a text file with the paths of all images I want to use. What I want to achieve is to read this text file line by line, create a bitmap using the path, resize the bitmap to a custom size and place this so called thumbnail into a graphics object. The graphics has to write on a bitmap of custom size. What I don't know is how to place all the thumbnails so whenever they reach the end of the width to go on the next row. I hope you understand what I mean. g.DrawImage (bmpFromTXT, (i%10) * 20, (i / 10) * 20 , regionWidth, regionHeight); i tried this but does not seem to work. It just displays them half the way of the bitmap to write on You want to Create Thumbnails of Images on a single Bitmap or on some Surface li ...Show All
Visual Studio Team System Load test - "Avg. Connection Wait Time" counter
Hi there, Do I need the "Avg. Connection Wait Time" counter on LoadTest:Request when executing a load test using one machine (Computer). This counter is added by default to the Load test, if yes how can I locate the Dependent Computer property, as this is blank I'm not sure why you're wanting to delete this counter, but I'm guessing that you're seeing a threshold violation regarding the "Avg. Connection Wait Time" counter. By default, a threshold rule is applied to the "Ave Connection Wait Time" to alert you that you may want to increase you connection pool size or change to connection per user. If you want to change the threshold rule, you can find the threshold rule u ...Show All
SQL Server Reducing failover time
Hi All, Is it possible to reduce the automatic failover time on MS SQL 2005 It seems to take around a minute on my servers. Thanks for your help. Regards, Failover time can depend on a lot of things. Refer to http://www.microsoft.com/technet/prodtechnol/sql/2005/technologies/dbm_best_pract.mspx for a discussion on what happens during the automatic failover. What type of failure are you talking about here What is load on the database Take a look at the redo_queue on the mirror at the time of failure. More details needed to answer your question. ...Show All
.NET Development ODBC or OLEDB
Hi, We will be starting a new application development project shortly with various front ends (web, smart client etc) and trying to find out if OLEDB is better than ODBC to connect to our data sources. We need to connect to Oracle, MS SQLServer and Ingres. (May be others i.e. MySql in the future) I have read through a number of msdn documents but cannot get a difinitive answer, can anyone point me to a page where microsoft actually says OLEDB is better than ODBC. Regards Chris - ODBC is a set of system API function calls. OLEDB is a set of COM objects - I don;t say ODBC deprecated but MS provides more important data services with OLEDB - SQL Server and Oracle providers are faster than their ODBC drive ...Show All
Software Development for Windows Vista Reasoning behind CardSpace's secure desktop
The CardSpace's secure desktop is displayed in order to submit your card. I don't fully understand the reasoning behind the decision to disallow interaction with the desktop while selecting and submitting a card. Can anyone explain this What I'm most interesting in, is the fact that there is a Firefox Identity Selector plug in available at http://www.xmldap.org/ . This plugin, being based on Java, does not lock up the desktop. So, given that there may be valid reasons for having a secure desktop for identity selection, would that mean that any non-Microsoft identity selection solution will be 'sub-optimal' One of the advantages of building an identity selector for a particular Operating System is ...Show All
Visual Studio Visual Studio .net 2003 crashes if I bind with Clearcase 2003.06.00
I have installed the Clearcase with VS.net 2003. I loaded the solution(basically C++ projects) from the SCC. It asked for the binding information. I bound the SCC information and it displays as MSClearcase. However as I wanted to use Clearcase tools and integration I checked the Clearcase base and UCM tools in the Tools->Customise->toolbox. After this if I restart the VS .net IDE, it crashes. But if I uncheck the Clearcase tools it seems to be okay. Also on another developers workstation, the IDE crashes after loading the solution from SCC. Anybody has any idea what is the problem Sri, Rational owns and services the MSSCCI provider that integrates with Visual Studio to provide source con ...Show All
Visual C++ Help: Rich Edit Control Border Not Repainting
I recently wrote a Windows interface for a command line program, which is the first Windows programming I’ve done. Unfortunately I have an issue where the frame of a sub-classed rich edit control is not being redrawn when I drag a window over it. Here is a screenshot of how the border of my command ends up after I drag a window over it: http://i15.tinypic.com/4gi50rt.jpg I was hoping somebody might be able to suggest why this is happening. Here is the code related to creating the rich edit control box: HWND hEdit = CreateWindowEx(WS_EX_CLIENTEDGE, RICHEDIT_CLASS, "", WS_CHILD | WS_VISIBLE, 0, 0, 0, 0, hWnd, HMENU(IDC_COMMAND_ED ...Show All
SQL Server Wondering the best way to do this
Here is the problem that I am trying to solve. We currently have a mail order manager application that we use. We have several vendors that we have to initiate purchase orders with, and this is currently done manually. I am converting it to do the purchase orders through a webservice, but I would like this to complete in real time. I figured the best way to do this would be to initiate a trigger when the particular table has a record inserted. This insert triggers a script, passing the order number and verifies if a purchase order needs to be initiated based on what was ordered. If it does, it contacts the webservice, gets the appropriate data, then updates the appropriate tables with the new data, all through the script. I have ...Show All
Visual Studio 2008 (Pre-release) VB 9: Order By bug?
Can anyone explain to me why Order By works fine while selecting the whole object: Dim data2 = From c In db.Cities _ Select c _ Order By c.Name But doesn't work when selecting only one property Dim data = From c In db.Cities _ Select c.Name _ Order By c.Name error BC32050: Type parameter 'K' for 'Public Shared Function OrderBy(Of T, K)(keySelector As System.Query.Func(Of T, K)) As System.Query.OrderedSequence(Of T)' cannot be inferred. The key here is the order in which the result sets are evaluated. In the VB case, Select c.Name creates a List(Of String) with the name of the string property as "Name". Thus, when you get to the Order By clause, it does not know about c In db.C ...Show All
SQL Server RS on sql server 2000 and 2005 on same machine
Hi Samuel, I'd like to draw on your expertise on this topic. I've been browsing at many blogs/forums about installing SQL Server 2000 and 2005 on the same machine. What I'd like to know is how does that work with Reporting Services Your machine's IIS will need to work with Reporting Services 2000 and Reporting Services 2005. The RS 2005 requires .NET Framework 2.0 and RS 2000 requires .NET Framework 1.1. IIS can only support 1 version of the .NET Framework at a time. Thanks kindly. Here is another question regarding the problem, i ve installed Reporting Services 2005 on 64-bit machine and when i configure it, it is configured properly but when i tried to access Report Server it asks me for creden ...Show All
Visual Basic connect to excel file
Hi I try to connect excel file withe the connection: oConn.open "Driver={Microsoft Excel Driver (*.xls)};&_ "DriverId=790;Dbq=c:\worker\Ovdim.xls" when I try to run the recordset : oRs.open "select * from Ovdim" I get an error "Could not find the object Ovdim." What I need to change Ovdim is the excel file name. I need to change the select Thank's Lilach In general, this forum is for VB.NET questions, not vb6 questions. When querying against Excel using ado, the object in the from clause of the query is the name of the sheet you are querying from, not the file. Also, you need to append a "$" to the name and wrap the whole thing up in ...Show All
Software Development for Windows Vista declare a event In My SequentialWorkflow! how can it doing?
In workflow codes namespace WorkflowLibrary1 { public sealed partial class Workflow1: SequentialWorkflowActivity { public event EventHandler RaiseedEvent; public Workflow1() { InitializeComponent(); } private void codeActivity1_ExecuteCode(object sender, EventArgs e) { RaiseedEvent(sender, e); } } } In form codes using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Workflow.Runtime; using WorkflowLibrary1; namespace WindowsApplication1 { public partial class Form1 : Form { protected WorkflowRuntime wr; public Form1() { InitializeComponent(); wr = new Workflow ...Show All
Visual Studio Express Editions Strange Problem - Unable to use buttons during Sound play
My application is calling a subroutine which plays morse code: Private Sub Button2_Cli ck( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Button2.Enabled = False 'disable play button Button3.Enabled = True 'enable stop button For Each y In strLesson If Not running Then Exit For wavchr(y.ToString()) Next end sub Private Sub Button3_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Button2.Enabled = True 'enable play button Button3.Enabled = False 'disable stop button end sub Sub wavchr( ByVal y As String ) Select Case y.ToLower Case "a" ' ...Show All
Windows Forms How can I have a download display a progress bar?
On my website, I click on the "Download 30 Day Free Trial" button. It downloads the program, but, it is not giving me any indication that it is doing it. How can I have it display a progress bar I found that if my download button links to Setup1.msi instead of Setup.exe then the download does give a progress bar. But, will it install the prerequisites ...Show All
SQL Server Adventure works databases
I am new to Analysis Services. In the adventureworks sample, we have the oltp database (AdventureWorks), the datawarehouse (AdventureWorksDW) and the cube ( Adventure Works DW). I am a little lost here. I thought the SSIS package updated the cube directly from the OLTP database. Looks like the datawarehouse is used to convert the OLTP to a star schema and *then* the cube is loaded. Could you please explain. Thanks! The datawarehouse (DW) is an OLAP multidimensional database that uses data from the OLTP relational database to create cubes, dimensions and so on. Whether the data in cubes is being updated automatically from the OLTP database depends on the settings, specifically the stora ...Show All
