drweaver's Q&A profile
Windows Live Developer Forums onclick location in Bird's view not working
If I trigger an onclick function while in Bird's View, the LatLong coordinates in the event object are null. It works fine in Road and Aerial views. ...Show All
SQL Server Report Builder and optional parameters
Hi, Is it possible to create optional parameters in Report Builder An *ordinary* parameter is created by marking a filter expression as "prompted". At run-time, the user will be asked to provide a value for this parameter (or accept a default value if it is available). This works fine. What I want is to let the user choose whether to provide a value, or leave the parameter empty. In latter case, the reports should not take the parameter into account and display all available data. Example: I have a list of products grouped by the name of the supplier. I want users to be able to see the entire list, or narrow it down to one supplier only. So I create a free text parameter that will contain a part of the supplier's name. I ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to build a mesh in runtime?
Hello everyone! I'm rather new to the XNA as well to this Forum, so please don't neglect my tricky thinking and poor language usage abilities :D. I want to take adventages of Content Pipeline, but I'd like to simulate it's work in runtime. I tried to understand the internal mechanism using Reflector, but the code unsuprisingly overhelms me. I need to build a mesh in runtime. MeshBuilder is nice, but it produces MeshContent as a result. How to simulate this design-time process in runtime This would make the debugging of custom importers much easier as well. I'd be grateful for any help and tips. p.s. Sorry if such a question has already appeared in this forum and I missed it. The XNA content pipeline, a ...Show All
.NET Development Error in executing parameterised query
Hi, I have a table Role in sql database wih following fields RoleID pk int Description nvarchar(50) I am trying to run a parameterised query using sqlcommand and exceutenonquery using following code but it is giving error " Incorrect syntax near ' '.\r\nIncorrect syntax near ' ": ------------------------------------------------------------------------------------------------------------------------------ SqlConnection objConn = new SqlConnection ( "Data Source=HDDLNTD6011180;Initial Catalog=TestDal;Integrated Security=True" ); objConn.Open(); System.Data. IDbCommand cmd = new SqlCommand ( "UPDATE [Role] SET [Description] = WHERE [RoleID] = " ,objConn); IDataParameterCollection cmdParams = cmd.Parame ...Show All
SQL Server Tabs missing from Reporting Servers home page
When I am trying http://localhost/Reports/Pages/Folder.aspx I am not seeing the all too familier "Contents" and "Properties" tabs along with deployed reports. Once in a while, I see that, but most of the time it is missing. Reporting Services got installed correctly though. It shows a very blank-ish Home page. Yep. Looks just like that. It worked after I installed SSRS and since then only time has passed, no changes that I can think of that would possibly have affected it. But now I get that same screen everytime. I can't access - http://localhost/reportserver - either but in that case it's a permissions issue for IUSR (network service i believe ) . ...Show All
.NET Development Missing Schema in Serialization and Missing Null Properties
Hello I am adding an object into a DataSet using the following method: protected DataSet objectToDataSet( object myObject, System. Type [] extraTypes) { //Declare DataSet, MemoryStream DataSet ds = new DataSet (); System.IO. MemoryStream ms = new System.IO. MemoryStream (); //Serialize System.Xml.Serialization. XmlSerializer xs = new System.Xml.Serialization. XmlSerializer (myObject.GetType(), extraTypes); xs.Serialize(ms, myObject); //Add to DataSet ms.Position = 0; ds.ReadXml(ms); //Return return ds; } I have two problems with it. First, every Column of the DataSet Table has its DataType = String even though in my object I had int, double, ...Show All
Visual Studio Team System Locking out TFSSetup account
I'm wondering if the account used for TFSSetup can be changed Let's say a user with admin privileges for a particular computer (say JohnDoe) installs TFS. The person associated with that JohnDoe account leaves the company and this account needs to be locked-out or deleted. Can another domain user account be substituted for the JohnDoe account for TFSSetup Or, is it just a matter of running Team Explorer with a TFS admin account that is also an admin for the computer and on the domain Feedback on the TFSSERVICES and TFSREPORTS accounts would be nice too. Originally, these were real-live-user accounts, if these people leave we don't want to have to keep those accounts around. Brilliant. Thanks. Don't know why How to: Assign a New ...Show All
SQL Server Limiting the Records in SELECT Statement
Hi.. As everyone knows that there's a keyword in MySQL that is used to limit the records in SELECT statement as SELECT * FROM Table LIMIT 40,10 means that select from record 40 to onward 10 records. In SQL Server it is a long way with nested select ... can someone provide an alternate or we have to use the Nested SELECT Thanks Yes U can specify select top n * from tablename similarly u can also specify top n percentage in a select statement. Check for Keyword top in sql Help ...Show All
.NET Development process.StartInfo.Arguments
I am trying ot run this programm from a windows form application but at command line it stops with message: "Reading passphrase from file descriptor 0 ..." and nothing happens. Same program run fine on command line with follwoing line: C:\Program Files\GNU\GnuPG>gpg --passphrase-fd 0 < c:\gnupg\passphrase.txt -o c:\HIF\Clock.swf -d c:\gnupg\Clock.gpg This is a command to decrypt the file using GnuPG encryption and decryption program. Any help is most welcome. Thank you. Bharat Gadhia. ================================= public void Decrypt() { string strArg = @" --passphrase-fd 0 < c:\gnupg\passphrase.txt -o c:\HIF\Clock.swf -d c:\gnupg\\Clock.gpg"; process.Start ...Show All
Software Development for Windows Vista ASP.NET and WWF
Hi, I need to build anything like this :-) Scenario: 1) The user clicks in a button and start the workflow. 2) The workflow executes an activity and stop waiting for a action user. 3) In any moment the user access a asp.net page and list all workflows pendent and approve and cancel the workflow. 4) The stoped workflow is notified and resume the flow. I'm thinking in use the mechanism to save and track workflows in database, but I don't have idea about how to do this communication between asp.net page and workflow already started. May I to do it using events Thanks in advance. Andre same old problem =( my sendMailActivity and it's workflow are console applications (not libraries) so i cant make any reference t ...Show All
Software Development for Windows Vista Create process as another user with full token
My application (an installer) needs to do some steps as another user. LogonUser /CreateProcessAsUser as described here http://msdn2.microsoft.com/en-us/library/aa379608.aspx and it basically works , except that token returned from LogonUser is filtered, and I like to have full token. Also , I found that passing LOGON32_BATCH_LOGON to LogonUser (instead of LOGON32_INTERACTIVE_LOGON) would give me the full token. The question is - what to do if user does only has the right to logon interactively I did some experiments with GetTokenInformation to get the linked token as passed linked token to CreateProcessAsUser(), without much success - got ERROR_BAD_TOKEN_TYPE. I can get around by temporarily allowing batch logon for my user , bu ...Show All
Visual Basic How can I get a String() array allocated by an unmanaged DLL into VB.Net?
Folks; Under VB6, I called a (flat) third-party DLL with an un-allocated array of strings. The DLL then allocates the array, and loads each entry in the array with a string. The function prototype for this DLL call is: ----- Declare Function GetSampleRateSettings Lib "Vlink.dll" (ByRef Settings() As String) As Long ----- In this DLL, the 'Settings()' array is allocated, and each of the entries in the array is filled with information. When the DLL function completes, the caller then Ubounds() the array, and picks the array apart for the strings it contains. Works great. In VB6 code, the function is used thusly, ----- Dim tmpStringArray() as String If (GetSampleRateSettings(tmpStringArray()) = AP ...Show All
Visual Studio 2008 (Pre-release) Why WCF Serliazes messages in a diffrent way than specified in the Service Contract?
I have encoutered this problem because of the way WCF serializes messages. (WCF does not follow what the Service Contract says!!!) Hence I get an error when I do this (from my IClientMessageInspector. AfterReceiveReply): MarketValueOfPortfolioResponse objMsg = msg.GetBody< MarketValueOfPortfolioResponse >(); This is because WCF wraps the message Elements with <<OperationName>>Response (e.g., GetMarketValueOfPortfolioResponse) and <<OperationName>>Result (e.g., GetMarketValueOfPortfolioResult). Could you please advise me on how to get WCF to NOT to add the above and instead use the MessageName (e.g., MarketValueOfPortfolioResponse ) specified in my Data Contract. My Da ...Show All
Visual Studio Express Editions WebBrowser non event
I have a problem with WebBrowser when I navigate to a URL where the document doesn't complete under certain circumstances. First, the code... Dim wb As New WebBrowser wb.Navigate(URL) Do Until wb.ReadyState = WebBrowserReadyState.Complete MsgBox(wb.ReadyState.ToString) Loop MsgBox( "Finished" ) It never exits the Do Until loop unless I have the msgbox(wb.readystate.tostring) line in there. This seems to allow the application to do events. I get the same problem using the document completed event (it never fires unless I have the MsgBox line in the loop). I am using this code within a class and I can get it to work if I put it within a form class because I can put My.Application.Doevents in the ...Show All
Visual Basic How to add Icon to class library using VS2005 IDE
Hello All developer Who can tell me how to add an Icon to Class library project using Visual Studio 2005 IDE. On the property page at the application Tab the combo box where we can select the associate icon is disable when the project type is library class. Is there any way to enable it ,or we should programmatically code to add the Icon to the developed DLL. Regards In addition, if you want the icon to be compiled into your assembly, as opposed to having to be shipped separately, make sure it is an embedded resource. After doing as Dman1 says, then find the icon in solution explorer, hit F4 and set the 'Compile' option to 'Embedded Resource'. ...Show All
