Software Development Network Logo
  • VS Team System
  • Game Technologies
  • Visual C#
  • Windows Forms
  • .NET Development
  • IE Development
  • Visual Studio
  • Microsoft ISV
  • Windows Vista
  • SharePoint Products
  • Visual FoxPro
  • SQL Server
  • Visual C++
  • Audio and Video
  • Visual Basic

Software Development Network >> dmadrian's Q&A profile

dmadrian

Member List

Sweeps78
mixxie
Wasim
Sumit Bhatnagar
mtm81
Dvlnblk
Vipul211890
FernandoLeite
EvilOneSD
hschlicht
J. Aldrin
MRaman
Raphael Pina
veep
Zaid Omar
JohnWP
sam-pan
Raffaele Rialdi
kingmissel
Nilesh Ingale
Only Title

dmadrian's Q&A profile

  • .NET Development [WSE] Hosting an ASMX web service in a Windows Application over http

    Hi, I'm actually trying to host a Web Service in a Windows application with Windows Services Enhancements 3. I followed this tutorial to implement it on tcp for a first test : http://msdn.microsoft.com/library/default.asp url=/library/en-us/wse3.0/html/a59d232c-53a3-401f-82e5-2e49588923b9.asp but I can't use the " Add Web Reference " method to import my web service, so I use the WseWsdl tool, that sends me a " Destination Unreachable " when the soap receiver is configured with the " localhost " address. So I use the name of my machine to reference the web service and, in this case, the WseWsdl tool generates me the proxy, but I've got an exception while calling a remote method (the helloWorld method) : System.InvalidOperationException wa ...Show All

  • SQL Server Sorting or Ranking a DRILLTHROUGH query

    Hi, I have an Excel application that is being used to DRILLTHROUGH into a SQL Server 2005 Analysis Services cube. I want to give users the option to just see the top 20 results from the drillthrough. To do this I have identified 3 options: 1. By adding some type of rank or sort clause within the DRILLTHROUGH MDX query. 2. By sorting the ADO recordset that is returned, and only outputting the first 20 records. 3. By outputting the entire recordset into Excel, then sorting the values with VBA code. Currently I am using solution 3, which is the worst solution (very slow). I do not know how to sort/rank within a DRILLTHROUGH MDX, or if it is possible at all, and I am having trouble using the ADO Recor ...Show All

  • SQL Server Will the views generated by Database Engine tuning Advisor..

    Hi I have ran SQL Profile to monitor my instance and subsequently ran the Database Engine tuning Advisor. It came back with various view and index recommendations of which i implimented. Will SQL Server automatically use these views or will I have to figure out which query the view was written for and then re-write my query to use the view Or are these views like Oracle materialized views where the optimizer will use them rather than the query tables if it thinks they will perform better For example CREATE VIEW [dbo] . [_dta_mv_10] WITH SCHEMABINDING AS SELECT [dbo] . [BRAND_PERMISSION] . [BRAND_ID] as _col_1 , [dbo] . [BRAND_PERMISSION] . [PERM_FLG] as _col_2 , [dbo] . [EMAIL_PROFILE] . [INVALID_FLG ...Show All

  • .NET Development Dataset Current Row Position

    I am programatically creating a dataset with a table and need to know the current row number I am on before doing something else so I can get back to it. I have no controls bound to this dataset/table and would prefer to do everything in program. In the old days of recordsets I just used to get the bookmark of the current record and then go back to that bookmark. I have searched and can't find how to do this and I know it is probably really simple. Thanks Hi Thanks for your reply, it works. I though do not always make use of bound controls, since there are too many processes running in the background. I made a small dummy app just to test and it worked fine, so I will try doing it the same way f ...Show All

  • Visual Studio 2008 (Pre-release) Problems with metadataResolver after upgrading to RC1

    Hi,   I have a service that is pretty simple. I generated a proxy class using the svcutil and supplied the the type of contract generated by the tool to a call to MetadataResolver (E.G. MetadataResolver.Resolve(typeof(IMyService), http://localhost/tMyService/Mex ) to look up the avaliable endpoints. This calls fails with the message ""The given key was not present in the dictionary." Stack trace:    at System.ServiceModel.Description.WsdlImporter.ImportWsdlBinding(Binding wsdlBinding, ErrorBehavior errorBehavior)    at System.ServiceModel.Description.WsdlImporter.ImportEndpoints(Binding wsdlBinding)    at System.ServiceModel.Description.WsdlImporter.ImportEndpoints(ContractDe ...Show All

  • Software Development for Windows Vista How to manage delays in a state machine WF

    Hello, I am developping a web application who host a state machine WF.One state of the WF is wainting for an event. If this event doesn't occur before a predefined delay, some business logic is going to be executed. My problem is How to define this delay. In other words , how to define a delay for the WF Process, if WF Process remain more than the delay in one state , some business logic is going to be executed. Thanks in advance Easy enough.. in your state, drag two EventDriven activities. Rename these 'HandleEvent' and 'Timeout' respectively. In 'HandleEvent' you handle the event you are waiting for by adding a HandleExternalEvent activity (or whatever other trigger you need). In the 'Timeo ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Why does everybody recommend using OnPaint as your main app loop?

    In pretty much all the tutorials I've ever seen, everyone recommends using OnPaint as your main game loop as this plays nicely with windows and "one or 2 fps won;t impact your game." Well, if you put your code in a while loop in the main form load event, and add a "application.doevents" it still plays nicely with windows -- perfectly, in fact. So do you gain a few measly FPS No -- in fact you gain a whopping 25% FPS increase!!!! On my video card i go from 2160 FPS average to 2880 FPS average. So what gives That difference could make or break a video game, and it's hardly the "few fps" I've seen mentioned. What is everyone else using Are there any caveats to this approach Does this difference scale (EG I''m ju ...Show All

  • Visual Studio Tools for Office Serialise Building Blocks and 'load' them while 'online'

    Visual Studio in conjunction with Word 2007 gives great opportunities to automate building of documents from XML 'components', but it all seems only possible 'offline', i.e. when the document is closed. I would like to get XML fed into the document (or attached template) while it is open, for example, to update not just content, but also the structure of the document at a user's request, interactively, for when a brand new disclaimer is developed and the user decides to adopt it. Currently, XML properties are read only at runtime and building blocks can only be .Added from ranges (i.e. 'recorded like old autotexts). Can anyone please correct me if I'm wrong or let me know of a possible solution Thanks so much for any help! ...Show All

  • Visual Studio Express Editions Find out which sub I am in..

    Hi folks, is there a way to figure out the name of a sub while inside it Like, in a form, Me.Name yields the name of the form For debugging I would like to create a message that, in case of an error, tells me what the error is and in which sub/function it happened. Ofcourse I can add the name to the error message by hand, but it would be more convenient. Example Select Case Err.Number Case 13 : MsgBox(Err.Number.ToString & " in CalculateEquivalentStress" ) <<< NOT Case 13: MsgBox(Err.Number.ToString & " - " & thissub.Name.ToString) <<<< something like this End Select Suggestions welcome! Thymen Isn't ...Show All

  • Visual Studio Team System DeploymentItem attribute, empty folders are not deployed to Out folder

    Hi I'm converting some NUnit tests to VSTS. I need a copy of a folder structure to test against, so I'm using DeploymentItem attribute on the test methods that need it. I noticed that any sub-folders of the deployed folder that are empty are missing from the Out folder. Does it only deploy folders if they contain files How can I make it include empty folders too Thanks Ian Hi Ian, You are right, if you have empty folders, they will not be deployed; I do understand your scenario and I think it makes sense wanting empty folders to be deployed. The workarounds for you would be 1. adding a token file to those directories so that they get created always, 2. modify your tests to handle the situation ...Show All

  • Visual C++ Alpha Blending problem.

    I have a problem with my project. A panel that I need to use requires alpha blending to be off but the particle system requires alpha blending to be on at the same time. Is there any ways to solve the problem Once i disable the particle system, the panel works fine. The panel needs to use transparency. You can find multimedia, graphics, and DirectX related newsgroups here: http://msdn.microsoft.com/newsgroups/default.aspx . Please use this forum for general IDE usage issues only. Thanks. ...Show All

  • Visual C++ VC 2005 preprocessor output is always in ANSI

    I have noticed followings with VS 2005 C++ preprocessor (CL /E /EP /P) behavior. I think previous versions of CL worked differently, and in fact this is a blocker for us to user VS 2005 for our standrd build tool, since our build scripts are written so that they work well with the old behavior. i) CL can recognize that the input source file is in UTF-8 encoding only when you have the UTF-8 BOM at the beginning of the file. Without BOM, it believes the input file is in ANSI even if the file is actually in UTF-8. ii) CL /E /EP /P output data seems to be always in ANSI, even if the input source file is in UTF-8 encoding. I can see " " characters if the source file contain character that cannot be expressed in the output ANSI f ...Show All

  • Visual Studio Team System MS project defualt colums

    I have modifed the xml mapping file for MSProject for Scrum 1.1 Now I'd like to have the new mappings I've added to show up by defualt when I export a WI set to project. To date, I get the same defualt colums each time I export. I have insert the colums I want to see and hide the ones that I do not. Example, I added the mapping to Conchango.VSTS.Scrum.SprintNumber (pjTaskTest17) uploaded the mapping back to the project via tfsfieldmapping upload tool. Now I'd like to see the sprint number colum show by defualt when I export to Project. furthermore, is there a way to create a template that has the colums I want to see, then link that to the query I want to run Unfortunately you cannot customize Team System Gantt, Team S ...Show All

  • .NET Development Sleep() api in MainThread...?

    New to C#...coming from C++ and MFC.... Is there a Sleep() api/method to put the main thread to sleep for so many milliseconds Thank you As has been pointed out, there is the Thread.Sleep() method; but, it's generally misused. If you're looking for thread synchronization this isn't the method to use. If you're looking to put a thread into a wait state, this also isn't the method to use. Only if you want your thread to block and not be able to do anything else for a minimum amount of time (generally in 10-15ms increments, the system doesn't have a millisecond granularity; despite Sleep() taking an integer for the number of milliseconds to sleep for). There are many drawbacks to using Sleep() that generally aren't considere ...Show All

  • SQL Server creating a new database in SQL 2005

    I have been trying to create a new database in SQL 2005 and each time I do so, it brings tables in from other locations. Any suggestions Dave I had created the database by right clicking on Databases and selecting new database. I did look at the model and somehow it had been populated with the information from a database the instructor had provided for us earlier, that is I had connected it to the database. Not sure how the tables got in the model though unless there was an SQL statement that pointed it that way. Thanks for the advice. Dave ...Show All

©2008 Software Development Network