steal's Q&A profile
SQL Server Could not Create Acceptable cursor
I have sql server 2005 to which a sql 2000 server is added as a linked server. when I try to update some tables in SQL2000 server from sql2005 server It generates the following error. "Could not generate acceptable cursor." Thanks in advance for the help I ran into the same thing just today. I was running an update query on a linked server. I added a primary key on the destination table and that handled the problem. ...Show All
Visual C# help with arrays
I have an application where I have two arrays such as: string [] array1 = { "one" , "two" , "three" , "four" }; string [] array2 = { "two" , "four" , "six" }; I am hoping that C# offers an easy way to compare the two arrays and return an array of those elements that are different (in this case, I would have a three-element array containing the strings "one", "three" and "six"). In PHP, it's as simple as (I may have the function name wrong, but you get the idea) differentArray = array_diff(array1, array2); I don't want to code all of the logic myself and it seems like a basic and useful enough function to be part ...Show All
Visual Studio Express Editions How do I change Location of an item when something happens?
How do I change the locaton of an item when a event happens I tried this and it didn't work: Panel1.location = new location (1,1) And how do I chang the picture(image) of a Picture box I tried this: PictureBox1.Image = New Image 'I dont now where to put the url and it says something 'like a event something Help You should probably stop guessing. Panel1.Left and Panel1.Top are the properties you can set, I believe. That, or X and Y. A Bitmap can be loaded with Bitmap.FromFile, like this: PictureBox.Image = Bitmap.FromFile("c:\myBitmap.bmp"); for example. ...Show All
Visual C++ Where shall I ask the quesiton about C? E.g. Question about how to generate different random numbers...
Dear all, I had one question about generating different random numbers. One piece of my code is as follows. Actually, because of the limited time, I don't think it can work. Its principle or algorithm is only to guarantee different values between generated values border upon/nearby. However, how to guarantee the value is different with all the previous ones, not only the border upon value. void initRandom() { int i,j = 0; for (i = 0; i < 100; i++) { random_numbers = rand() % 100; // Get random number. // Try to compare the value with previous ones. for (j = i; j==0 ; j--) { if (random_numbers[j] != random_numbers[j-1]) { break; } else { random_numbers[j] = rand() % 100; } } } } Do yo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3D Playing Cards ?
How would I approach a 3D representation of a playing card(s) If using a model, would 52 different models be required so that each card has it's own texture Can user primitives (i.e. 2 triangles to make a card shape) have different textures on each side What would be the best method for this I don't think this answered the question asked. The question is would you have 52 models that include texture definitions, or would you "skin" the model with a different face texture based on its value and store the textures separately associating them programmatically with the card at run time I'm interested in opinions on this as well, it may be easier programmatically to create 52 separate models i ...Show All
Visual C++ Problems in VC++ Directories
Hi guys I am a beginner in Visual C++ and i use Microsoft Visual Studio 2005 Pro version but i am having difficulties compiling a proggy i made. Whenevr i try compiling it i get the following errors: ------ Build started: Project: Zing, Configuration: Debug Win32 ------ Compiling... stdafx.cpp NOTE: WINVER has been defined as 0x0500 or greater which enables Windows NT 5.0 and Windows 98 features. When these headers were released, Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions. For this release when WINVER is defined as 0x0500 or greater, you can only build beta or test applications. To build a retail application, set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk to see if retail Windows NT 5.0 or Wind ...Show All
Windows Forms GUI for multimedia application
Hi I need to implement an application that shows recorded A/V streams and corresponding notes similar to Macromedia Flash Professional. There will be a timeline for video and notes - each note has a certain time code. Will I be able to implement such an application using Windows Forms Where can I find samples or tutorials for multimedia GUI designs Thanks! VS2003 - To add it to the toolbox. Add/Items... then click on the COM tab. The WMP activex should already be listed. You just set the axWindowMediaPlayer.URL to the file you want to play to use it. ...Show All
Visual Studio Express Editions Use button to change selected Textboxes to Readonly
I have successfully (with heaps of help from this forum) coded a button to toggle the readonly property on/off on one of my forms using the code below Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click For Each c As Control In Me.Controls If TypeOf (c) Is TextBox Then Dim currentcontrol As TextBox currentcontrol = c currentcontrol.ReadOnly = Not currentcontrol.ReadOnly '//Toggle readonly '//Change Formatting If currentcontrol.ReadOnly Then currentcontrol.BorderStyle = BorderStyle.None Else currentcontrol.BorderStyle = BorderStyle.FixedSingle End If End If Next End Sub ...Show All
SQL Server Is ProcessAdd done within a transaction mode?
Is ProcessAdd done within a transaction mode This question is very basic. When you do a ProcessAdd, is it within a transaciton mode I mean, if the ProcessAdd fault and stop when it meets a mistake, the records before the midstake will still be in the cube or not. Thanks. > But, the transaction your begin is in Sql server, not in Analysis Service I meant to start transaction in Analysis Services, not in SQL Server. It can be done with couple of lines of AMO script. ...Show All
Windows Forms Pagination DataGridView
Hi. I worked for several month using ASP.NET 2.0 With the GridView we had pagination support and with some help of sql server 2005 it's simple to implement it. My question is, how about with the DataGridView Is there any easy way to provide support for pagination I must display a large number of records and I it isn't a good idea to bind the grid with all the records that come from the Database. Thanks in advance for your help. Regards LS I guess this is where filtering comes in - selecting the records you wish to display either by filtering it from the SQL end or from the dataset/datatable SELECT method, to select records with a match and then showing it to the user in the datagridview ...Show All
Visual Basic Skipping lines in a test file
I routinely work with text files with well over 3200 lines of text. I am trying to write a routine that will parse the file and skip lines (example every 3 rd line) and save the new smaller text file. I am not a college kid trying to get someone to do his homework for him. I am just trying to teach myself to write simple programs that I find useful. I have 5 or 6 VB.Net books and have not seen this topic in any of these books or the net, does anyone have any tips or pointers to get me moving in the right direction I would like to thank everyone for the help. Without forum’s like this trying to learn the basics of VB.NET would be 1,000,000 times harder. I hope in the future I can absorb enough knowledge to give somethi ...Show All
Microsoft ISV Community Center Forums Excel Chart: How to change chart data source formula when object "Series.Formula" is too short?
How to change chart data source when Formula object is too short I know that: I can assign data source 1) Series.Values=Range(...) - suitable 2) Chart.SetSourceData souce:=range(...)... - suitable 3) Series.Formula/FormulaLocal="" - not suitable because string is too short I can read data source 1) x = Series.Formula/FormulaLocal - not suitable because string is too short The question is: How to read data source not using Formula object Jon, Thanks so much! I don't know how long it would have taken me to discover this technique. Thanks again!! Greg Shearer ...Show All
Windows Live Developer Forums Print Virtual Earth Map
Hi, I need to have a print function in my application which will print a Virtual earth map - current view details as image. if anyone knows how to do this, please share your thoughts on this. is it possible to save map into some image file or pdf -buddy No, VE is very much client side technology. This has great benifits in terms of reducing the load on your server and allowing your application to scale. If you want to process maps server side you should look at MS Mappoint. John. ...Show All
Windows Live Developer Forums Service to get polygon coordinates for boundary of a state/city by zip/geocode
Greetings. I need to get latitude/longtitude for the points of a polygon which describes state/city border. These coordinates will be used to mark an area on the map retrieved with VE service and for some other internal logic of our project. I guess this is out of scope for the VE. But maybe it's possible with some another service I've made a small research around MapPoint, but haven't found something that could help me. Thank you. Are you looking for a database of polygons for each state and city border Or are you looking for a way to draw these polygons on a map For the former, I'm pretty sure that data is available from various government agencies. It might be available in the MapPoint CD product, ...Show All
Software Development for Windows Vista HTMLHelp context popups
Sorry if this is slightly off-topic, but it is 'Vista UI Development' related. On versions of Windows prior to Vista, HTMLHelp's context popup windows have a 'translucent' drop shadow, albeit that it's achieved by a dot screen. Under Vista (RC1) the drop shadow appears to be opaque and black! To my eyes this is ugly, and out of keeping with Vista's emphasis on translucency, particularly Aero Glass. Are there any flags or settings that can improve the appearance of HTMLHelp popups Failing that might the appearance improve in a future version HTMLHelp is supposed to be the preferred Vista-compatible solution for context help. Richard. That's why I've decided to stay with Winhelp for the forseeable fu ...Show All
