No-spam Sam's Q&A profile
.NET Development bytecode verification in a single forward-pass
ECMA for CLR claims that "It shall be possible, with a single forward-pass through the CIL instruction stream for any method, to infer the exact state of the evaluation stack at every instruction" In other words, it shall be possible to perform bytecode verification in a single forward-pass. To make that possible , ECMA requires that "if that single-pass analysis arrives at an instruction, call it location X, that immediately follows an unconditional branch, and where X is not the target of an earlier branch instruction, then the state of the evaluation stack at X shall be empty." On the other hand, ECMA claims that it "simulates all control flow paths". I don't get how this simulation of all paths i ...Show All
Visual Studio Express Editions Is this possible???
As part of my program I would like to set up an address book. I have created the form for this. My question is: can I connect/create a database for just this part of my program. I have never created a database but am looking forward to giving it a go. This programming thing is totally addictive!! The first question you need to ask is, do you need a database just for an address book Perhaps an XML file would do the trick. Otherwise, you probably want to create a database with Access and connect to it from code. SQL Server is definately too big for this, unless you happen to already have it anyhow. The answer to the question is 'yes', but really you need to do some research so you can ask more specific q ...Show All
Visual Studio Express Editions Access -> SQL Server migration
Hi all, I developed a quite complex application using Access ad DBMS. I would like to try to migrate the same application from Access to SQL Server. Could you kindly suggest me if and how I could quickly do that I know that I have to replace the char for parameters used in my SQL query with the @ char but how could I mantain the same Dataset.xsd structure from Access to SQL Server Thanks in advance. "Could you kindly suggest me if and how I could quickly do that " I can answer the first part. I don't know whether you are speaking of the full SQL server or SQLE and I believe the distinction is important in this case. The task is easily done with SQL Servers Studio Console manager which has a ...Show All
Windows Forms How do I get, or change, the color of a pixel of an existing graphics?
I need to obtain the color of a single pixel of an existing graphics, then change it to something else. I don't want to save the whole graphics, which I assume would take longer. How do I do this You have to draw those graphics to a Bitmap then call Bitmap.GetPixel(X, Y) function it'l retun the color of pixel at specific location, for Changing it you can use Bitmap.SetPixel(X, Y); When you are done simply call Bitmap.Save(.......); to save the changed image to a Stream/File. I hope this will help. Best Regards, Rizwan aka RizwanSharp ...Show All
Windows Forms Clicking between forms
Hi, I' ve got two forms with buttons on both. I need to switch when I want between the forms. Now when I click on a button of another form. The Form gets first the focus. Then I need to click once more for the button_event. Is there a way to click just one time Grtz Annihil8 Well I'll try to make a little drawing :) [Frm_parent (Maximized ) ] | | | [Frm_child ] | | | Hasgotfocus | | | | | [button on Frm_parent] | | -------------------- ...Show All
Visual Studio Express Editions Need Help
Can someone tell me what is different about C++ Express and C# the reason i am asking is because i will be starting school in may for computer sccience and i am very new to this. I downloaded the C++ Express Edition and the SDK platform but i am having troble understanding how to write source code and how to actually use it in windows and there in not much for helpful videos yet but i noticed that the C# edition has around 16 hours of video which would be very helpful. C++ and C# are two separate programming languages, that's about the most prominent difference you'll see. If C++ is german, C# would be dutch. My suggestion is that you get a good C# book, and work your way up from there. C++ is quite a bit more advanced, so it ...Show All
SQL Server No one can help me on this prolem??????
or it may be too simple to care about My scenario is: I want to pass a multi-value parameter, Employee, with value set string[]{n1,n2,..,nk} to the report1. {n1,n2,..,nk} is a subset of whole employee name set {n1,n2,...,nk,...,nm}(k<=m), and it value is based on the user's access. when user open the report1, he/she can select one or more user name from the Employee dropdown value list. my problem is, there's no checkbox at the leftside of the Employee values to let user choose the value, so all the {n1,n2,..,nk} are selected as the value of @Employee. I spent time on setting 'Available values' uner "Report-->Report Paramters-->Employee", but can't get what I want. P.S., I do check the 'multi-value' for ...Show All
Visual C# how to Get all of SelectedValue and put it in On textbox?
"I've one checkboxlist in a webform, I was tried to retrieve all of SelectedValues from CheckBoxlist"; way 1 : string i = SelectBoxList.SelectedValue; Label1.Text =i; this way is only shows "1" Value in Textbox whatever how many CheckBox I Select. way 2 : (I Use Array) string [] checklist = (string) (CheckBoxList.SelectedValue); Label1.Text= checklist[0,1,2,3,4]; when run Theme way 2 , System throw Error message .... could someone help Me to Resolve this problem thank you very much ! not sure I follow. What is the selectedValue property you are referring to a listbox listview What control secondly ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA and isometric
Hello all, what is the best way (if it is possible) to use XNA and build an 2d isometric view draw a sprite and rotate it or are there better solutions thanks in advance.. g.. There is nothing stopping you from writing a game with an isometric view with XNA. You will either accomplish that by setting a particular camera position or by creating sprites that use an isometric view. Both methods are entirely possible with XNA but XNA does not do anything in particular to help you accomplish an isometric view. How you achieve the view is entirely up to you. Yo ...Show All
SQL Server Newbie: Am I really using Everywhere?
I just went through Steve Lasker's slide show on Everywhere (which was very informative) and noticed that when he setup the connection to the Everywhere database it had a .sdf extension. However, when I look at my database using SQL Server Management Studio Express it shows me as having the standard .mdf and .ldf files and *no* sdf file. I thought for a moment that I might be using Express but when I look at the connection properties of my (or what I think is my Everywhere) database I see: Product Name: Microsoft SQL Server Desktop Engine Product Version: 8.0.818 SP3 Instance Name: MICROSOFTBCM If I look at an Express database, I see connection properties of: Product Name: Microsoft SQL Server Express Edition with Advanced S ...Show All
SQL Server Missing parameter, no chart displayed
I've got this problem: (with Reporting Services 2005) I've got a report with a chart with some values that are needed to get the chart displayed. If one of this parameters is missing (not selected) the program doesn't display the report (it shows a blank page) Is it possible in this case to get instead a textbox with a message requiring to select the missing parameter (if I insert a textbox below the chart in the layout, this textbox isn't displayed if one parameter is missing) ps sorry for my poor english thanks in advance for your help Thank you for your answer. But the problem is that I would like to display a warning to the user to suggest him to select the missing parameter (in my case choosing from ...Show All
SQL Server A couple of easy questions
Hi everyone, Running Windows 2003 x64 and Sql25k 64-bit edition We just have a couple of questions related with our system: -What is Sql Server VSS Writer service for -What sort of implications must we assume when Integration Services service is running as NT AUTHORITY\NetworkService Any link or advice would be welcomed. Thanks for your time, SQL Writer Service ( http://msdn2.microsoft.com/en-us/library/ms175536.aspx ) Setting Up Windows Service Accounts ( http://msdn2.microsoft.com/en-us/library/309b9dac-0b3a-4617-85ef-c4519ce9d014.aspx ) For SSIS the implications are much the same as any service, just bear in mind what the SSIS service does, not a lot reall ...Show All
Visual Basic stringbuilder or string within structure to match a C++ struct..??
********************** C ++ 6.0 ******************************************* typedef struct sSegment { char szName[128]; } sSegment; int EXPORTED GetSegment(long lSegmentIndex, sSegment* pSegment) ********************** data marsaling in vb.net ******************************************* Public Declare Function GetSegment _ Lib "EVaRT40.dll" _ (ByVal lIndex As Integer, ByRef objSegment As Segment) As Integer ****************** ...Show All
Visual Studio Express Editions TableLayoutPanel Flicker
I am using a Tablelayoutpanel, that contains around 200 lables. That are feed with data every 3 seconds. When this is done the tablelayoutpanel flickers. How can I stop this What I am doing is getting imformation from a web blackjack game and breaking it down and displaying it in the appropriate label field. The imformation is in a xml format, but within the 3 main tags, there are long strings containing many pieces of date (divided by , & ;). It would not be possible to link this imformation. ...Show All
Visual Studio Express Editions filling a datagrid
Hi, I am doing the following: Private Sub fillgrid() Dim dr() As DataRow = Me.databaseDataSet.Clients.Select("Client_ID = X") Me.DataGridView.DataSource = dr End Sub Works fine except for one thing, the datagrid shows extra database data fields with the following names: "RaowError, Table and HasErrors" What can I do in order to no display those rows TIA for your help nowhereman1960 I found this oder way: Dim datTable As New DataTable() datTable = Me.databaseDataSet.Clients.Select("Client_ID =X").Clone For Each row As DataRow In datTable.Rows datTable.ImportRow(row) Next Me.DataGridView.DataSource = datTable work well now it shows only the fields i c ...Show All
