mdavison's Q&A profile
Visual C++ [c++/CLI] create a wrapped managed dll for purely unmanaged code
Hello, I am trying to create a dll that internally uses managed types but exposes a plain unmanaged interface. (vs2005 beta 2 - c++/CLI) All the managed stuff shall be "wrapped out of sight". So that I would be able to use that dll from pure unmanaged code (for example inherit from classes in that dll) that has no /CLR flag set. Is something like that possible. I heared something called ManWarp tried that approach. If it is possible, how can I do that. Maybe there is a small litttle sample project around Use #pragma unmanaged. Write a function that uses your managed stuff and exposes its name via extern "C" either witj declspec exp ...Show All
Visual Basic bullets instead of text when typing in a data entry field like for a password
How do I show bullets instead of text when typing in a data entry field like for a password Michael J. Dyrnaes Do you mean using the TEXTBOX control from the TOOLBOX and creating a field and then selecting setting the property USESYSTEMPASSWORDCHAR to TRUE If that is correct then I wish you had said that it took me a long time to understand what you said. Michael ...Show All
SQL Server SSMS scripting Stored Procedures to separate files
I have noticed that in (SQL Server Management Studio) SSMS the ability to individually script stored procedures appears to have been removed (it was there in Enterprise Manager (SQL Server 2000) and I found a comment in another thread which appears to confirm this: Steven Twitchell wrote: >We've had several requests from various sources for functionality to script objects to their own files rather than one large file. I have been scripting stored procedures to individual files and then using sourcesafe to compare databases to ensure syncronisation with a client. I can do this on one file but it does not give the same granularity ...Show All
.NET Development .NET bug? - The Undo operation encountered a context that is different from what was applied in the corresponding Set operation.
Hello, I have tried to find a solution for this problem but so far have not found anything that applies to my exception. This is the message in my exception: Message="The Undo operation encountered a context that is different from what was applied in the corresponding Set operation. The possible cause is that a context was Set on the thread and not reverted(undone)." It occurs right after I perform any calls on a Socket that use threading (Begin...). The exception occured suddenly after I upgraded from .NET 2.0 beta2 to the final version of .NET 2.0, consider the following code. System.Net.EndPoint ep; ep = new System.Net. ...Show All
Visual Basic Works in SP1 but not in SP2
My company has an ActiveX control on its CUSTOMER ONLY website that captures customers' pc information, such as OS, all hardwares and all the software installed. In another word, everything is captured. Customers will have to log into the website and allow the ActiveX control to be installed and run. It will automatically send the data back to the server and the server will save it into the database. This worked well in Windows XP Service Pack 1. When the company upgraded all our customers pc to Windows XP Service Pack 2, an error "Run-time error:'70' Permission denied" appeared. And the activeX control failed to work. By then, the creato ...Show All
SQL Server Need a list of Error Code
Hi, When we configure a transformation to redirect the error record, SSIS gives 2 columns: 'error code' and 'error column'. In one article, I have seen how to get the error description using the 'error code'. My questions are, Where I can get list of all possible error codes 'error column' gives the id of the column. How to get the name of the 'error column' Thanks. Basically you need to know the metadata of the normal output, not that easy, but simon has wrapped this up in a Tx. http://sqljunkies.com/WebLog/simons/archive/2005/12/15/SSIS_Enhanced_Error_Component.aspx Some related info - http://msdn2.microso ...Show All
Visual Studio Tools for Office Access 2003 Developer Extensions with VSTO
Hi: I just got Visual Studio 2005 Tools for MS Office System, but couldn't find Access 2003 Developer Extensions on the CD. I am not sure if I am missing some components or making some mistake in installation. I would greatly appreciate any help in this regard. Thanks reez Hey Reez, VSTO 2005 does not have support for programming against Access. Please let me know if I misunderstand your questions. Thanks, Mei Liang ----------------------------------------------------------------------------------------------------- This posting is provided "AS IS" with no warranties, and confers ...Show All
Visual Studio Express Editions New to express
Calling all vC++ users, I am brand new to express and I have a problem already. I have made a sample app that just has a toolbar drawn on it. It worked on the PC that i made it on, but when I emailed it to my other PC and tried to open it it came up with an error saying that the "Application" wasn't "configured" correctly. Can anyone help please Could it be because I need to make it standalone some how Chris Start here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=353193&SiteID=1 . BTW, in one of the links to the links that that post links to ( ), it makes reference to a file calle ...Show All
Audio and Video Development Which OS apps use Media Foundation
Hi Out of interest which apps bundled with Vista use Media Foundation, e.g. does Windows Media Player use Media Foundation when playing back formats that have Media Foundation codecs, e.g. WMV etc. and uses DirectShow for other media types And what about Media Center What about the MediaElement in WPF(Avalon) Any other OS apps that I haven't mentioned Cheers Hi Sean, All the applications you mentioned above use Media Foundation in Vista to some extent: Windows Media Player/ Player OCX: MF is used for DRM and Non DRM ASF and MP3 content. It is also used if you play this content whil ...Show All
Windows Forms Wishlist
Hello, This is a great application in both commercial as well as educational standpoint. Here are some of my wishlist: 1. Ability to change the project on a particular task. 2. Ability to refresh instead of restarting or offline/online 3. Ability to delete the tasks by the admin. 4. Adding one more userlevel called Project manager, who can manage the&nb ...Show All
Visual Studio Team System FxCop 1.32, Insert Comments to the Resolution
Is it possible like in earlier versions I mean to add some text to the Resolution. XML: <Rule TypeName="Foo" Category="Bar" CheckId="1"> ... <Resolution>'{0}' '{1}''{2} '</Resolution> ... </Rule> if I try to insert like this Resolution res = GetResolution ( typeName ) ; res.Items.Insert(0, value); It's not allowed to enlarge the list. Hi, FxCop allows you to use multiple text parameters in your resolutions: in your xml write something like: <Resolution>{0} and {1} are both parameters</Resolution> then in your r ...Show All
Windows Forms textbox or other control that has immediate update for scrolling messages
Is there a setting for the textbox control or another control that will allow me to write lines to the textbox and have the data show up instantly My application would be from within a while loop and I want the lines to show up as they are processed, not at the end of the loop. Ex. while(foo == true) { textBox1.text = msg; msg = getNextMsg(); } Add this line, Application.DoEvents() in you loop. while(foo == true) { textBox1.text = msg; Application.DoEvents(); msg = getNextMsg(); } -chris ...Show All
SQL Server Making outbound HTTP requests from SQLCLR
Hi, I have written a C# console application that adds a message to a SB queue and a C# stored procedure that reads the message from the queue. I have had so many problems that I'm beginning to doubt the usefulness of this, but that is probably just my frustration speaking. I am stuck on putting an XML message into the queue and reading the XML in the stored procedure. The console app has a simple object called Message. This class has 2 fields, a guid and a string. I serialize the object into XML using XmlSerializer. This results in an XML string that looks like this: < xml version="1.0" encoding="utf-16" > <Messa ...Show All
Visual Studio Express Editions Is vc++ 6.0 good
i bought a book on vc++6.0.can i build powerful software applications with that.what is the difference between the vc++6.0 and vc++ 2005.what is the latest released version Well... you could use VC++ 6.0 but that's too old really. VC++ 6.0 was released about 8 years ago and I'd say that the quality of the C++ compiler and the IDE itself improved a bit since then . Not to mention that there is a free version of VC++ 2005 called "Express" (though it does not have support for MFC and ATL) see: http://msdn.microsoft.com/vstudio/express/visualc/ ...Show All
Visual C# Threading
Hi all, I have a code with a lock function called synchronize. This function synchronize data with a remote server. The function lock all the application untill it gets a reply from the server. Some time the server is busy of down and the reply takes a lot of time and my application is stucked. How can solve the problem using threading or another solution. Please help. Best regards... You don't want to implement this using timers. You'll be waking your thread running X up just to check if Y is done yet and going back to sleep if it isn't. When writing multi-threaded apps, you have the ability signal threads. ...Show All
