Mark Goldstein's Q&A profile
Software Development for Windows Vista SimpleExpenseReport
Dear all, I tried to follow the instructions from the Windows SDK's Windows Workflow Foundation Tutorial section in order to create a sequential workflow sample. However, I got some trouble: For VB version: I got an error when try to compile code included in Exercise 3, task 1: Error 1 :Handles clause requires a WithEvents variable defined in the containing type or one of its base types. The line cause error is: Private Sub DetermineApprovalContact(ByVal sender As Object, _ ByVal e As ConditionalEventArgs) Handles ifElseLogicStatement.Condition I downloaded the TASK1.ZIP from the link supplied in task 2, also can't be compiled. Don't know why. So I tried the C# version. This time, I can finish Exercise ...Show All
.NET Development RemotingException
I'm getting a RemotingException error. I'm filling a grid control and error is shot when this statement is reached: y = grdA.AddItem(x, 0) Complete Code Public Sub FillGrid(ByRef a As String, ByRef b As String) Dim x As String Dim y As Short = 0 x = a & Chr(3) & b & Chr(3)).ToString y = grdA.AddItem(s, 0) grdA.Row = 0 grdA.Col = 1 End Sub The stack had the following data: System.Runtime.Remoting.RemotingException: Byref value type paramete ...Show All
Windows Forms Loading Image (Visual C# 2005)
Hey, I after these lines of code what should I put to make it load the image into a PictureBox openFileDialog1.DefaultExt = "*.gif" ; openFileDialog1.Filter = "Gif Images (*.gif)|*.gif|JPG Images (*.jpg)|*.jpg|TIF Images (*.tif), (*.tiff)|*.tif|PNG Images (*.png)|*.png|BMP Images (*.bmp)|*.bmp" ; openFileDialog1.InitialDirectory = "MyDocuments" ; openFileDialog1.CheckFileExists = true ; openFileDialog1.CheckPathExists = true ; Thanks :) Try this instead; pictureBox1.Image = System.Drawing.Image.FromFile(openFileDialog1.Filename) ...Show All
SQL Server grouping rows by customer
my source flat file has many rows per customer, but I need to transfer it to database with only one row per customer and accumulated sales (and probably do other calculations and lookups). I understand how to do stuff with derived columns, but how can I read source file first, calculate, group and then save to database As I understand, the script offers only processing row by row: Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer) Thanks Vlad The Aggregate transformation does more than Group By. You don't want to do this in script. You can do SUM, AVG, MIN, MAX with the Aggregrate Transformation. If you need to then do something else combine the Derived Column Transformation ...Show All
Visual Studio Express Editions Questions / Answers : Evaluation Outlines !!!
I am developing an ITS System , in the Evaluation Stage , can someone help me with the outlines for developing the evaluation : What is the most approciate way for storing the Questions and Answers : Multiple Choices , TRUE / FALSE , and any other Questions and Answers form and ... What is the best way for Representing the Questions and Answers to the Learner and ... Finally Thank you so much :) cverdon wrote: Hi, You need something like this: Table Questions: QuestionId QuestionText Table Answers: AnswerId QuestionId AnswerText IsCorrectAnswer To display the questionnaire, select all the data from the table questions and show all the answers linked to ...Show All
Audio and Video Development Drawing
Does ihdsim support the drawing features yet I tried several things but had no result. Also do the current players support drawing or will they with a future firmware upgrade I've tried from script: Drawing.createColor(200,210,190,255); Drawing.createPoint(960,540); Drawing.createPoint(961,540); Drawing.createPoint(962,540); Drawing.createPoint(963,540); Drawing.createRectangle(500,400,200,200); Also, the default size of the drawing object canvas is 1x1, so you'll need to specify a different size to get any meaningful images. You'll need something like the following Markup: < object type = " application/x-graphic " id = " graphic1 " style:position = &q ...Show All
SQL Server Teradata, SSIS OLE DB Source error (0x80040E21)
I am trying to use SSIS to pull data from teradata to SQL2005. 1. When setup ole db source, firstly i setup the connection manager. I tested the connection to teradata, it prompted Okay without problem. 2. then, there are 4 types of data access mode for selection. If I select view directly, it works fine for copy specific view directly. But if I select SQL command(or from variable), it will prompt an error msg as below Error at Data Flow Task [Source - Testing]: An OLE DB error has occurred. Error code: 0x80040E21. An OLE DB record is available. Source: "OLE DB Provider for Teradata" Hresult: 0x80040E21 Description: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if avai ...Show All
.NET Development C# ADO.Net - SelectCommand Property
Hi, I am trying to run the function below, private void btnQuery_Click( object sender, EventArgs e){ DataSet qDS = new DataSet ( "results" ); agentsTableAdapter.SelectCommand.CommandText = txtQuery.Text; agentsTableAdapter.Fill(qDS, "results" ); dgSpies.SetDataBinding(qDS, "results" ); } but getting the following error: Error 1 'QueryDemoProj.SimpleSpyDataSetTableAdapters.AgentsTableAdapter' does not contain a definition for 'SelectCommand' D:\Documents and Settings\Kevin\My Documents\Visual Studio 2005\Projects\QueryDemoProj\QueryDemoProj\Form1.cs 29 32 QueryDemoProj Can anybody help, please Thanks in advance for any help, Aldo. Hi there! First ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Textured cube rendered with BasicEffect and Effect shader
This code start from examples that you can find here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=694235&SiteID=1 by "pRtkL xLr8r" and "i made this". It show a textured cube rendered with BasicEffect (on left, with light) and with Effect shader (on right, not light). Not all faces are right textured. Press keys: Insert-Enter to toggle Full Screen/window mode; arrows, PagUp, PagDown, Home, Fine to move; Esc to exit. To dowload the project: http://tonigreco.spaces.live.com/ I hope it can help. Bye Toni Interesting, if I comment out the 3d render code I get the blue background. Add back in Draw cube with BasicEffect, I get a black screen. Comment that out and add back in Draw cube with Effect shader, I get the same black ...Show All
Visual FoxPro VPF 6: Problem sending the item from the combo to report designer
Hi all, I have a problem sending the data to the report designer after selecting the data from the pull-down combo. There is a field namely lbl_attname in the report designer. In Click procedure of the command button, if not(empty(thisform.Combo1.value)) lbl_attname = alltrim(thisform.Combo1.value) else lbl_attname = 'To whom it concerns”. endif I tried this code as above but it cannot work. Pls enlighten me. Thank you. Phrases like "it cannot work" is not helpfull. What do you exactly mean by that What happens Error message Maybe it's just the typo in your code having unmatching quotes and dot: 'To whom it concerns”. ...Show All
Windows Forms I can't get Timer to work...
I am using a timer in a form to make progress in a progressbar. I want the progressbar to complete in 10 seconds so I sett Maximum to 10000 and Minimum to 0. I init Value to 0 allso. private : System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { this ->smoothProgressBarControl1->Value = 0; this ->myTimer->Interval = 1; this ->myTimer->Enabled = true ; } private : System::Void timer1_Tick(System::Object^ sender, System::EventArgs^ e) { if ( this ->smoothProgressBarControl1->Value < 10000) { this ->smoothProgressBarControl1->Value++; } else { this ->myTimer->Enabled = false ; } } Now there is 1000 miliseconds on 1 second so there should be 1 ...Show All
SQL Server DImension depends on other dimesion
I have a parent child hierarchy in a table. Due to some requirements we need to create the same hierarchies for different years with different primary keys. i have data for 2005 and 2006 when i create a new parent chile dimension I am getting all 2005 and 2006 hierarchies. I have one more dimension where I list only years. Now I want to fileter the first diemsion depending on second dimension. I tried "depends on Dimension" property. it is not allowing me to save the dimesion at all. It is saying invalid parent child relationship if i remove the "depends on Dimension" then every thing is working fine except filtering. I need filtering of One dimesion from other. Pleas help!!!! Thanks ...Show All
Visual Studio 2008 (Pre-release) "Error receiving HTTP response" in WCF client application
I've build a very simple service in WCF. I've run the svcutil against the svc and generated the proxy and config. I've incorporated the config as the App.config in my windows client. When I attempt to make a call to the service using the proxy I receive this error message: "An error occurred while receiving the HTTP response to http://localhost:1671/Services/. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details." Has anyone seen this before Yes, i have seen this before when my Service was using NetTcpBinding and by mistake i was using a ...Show All
Gadgets Gadget Piracy
Vista hasnt been out for long but we are already seeing a big issue relating to gadgets which is piracy. I have already seen probably 5 examples of people taking someone elses gadget, making a few changes and re-releasing it. I have been developing widgets/gadgets for Mac OS X and Yahoo Widget Engine for 2 years now and i dont think i can even think of 5 similar cases in that time. As far as im concerned unless a gadget specifically states that you may modify and re-release it then those people are breaking copyrights. Just because you can view the source of a gadget that does not mean it should be considered open source in a typical sense. I've released more then 25 widgets/gadgets over the past 2 years and ive never had a proble ...Show All
Software Development for Windows Vista Vista Install Problems
Hi, I installed and used the first 64 bit beta without issue but the other day I got an email to download a second RC1 beta. Again I download the 64 bit version. This time I get an install crash nearing the last reboot and I have to start the install from scratch again. I've re ran the install 2 or 3 times and I keep getting this crash. I have been installing vista on a spare drive so if you want me to post a log/dump file no problem. As it is I have resigned to the fact that I cannot trial RC1. im afraid these are the incorrect forums for your question. These forums are for software development. Therefore, I have to advice you to repost your question to the appropriate communities: www.microsoft.com/communities Thanks ...Show All
