Michael Herman - Parallelspace's Q&A profile
.NET Development Stored Procedure does not exist
Hi, I'm trying to run a stored procedure with the Database class. I have tried two different ways, db.ExecuteDataSet(spName,params) db.LoadDataSet(spName, dataset, New String() {tableName}, arrParams) and both throw the excexption the stored Procedure 'spName' doesn't exist so i decided to run the hands on lab of the data access application block, and guess what it happened again!! the same error. The stored procedures does exists!! and runs perfectly. When I run db.ExecuteDataSet(CommandType.Text, someQuery) it goes just right!! so it is not permisions over the data base (thats what i think). So if anyone can help me here I will really apreciate it. Thanks!! It is definitly accesing the correct datab ...Show All
Visual C++ Print using ShellExecute
Hello, I have a problem when using the ShellExecute API; the problem is that I print multi files from different types to a specified printer. e.g. TXT and DOC files. The problem is that I call the ShellExecute for the DOC file then for the TXT file, but the TXT file spooled and printed before the DOC file. Can any one help me print the files in the order I need Thanks a lot. It is the problem with the MDI's as I expected. Winword has still an MDI interface even if it doesn't look like. One process handles more than one file. Did you tryed SEE_MASK_FLAG_DDEWAIT This could fix the problem with the MDI stuff and Winword. ...Show All
Software Development for Windows Vista How to find valid events for current instance of a state machine workflow
Hi, I have a statemachine workflow having various states. WF is designed to move from one state to another based on external events. If I send an event to change state which is already passed for current instance, WF throws error event can not be delivered. Before senidng an event, Is there a way I can findout if the event would be delivered by host to current instance e.g. WF with state1, state2,state3 Each state has wait for external event WF is in State 2 (i.e. it can move to state 3 only) If i send an event for State1, it throws exception, event can not be delivered. I want to find before sending the event whether it would be able to deliver this event or not. Please let me know how to do this. Thanks, Hiten ...Show All
Software Development for Windows Vista Major Compile Error
I am running 3.0 with 2005 Team Suite and I have installed the extensions for WF. I have downloaded the samples but when I try to compile them I get the following error. I need help figuring this out. The "CompileWorkflowTask" task failed unexpectedly. System.NotSupportedException: The given path's format is not supported. at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath) at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath) at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copy ...Show All
Smart Device Development SIM locking
Hello, I have develop an application and deploy it in the phone . what i want is that this application runs fine when SIM is same at the time of deployment but when i change the SIM and want to run my application, the application prompt for password do u have any idea for that how i manage it I definetly want IMSI number for that. If u have any code API or suggestion most wellcome please help me ASAP. Thanks in advance Regards Salman Hello, thanks for the API how i set the parameter of this API i m confuse please Help me with code Sample ASAP thanks in advance Regards Salman ...Show All
Visual Studio VSS 6 archive suddenly grown 3x the size
Hi. We have been having some issues with our VSS database so have been doing a lot of analyzing. We have noticed that at around the same time of starting analyzing, our SS archive has grown from 250Mb to 850Mb. Does anyone know why this has happened and how I can reclaim the space This is not really a big problem but is a nuisance because the archive can no longer fit on a CD ROM. Thanks very much. Hi Richard It was the archive which suddenly increased in size, but I think I know what's happened. The archive was smaller because our database was corrupt. I suspect that the archive didn't complete and stopped when it encountered errors in the DB. This was confirmed when I tried restoring one of these sm ...Show All
Visual Basic Need to call a function with a string out of a database
I have the names of a functions stored in a database field and as I loop through the records I need to call each function with that value (string). Like... QTY = CallThisFunction(Row!FunctionName) THANKS from the object browser "CallByName" Public Function CallByName (ByVal ObjectRef As Object , ByVal ProcName As String , ByVal UseCallType As Microsoft . VisualBasic . CallType , ByVal ParamArray Args () As Object ) As Object Member of: Microsoft . VisualBasic . Interaction Summary: Executes a method on an object, or sets or returns a property on an object. Parameters: ProcName : Required. String. A string expression containing the name of the prope ...Show All
Game Technologies: DirectX, XNA, XACT, etc. A way to generate beep through sound card
I would like to generate a beep sound (for example a sine wave sound) with a particular frequency (Hz) and length (ms). How can this be accomplished with VB.net Rather than using pc speaker, I would like to use DirectSound or so... Thanks, but I can't find an example on TheZBuffer.com. I searched and searched... I found this piece of code: http://www.codeproject.com/csharp/messagebeep.asp It seems to do the job, but how to extract only the generate beep part and convert it to Vb.net I'm just a newbie programmer, so if anyone can do this, I would be most grateful! So I need just the function to play a beep with frequency X and length of Y milliseconds. ...Show All
Visual Studio VS2005: Document Explorer auto-update remove the class library reference
Hi guys, I have installed VS2005 and MSDN library for a few months everything works fine. However, when i opened up the MSDN library today, it pop-up a Help update in Progress dialog. Afterward, the whole .NET class library reference is gone, i can't find the class library reference. What is going on Can anyone from MS help me Below is the list of program i have installed on my machine: VS2005 Professtional (with MSDN library) VSTS Team Explorer VS2003 Profresstional (with MSDN library) .NET 3.0 VS2005 add-on for WPF, WCF Thankx in advance. Ivan ...Show All
Windows Forms Load Image into a datagridview cell!
Hallo guys I have a table of pointers pointing to different images. I want to selectively load a image into a cell of a datagridview on an event(like mouse click on the cell). I am using visual studio .NET express edition 2005 and C++. Any suggestions how i can do it Cheers! The following code example shows displaying images in Cells of the Windows Forms DataGridView control and hope that can help you: Public Sub CreateGraphicsColumn() Dim treeIcon As New Icon( Me .GetType(), "tree.ico" ) Dim iconColumn As New DataGridViewImageColumn() With iconColumn .Image = treeIcon.ToBitmap() .Name = "Tree" .HeaderText ...Show All
SQL Server is analysis services 2000 compatiable with sql server 2005??
im trying to run analysis services 2000 along with sql server 2005 but with no luck. I can process the cubes no problem from within analysis services, but the problem is that the cubes are processsed each night via a dts package on the sql server side of things. when i run the package i get this error: Access is denied. the connection string to the repository needs to be specified in teh 9.0 server properties ( see <DSO>...</DSO> section in msmdsrv.ini file from analysis services 9.0). as im not using analysis services 9, that file doesnt exist. what do i do the error cant be with analysis services 2005, as it is not installed. all i have installed is analysis services 2000, and ...Show All
Visual Studio Team System Code Analysis in VS2005 for Testers
Hi Everybody, I've got a problem with VS2005 for Testers & projects with Code Analysis enabled. I've created the solutions in VS2005 for Developers and Checked them into TFS. Then I've checked them out on a machine with VS2005 for Testers and the solution does NOT build. I get this error The "CodeAnalysis" task failed unexpectedly. System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Build.Tasks.CodeAnalysis.GenerateFullPathToTool() at Microsoft.Build.Tasks.CodeAnalysis.Execute() at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projec ...Show All
Internet Explorer Development IE7 auto shutdown problem
I downloaded the IE7 from Yahoo! a couple of days ago, and installed it. My PC was bought from Dell two years ago with XP Pro (Pack 2). The installation process was normal. I was able to access the internet as before (AT&T DSL). However, after a couple of clicks, the program just shuts itself down automatically without any warning. I was able to download another copy from microsoft.com, and reinstalled it. The problem is still the same. Now after launching IE7, it will likely shut down before my 5th click. Please help solve this problem or tell me how to go back to the previous version of IE. Thanks a lot. - Steve I seem to have the exact same problem. I can't even get as far as 5 clicks. IE7 shutsdown before it even proper ...Show All
Visual Basic Windows service does work every 24 hours
How do I set up a Windows service to do work once every 24 hours. I have read that using a loop that checks the desired time to the current time is a good solution, but I am wondering if there is a better way. I want to accomplish something similar to Windows Update. you can place a timer on the service and implement the timeelapsed event and set the interval to 24 hours. The timer interval is measured in milliseconds so you want to convert 24 hours into milliseconds :-P http://msdn2.microsoft.com/en-us/library/393k7sb1.aspx does this work for you Have you tried it before Another thing you could do is on every hour, check if 24 hours has been elapsed either by adding 1 to a counter variable a ...Show All
.NET Development Debugging mscorwks
>What if you did stop inside the runtime >What if we did allow a debugger to stop at a native breakpoint inside the runtime, but just refused to execute the helper-thread and thus >temporarily disable managed-debugging functionality In theory, this would work. In practice, it would be a bad user experience >because: > - you couldn’t get a managed callstack since the helper-thread can’t run. Thus you wouldn’t be able to see what managed function called into the runtime. > - You’d be stranded at the native breakpoint. You could step within the native code, but without the helper running, you could never step back across the native a managed boundary. Except that there is a window in ...Show All
