Hooper's Q&A profile
Software Development for Windows Vista How to get a shared Data context inside a workflow instance accessable from all child activities?
Hi, The idea is to have a data context accessable to all activity instances living inside a running workflow instance. This data context class instance is prepared before the workflow is started and should be retrieved back ( to the caller) when the workflow has completed or terminated ( to gain informations about state/error conditions). 1. Is there a build-in way to do so It seems like ActivityExecutionContext which is given for each execute does not solve this issue. Here's my happy guess solution to solve this issue. I've created a custom SequentialWorkflowActivity which will serve as base class for all my workflow definitions called SequentialWorkflowActivityBase . public partial class SequentialWorkflowActivityBase : Sequ ...Show All
Visual C++ How to out put the value of a variable, during debugging?
During debugging, How can I make the debugger to out put the value of a variable and the return value of a function OutputDebugString works too. Even if you're not debugging and use SysInternal's DbgMon utility... ...Show All
Visual Studio Express Editions Install C# and C++?
Hi, Newbie here to C/C++ but I have done some VB in the past. I installed the Visual C++ Express edition about a week ago without a problem and have had some time to play about with it and found it to be great. So I thought I'd try Visual C# Express and see what the difference was between the 2 languages. The download and install went perfectly, without a hitch until I tried to start a new project. I went File:New and selected a template (doesn't matter which, same problem for all) clicked OK and got an error box pop up with the message ' The filename, directory name, or volume label syntax is incorrect. (Exception from HRESULT:0x8007007B) ' I uninstalled both C++ Express and C# Express and then reinstalled them both and I stil ...Show All
Software Development for Windows Vista static lib or from dll
i have created several functions in a mfc supported tatic library. this library is working fine. now i want to put all the function within a namespace. it is generating errors. e.g. ***************************************** header file ****************************************** namespace MPL { UINT GetStatus(bool& bstatus); static const int NOT_FOUND = 0; } ******************************************* source file ******************************************* #include <header file> using namespace MPL; UINT GetStatus(bool &bStatus) { . . . return bRet; } ...Show All
SQL Server SSIS on cluster: Access is denied?
Background info: I have two physicals machines PhysicalS01 and PhysicalS02, clustered together as Cluster01. Two virtual SQL 2005 Servers, Cluster01v01 and Cluster01v02, have been installed upon the cluster. Integration Services has been set up for a cluster, using the msdb database on Cluster01v01. ( http://msdn2.microsoft.com/en-us/library/ms345193.aspx ) I'm having problems saving an SSIS package to a cluster. I'm using my non-admin account on the "Save Copy of Package" dialog. When I save to the "SSIS Package Store" Cluster01v01, I get the message "Access is denied." I have verified my non-admin account is a valid login on the Cluster01v01 datasource. When I am a sysadmin, ...Show All
Visual Basic Trouble preventing duplicate instance of application
Hi, Regarding preventing or allowing a second instance of my application to run...I need the user to have a choice, so coded up the following. Friend Class FormSplash ... (the splash form is active for < 2 seconds) FormSplashLoad() ... If (closeCuz2ndInstance()) Then Application.Exit() End If ... continue with initializations ... close splash and open subsequent form(s) Function closeCuz2ndInstance() As Boolean 'Check to see if another instance of this program is already running. 'If so, ask user what they want to do. 'Reply True iff there are other instance(s) and the user wants to close. Dim openAnyway As Boolean If (PrevInstance()) Then openAnyway = MsgBox(& ...Show All
Game Technologies: DirectX, XNA, XACT, etc. The values used in the attempt to create the GraphicsDevice were invalid.
Is this because my graphic card does not support shader model 2 I didn't even know of this requirement till I saw it on the readme file. Time to change my geforce4 I got it to work. Add this line after the Graphics component is created: graphics.AllowMultiSampling = false ; Then in the WindowsGame_Starting function set graphics.AllowMultiSampling equal to false again. ...Show All
Software Development for Windows Vista How to deal with app data shared by many users?
In the Vista documentation it is said that application data which is used by several different users is supposed to be placed in C:\ProgramData\<appname>. However, when a user has created for example a file in this directory, the file belongs to this user and can't be written to by other users even though it's placed in a supposedly common directory. How can I make this file available to all users Does anyone have a detailed explanation to the above mentioned issue. In my point of view it would mean that you have to change the acl for every file which is intendent to be changed by several different users. Kind regards, Lela ...Show All
SQL Server CSV Export
When I go to export a report from SSRS to a CSV file, I don't get any text delimiters (double quotes) Is there something I should set so that I get the text delimiters R ...Show All
Software Development for Windows Vista Exception: WF is not owned by the Runtime.The WorkflowRuntime's ownership has expired or another WorkflowRuntime owns the WF!
Dear all, Im having a problem with persistence...While loading the instanceid from different runtimes when i stop and restart my server. Its showing this error after restarting the server and if i try to load an instance which is in the instancestore table of SharedStore database " This workflow is not owned by the WorkflowRuntime. The WorkflowRuntime's ownership has expired, or another WorkflowRuntime owns the workflow." Actually im declaring the persistence like this, WFRuntime.AddService( new SqlWorkflowPersistenceService (connectionstring, false , new TimeSpan (1,0,0,0), new TimeSpan (0,10,0))); WFRuntime.AddService( new SqlTrackingService (connectionstring)); WFRuntime.AddService( new Shared ...Show All
Architecture role based vs code based
I need to know general recommendation on whether we should should use role based or code based security for following type of .net applications: 1. Stand alone application 2.Enterprise application 3.B2C application 4.B2B application As per my understanding we should use Role based in last three cases.Code bases should be used in first and last case(if we are using webservcies). Your comments!! Regards Role based security goes well with intranet based applications as domain roles can be directly used. http://DotNetWithMe.blogspot.com vikas goyal ...Show All
Windows Forms Need some information from all you smart follks... :)
Let me tell you a little about myself. My name is Dave Scott Anderson, I am 16 years old and have been programming in C++ for 2 years, C# for a couple months, and HTML for over 5 years. I have become quite addicted to C# programming with Windows Forms. I have finally decided that I want to purchase the full version of Visual Studio...But heres the problem... Where are Windows Forms technology headed Would it be a waste to purchase VS2005 since Microsoft is going to come out with Vista and the .NET Framework 3.0 I need advice on this.... Programming is what I love to do. And I prefer to be up to date with technology... Sorry if this is in the wrong forum... but it is related to Windows Forms, so I posted it here. Things like mobile ...Show All
Software Development for Windows Vista Picture taken date missing
Hello Windows Vista 32bit Ultimate (German): Sometimes the EXIF-data "date picture taken" (in German "Aufnahmedatum") is empty in Windows Explorer. Escpecially if I edit the JPG-Image with PaintShopPro 11 and save it, the date will be empty in explorer view, but still exists in EXIF-Tags. If I transfer this Picture to another PC with Windows XP, the "date picture taken" still exists. Also if I open the picture with other Programms, the date is ok. Just in explorer its empty. Maybe in Windows Vista Explorer there is shown a wrong EXIF-Tag Best regards I too have a new Dell Inspiron 1520 laptop running Vista Home Edition. Copied photos from Windows98 ...Show All
Visual C# exposing a C# DLL's members to non .NET apps
Hi, I posted this in another forum (slightly different question though) and the answers I recieved weren't very helpful. Basically, I need to create a C# DLL who's members can be accessed by a non .NET application (it's a Windows program called Extend). Now I was able to write one in C++ and have it's members be exposed using extern "C" int __declspec(dllexport), but so far have been unsuccessful in doing so in C#. Is it even possible Hi pappascd: Although very restrictive, I have succeeded in years past in exposing a subset of native methods from a VC++ class with __declspec(dllexport) without exporting all the members of a class. This is the poor man's way of exposing an interfac ...Show All
SQL Server File system error: A FileStore error from WriteFile occurred
Error: Code: 0x00000000 Source: SRC Process dimensions Error: Description: File system error: A FileStore error from WriteFile occurred. Physical file: \\ \ <pathto filename> attribute.asstore. Logical file: . . Errors in the OLAP storage engine: An error occurred while the <attribute id> attr ibute' attribute of the <dimensionname> dimension from the ' <database>' database was being processed. Errors in the OLAP storage engine: The process operation ended because the number of errors encountered during processing reached the defined limit of allowable errors for the operation. End Error I encountered this while incrementally processing a dimension via AMO script in SSIS. Does anyone have ideas on what this e ...Show All
