maarga's Q&A profile
Software Development for Windows Vista Windows SDK Integration with VS 2005 -- now on Vista 5600
I don't know what I'm doing wrong. I have Visual Studio 2005 installed and running. I am able to compile most of the WPF samples (that I've tried) like WPFSamples/Demos/15Puzzle, CubeAnimation, etc. This is all running on Windows Vista build 5536. Now I would like to create my own xbap projects. So I download the Windows SDK from http://www.microsoft.com/downloads/details.aspx FamilyID=117ecfd3-98ad-4d67-87d2-e95a8407fa86&DisplayLang=en which specifically says that it works with build 5536 (and 5600) and installed it. Items show up in the Windows start menu. But no new project types show up in Visual Studio 2005. Am I supposed to download anything else According to http://windowssdk.msdn.microsoft.com/en-us/library/ms752087.aspx ...Show All
.NET Development wait function
I want to make a function that execute 2 commands with a interval : doSomething; WaitSomeTime(5 sec); doSomethingOther; I dont know how to pause the function for after the first command for some time. Hi You can use two methods: Thread.Sleep(5000); // in milliseconds, changes the thread to wait state, allows context switch (this means that maybe is not precise) or Thread.SpinWait(5000); //produces a spin on the current thread reducing the chances of context switching Cheers ...Show All
Visual C++ A lost WM in VS2005.
When I tried to use "WM_MOUSEWHEEL" in my program, but compiler warned me that "WM_MOUSEWHEEL" is undifined! I went in "WinUser.h" file and saw this message is commented out by following : #if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400) #define WM_MOUSEWHEEL 0x020A #endif If I directly use 0x020A instead of "WM_MOUSEWHEEL", it works well. Why this happened My OS version is WinXP Pro, whith SP2. For every function or constant which is not defined in all Windows versions, refer to the following article: http://windowssdk.msdn.microsoft.com/en-us/library/ms736959.aspx In your case, add #define before including windows.h, ...Show All
SQL Server sql statement in "Execute SQL task" syntiax
I am new in SSIS, and I am building some ETL just to make some exercises. In the "Execute SQL task" page general and property: SQL Statement, I try to insert this SQL Statement, "INSERT INTO table SELECT '" + @[User::myVariable] + "'" or "INSERT INTO table SELECT '" + @myVariable + "'" but parsing, I get an error: incorrect syntiax near '+'. Do you know any suggestions Thank You can't type tht directly into the property. You need to set an expression on that property and do it there. The syntax looks good to me, you're just using it in the wrong place. -Jamie ...Show All
Visual Studio Express Editions How to Start and Stop ProgressBar
Im using windows xp sp2 Here's my code and yet nothing is happening in my progressbar: Private Sub frm16PFas_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'stop the progressbar when the form load mdi16PF.STATUSToolStripProgressBar.Style = ProgressBarStyle.Blocks mdi16PF.STATUSToolStripProgressBar.Value = 0 End Sub Private Sub COMPUTEButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles COMPUTEButton.Click 'start the progressbar mdi16PF.STATUSToolStripProgressBar.Style = ProgressBarStyle.Marquee mdi16PF.STATUSToolStripProgressBar.MarqueeAnimationSpeed = 80 'Do ALL the COMPUTATIONS HERE 'stop the progressbar mdi16PF.STATUSToolStripProgressBar.Style = ...Show All
Software Development for Windows Vista Can someone help - where are the Roles examples?
I went to here this website and cannot find any screencasts or samples for using Roles in workflows. I then went to here: http://msdn2.microsoft.com/en-us/library/ms734519.aspx I then went to the link on the page references as: "For an example of how to use roles, see Roles ." The links are specific to Active Directory and certain webpage implementations. Where can I find info (really would like to see some screencasts) for implementing custom roles Thanks, Trevor Maybe I can elaborate a little more: I find code like this that I feel should be banned entirely from "best practices": using System.Security.Permissions; class InvoiceManager { [Principa ...Show All
.NET Development How to Create XmlElement Proxies?
Hi all, I have a collection of XML documents identified by ids. The documents contain elements that refer to other documents by their ids. In other words, the XML documents are like a graph of XML data. Various views are used to display different parts of that graph using XSLT. The views should pull the necessary XML from the corresponding documents. For that means, I would like to instantiated proxies for thoses XmlElements which refer to XML documents. The referred XML documents should be loaded only when the view actualy is interested in their content, i.e. pulls out their content. What methods and properties of XmlElement must be overridden in order to achive such a behaviour I guess that ChildNodes must be overridden. What else Has an ...Show All
SQL Server ODBC Connection
I have front-end visual basic program that use an ODBC connection to connect with SQL server, and my questions is there any automated procedure to configure this ODBC connection instead of configure it manually specially of the user profiles was changed I have to configure it again. Please advise As Jens said, you could use a DSN. An example of using this via SQLConnect( ) is on: http://msdn.microsoft.com/library/default.asp url=/library/en-us/odbc/htm/odbcsqlconnect.asp . Regardless of your connection method, you won't be able to store your user ID and password in the DSN. This would be a great security risk anyway. You could make the connection use a trusted connection, and rely on NT authentication to validate the user. ...Show All
Visual Studio 2008 (Pre-release) Modify response XML element name using XmlSerializer
Hello, I have a WCF service that returns types using the XmlSerializer (i needed to use XSD to generate types for an exisiting complicated schema). When I define the contract as such: [ ServiceContract ] public class MyService { [OperationContract] [XmlSerializerFormat] public MyOutType DoSomething(MyInType in) } The SOAP Messages (inside the envelope) look like: Request: <MyInType>....</MyInType> Response: <DoSomethingResponse><MyOutTypeResponse>...</MyOutTypeResponse></DoSomethingResponse> I want the response to look like: <MyOutType>...</MyOutType> or at least: <DoSomethingResponse><MyOutType>...</MyOutType></DoSomethingResponse> ...Show All
SQL Server Certificate not found
Hello, I have two different instances of sql server 2005 but i get Connection handshake failed. The certificate used by the peer is invalid due to the following reason: Certificate not found. State 89. This is one of the two instances: use master --ALTER MASTER KEY REGENERATE WITH ENCRYPTION BY PASSWORD = 'dsjdkflJ435907NnmM#sX003' create master key encryption by password = 'hello' create certificate [Certificato2] from file = 'c:\certs\TransportCert2.cer' with private key ( FILE = 'c:\certs\TransportCert2.pvk' , decryption by password = 'simone' ) active for begin_dialog = ON CREATE LOGIN [M02] WITH PASSWORD = 'wrPqYkr%bm3' ; ALTER LO ...Show All
SQL Server The Value expression
The Value expression for the textbox ‘Name’ uses an aggregate expression without a scope. A scope is required for all aggregates used outside of a data region unless the report contains exactly one data set....what does this mean...this an error that I have when i try and build my report i get this error for some reason...how do i fix this When you place a textbox that references a field on a report that is outside of a data region (list, table or matrix) and you have more than one dataset associated with the report, make sure that you specify which dataset the field you are using is from. For example, =Sum(Fields!FieldName.Value, "Dataset1") or, if you want just the first value, =First(Fields!FieldName.Value, "Datase ...Show All
Windows Forms can we access form controls from an external assembly (dll assembly not within the project)
Thanks When I need an object from another assembly I just reference the dll in my other solution or project. This is a good approach for reusable(independent) components and more managable for team development. There is a performance penalty for big assembly. In fact, it won't load if an assembly gets too big. Run-time loading using LoadFrom is a good idea when you have to implement some sort of plugin capability to your application. At work we use it for Assembly Remoting. We have a very, very thin main application that will hardly get updated. This is the one that gets installed on the user machine. The actual worker assemblies(those that will change quite often) are place o ...Show All
Visual Basic is it allowed to install Visual Studio 2005 non-express editions on more than 1 PC?
At the moment I'm using VB 2005 Express. I'm considering upgrading to the standard or professional edition. However, now I'm able to use the express version on, for example, a pc at work and a laptop at home. Does this also apply to the payed versions Note: I'm the only programmer, so only one edition will be used at a time. Regards, Eric Microsoft Licenses are some of the plainest agreements I've ever seen. There is no lawyer-speak at all. It (the one I have for VS2005 Pro) plainly states that the software is licensed to a single user. I never said anything about multiple users, and the OP was not asking about multiple users. And you will get a canned answer from Microsoft support (been there, done that ...Show All
Software Development for Windows Vista WinLogon change in windows vista...
Hi, Can any body please help me out in finding some particular information about how the WinLogon procedure in Windows Vista has changed and the softwares that implement GINA, how will they operate now... Any links or resources... Thanks in advance, Regards. http://blogs.technet.com/authentication/archive/2006/03/18/new-authentication-functionality-in-windows-vista.aspx http://msdn2.microsoft.com/en-us/library/Aa480152.aspx#appcomp_topic11 ...Show All
Visual Basic Open
Can someone tell me how to open an application manifest if you do not have .net on your computer. If you've read my posts you would be sure I wouldn't know how to put a virus on it. Well the program works on my computer fine (computer published on), but on my laptop it does not work. My laptop has the .net framework already. I will soon write the error message. Also you could just virus scan it. ...Show All
