Doraemon_1's Q&A profile
Visual Basic Runtime compilation / CodeDOM
Hi, Question: Is there a way to dynamically add properties to a class at runtime Background: I'm trying to write an app that lets a user write some code in a text editor at runtime, and then compile and run the code. Compiling and running the code is no problem using the CodeDOM classes, but there's somethign else I'm trying to achieve. I'm using an editor that provides code completion (CSharpEditor, though I might end up using VSTA) and what I'm looking to do is dynamically add properties to a class. For example, a line of code (at runtime) might be: Dim Bob as new DataObject(someParam) If I then type Bob DOT then I see a code completion window with each of the properties of the DataObject (name, email, address etc.) However, I also have ...Show All
Visual Basic Disabling sound for a control and/or application?
Greetings. I'm writing a vb.net 2005 application which has hidden webbrowser controls in it, in order to retreive data from a website. The problem is that these websites have flash advertisments with music and sound, and I need to disable that sound so that people don't suddenly start hearing noises and not understand where they come from. Is there any way I can disable sound for the webbrowser control, the form, or the application - without completely muting off the computer Thanks in advance, -Elad Start + Run, regsvr32 -u c:\windows\system32\macromed\flash\flash.ocx If that doesn't work, restore the flash player by repeating the same command but now without the "-u" option. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. basic question about XNA
i am new to XNA, i like to know is the product using XNA required to install extra runtime/library at user machine like XNA Framework or just have directx and .net framework 2.0 installed is enough to run any of XNA project thank you very much did you mean the user who want to run my game which develop with XNA are required to install DirectX, .Net 2.0 Framwork also the XNA Framework where can i have the redistributable version(End user runtime) of XNA Framwork, so that i can include in my released project. another new question. to have my game runable in XBox360, are XNA MUST used or just with C#(.Net) + managed directx are possible to run in XBox360 also thank you ...Show All
Visual Studio Tools for Office Creating InfoPath Form Template fails with VSTO 2005 SE Beta
Hello, When i try to create an InfoPath Form Template from the Office 2007 Node, i get the following error message: ERROR: this template attempted to load an untrusted component 'Microsoft.Office.InfoPath.vsta, Version =12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitekture=MSIL'. For more information on this preoblem and how to enable this template, please see documentation on Customizing Project Template" Creating an 2007 Add-in for InfoPath works fine. Thanks al lot. RS ...Show All
SQL Server Am using sql server 2005, column data type is varchar, how to write a query to sort
this data. need help Sort following numbers by asc and desc order Before query sort -1.1 -8.8 -15.5 0.0 +0.5 +0.2 Sort asc +0.5 +0.2 0.0 -1.1 -8.8 Sort Desc -8.8 -1.1 0.0 +0.2 +0.5 Why are you storing numbers in varchar You can do a CAST(varchar_col as decimal( , )) with appropriate precision/scale and sort on the expression. select * from tbl order by cast(varchar_col as decimal(10,4)) -- or select * from tbl order by cast(varchar_col as float) But this is also ugly workaround. If you have data that cannot be converted successfully to decimal/float the query will fail. You can use ISNUMERIC but that checks for more formats and you may still get runtime errors depen ...Show All
SQL Server selecting from a SP
Hello How can I select from an output of SP . I have created to SPs, say myProc and myproc2 to test this: CREATE PROCEDURE dbo.myProc AS begin select * from STOCKS end GO CREATE PROCEDURE dbo.myproc2 as begin select sto_id from myProc end GO When I run myproc2, I get an error: "Invalid object name 'myProc'." If myProc produces a table, so why can't I select from it Hi, You might consider using Functions in stead of stored procedures. These can be included in the From clause. Example: http://www.databasejournal.com/features/mssql/article.php/3348181 Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All
Visual Studio Team System Microsoft_VSTS_Build_FoundIn issue
Hello, I have the following question about the Microsoft_VSTS_Build_FoundIn field. We don't use the Microsoft_VSTS_Build_FoundIn field by Team Build, but the field is field by a list of Suggested values by hand when adding a new bug in Team Explorer. Now I want to create a report which shall use that field in a query. But what I see is, that this field is empty in all tables I found in the TfsWarehouse database. What might be the reason efor that or: Where can i find all that FoundIn values, so I can use it in a report. Thank you in Advance regards Rolf Cerff Hi Anne and Rolf, Unfortunately, it looks like the Microsoft_VSTS_Build_FoundIn field is only persisted to the warehouse whe ...Show All
SQL Server When Install SQL 2005 Get "Detecting Installed IIS" message and stuck
I am installing SQL2005 Develop Edition, it goes to "Detecting Installed IIS" screen and stop there. No error messages, but not moving forward, kinda stuck. I am using XP Professional Service Pack 2, I tried uninstall IIS, got the same result. If anyone knows how to solve this problem, please advice, thanks a lot! ...Show All
.NET Development question regarding .net installation
Every time I attempt to install .net framework 3.0 on my machine it gives me this error in the middle of the installation . Error occured during setup, setup is removing all installed files. The error logs give me this. 01/19/07,00:29:37] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603 [01/19/07,00:31:06] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed. [01/19/07,00:31:06] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0 was not attempted to be installed. What can I do There are a couple of additional logs that can be used to troubleshoot Windows Communication Foundati ...Show All
Game Technologies: DirectX, XNA, XACT, etc. collision detection with backbuffer
Hi, i am new at gamedevelopement so... i am trying to do a collisiondetection method over the backbuffer. I am trying to make a 2d game with 3d objects (not sprites because the objects with light and so on looks much better) and couldnt make a very exact collisiondetection. I had the idea to use the backbuffer data with renderTarget2D class and make different layers (wich are not rendered) in which i could detect pixelcollisions between the 3d models on my screen (between their shadows for example) after i check collision before with boundingBox or boundingSphere. Because i am new to this stuff, my first question is: Is this slowing the game very much Or is this the worst method to detect collisions between Objects Tee ...Show All
SQL Server Accessing Reports through a web application??
Hi All, I have developed few reports in SQL Server 2005 Reporting Services and deployed them on a reporting server. These reports are accessed through a web application that is deployed on a different server. I am using the Report Viewer control in my web application. The problem is when I access the reports through my web application, it gives me a Page not found error. If I have both web server and reporting server on the same machine, then this problem does not come. I need to have separate web and reporting server. Can anyone please provide help on how to solve this authentication issue. My web application is taking the credentials but the credentials are not getting passed if the reports are deployed on a different serv ...Show All
Smart Device Development Capture Outgoing dialled number
Hi, I tried searching on this but was not able to find a way to capture the outgoing called number using SNAPI. We can use SystemState.PhoneIncomingCallerNumber to know the incoming phone number, but is there a way we can know what the user dialled (outgoing call number) using SNAPI I am using VS 2005 SmartPhone SDK. Thanks, Vivek I think the only way to capture this is using PhoneTalkingCallerNumber property only. I have create blog entry on this: http://geekswithblogs.net/vivek/archive/2006/12/28/102209.aspx Hope this helps others, Vivek ...Show All
Windows Forms datagridview columns databindings
Hi all. I've this table in database: columnDay, columnTotal Now, in the columnDay, are stored data like: columnDay columnTotal Mon 01 01:00:00 Tue 02 01:00:00 Wed 03 01:00:00 Thu 04 01:00:00 Fre 05 01:00:00 Sat 06 01:00:00 Sun 07 01:00:00 The number of days are directly retrieved from the month. Now, i need to design a datagridview, that have the name and number of days as columns: For ex.: int myColumn = Thread.CurrentThread.CurrentCulture.Calendar.GetDaysInMonth(myYear, datetimepicker1.Value.Month); datagridView1.ColumnCount = myColumn; for(int i = 0; i < datagridView1.Column.Count; i++) { DateTime dt = new DateTime(year, datetimepicker1.Val ...Show All
Windows Forms What is faster: GDI+, Direct Draw or OpenGL for 2D drawing of 250,000 lines?
Hi, What is faster: GDI+, Direct Draw or OpenGL for 2D drawing of 250,000 lines Thank's Alexei First off I would mark directdraw from the list as this has been depreciated and the functions have been replaced inside of the direct3d classes. Next it will depend on other factors, will the app need to be cross platform, if not I would have a look at using direct3d for the task. OpenGL would be able to do the task but there is no real support for managed languages, you have to use 3rd party wrappers to do the job. Here is a link to some opengl resources that I have collected http://www.ircomm.net/forums/587/ShowPost.aspx . Hope this helps. ...Show All
Visual Studio Team System TFS says KB913393 is not installed when it is
Hi, I am trying to install TFS on a single server running Windows 2003 R2. Setup reports that ASP.NET 2.0 QFE KB913393 needs to be installed. However, I have now installed KB913393 several times and it doesn't appear to make any difference. When I run the KB913393 setup I see a message asking if I want to install the Hotfix. I then see a Licence Agreement screen followed by a progress bar as something is installed. However, I don't see any further messages to say the hot fix was successfully installed. Maybe this is normal but TFS setup still reports that the hotfix needs to be installed. Any help would be greatly appreciated as this is driving me mad :) Thanks, Aaron Hi Matt, I did eventually get it installed and i ...Show All
