Marius S's Q&A profile
Visual Basic Array assignments: how do they work precisely?
Hi all, could someone explain to me (or point to a website explaining it) how assignments of an array work precisely I read the helpfile but am confused. Preparation steps: dim a(100) as byte dim b(100) as byte for i = 0 to 100 a(i)=i next i Now: why do I somewtimes see b=a 'and now b is supposed to be filled with 0 to 100 as well And other times I see people using a loop: for j=1 to 100 b(j)=a(j) next j to supposedly arrive at the same result. Is there a difference Thanks, Kees b and a are "references" to arrays, they are not the arrays themself. So if you just do b = a then b will contain a reference to the same array a ...Show All
SQL Server can service Broker talk to informix
Hi, I am very new to Service Broker. Can I have a Service Broker which will Exchange Message from Informix and service broker sitting on SQL Server Box. If this is possible, How can we achieve it. Any Pointers will be very helpfull. Thanks Hello Remus, This seems fine for Informix installed on Windows, but in my case, I can have Informix on Unix Machine also. Therefore I want to have a generic design for both the cases, So that I don't have to do much of change when Informix is on Unix or Windows. That is the reason why I did not try to use Linked Server. Can a Service Broker Communicate with a service running on informix box. Thanks Dharmbir ...Show All
Visual C# Static Classes being referenced by multiple processes within the GAC??
If I have multiple processes accessing the same assembly within the GAC, and within that assembly a static class's members are initialized by one of the processes, the members remained initialized for all processes accessing the assembly correct I am assuming so by way of this quote on MSDN: Static classes are loaded automatically by the .NET Framework common language runtime (CLR) when the program or namespace containing the class is loaded. No, the static class values are not shared between the apps because each app that uses the CLR loads its own instance of it (both the class and the CLR) and each would end up with a separate copy of your class’s static methods and the values they access. ...Show All
Smart Device Development How to place an icon on the menu bar?
I want to place an icon on the menu bar (the bar on the below which contain menu and input panel), how can I do this using VB Thanks in advance. ...Show All
SQL Server handling special characters using oledb to oracle
hi, i am using oledb to connect to oracle. i want to know if there is a way to handle different character sets in this type of connection. for sql to sql, i have been using auto translate in the connection string. what about for sql oledb to oracle how can i make sure that the data from sql to oracle is transferred as is many thanks. You might be better off asking this on the Data Access forum: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=87&SiteID=1 -Jamie ...Show All
Game Technologies: DirectX, XNA, XACT, etc. i need help
Can anyone help me How do I call a method from a different class The above posters are correct in both their answer and their suggestions that maybe you should take a step back and fine tune your C# development skills before pushing ahead with your game. The question you asked was a valid one, but a very simple one. While XNA has made game development easier, it hasn't removed the need for you to understand development. I worry that you are just going to unnecessarily frustrate yourself trying to learn game development while learning basic development concepts in general. With that said, I don't think it will take you long to get up to speed. You don't need to be a C# expert to make a game with XNA ...Show All
Visual Studio 2008 (Pre-release) WCF Sample: Databinding in a Windows Forms Client samples
Hi... I'm new in WCF... I try to add Operation Contract in WeatherServiceContract to return only one WeatherData, and I got an exception: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:GetWeatherDataResult . The InnerException message was 'Error in line 1 position 558. 'EndElement' 'GetWeatherDataResult' from namespace 'http://tempuri.org/' is not expected. Expecting element 'HighTemperature'.'. Please see InnerException for more details. Inner ex: Error in line 1 position 558. 'EndElement' 'GetWeatherDataResult' from namespace 'http://tempuri.org/' is not expected. Expecting element 'HighTemperature'. I don't know what does ...Show All
Windows Forms Treeview questions???
Hi I would like some feedback on the following. After populating my tree view and expand it the scroll bar has scrolled half way down. How can i make it not scroll down when i load the tree and expand it. After i have loaded the users may scroll down if they want. When you click on the treeview it highlights the word in a dark blue. Is it possible to change that colour to another colour Is it possible to make it highlight the whole line from left to right of the treenode selected like a listbox My treeview is reloaded depending on what is selected on a combo box. When i reload it you can see me clearing it and then loading it again. Is there a way to prevent this Any responses/sample code will be great. Thank ...Show All
.NET Development Neither XmlReader nor XmlTextReader are able to process my XML file
Hi, I am not able to use the XmlTextReader class in C#, as it is not able to read DTD entity codes, and I can't use the XmlReader because it returns bogus AttributeCount/HasAttributes values. In other words, I'm stuck. I started by using the XmlTextReader, which works nicely until I get to XML that uses DTD entity codes. I needed to use the XmlReader.Create() method and pass an XmlReaderSettings object into the constructor - with ProhibitDtd set to false. This worked, but now I get plainly incorrect results for the HasAttributes and AttributeCount method/properties. AttributeCount is returning 1 when reading the following element: "<gloss>readability</gloss>". Not only that, but the 'HasAttributes ' property returns true while ...Show All
SQL Server SSIS Running Packages NOT being displayed
When I run an SSIS package from the MSDB in SQL Server Management Studio it never shows up under 'Running Packages'. I have confirmed that the package is indeed running. I've also tried to check the packages running on the server programatically by using the GetRunningPackages() method. This too returns nothing when clearly packages are running. Any ideas Malcolm Barclay Disney Consumer Products UK Am using verison 9.0.2047 and Im definately connected to the same server. I have also tried this when I'm on the server console, connecting to IS locally. ...Show All
.NET Development Resource files and satellite assemblies ...
Hi I'm attempting to deploy a solution where a resource file of strings can be modified at runtime. From what I gather from the documentation I need to provide a satellite assembly (which has the string resource file) alongside the main assembly. The main assembly has the string resource file embedded within it so it can act as the default. It appears from the info I have that when I deploy the satellite assembly with a different set of string values these can be used by the application instead of those embedded within. Unfortunately when testing this it does not appear to work. Key aspects of the solution is as follows: In the main assembly I have defined <Assembly: NeutralResourcesLanguageAttribute( "en" , Ultima ...Show All
Windows Forms Where can I access the commandTimeout property in a DataAdapter
It boggles me that I found this same question in the forums twice and noone from MS has commented on this BUG. I went into the Generated code and found this procedure and added the commandtimeout line. But this is not the way to do it because it gets written over anytime the dataset designer is updated. Private Sub InitCommandCollection() Me ._commandCollection = New System.Data.SqlClient.SqlCommand(0) {} Me ._commandCollection(0) = New System.Data.SqlClient.SqlCommand Me ._commandCollection(0).Connection = Me .Connection Me ._commandCollection(0).CommandText = "dbo.spRaChecks" Me ._commandCollection(0).CommandTimeout = 0 Me ._commandCollection(0).CommandType = System.Data.CommandType.StoredProcedure Me ._comm ...Show All
Visual Studio 2008 (Pre-release) Update a grid row when an item is selected from a combo box
Hi, Just wanting to know how to do the following. I have a grid with the first column being a drop down. Whenever I select an item from the drop-down, I want to be able to refresh the current row with the details of what I have selected from the drop-down. The dropdown is populated manually. I have the following code - the grid has two columns, the first column is the drop down and second column is just a text. Whenever I select an item from the drop-down I want the second column to update, but unfortunately it doesn't. Thanks in advance. The Data using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Text; namespace WindowsApplic ...Show All
Visual Studio 2008 (Pre-release) web app throwing on using Skip and Take
I am trying to use Linq for SQL to fill a Grid that needs to page and as an option (I know there are other ways) the Skip and Take looked real interesting. So I came up with code that looks like: IQueryable<PaymentBatchModel> baseQuery = from p in db.PaymentBatchHeaders where p.DepositDate >= dtBeginDate && p.DepositDate <= dtEndDate select new PaymentBatchModel{p.SystemID,p.DepositDate,p.BatchSource,p.Status,p.BatchType}; .. some where of the form lambda1 = string .Format( "BatchType == {0}" ,BatchType.SystemID); expression = QueryExpression .Where(expression, QueryExpression .Lambda(lambda1,e)); then the skip and take: expression = QueryExpression .Skip(expression, Expression .Constant(p ...Show All
Visual Basic How to Rotate Text in RTF
Hi Folks, Any RTF experts out there I want to insert a text object that is rotated like what you can do in Powerpoint's text box or Word's Word Art. Unfortunately, when either is saved in RTF, the text content is lost in the raw code, so I cannot do a search and replace on the rotated text. Word only saves the text content if the text box is used with the alignment changed to vertical. Is there any way to create rotated text that is visible in the RTF code I am prepared to insert all the required positioning code myself, if I only knew what was required. Any ideas would be greatly appreciated. Hi Nobugz, I must be missing something here. My version of Word 2002 does not allow free ...Show All
