dave_mwi's Q&A profile
Visual C++ How can I disable UNICODE?
I am trying to build an example from a tutorial using Visual C++ 2005 Express Beta 2. But when using the MessageBox function, I get the following error: error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [22]' to 'LPCWSTR' I tried casting the string to LPCWSTR and the program compiles, but the strings are corrupt. I am just starting Windows programming, and don't want to deal with Unicode yet. Is there a way to co ...Show All
SQL Server configuring smtp connection on dts in VS2005
I'm trying to send mail through DTS Send Mail Task in the final release of VS 2005 however i'm getting this error "Mailbox unavailable.The server response was:5.7.1 Unable to relay for <email adress>. I do not have exchange server installed. The smtp adress is correct. So what could be the problem I appreciate your help Thanks Network issues Incorrect address DNS failu ...Show All
SQL Server How to backup a database to a network drive
It is OK to backup a database to the local drive (C:) on SQL Server 2005. But when I tried to backup a database to a mapped network drive (N:) on the server, it failed. Here is the message: System.Data.SqlClient.SqlError: Cannot open backup device 'N:\db.bak'. Operating system error 3(The system cannot find the path specified.). (Microsoft.SqlServer.Smo) The network drive N: is accessible through Windows Explorer. Currently, we ...Show All
Smart Device Development SQL mobile path
Hi, What path should be given when connecting to sql mobile database.. I have used following code and it says...path not found. I have tried coping .sdf file into My document, .Net Application folder and bin\debug folder but still does not work.. SqlCeConnection sqlceconn = new SqlCeConnection("Data Source=MobileDB.sdf"); Thanks. It sure exists because your EXE is in it. The folder is created by VS on deploym ...Show All
Windows Forms AppUpdater on WinXP client?
Does anyone have a suggestion to why my applications using the AppUpdater component don't correctly work on WinXP clients From a Win2K client, I can update from Server 2000 and Server 2003 w/o any problems, but WinXP clients can't update from either&nbs ...Show All
Smart Device Development Async sleep
In VB.Net, if I use System.Threading.Thread.Sleep(5000), then my application is halted. Is the a way to prevent this. While Sleep(5000) is executing, other controls like textbox or button still can active ASP is off topic here. Please post to ASP.Net forums instead. ...Show All
Smart Device Development PDA Program Files folder problem
I have built my PDA apps with VS2005 and created CAB files to install it onto the PDA. During the process I added the main exe to the Application folder and tried Program Folder as well. It installs the application onto the PDA correctly and builds the icon in start/programs. However, you can't run it from start programs group. You have to go and manually browse through explorer to program files folder on unit and run from there. Its ...Show All
.NET Development RowFilter Performance Problem in VS.NET 2005 !
Hi, I have a Project in VS.NET 2003 which uses DataView.RowFilter. When I compile it in VS.NET 2005. Performance of the RowFilter Command decreases dramatically. I am in the first stages of migrating my project to VS.NET 2005. But this is a big draw back. I would really appreciate it if you could help me in this. No need to mention that Microsoft has indicated that RowFilter performance has increased in this new version. Thanks ...Show All
Visual C# Comparing Image Fields - Access and SQL
Hi, I am writing a console app to import data from an Access database into a SQL Server 2K db. In the Access DB every row has an image file in it and so I need to compare this image to one stored in a lookup table in SQL to return an ID so the new row in the SQL Db just has an id rather than an image for every row (Often multiple duplicates too) Can anyone give me any help in what is the best way to do this I have looked at doing it in the Stor ...Show All
Visual Basic IDRISI API SERVER
I have tried your code, but that it is not the problem I am having- I supect it isn't working because the API I am accessing is an exe file not a dll and is designed for VBA not for the new VB.net framework. The structure and way of dealing with API is different, therefore it doesn't work. Thanks anyway Leo I have tried your code, but that it is not the problem I am having- I supect it isn't working because t ...Show All
SQL Server Accurate divisions?
Hi, how can i get a accurate division in tsql - is there some way of casting Problem is simple, "SELECT 3 / 2" is "1" - what can i do to get 1.5 as result When both 3 and 2 are integers, you get a division by integers, so it's rounded to 1. You could either cast (look up CAST in BOL) to the desired datatype explicitly, or just add a decimalpoint to one of the numbers, then it will be i ...Show All
Visual Studio 2008 (Pre-release) What happened to ServiceHost.Throttle
The title says it all really. The ServiceHost generic used to have a property named Throttle which allowed setting of no. of concurrent threads and so on, but this has now disappeared/moved. Anyone know where it went David It's been a week since I posted this question and still no replies. Perhaps I didn't explain why it's a problem. When writing a service using MsmqIntegrationBinding, the new ServiceHost appears to read every ...Show All
Visual Studio Team System Unit Testing Forms - Accessing Controls
I'm unit testing an extremely simple VB form with a button and a text field. My test method looks like this: <TestMethod()> Public Sub btnHelloWorld_ClickTest() Dim target As Form1 = New Form1 Dim expected, actual As String target.Show() target.Activate() Dim accessor As HelloWorldApplication_Form1Accessor = New HelloWorldApplication_Form1Accessor(target) accessor.txtWorldID.Text = "1" expected = "HelloWorld1" Dim sender As Obj ...Show All
Windows Forms Gradient Panel
Hi, Using .NET 2.0 (Beta2) can anyone give me an idea on the best way to implement a Panel control that has a gradient background Should I be using the VisualStyles namespace Thanks for any help Graham No you don't need the VisualStyles namespace. Here is something to get you started: public class GradientPanel : Panel { public G ...Show All
Windows Forms add customized combo box in datagridview
i have my customized combo box found in the other site. i need this to add in dfatagrid view the combox box have multiple columns which i find it suitable for me.for now, the problem is aading it in datagridview heres the my code public class mycombo inherits datagridviewcomboboxcolumn public withevents columncombobox as mtgccombobox ---this mtgccombobox is mycombobox found on the other site ........ end class th ...Show All
