Abbbbbs's Q&A profile
Visual Studio Express Editions About using C# script inside C# applications.
Hello, I need to use C# script (without compile it in DLL or EXE file) inside C# applications. I need also that C# applications and script can comunicates each other. I'd like that my application can also execute the script step by step, and read/write its variables. In other words I'd wanna try something like previous versione of Visual Studio, where Visual Basic 6.0 applications can execute JScript. Is it possible And if yes: how Examples Thank you for help. Toni You may want to have a look at the items in the System.Reflection.Emit namespace. It's probably not exactly what you'd consider C# script but it may serve your purpose. These classes allow you to compile and run code generated by your program. The description from MSDN al ...Show All
.NET Development using datasources during runtime??
Greetings, I want to host data Sources wizard in a WinForm so that the user will specify data sources during run time… How can I do this Hi, As far as I know you cannot rehost the wizard in your own app, you have to create your own. It's actually not that difficult. The whole purpose of the dialog is to create a connection string. Look at the connection strings of the data sources you want support and add the appropriate controls to let the user enter the username and such. When the user clicks on the Test button, use a DbConnection to test the connectivity. If you want a dropdown for the list of databases you'll have to execute a custom sql command for each db you want to support ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Question about loading graphics
Does this load from disk twice or does it assign the data loaded into Background.tTitle already loaded in memory to MainMenu.tTitle Background .tTitle = content.Load< Texture2D >( "Content/Sprites/title" ); MainMenu .tTitle = Background .tTitle; If it loads from disk twice what is a better way to reference a graphic from multiple classes. ...Show All
Visual Basic Referencing a Form on a Seperate Thread...?
I converted my code from VS2003 to VS2005 and came across Cross-Threading problem, which previously did not occur in VS2003. I am developing a Client/Server style application where a great deal of computations takes place in either application. I designed a "Progress Form" that is used to, well you guess it, display the progress of some work. In an attempt to create code that could be universal used by any application, I decided to create a Class. I have a "Thermometer Class" that manages all the interaction of a "Thermometer Form". There is a reason why I used this duel object method of creating my "Progress Form". I want my progress form, when displayed, to lock the GUI but not to block the thre ...Show All
SQL Server reporting server failing....System outof memory exception
Hi : We have a setup reporting services for reporting...and our reports are working fine for 100-200 thousand records which is basically 1 year worth of data. The reporting server fails when it starts processing beyond 200 thousand records...when I check the reporting log I see System outof memory exception. The reporting server has 8GB of ram and its a blade server. I dont know how to solve this issue. Please let me know where I am doing wrong.... Thanks, Pramod Are you sure that SQL Server has not been restricted in how much memory is available for it to use Also as a general rule, I try to return as little data in the dataset for RS to process as possible. So it's better to do some GROUP BY clases in your que ...Show All
.NET Development DataView Rowfilter
I am loosing my mind on this :) I have a dataview and I am doing something like this dv = ds.Tables(0).DefaultView At this point if I do dv.Table.Rows.Count It returns 5 If I do dv.RowFilter = " pos = '1' " where pos is one one of the column dv.Table.Rows.Count returns 5 when it should have returned 2 .There are 2 records with pos=1 I am not sure what Iam doing wrong ANy help is appreciated. thanks I think you try to get count by using this property int records = dv.count ; It will return you count 2. You should not you dv.table.Rows.Count property. let me know if you need any code for this ...Show All
Visual C# Dynamic Variable's Type Declaration
Hi, Given name of type, how can I declare a variable with this type Let's say that classes B,C and D derives from A. Given textual input "B", I'd like to declare variable as following: List<B> myList = null; Thank you You've got it right. Somehow, I'm feeling that there should be a "c# language" solution for this problem - "dynamic T" I tried to "dig" and nothing came up. I'm facing this problem while handling dynamic creation of "controllers" to orchestrate scenarios. When each scenario covered by a controller, it's very convinient to store "controller" metadata (all kind of identifiers) out of the source ( ...Show All
Visual Basic Need advise on what class to use
Hi, I need to write an application to perform imaging of memory cards (up to 1 GB). The requirement is for the application to capture the entire image of the memory device into a file, all partitions included. i.e. if I have an 256 MB SD Card, I must write in all 256MB of the card into a standalone file The original and the image must match byte for byte. I've tried using stream reader to do a simple test (see extracted code below): Dim strmRdr as StreamReader strmRdr = New StreamReader("\\.\F:", System.Text.Encoding.Default, True) However, I was given the following error: FileStream will not open Win32 devices such as disk partitions and tape drives. Don't use \\.\ " in your path. Hence, can anyone advis ...Show All
SQL Server InfoPath 2007 and endpoint yielding HTTP authentication failed.
I created a HelloWorld like example using InforPath 2007 and endpoint with SQL Server 2005. Very simple example. I created a stored procedure that took in one parameter, a datetime field. This parameter is then inserted into a db table that has two columns, an id column and a datetime column. I took the store procedure just discribed to create an endpoint. Cool. The WSDL is showing, I'm feeling good. I go to InfoPath and make it so that submit a datetime to the webmethod associated with the endpoint. The data table shows one more row has been added and it is the datetime I sent from InfoPath. YEA!! I go to the Event View and see that I have an error message. The message is HTTP authenticaiton failed. [CLIENT: 10.8.2.26]. Bummer! ...Show All
Windows Forms .NET 3.0 Breaks ClickOnce
Ever since I installed .NET 3.0 RTM, only users who have .NET 3.0 can run my ClickOnce applications. Please note that none of these applications are using 3.0 features. Also, I do not see .NET 3.0 in the list of redistributables and the Update link in VS 2005 goes to a dead page. I tried uninstalling .NET 3.0, but once I did that VS 2005 would no longer start. It silently dies after showing the splash screen. Suggestions Jonathan Allen In order to target .NET 3.0, you need to install the Visual Studio Extensions for .NET Framework 3.0 (WCF and WPF) . The tools install the project templates, visual designer and Intellisense support etc. for .NET 3.0 technologies. In addition, the Publish ...Show All
Visual C++ help with my code
I am trying to build a clr app with a database (rpgcore.h) consisting of integers and string^s, as well as a few functions. the auto-generated form1 is currently empty except for #incude rpgcore.h because i want to complete the database before actually displaying anything to the window. So, all my problems are in the rpgcore database. The database isnt complete but if these errors are fixed i should be able to complete it. here is the rpgcore.h //rpgcore.h //contains the core rpg functions /* start the database*/ namespace chara { namespace hero1 { System::String^ name; int hpmax[100]; int mpmax[100]; int rawatk[100]; int rawdef[100]; int level; name = "Jacques ...Show All
Visual Studio 2008 (Pre-release) upgrade procedure
What is the procedure to upgrade from beta2 to june ctp version Uninstall the old CTP (runtime, SDK, Visual Studio extensions), install the new CTP (runtime, SDK, VIsual Studio extensions). A clean uninstall is never guaranteed before release of the product, but it seems to work for beta 2 on. If you have problems, you should start from a clean machine. ...Show All
.NET Development Database Backup
Hi everyone...I just want to ask how to backup MS Access Database (OleDb) using Visual Baic.Net...Hope anyone could help me...Thanks Access is not a server database and to back it up you just need copy the whole file to some other location/media. You could write some code to copy that file. There are also some backup tools on a market that allow to backup harddrive information on periodic basis. ...Show All
Visual C# Favorites/Registry Help Needed!
I am making a web browser in C#. I need help doing the favorites. I got as far as populating the favorites menu with a list of values from the "LocalMachine\Software\WebBrowser" key.Now how can I make the browser navigate to the clicked menu Heres what I got for the App to load the list of values: RegistryKey key = Registry.LocalMachine.OpenSubKey("Software\\WebBrowser", true); private static void Form1_Load(object sender, EventArgs e){ RegistryKey RK = Registry.LocalMachine.OpenSubKey("Software\\WebBrowser"); if(RK != null){ string[] valNames = key.GetValueNames(); foreach (string x in valNames){ favoritesToolStripMenuItem.DropDownItems.Add(key.GetValue(x).ToStr ...Show All
Visual Studio Express Editions Classes and Subclasses?
Hello If I wanted to make class and many subclasses nested in each other, ex: Trip.Day1.Todo1 In that case, "Trip" is the class, "Day1" is a subclass of class "Trip" and "Todo1" is a subclass of "day1". Is that possible Possible to put subclasses within another subclass Thanx a ton! Keehun Nam Thanks Bit complicated but will try to learn the nested things You are right, nesting classes is messy, but what I want to do is because I have like 20 controls in one tab and I have 14 tabs and each control's value/text, I have to right them to an Excel. So I can't really memorize all the control's names... That's why I've been trying to do this. Each tab is a da ...Show All
