Socrates Kapetaneas's Q&A profile
Software Development for Windows Vista Advise on creating Oracle Persistence
Hi Everyone, I've started to attempt an oracle persistence service as i've no choice on database. I've taken the schema scripts from the sql server persistence and mapped them into a set of oracle tables. Now its the stored procs. For now i'm not wrrying about locking or anything like that but am looking purely at getting the data in. The signature for the sql server sp is: Create Procedure [dbo] . [InsertInstanceState] @uidInstanceID uniqueidentifier , @state image , @status int , @unlocked int , @blocked int , @info ntext , @ownerID uniqueidentifier = NULL, @ownedUntil datetime = NULL, @nextTimer datetime , @result int output , @currentOwnerID uniqueidentifier output Wha ...Show All
.NET Development XPath query problem
For ex: i want to get "book1" that has both categoryname='Data' and categoryname='XML'. Not just 'Data' or just 'XML'. i tried following XPath queries but first one returns all the books. The second does not return anything because @categoryname cannot be 'Data' and 'XML' at the same time. How can i query this /books/book/related[@categoryname='Data' or @categoryname='XML']/.. /books/book/related[@categoryname='Data' and @categoryname='XML']/.. <books> <book name='book1'> <related categoryname='Data'/> <related categoryname='XML'/> </book> <book name='book2'> <related ca ...Show All
Visual C# Construct Enum dynamically possible ????
I was wondering if it was possible to construct an enum at runtime Let's say i have a lookup table, and i'd like to have an enum for that lookup table. Is it possible to construct the enum dynamically Thanks, Hello, i have a class and i want that a property with list(of string) type displys in propertygrid as a dropdown list. So i want to dissolve that with convert list in a enum. So i have the same question sb's predecessor. Thanks ...Show All
Visual C# Cannot access a disposed object?
Hi, all In my program, there are 2 forms -- Form1 and Form2 On Form1, there is a button "Start", when I click on it, Form2 will appear and start plotting, and the text on the button will be changed to "Stop"... When I click on "Stop", Form2 will stop plotting, and the text on button will be "Start" again. However, when I close "Form2" and click on "Start" again, the following error will be shown: Cannot access a disposed object(object name: "Form2") So I can not open a form again if I closed it... Is there any way to solve this I hope I can start "Form2" again by clicking "Start"... Now, I just know to disable the "Cont ...Show All
Visual C++ C++ code compiled with Visual C++ 2005 Express runs slower from the IDE
I have noticed that my code runs slower when invoked from within the IDE. The debug code runs a small job in 21 seconds from the IDE (no breakpoints set) and in 6 seconds when invoked from Windows explorer directly. The release code runs in 11 seconds from the IDE and 1 second when run directly. For comparison, I tried the same code generated by Visual C++ 6 and got 14 seconds when running from the IDE and directly. Is there some setting that affects this I could not find any. Is this normal behavior for this version of Visual C++ Thanks, Peter Yes, I believe it is normal behavior. (I assume you are talking about running in debug mode rather than Ctrl+F5, since you mentioned breakpoi ...Show All
Visual Studio 2008 (Pre-release) Video Restart Button
Hey All, I am making a WPF video player and it is working well. I have buttons to Play, Pause and Stop the video but now I want a restart button. Anyone know how to accomplish this Thanks, Dvl That does not work either. It just keeps on playing. If I can put a dealy inbetween the two I think this will work: 1. pause the video 2. delay for half second 3. set the position to 0 4. delay again 5. play the video I just need the code for a delay...anyone have this Thanks, Dvl ...Show All
Windows Forms user notification
What is the best way to inform the user of a application that there are some changes to data or new data that they should look at. Polling the database A service that is polling the database and sending messages to the app Other........ Remco Bhanu Prakash Nunna - MSFT wrote: Hi, Did you try sql notificaiton services Thank you, Bhanu. Is that a part of sql2000 ...Show All
Visual Studio Express Editions Need help with wildcards in query
I've been using Microsoft Visual Basic 2005 Express Edition: Build a Program Now! ( by Patrice Pelland) to try to learn VB, but I am having a problem with the Car Tracker example in Chapter 8 (databases). Set up the following query using 'Query Builder': SELECT Listing.ListingID, Listing.ColorID, Listing.MakeID, Listing.CarTypeID, Listing.DateSeen, Listing.Year, Listing.Price, Listing.Cylinder, Listing.HP, Listing.URL, Listing.EPGCity, Listing.EPGHighway, Listing.Notes FROM Listing INNER JOIN Color ON Listing.ColorID = Color.ColorID WHERE (Color.ColorName LIKE '%' + @colorname + '%') Tested it out (from within the Query building wizard) and it does return values as expected ('b' returns both 'Dark Blu ...Show All
Visual Studio Team System URL to view the workitems
how can i view the work items like testcases, bugs in the browser. can somebody send me the url to view that. thnx Also if you open the work item, and right-click on the work item tab, there's an option called "Copy Full Path". This will copy the URL of that WI (with the same notation that Swamy indicated above) into your clipboard. Thanks, ...Show All
Smart Device Development Using COM on Pocket PC
I projected about Text to speech, Could I ask you some questions I only need a file Interop.SpeechLib.dll to program, Do I not need to install any software Can I program Text to speech on smart device like pocket PC Thank you so much for your help. Yes, you need to install some TTS engine and call into it. Please refer to documentation of whatever engine you're using. ...Show All
SQL Server Directly editing data in results pane with SQL 2005 Management Studio
In SQL 2000 Enterprise Manager, one was able to edit and commit data on-the-fly directly from the results pane. Action->Open Table->Query with the SQL Pane shown gives you an interface similar to Query Analyzer. One could write a complex select statement with where clauses and joins, and the results pane would show the resulting data. The data is editable and instantly updated. We are now planning to migrate to SQL 2005 , and so will need the same capabilities that were availiable from its predecessor. I believe there to be an option/configuration setting or panel in Management Studio that would expose this functionality. I have SQL 2005 Standard Client Tools installed with the SQL 2005 Express Eng ...Show All
SQL Server SSL To SQL Server 2000 From VB6 : Error
Hi All, I am trying to connect to SQL Server 2000 database from my VB6 code. The SQL Server is having the setting ON to force all incoming connections to use SSL. It is using a valid certificate with the same name as FQDN of the server and has been provided by the security department in my organization. I have got my client code on my desktop. I have installed the root CA certificate for the SSL certificate on DB server in my desktop's Trusted Root Certificates. When I try to access the database from my .NET 2.0 code, it works fine. The .NET code gives an error if I remove the CA certificate from my desktop. This behaviour is as expected. I am using Encrypt=True setting in my code here although I dont think it is necessary when se ...Show All
Visual Studio Tools for Office Can't load CustomXMLParts since Technical Refresh
Hi! I'm working on a data export function from our software into Word2k7, using CustomXMLParts therefore to save the Data to docx and a COM-AddIn to step through the single DataSets. Everything worked pretty fine until i updated to the Technical Refresh. Now i can't get the CustomXMLParts out of the docx anymore. I checked the unzipped docx files and they are alright - they got the correct GUID, but when i call for (from the Add-In): Office.CustomXMLPart customXML = _Doc.CustomXMLParts.SelectByID(MYGUID); it returns null - but that's just since the technical refresh! Did they change anything concerning this I've already read thousands of blogs (or maybe a few dozens ;)) but I haven't found anything helpfull ... hope somebody can h ...Show All
Visual Studio 2008 (Pre-release) XAML to C# converter?
I've noticed mostly all XAML code snippets have a C# equivalent... after all, Microsoft posts many of their XAML examples in C#, VB, etc. Are there any tools out there that will convert XAML code to equivalent C# code ControlTemplate and some other elements might not be converted to C# using tool which is provided by www.XamlIT.com But you can do this by removing <ControlTemplate> and some other elements that couldn't be converted and then convert it using tje tool. Then add the codes into the generated code such as. ControlTemplate cntTmpl=new ControlTemplate("Button"); ... ...Show All
Software Development for Windows Vista Visual Studio and x64 July CTP Build 5472.5
I have seen postings that people have been doing development with Visual Studio 2005 on Vista. What is the trick to getting Visual Studio running Is there compatibility issues with the July CTP x64 Build 5472.5 I was able to install the Professional Edition without any issues. However, every time I try to launch VS Pro 2005, Vista complains that "Microsoft Visual Studio 2005 has stopped working" and closes the application shortly after. I have not installed the July 06 WDK yet. Is the WDK required for VS to work correctly on windows I hated to waste a DVD just to find out that it still did not work. It appears that all 32 bit applications have the exact same problem including IE7 x86 32. I'm guessing there is a bug in the Vi ...Show All
