dwitt's Q&A profile
Smart Device Development BackgroundWorker class
Is BackgroundWorker available in compact framework I need to implement a downloading app for my PPC and i find BackgroundWorker as the easist and the best solution but MSDN says it is available only in .NET framework. I think there is nothing OS specific in the class and should be available in compact framework. Also there are a lot of open source implementations of this class available for CF but i would like to use only MS version. When will it be ported to CF Why do you want to use "only MS version" You can get a free implementation of it here: http://www.danielmoth.com/Blog/2004/12/backgroundwo ...Show All
SQL Server stored procedure creation
Hi I have created the stored procedure like this but i need the records generated by the following query should not be displayed and to be deleted anyone plz help me SELECT X.* FROM MyTable X INNER JOIN (SELECT lastname, firstname FROM MyTable GROUP BY lastname, firstname HAVING COUNT(*) > 1) Y ON X.lastname = Y.lastname and X.firstname = Y.firstname ORDER BY X.lastname, X.firstname USE testdb; GO IF OBJECT_ID ( 'usp_getallrec', 'P' ) IS NOT NULL DROP PROCEDURE usp_getallrec; GO CREATE PROCEDURE usp_getallrec AS SELECT lastname, firstname, salution, MAX(address) FROM MyTable GROUP BY lastname, firstname, salution GO SELECT X.* FROM ...Show All
Software Development for Windows Vista simple performance question
Which of the following systems has more performance (and why, of course....): System A: with 100 workflowRuntimes each of them runing 10 workflows. or System B: with 10 workflowRuntimes each of them runing 100 workflows. (assuming that workflows use statePersistance service and are consuming similar amounts of resources (procesor, DB, etc) ) Thanks in advance, Ariel Schapiro . Ariel, Your scenario sounds interesting, but it doesn't sound like you really have high-throughput going through your system. Instead of trying to coordinate work between multiple dispa ...Show All
.NET Development How do you fix the error "Syntax error in UPDATE statement"?
Guys, I need your help to fix this error since it's been bugging me for 2 weeks already to find a solution in the internet or book that won't work properly. I tried fixing the update statement command but still shows the same error. Below is the source code: Public Sub changePassword( ByVal uName As String , ByVal pWord As String ) Try 'change the user's password Dim conn As System.Data.OleDb.OleDbDataAdapter = New System.Data.OleDb.OleDbDataAdapter Dim cmd As System.Data.OleDb.OleDbCommand = New System.Data.OleDb.OleDbCommand changeUserPasswordDataSet = New System.Data.DataSet con ...Show All
Visual C++ Help Errors
First of all I have no idea on the forum where this is suppose to go so forgive me if it is the wrong place. I have been trying to compile my programs but i keep getting these same errors everytime. Compiling... stdafx.cpp C:\Program Files\Microsoft Visual Studio 8\VC\include\winnt.h(3043) : warning C4103: 'c:\program files\microsoft visual studio 8\vc\include\winnt.h' : alignment changed after including header, may be due to missing #pragma pack(pop) C:\Program Files\Microsoft Visual Studio 8\VC\include\winnt.h(3335) : warning C4103: 'c:\program files\microsoft visual studio 8\vc\include\winnt.h' : alignment changed after including header, ...Show All
Visual Studio VS IDE crashes when debugging in managed or mixed mode
I have a c++ project that uses a .NET 1.1 assembly as a com object. It is loaded with CoCreateInstance. If I debug in native mode it looks like everything works okey, in managed mode the application crashes with no errors or anything, and in mixed mode Visual Studio crashes. Something that looks somewhat suspisous to me is that it looks like .NET framework 2.0 assemblies and debug symbols are loaded. For example: 'MyApp.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\fusion.dll', No symbols loaded. 'MyApp.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\msvcr80.dll', PDB format is obsolete. 'MyApp.exe': Loaded 'C:\WI ...Show All
Smart Device Development DataTable in Pocket PC
Hi all, I just curious if DataTable.Copy method was disable in PocketPC project I look through all the method / event for DataTable in my VB pocket pc project, the copy method was missing. Am I missing any namespace Or it was purposely disable in pocket Pc project only hi, if you are using CF 1.1, there is no .copy method, you have clone method, but it only copy the table structure... the copy method is implemented in CF 2.0.... salute! ...Show All
SQL Server Changing Connection string in multiple packages.
Scenario: 130 dtsx packages using 4 matching connections. 3 of those connections are stored in an SSIS Configuration table in an Operational database. The last connection is in a shared data source and points to the Operational database so the packages can grab the others. Problem: It's time for deployment and all of those connections must change to production servers. The 3 are no issue, just change the ConfiguredValue in the SSIS Configuration table on the production box to point to the other production servers. However, the fourth one... I had made an assumption that when you changed a shared data source it filtered down t ...Show All
Visual Studio 2008 (Pre-release) VisualTreeHelper.GetChild bug?
I've come across an odd glitch with VisualTreeHelper.GetChild: <TabControl> <TabItem/> <TabItem> <FlowDocumentScrollViewer Name="viewer"> </FlowDocumentScrollViewer> </TabItem> </TabControl> void OnLoaded(object sender, RoutedEventArgs e) { VisualTreeHelper.GetChild(viewer, 0); } This crashes, with an exception like this: The specified index is out of range or ch ...Show All
Visual Basic REALLY Weird "Threading Problem" - Hard to explain
Hello all. I''m currently in the [process of making an audio player application that will read out MP3 tag information using the Speech library (the MS Text-To-Speech thing - like the one in control panel.) Well, I had built the application using the VB .NET 2005 Betas, and it worked fine throughout - no problems. I downloaded the final version of both the framework and VB IDE itself. I compiled & ran, and got some strange error that I had never gotten before. Below is the result of what the IDE could tell me. ContextSwitchDeadlock was detected Message: The CLR has been unable to transition from COM context 0x1af778 to COM c ...Show All
Visual C++ lnk1112
In VS2005, I added a MFC DLL project. The default platform is win32 and this project does not have input lib. A very simple boiler plate project with code from Microsoft. Then I converted the project to x64 by setting the platform type to x64. I can see that the target machine type from the Linker option got changed to x64. Then I built the project from VS2005, I got the following error: \ x64\Debug\mfc2.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64' Note that there is no input library and therefore there cannot be a mix of object modules. The only object module is the mfc2. ...Show All
.NET Development Remoting Questions
I have a remote object that must be used by multi ple client possibly at the same time for across the net.My object only has 5 functions .The finally step(function does a sql process that is ran by an exe that I call from my remote object on the server.For some reason when one client is doing this process and the next client tries to just get connect to my object they get a remoting error and can not connect. Remote object <code> Imports System Imports System.IO Imports System.Data.SqlClient Imports Microsoft.ApplicationBlocks.Data Imports Microsoft.VisualBasic Imports System.Data.Odbc Public Class ServiceClass Inhe ...Show All
SQL Server problem with dtexec
Hi I have a SSIS package which pulls files from a network share and loads data into SQLServer Database. When I execute the application using DTExecUI , It runs fine without any issues , but where as when I run it using the command line arguments, It seems to go in sleep mode and nothing happens. I need to kill the package from Task manager. Following is the command I use to run my application Dtexec /FILE "N:\Temp\LoadFirewallData.dtsx" /CONFIGFILE "N:\Temp\LoadFirewallData.dtsConfig" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING EWCDI /SET "\Package.Variables[User::RunID]"; ...Show All
Windows Forms does not
I have created a snk file with VS prompt Command sn -k netTest.snk in AssemblyInfo.vb : <Assembly: AssemblyKeyFileAttribute("netTest.snk")> I'm using vb net and SDK says : Visual Basic .NET looks for the key file in the directory containing the Visual Studio Solution when I compile the DLL it cannot find the file my project : http://localhost/netTest/netTest.v ...Show All
SQL Server SQL SERVER Connection in WSAD!
Who can tell me how to connect sql server in WSAD, I cannot connect the sqlserver as it said : java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:342) at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:252) at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at ................. I think maybe some package need, and maybe the JDBC package, but i donnot know where should I put them. Who know the answer could you explain it to me with a sample is better. Thankyou very much! ...Show All
