Robert3234's Q&A profile
Software Development for Windows Vista Vista and workflow
I just installed Vista beta2. I want to get windows wokflow started. Does anybody know how to install all software and do all settings Thanks, Jian Are you using Visual Studio Express Edition or do you have a fully licensed copy What is the exact error message you are getting Can you create a new workflow project in VS Please post links to the samples are having problems with ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do you pronounce XNA?
Is it X-N-A or is it Xee-na Just as it seems to fit somehow, the forum name should be "Game Technol o gies: XNA Build" ;) ...Show All
.NET Development arrays to sql server table
Using vb8, I would like to be able to programmatically save data in arrays to an existing sql server 2005 table. I've found tons of info on how to load db data into arrays but not the reverse. Can anybody offer some clues Not to be sarcastic, but if you know how to get an array out of a database, why can't you just do that procedure in reverse to get it back into the database If there is some part, specifically, that is confusing please post the relevant code for us to see. ...Show All
SQL Server Enable remote connections with an SQL server created with Visual Webdeveloper 2005
Hi there, I just recently started using visual webdeveloper SQL in general, and have been driven insane by my problem. I dont really know how to use the SQL express, but i need to enable remote connections on the database so that the membership and login will work. Essentially, i Build my entire website in visual webdebeloper 2005, and it works fine when i browse it. But when i upload it to the webserver, i find the the SQL database does not have remote connections enabled. Please tell me how i can enable remote connections, preferably through Web developer express. Thanks! Have a look at the KB Article , it goes through turning on Remote connections to the database server. ...Show All
SQL Server Flat File Source Problem...
I have a weird thing happening. I have an .csv file. When I try to load it into a table, I can do it easily in DTS 2000. But when I am trying to do it in SSIS 2005 with exactly the same settings (like Text qualifier, row delimiter etc.), I am getting an error: "The last row in the sampled data is incomplete. The column or the row delimiter may be missing or the text is qualified incorrectly." I looked at the file and it looks complete to me. What could be the problem P.S. DTS 2000 is on 32-bit Windows, and SSIS 2005 is on 64-bit Windows 2003 . Could that we a problem No, what strange is that those 2 characters ARE the last characters in the row (and each row), and there is nothing else there. Th ...Show All
.NET Development Issues with C# and HTTPS/SSL Connection
Hi, I am trying to read an HTML page from a secure (HTTPS/SSL) website. I have the traditional class that works perfectly with un-secure website. Whenever I try to connect to the secure website,the procedure call at: StreamReader sr = new StreamReader(HttpWResponse.GetResponseStream(), Encoding.ASCII); and returns the following exception message: base {System.InvalidOperationException} = {"The remote server returned an error: (500) Internal Server Error."} the headers of the server are: Headers = {Connection: keep-alive Content-Length: 2012 Content-Type: text/html;charset=utf-8 Date: Wed, 10 Jan 2007 15:42:09 GMT Set-Cookie: inetmbn=4006122250.35363.0000; expires=Wed, 10-Jan-2007 18:42:09 GMT; path=/ Server: Apache-Coyote/1.1 ...Show All
Visual Studio Team System Team Build fails with 0 errors?
I've noticed that in a Team Build, if you use a task like <Exec> with ContinueOnError="true" and it fails, even though the log at the end of the build says Errors=0 (the error was "converted to a warning"), Team Build still sets the status of the build as Failed when it clearly has succeeded. What gives I am going to create dummy targets that mach the names in the .targets file, and execute them all. Since they won't do anything, they should all successfully complete, and this I hope will trick the build engine into thinking it's successful. I'm working on that now -- I'll let you know what my findings are. Flexible isn't necessarily the right word... I guess the primary de ...Show All
Visual Studio Team System Having trouble deploying to the report server
Tried every combination with and without SSL, using reports and reportserver - cannot get it to deploy. Tried target folder the same name as my report project and the same name as my team project - still no luck - what am I missing TITLE: Microsoft Report Designer------------------------------A connection could not be made to the report server https://vstudio01:8143/reportserver.------------------------------ADDITIONAL INFORMATION:The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. (System.Web.Services)------------------------------The remote certificate is invalid according to the validation procedure. (System)------------------------------BUTTONS:OK------------------------------ ...Show All
Software Development for Windows Vista StateMachineTrackingService Missing
Hi I have tried in vain to get an instance of the StateMachineTrackingService using Beta 2. I have all the required namespaces but can unfortunately not get StateMachineTrackingService. Can someone tell me what I'm missing I can run some of the examples that use it. Please HELP I'm not sure exactly what you are trying to do here, but here are some ideas: 1) look at the ordering state machine which has examples in it for using the StateMachineWorkflowInstance class to view information on the workflow. 2) There are some bugs in this class in the Feb CTP. Try upgrading to beta 2.2 and see if that fixes them for you. 3) post your specific problem you are having and people will likely be more a ...Show All
Visual Basic How To Write Functions that return multiple values
I need help writing the header for a function that returns more than one values and diff types... for example this one returns a single value as Boolean Private Fucntion Truth(ByVal var, ByVal var2) as Boolean End Function ... Is Truth false Thanks. Would you happen to have an example of an Array Function It would help, because I don't know much. If not, thanks anyway. I was doing a function that searches a database... Function GetData( Date, Item) Return Price, Amount, Desc, etc. I can do all the SQL commands, I just need a compact way of returning values. I've already done the code...I just wanted to see if I could just put all into a fucntion... that's ...Show All
SQL Server Top-Variable-Case
Hi, I have something like the following in a stored procedure. SELECT DISTINCT top @rowCount a,b,c FROM tblA ORDER BY c DESC The @rowcount value is passed in by the user to the SP. It can be 0 or >0. Do I need to write two queries - one using the TOP keyword as above and another with no TOP as follows: IF @rowcount>0 SELECT DISTINCT top @rowCount a,b,c FROM tblA ORDER BY c DESC ELSE SELECT DISTINCT a,b,c FROM tblA ORDER BY c DESC Or...is there some other construct (such as CASE - which I tried but couldn't get to work) that can handle this condition-check from within the query Thanks much. Try this Declare @SqlQuery varchar ( 1000 ) Set @SqlQuery = 'Select ...Show All
Visual C# Make a File readable only by my application
HI, I'm developing a windows application in c# and i use video with DirectX. My problem is that i don t want the video to be readable by classic players and only by my program. I ve try to use cryptography but it take to long to charge the video. If anybody as an idea... Sorry for my english, and happy new year, Laura. Hi, Encryption will be easier and better way still i will suggest, If you want to do something else then another idea would be, - Put some "special thing" in your file header info and change the extension. The "special thing" will be interpreted by your application only and other application will not be able to interprete it so will not be run by other. Your ap ...Show All
.NET Development Yesterday's date using Java Script
Hi I want to validate whether the entered date in the textbox is lessar then todays date. How can i do this. Help Me Thanks Below is the code snippet function compareDates() { var now = new Date(); var today = new Date(now.getFullYear(), now.getMonth(), now.getDate()); var userDate = new Date("11/8/2006"); // Get user date in mm/dd/yyyy format if(today.getTime() > userDate.getTime()) { alert("User date is less than Today's"); } else if (today.getTime() == userDate.getTime()) { alert("Dates are equal"); } else { alert("User date is greater than Today's"); } } If you need more on Date Objects members ...Show All
Visual FoxPro Memory leak in COM Server when passing array data?
Hi, I'm trying to investigate why calls to our VFP COM Server seems to leak memory and hopes somebody can explain what is wrong. When following the memory consumption on the COM Server process instance in the Windows Task Manager the 'Mem Usage' explodes. I've created a scenario involving VFP and VB that seems to reproduce the problem. I'm using VFP 9 SP1 and VB 2005 (as included in Visual Studio 2005 SP1). The VFP program is very simple: DEFINE CLASS ComServer AS CUSTOM OLEPUBLIC FUNCTION PassArray( theArray[] AS Variant @ ) AS Boolean RETURN .T. ENDFUNC ENDDEFINE It has been build as a Win32 COM Server executable (comserver.exe). Because I've building from inside VFP9SP1 the COM Server is registered automa ...Show All
SQL Server how to write prediction query for two algorithms?
hi, Is it possible to use two algorithms together I need to write prediction Query so that its should both models having clustereing algorithm and timeseries algorithm. for example I am having student information.I ve to predict performance of students for certain period.The students should be classified by their types like rich kids,poorkids..like that.I need to predict the performance of the rich kids can anyone help Yes, it is possible, you can write a query that returns the students in the rich kids cluster, then use that query as input for the performance prediction query. The query should look more or less like below: SELECT T1.StudentID, Predict(Performance) FROM PerformanceModel PREDICTION ...Show All
