grunger's Q&A profile
Visual C# Compiler Error CS0570 from C++ defined property
Compiler Error CS0570 Does anyone understand error CS0570 'class' is not supported by the language This error occurs when using imported metadata that was generated by another compiler. Your code attempted to use a class member that the compiler cannot process. The code being called was written in Managed C++ paraphrased like so: public ref class FilePath { ... [MyPropAttribute] property int Name { const int get(); } ... }; The attribute [MyPropAttribute] is defined like so: [System::AttributeUsageAttribute(System::AttributeTargets::Property)] public ref class MyPropAttribute: public System::Attribute {...}; When I try to use the property in C# code I get CS0570, but see no document on how to get around t ...Show All
.NET Development ODBC TableAdapter Updating
Hi, I have searched high and low to find an example to solve my problem. I use ODBC to connect to MySQL database, or any other for that matter, the application has no real call for Datasets/adapters till now so I have not used them. I now need to load an image into a blob field so using Commands and readers do not hack it. Try as I might, and I have tried, I can not see how using dataset/tableadapters etc I can add a record to a table let alone stream into a blob field the image. Any help would be welcome. to add an item directly into the DataSet: Dim theRecordToAdd() as Object = { " field1", "field2 } 'the values for each field theDataSet.Tables(0).Rows.Add(theRecordToAdd) you would then need to rebin ...Show All
Visual Studio Reference from csproj to vcproj fails to build using MSbuild
Hi, We are having an issue building a VS2005 solution using MSBuild. Our solution includes a c# project that has a project-to-project reference to a VC++ assembly project. The VC++ project has Common language runtime support set to None, but overridden on some of its source files to /clr. This builds fine within the IDE but fails to build using MSBuild from the command line. Looking at the MSBuild output, the /reference: for the VC++ assembly is missing from the CSC command line. If we enable CLR support at the project level everything builds fine, but this is not a practical option for us – there are hundreds of source files in these projects but only one or two that require the /clr switch. The link has a small example solution ...Show All
SQL Server Will FTP and File System Tasks run in Workgroup Edition?
I have a package that does an FTP and some File System Tasks. It runs perfectly fine in BIDS but doesn't want to run via SQL Agent. Is the SQL Server Edition the problem Erik Sampsell wrote: The error message is: The task "Get CMP File - FTP Task" cannot run on this edition of Integration Services. It requires a higher level edition. Yes, you'll need to move to SQL Server Standard or Enterprise editions. http://www.microsoft.com/sql/prodinfo/features/compare-features.mspx ...Show All
SQL Server Sql Server Management Studio Express --- Sql Agent
In Enterprise Manager, we could view the Sql Agent and start/stop any jobs. I can't find the Sql Agent or any Sql Jobs in the Sql Server Management Studio Express tool. Where is it How do I view the sql jobs using this tool, or can I even do it ...Show All
Software Development for Windows Vista more information
please help me to do this problem in my windows vista .. I have a very important videos in this Indeo codec and I can't play them .. in addition to this I have a games that needed this codec and I dont know how to do regsvr32 against the codec file so please help because this is very important for me .. please see this thread they say somethong about ir50_32.dll ( this file is the codec ) but why isn't working .. thank you I entered the website you gave me .. but I didn't find solution I don't want to buy indeo .. thank you anyway and please help me if you can in registering this file to windows vista .. ( this codec is worked in my windows xp sp2 in my laptop ) https://forums.microsoft.com/MSDN/ShowPost.aspx PostID=907 ...Show All
Visual Studio Express Editions concerning media player
renee where do I post pause button code wow that sounds complicated.....but first....this is my pause button........ then I thought I would like a back button......dont know if it should keep repeating last song or not, at the moment it just rewinds the current track to start......mmmm what do ya think pause button Private Sub btpause_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btpause.Click If WMP.playState = WMPPlayState.wmppsPlaying Then WMP.Ctlcontrols.pause() tmr.Stop() ProgressBar.Value = ProgressBar.Value btpause.Text = "paused" btpause.ForeColor = Color.Aqua Else If WMP.playState = WMPPlayState.wmppsPaused Then ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Library support
Hi. I posted this in a thread earlier, but the thread dropped back half a dozen pages in a few hours. This place is popular! If we want to use external libraries or middleware, do they have to be written in C# and come with source provided I'm thinking of libraries like SQLite, Lua, ODE and so on that would normally be included as a .dll reference in your C# project. I assume that's not possible if you want your code to run on all available platforms That means that basically we're starting with a very clean slate here. There seem to be precious few libraries that are useful for games developers and written in pure C# for the XNA platform. The concern that I have is that not only will it take many months before a decent array of middlewa ...Show All
Windows Live Developer Forums "Ratemynuts" Worm?
Can someone please help me out I received a message from my friend when I signed in that read: "lol, wtf! h t t p : / / ratemynuts. net/nuts.php msn=myemail@hotmail.com" With my own email address replacing "myemail" and there were no spaces (I just didn't want to make the link clickable, just in case). Has anyone heard of this worm I tried looking it up, but I couldn't find anything. Please help! -Sarah Yeah, I got the same thing from one of my friends. Though if what someone said, about it being .com then all email adresses .co.uk are ok I clicked it and it linked to http://grassfire.org, which seems to be a safe site Anyways, so far I havent noticed it, just running a v ...Show All
.NET Development UTF-7
Hi everyone, Can someone explain how .NET encodes UTF-7 I just wanna write program that encodes UTF-7 (don't need UTF7.GetBytes, I want my own function) and it must be .NET compatible (I need decode byte-buffer generated in my program with UTF7.GetString). Thanks It is encoded according to the UTF-7 standard. Check out the RFC for all the fun details. http://www.rfc-archive.org/getrfc.php rfc=1642 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using the framework with WinForm controls
Anyone have any idea on how to redirect the rendering output to something like a winform Panel control, so that I could use the framework for traditional applications Thanks ZMan. If anyone has any ideas on this I'm happy to poke around and try to figure it out on my own. As it stands, I'm not sure where to start. ...Show All
Visual Studio excluding 'gets' from a team build
In my TFSBuild.proj I have <PropertyGroup> <TeamProject>test1</TeamProject> How do I exclude ' getting' projects (or code) residing under test1 that do not participate in the team build Yoni Yoni, You can modify the WorkspaceMappings.xml file to cloak (hide) certain folders from the workspace. Any folder (and their children) thus cloaked will not be retrieved during a "get". Here is an article discussing the mechanics of it: http://blogs.msdn.com/manishagarwal/archive/2005/10/13/480584.aspx - Steve ...Show All
SQL Server using wildcard
alter procedure sp_ADsearch @tbname varchar ( 1000 ), @searchproduct nvarchar ( 500 ) as declare @sqlstr nvarchar ( 1000 ) set @sqlstr = 'select * from ' set @sqlstr = @sqlstr + @tbname set @sqlstr = @sqlstr + ' where name like ' set @sqlstr = @sqlstr + '%' + @searchproduct + '%' exec sp_executesql @sqlstr -- exec sp_ADsearch product , ee when executing the procedure i am getting an error "Incorrect syntax near 'ee'.". whats wrong with the syntax how to use % along with variables Hi a_shyam41 thank u for ur reply..... ...Show All
SQL Server SQL Server Configuration Manager - TCP/IP Protocol
I want to know when someone will change Listen All to No for TCP/IP Protocol and set up individual IP addresses. One of IP addresses seems to be default to the 127.0.0.1. I guess this will only be used for testing whether the driver or network card is working or not. I have not found any MS article to explain this area clearly. I think this should be explained in detail since this is different from the Server Network Utility. Did you see SQL Server 2005 Books Online topic: How to: Configure the Database Engine to Listen on Multiple TCP Ports http://msdn2.microsoft.com/en-us/library/ms189310.aspx If this doesn't help please reply with more detail on the information you need. ...Show All
Software Development for Windows Vista Register dlls in Vista
I am using a much modified version of the VB6 P&D wizard, calling DLLSelfRegister in VB6stkit.dll. Under Vista this fails to register the dlls unless the user turns off UAC before running the installer. How can I code it to get the OS to prompt for a temporary lifting of UAC or elevation of status This explains the Vista behavior for "setup" programs - it's not just the name of the program. https://blogs.msdn.com/heaths/archive/2006/06/23/644545.aspx Thanks, but that suggests that my installer, called 'setup.exe', should request elevated privileges because it has 'setup' in the name, but it does not do so. ...Show All
