levitymn's Q&A profile
Visual C# How to: create an enumeration user setting
Hi, Is it possible to store a custom enumeration directly as a user setting This would result in a user setting having the enumeration as type, a s opposed to using a string or integer type. Regards, Tonn Hey that's great. I like this feature. Is it also possivble to havbe a collection of enums. I managed to get them entered, but the settings will be empty afterwards. Itried several ways like: myNamespace.myEnum[] or having a object derived from List<myEnum> both does not work. ...Show All
Visual Studio 2008 (Pre-release) Centering WPF Window over a Win32 owner
Hello all, I'm attempting to center a WPF window over an HWND. I figure this would be fairly straight forward. Using XAML I set WindowStartupLocation="CenterOwner". Then using WindowInteropHelper I set the WPF window owner to my hwnd (obtained by AfxGetMainWnd()->m_hWnd) then launch the window using ShowDialog. This does not achieve the desired result. The window is not centered over my main app window, however it is displayed on the correct screen (dual display environment) where prior it was not. Any ideas why this behavior If I cannot get this method to work then I'll simply pass in the center of my main app window in screen coordinates and work from there. Thanks, Jamie The solution I ...Show All
Software Development for Windows Vista how to register dlls with regsvr32?
i have installed my C# application on a machine. but when i tried to register the dlls with regsvr32 it gives me an error -- "dll is loaded but entry point in DllRegisterServer was not found. The file can not be registerd." what may be the problem thnx ...Show All
Visual Studio Team System Cannot overwrite current docs on Team Portal
The original posting of the doc/pdf etc. works fine. When I have to update the document in Word, convert to pdf and upload to TF project portal, the new document does not overwrite the old one. The only way I can accomplish this is to rename the updated document then upload under a new file name. This sounds like a bug to me... Can this be fixed This workaround gets tedious. Thanks, ClaireS Hi Clair, I haven't heard of this problem before, so let me fully understand what is happening. 1. You create a new document in Word and upload it to the team portal. 2. In the Team Explorer's 'Documents' node, you locate this document and double-click it. 3. You modify the document and then try to save it and it fails. ...Show All
Visual Studio Team System Schema Compare Problem #6
I just did a schema compare where the source is a database and the target is my project. There should have been one difference detected (in a stored proc that needed to be updated in my project). However, the schema compare did not detect this difference. After a bit of snooping I think I've discovered the following: When a schema compare is done and the target is a project, the compare does not compare the actual source files in the project but uses the design time database. In theory, the design time database should match exactly the source files in the project. However, somehow, in my case, this isn't true. I have a stored proc in my project that is older than the version in the design time database. My questions are this. ...Show All
Visual Basic No "Solution" under the New menu in the VS.NET 2005 IDE
Hello, I've installed the VS.NET 2005 Team Suite on workstation, but I don't see "Solution" under File -> New. I only see Project, Web Site, and File. Any idea why not Any idea why Solution doesn't appear there I also have VS.NET 2003 on the same machine and I see Project, File, and Blank Solution under File -> New in 2003. -Eric Just try File/New/Projects.. In the dialog, you should be able to find "Other Project Types"/"Visual Studio Solutions"/"Blank Solution". Most people don't create an empty solution. A solution will be created when you create any project, so it has been removed from the menu to keep it clean. If you don't see the ...Show All
Software Development for Windows Vista Creating a timer event
I am trying a create a timer event in my sharepoint sequential workflow. I am using EventScopeActivity and have one Sequencial Activity and one delay activity. On the delay activity, if the sequential activity is not complete, i need to execute some code once a day. I do not seem to get the Delay activity to work. Any help will be appreciated. Thank you both for the quick response. Serge, I am doing exactly the same. Let me check again though. I will get back to you on that. If you do not mind, one more question. How do I pass values from workflow to a InfoPath form from the OnTaskChanged event my data is not getting recognized. thanks. ...Show All
.NET Development Can any one spot the error?? VB code for calculate the digest value
Hi The below code has converted from c# to vb visualstudio 2005. But I got the error in the highlighted (Blue) area. When I changed the higlighted area from Stream to "Stream" error indicator disappeared but when I click the button I am getting the following error message "Object Reference not set to an instance of an object" Can sombody help me what mistakes there Note : The below code is to calculate the digest value for the xml file Private Sub Digestvalue_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles IRmark.Click Try Dim doc As XmlDocument = New XmlDocument() doc.Load("..\sss.xml") Dim nsmgr As XmlNamespaceManager = New XmlNam ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I cant debug my DirectX program
hi, I am using DirectX SDK April 2006 with Visual C++ 2005 Express Edition. I can use directX without problems but when I try to debug the breakpoints doesnt work. I have looked for "debug directX" in the forums and I try all the things I read: I buil the project in Debug mode. In projects settings I have: Generate Debug info: Yes(/DEBUG) ........ ..... but the symbols dont load :( and the BreakPoints dont work. do you know why pls help. Bye I have tried everywhere but I get this: " The breakpoint will not currently be hit. No symbols have been loaded for this document" should I reinstall Visual c++, SDK and directx sdk thx ...Show All
Visual Basic how can I tell how much memory my app is using?
Hi folks, Waffle ==== I have an app which uses a 3rd party API which isn't very well written as it DLs data from a remote server, and the data held locally continually increases throughout the day. It seems that to store 10mb of data, the app is using 100mb of memory! I have a routine to close the app and re-start it every n hours, but I want it to be smarter than this. Question ====== How can I check how much memory my app is consuming. i.e. When I go to the TaskManager, I can see my process.Mem Usage=88,234 K. This is the figure I want to get. Does My.Application.Info.WorkingSet give me this thanks ...Show All
SQL Server CREATE ENDPOINT failing with no errors
I'm hoping someone can shed light on a problem. I'm running SQL under a service account on a Windows 2003 R2 SP1 machine. The machine is also a domain controller. When creating an end point I get back a success message and can view the endpoints in sys.http_endpoints. However, when using httpcfg query urlacl there are no end points registered with http.sys. Using IE to try and access the /SQL wsdl returns a 404. There is nothing in the event log or the sql logs about any failure. The same TSQL code works fine on a development server. I've added the code below but am guessing its a permissions problem. I've followed the instructions at http://msdn2.microsoft.com/en-us/library/ms184379.aspx including SPN registration for the ...Show All
Software Development for Windows Vista Merge XPS documents
Basicly I want to merge 1-n xps-documents into a new package, either just add all source-documents or just add all the pages of the source-documents into the new package... I've tried out with following code, which writes all the source-documents-pages into a new xps-document, however this is very very slow!!! public void CreateXPSStreamPages(string targetDocument, List<string> list) { Package container = Package.Open(targetDocument, FileMode.Create); XpsDocument xpsDoc = new XpsDocument(container); XpsDocumentWriter writer = XpsDocument.CreateXpsDocumentWriter(xpsDoc); SerializerWriterCollator vxpsd = writer.CreateVisualsCollator(); vxpsd.BeginBatchWrite(); foreach (string sourceDocument in list) { Add ...Show All
Visual Studio 2008 (Pre-release) Browsing Service Hosted
Hi everybody, In my learning of WCF i have again a question. I want to make an "monitoring" of my application server (services hosted). By monitoring i want to say it's just a method into a service that can connect to each service hosted on this instance. So i just want to browse all my service running. Eg ( this a very bad approch i know but i think this is the best eg that can i explain : public void BrowsServices() { foreach ( host h in HostedList) foreach ( Service s in ServicesList ) s.IsRunning } Is it possible to make this and if yes how can i do Thanks for your help, Nicolas Okay i'm going to try to implement the solution with database. Or perhaps try to plug in a dll t ...Show All
Visual Studio Team System code is being ignored by the Code Analyser.
It believe some of my code is being ignored by the Code Analyser. I am using the Code Analyzer that comes with Microsoft Visual Studio 2005 Team Edition for Software Developers. I configured the code analysis for the project as follows: Right click on the project in the solution explorer and click properties. Click on the code analysis tab Disable all rules but Naming Rules Enable Code Analysis (defines CODE_ANALYSIS constant) close the properties window Right click on the project in the solution explorer and click run code analysis. The result is that it finds only one violation in a designer.cs file but no violations in my written code, (and I know there exists naming v ...Show All
SQL Server Agent Job logs on using Default User Profile
Hi, I get a strange problem whereby I have set up a Sql Server Agent job to run as a particular user. The job needs to access details from the users local profile. The job fails to access the correct user profile when it logs in, and utilises the 'Default User' profile. This happens for scheduled jobs when the actual user used to run the job as is not logged into the machine where the Sql Server instance lives. If, however, the user IS logged in at the time of job execution, the correct profile is loaded. I can see this happening by simplying executing an OS command that kicks of a batch file with something like the following: echo %USERPROFILE% whoami When the user is logged in I see the results a ...Show All
