Lambros Vasiliou's Q&A profile
Visual Studio 2008 (Pre-release) FYI, Orcas CTP available
Just wanted to give a heads-up about the latest CTP that was just released, for those of you who are interested in trying out new WCF features we will deliver in Orcas: http://www.microsoft.com/downloads/details.aspx FamilyId=281FCB3D-5E79-4126-B4C0-8DB6332DE26E&displaylang=en Here's a snippet that describes the WCF/WF features: Windows Communication Foundation and Workflow Foundation WF Designer and Debugger integration with Visual Studio WF & WCF integration: New WCF Send and Receive Activities Enhanced Workflow and Service hosting Enhancement to WF Rules: Added support for operator overloading Added support for the “new” operator to allow users to new up objects and arrays ...Show All
.NET Development Concurrency Violation on the Dataset Table Primary Key with the combination of Access and Excel.
Someone help me please. I’ve have a Dataset bound to my Access database. I fill the dataset using, Me .CustomerTableAdapter.Fill( Me .TRACDBDataSet.Customer) It works fine. My problem is that our data records come to us on Excel Spreadsheets. So I figured, no problem! I’ll load the spreadsheet into the dataset like this. Dim cn As System.Data.OleDb.OleDbConnection Dim cmd As System.Data.OleDb.OleDbDataAdapter cn = New System.Data.OleDb.OleDbConnection( "provider=Microsoft.Jet.OLEDB.4.0;" _ & "data source=C:\USATracing.XLS;Extended Properties=Excel 8.0;" ) cmd = New System.Data.OleDb.OleDbDataAdapter( "select * fr ...Show All
.NET Development How do I copy a ColorPalette
Hello, I need to create a copy of a ColorPalette. ColorPalette tmp1 = myPictureBox.Image.Palette; The problem is the line above does only crate a reference. Changes to temp1 apply to the original palette as well, which is not what I need. ColorPalette tmp2 = (ColorPalette) myPictureBox.Image.Palette.MemberwiseClone(); The problem is the line above does not compile. What is wrong You can't create a "copy" of a ColorPalette (Don't know why). But, you can modify an existing one. I'm assuming you want a copy of a ColorPalette for another Image You can change the Palette of another Image using the Image.Palette.Entries array and Array.CopyTo, for example: image1.Palett ...Show All
SQL Server Install Error at end(I'm tired and impatient, and i'm sick of microsoft)
This is exactly what I do with the MS SQL 2005 Express-Advanced installer. Accept>Next Required Components Installed Successfully>Next "Welcome to the....">Next 13 Success, 2 Warning: Minimum Hardware, IIS Feature Requirement>Next Set name/company+hide advanced options>next Accepted default install options>next Windows Authentication>next none checked>next Install ERROR: An installation package for the product Microsoft SQL Server Native Client cannot be found. Try the installation again using a valid copy of the installation package 'sqlncli.msi'. Setup Failed: SQL Native Client, SQL Server Database Services. I got the same problem with the non advanced installer, and I even selected all the options for ...Show All
SQL Server How do you backup a database using sql server 2005 express???
I know there isn't a backup feature but I was wondering if there was a way to back up a database Thanks!!! for your convenience, before or after you are finished specifying your database backup, in the upper/middle of the dialog there's a "script" toolbar buttons set... you can save your settings to a cmd/bat file and just click on it to execute it, and even schedule it via AT/SCHTSKS native OS scheduler... I created an .sql script (as described above) and saved it as backup.sql. I am trying to run it from a batch file called backup.bat using sqlcmd. The batch file contains the command sqlcmd -i c:\directory\backup.sql -o c:\directory\output.txt It fails, saying it cannot connect re ...Show All
Visual Studio 2008 (Pre-release) Help me design my .Net 3.0 application?
Hi All. I've been studying C#/.Net 3.0 programming ever moment that I'm not shacked to my real job. I can say that for a guy of average intelligence who has been working in his sleep, Avalon allows me to do some amazing things and pretty quickly too. Where I'm having trouble is my high level plan. I thought If I laid it out here someone might be kind enough to give my a push in the right direction. The program description: It is a e-Book of interactive puzzles. Each puzzle has a graphical representation of some physical reality and controls that allow you to manipulate that reality. ( Start engine # 1, run engine #1 at 300 RPM, etc.) The Quester is then given a brief written introduction followed by a serious of t ...Show All
Visual Studio Express Editions Ressource editing is not supported...
Hello, New to MS Visual Studio 2005 Express, I was trying to migrate an application made with MS VS 2003 Pro .NET. After installing MS SDK express edition and modifiing the properties of my projects, everything ran fine, I was able to build and run my application. But, I needed to modify something in the .RC file, and was surprised to see a message: "Ressource editing is not supported on the Visual C++ Express SKU" What I can do is there any option to turn on, or any additional software/package/plugin to install Or do I need to upgrade this Express version to a non-Free version Thank you in advance for your answers, Thierry ROBIN PS: for those who asked themselves why such a need, it's because I'd like to co ...Show All
SQL Server SSIS and the Receive Command
I built a system where I am sending batches of messages using a single conversation. I want to pull these messages out of my queue using Service Broker. I may have more than one batch sitting in the queue waiting to be picked up, so.... In my SSIS package i started by getting a unique list of conversation_handles where the message type is my end of batch message ( should only be one per batch). Then I used the foreach loop construct thinking I could pass the conversation_handles around and into the data flow. In the data flow I want to pull all of the messages at once. It looks like the receive statement is designed to do this with the concept of using a table variable. So I built this SQL to use in for the SQL Command of my OLE ...Show All
Visual Studio 2008 (Pre-release) listbox with wrappanel layout question
I'm still having difficulties understanding how the layout of a ListBox with a WrapPanel works, or is supposed to work. Here's a tiny example: <Window x:Class="ListBoxWidth.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="ListBoxWidth" Height="300" Width="300" > <Grid> <ScrollViewer HorizontalScrollBarVisibility="Hidden"> <ListBox> <ListBox.ItemsPanel> <ItemsPanelTemplate> <WrapPanel IsItemsHost="True" /> </ItemsPanelTemplate> </ListBox.ItemsPanel> <ListBoxItem>listbox ...Show All
Visual FoxPro Change default printer works only once
This one is weird... I use the followin function to change my default printer: FUNCTION SetaImpDefa(imp,muda) Declare long WriteProfileString in "kernel32" ; string lpszSection, string lpszKeyName, string lpszString Declare long SendMessage in "user32" ; long hwnd, long wMSg, long wParam, String lParam if muda HWND_BROADCAST = -1 WM_WININICHANGE = 26 endif printer_name = imp printer_buffer = space(200) * len_ret = GetProfileString("PrinterPorts", printer_name, "", ; @printer_buffer, Len(printer_buffer)) printer_buffer = left(printer_buffer,len_ret) * printer_driver = left(printer_buffer,at(',',printer_buffer)-1) printer_buffer = substr(printer_buffer,at(',',printer_buffer)+1) * printer_port = left(printer_buffer,at(',',printer_ ...Show All
Gadgets Open a webpage in a Flyout?
Hi I wonder if there any way to open a webpage in my Flyout ! I've something like this: Yes. There's the code, in short, you wait until the flyout is open and then create an iframe within it. gadget.html: <html> <head> <script language="javascript"> System.Gadget.Flyout.onShow = flyoutShowing; System.Gadget.Flyout.file = "flyout.html"; var url = ""; function setFlyout(urltmp) { url = urltmp; System.Gadget.Flyout.show = true; } function flyoutShowing() { System.Gadget.Flyout.document.parentWindow.frame.innerHTML = "<iframe width='500' height='500' frameborder='0' src='"+url+"'></iframe>"; } </script> </head> <body ...Show All
Visual Studio .Net 2.0 SDK install problems?
I have tried several times to install this on different machines. I have installed the framework first, and when I try to run the install program, it interupts with the message "Extracting file failed. It is most likely caused by low memory(low disk space for swapping file) or corrupted Cabinet file." I have tried several solutions including deleting cache files, temp files, and other things. Has anyone encountered the same problems I am having Thanks for any help you may offer! I have experienced exactly the same symptoms. My third download of the 354MB file still gives me "Extracting file failed". Did you manage to resolve your problem How ...Show All
SQL Server Merge agent login problem
I have a push merge replication up and working in development SQL Server 2005 (publisher) and SQL Express (subscriber). Because the upgrade from 2000 to 2005 for our production servers has been delayed for who knows how long, I am working to set the same replication up with 2000 and MSDE. The merge agent is failing in 2000 with the error: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. (Source: MSSQLServer, Error number: 18452) The 2005 merge agent runs fine. I think it is because the 2005 subscription wizard allowed me to set the 'Run as: SQL Agent Service Account' option, instead of a windows authentication uid. There is no opportunity to set this in the 2000 subscription wizard nor o ...Show All
.NET Development How to filter data from a table in one dataset to another dataset?
I have two datasets. One has the customer information that I need based on Customer ID; the other has an empty table that my Crystal Report uses. How do I take the data from the first dataset and add it to the new table. I was doing this in vb 6.0, but now I need to convert it to visual studio 2005. This is how I did it in VB 6.0: If strCustID = objRS.Fields( "CustId" ).Value Then rs.AddNew() rs.Fields( "CustId" ).Value = objRS.Fields( "CustId" ).Value rs.Fields( "plant" ).Value = objRS.Fields( "plant" ).Value rs.Fields( "tkt_no" ).Value = objRS.Fields( "tkt_no" ).Value rs.Fields( "JOBID" ).Value = objRS.Fields( "JOBID" ).Value ...Show All
Windows Live Developer Forums Design inconsistencies.
Hi, Could it be better if there is consistency between objects' methods which return the same type of information For instance (language used: JAVA). AdCenterAccount.getAccountId() returns an Integer while AdCenterCampaign.getCampaignId() returns an int. Thanks. This is necessary as getAccountId can possibly return a null value therefore must be a complex type. getCampaignId does not return a null thus can be a primitive type. Thanks Andy ...Show All
