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

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

Carver42

Member List

Miguel Rion
Patrick.I
MerleN
jackli_0112
RamyaP
julial77
xlordt
Xi0N
spotl
daxu
emailAtul
kwirky
sandyrae
madxna
Alexei_shk
Senthil Nathan.S
Rudemusik
wuyueduzun
Psiclonik
Bill Tubbs
Only Title

Carver42's Q&A profile

  • .NET Development Asynch Web services???? WTF!!!

    Sorry bout the title but I am getting pretty flustered. Essentially I am trying to find a simple answer. I am currently trying to develop a WS interface using... VS2005 WSE 1.0 I know weird combo but that is because IBM refuses to support anything else (DIME). Anyway I am trying to figure out how to do a web service Asych and everything I have read says I need a line similar to service.HelloWorldCompleted += new HelloWorldCompletedEventHandler(this.HelloWorldCompleted); However, this won't compile cause the WSDL doesn't make a function called HelloWorldCompleted. Does anyone PLEASE have any ideas thx P.S. The full code Imports testAsych.localhost Public Class Form1 Private Sub Form1_Load( ...Show All

  • .NET Development system menu doesn't display

    Hi, In a certain application it's required that I can make use of the system menu. I mean the menu which usually pops up after a right mouse click on the top bar of a window and which lists options as: minimize, maximize, close etc. However on a certain form I don't get this system menu after right clicking on the top bar. Just nothing happens. I haven't made any click events or other events that could interfere. I also see no difference with other forms in which the menu DOES show show up after right clicking on the top bar. Any ideas They would be greatly appreciated!! It sounds really a strange behavior, Are you having this on all forms in your application or only one form Secondly try to compare prop ...Show All

  • Visual C# How can I rename a file in C#?

    I realize this may sound like a pretty dumb thing to ask but, I just finished the Online Help and as a result am more confused than when I started! I went to the C# Help, set the language filter to C# found the "RenameFile Method", noted that it was a new feature of the 2.0 Framework saw the syntax was in C# . . . and that was it. Everything after that is in Visual Basic, even the Example, which wasn't very clear at all: Example This example renames the file Test.txt to SecondTest.txt . Change " C:\Test.txt " to the path and file name of the file that you want to rename. The Online help, in this case wasn't very helpful. I would really appreciate any assistance in this. I clicked on the availa ...Show All

  • SQL Server Sorting a Matrix on the Rowtotal

    Is there a way to have a matrix sort his rows based on one of the total-values of the row Ex Col1 Col2 Col3 Total Row1 10 25 35 Row2 1 10 9 20 Row3 2 2 2 6 Kind Regards Yes you can do this. Let's assume the matrix row group is called "RowGroup". Edit the RowGroup, go to the "Sorting" tab of the dialog, and add a sorting expression based on an aggregate similar to the one you are using in the matrix cell: =Sum(Fields!A.Value) -- Robert ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Problem initializing a Window...

    I am getting this error: error C2440: '=' : cannot convert from 'LRESULT (__stdcall demo::GameWindow::* )(HWND,UINT,WPARAM,LPARAM)' to 'WNDPROC' WNDCLASSEX wnd_Structure; // this is the line of code that is generating the error wnd_Structure.lpfnWndProc = &GameWindow::OurWindowProcedure; the OurWindowProcedure is defined like this: LRESULT CALLBACK GameWindow::OurWindowProcedure(HWND han_Wind, UINT uint_Message, WPARAM parameter1, LPARAM parameter2) The strange thing is that I am refactoring the code to create the GameWindow class and it was working before! It was still a LRESULT CALLBACK function! Any idea please This is actually a C++ compiler spec. The reason is because member functions always re ...Show All

  • Visual Studio Express Editions How to find column date type

    How can I find column type if ( myTable.column.type() == Datetime() ) { convert ( myTable.column.value() , 'dd/mm/yyyy' ) } else ( myTable.column.type() == string() // or Can I use is, typeof, as if ( myTable.column.type() is Datetime() ) if ( myTable.column.type() typeof Datetime() ) thanks, you can use typeof (assuming the myTable is a datatable):   if (myTable.Column[ Index ].GetType() == typeof(DateTime)) {    //do stuff } ...Show All

  • Visual Basic Check for encrypted match.

    Have reposted as I have an idea what is wrong, below is the encryption routine that I am using, my problem is that every time text is encrypted it uses a different Key. So how do I use the same key so that when the scrambled password on file, is compared to the scrambled password entered they will match Function encryptStringToBytes_AES(ByVal plainText As String, ByVal Key() As Byte, ByVal IV() As Byte) As Byte() ' Check arguments. If Key Is Nothing OrElse Key.Length <= 0 Then Throw New ArgumentNullException("Key") End If If IV Is Nothing OrElse IV.Length <= 0 Then Throw New ArgumentNullException("Key") End If ' Declare the streams used ' to encrypt to an in memory ' ar ...Show All

  • Visual Studio Team System Code Analysis in VS2005 for Testers

    Hi Everybody, I've got a problem with VS2005 for Testers & projects with Code Analysis enabled. I've created the solutions in VS2005 for Developers and Checked them into TFS. Then I've checked them out on a machine with VS2005 for Testers and the solution does NOT build. I get this error The "CodeAnalysis" task failed unexpectedly. System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Build.Tasks.CodeAnalysis.GenerateFullPathToTool() at Microsoft.Build.Tasks.CodeAnalysis.Execute() at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projec ...Show All

  • .NET Development Object dieing after some idle time

    Hi, Need some help ragarding remoting . I have an application developed using remoting scneorio. I am using SAO singleton objects. My application is working fine. But when i left the application idle on client sie, (user machine and not server machine) say some half an hour, ,y application returns the error. I found that object is dieing after some idle period. Any guess why this is happening Thanks Vyanki Hi Vyanki, did you check out the document Gandalf referenced It sounds like your singleton is timing out, which is a normal part of .NET Remoting. If you want to control the singleton's lifetime you'll need to register a sponsor. When a lease is set to expire, we ask all the sponsor's if it's OK to coll ...Show All

  • SQL Server Data mining

    Well thank you so much for the reply of my question before. But i still have some questions : 1. I've made a data mining model using DSO and VB 6.0. And i found a listing programs like this : const adinteger = 3 const adwchar = 130 My question is what does the listing program above means 2. What kind of data type for adinteger and adwchar is there are OLE DB data type 3. In analysis manager, data mining model browser, especcially in content navigator for attribut, there will be Node total value, Yes value, No value and Missing value. My question is What does missing value means and what's the function of missing value I reaaly hope that anyne could answer my question. Thank you so much. 1: The adinteger, etc ...Show All

  • SQL Server VS pro install, SQL error

    Hi I signed up for the Empower program and have finally installed VS 2005 pro. I am first testing it out on a spare laptop, it has a fresh copy of xp sp2 and during install, I selected everything, however it says failed to install SQL express. I have tried several times to redo this through add/remove components however I get the same problem. In start > all programs, I have Microsoft SQL server group, so I really do not know what has happened. Also, from looking at the VS website, I was under the impression that sql server developers edition came with VS pro, and not the free express edition, so I am a little confused, unless this means that you just use the cd that came with the MSDN sub Also, I was under the impressio ...Show All

  • SQL Server COnfiguring Number of records per page?

    Is there a way I can specify how many records per page should be displayed > This is a very basic functionality that needs to go in the deployment at any cost for us ...any ideas. thanks Thanks Robert. This is what happened: If there were 60 records returned, I got 3 pages (which i want) but on every page you could only see the top record I clicked List --> Properties --->Edit Details Group In the Group On dialog box, I inserted : =Ceiling(RowNumber(Nothing)/20) Any ideas on that Thanks. ...Show All

  • SQL Server Pattern matching with multiple values

    I want to check for multiple patterns in a particular column. For one pattern I can write e.g. SELECT * FROM <TablName> WHERE ColumnName LIKE '%abcd%'. My requirment is to select all rows for which column value matches with many patterns.I will fetch the patterns in a subquery e.g. (SELECT '%'+name+'%' FROM <TableName>) Any thoughts Thnx. Shallu.....That is correct syntax, but you need to see that the number of values is not static and all of them are stored as one parameter by ssrs. To simplify it for you, say SSRS is providing me with a string series like " '%val2%', '%val2%' ,'%val2%' ...". Now I need to use this to do my comparison. ...Show All

  • Software Development for Windows Vista DwmSetWindowAttribute and DWMWA_ALLOW_NCPAINT question

    I'm trying to draw on the NC area and it seems to have absolutely no effect. I found DWMWA_ALLOW_NCPAINT and hoped that this would allow NC Painting with GetWindowDC or GetDCEx. However, simply setting this property seems to disable the glass frame rendering - I end up with a solid white area instead (although the drop shadow and "glow" of the min/max buttons remains functional). Anyone know if I'm missing a vital step here Here's one solution I came up with to work around these problems and retain the look & feel: http://www.codeproject.com/useritems/ActiveButtons.asp ...Show All

  • Visual Basic Howto Drag and Drop a file list to another app (e.g. Qery analyser)

    Hi I'm trying to enable a VB.Net 2.00 app to drag a list of files FROM a listbox of file names (an example is the FileSystemSample) to (e.g) an open Query Analyser window, Explorer window or any other drop enabled application. I can find plenty of example on draging into my app, but none the other way around. So far I have the following code with these problems 1. no feedback 2. no drop when mouse release over drop enabled app. 3. when mouse up my app simply selects the item originally mouse down over. <code> Private Sub LstFiles_MouseDown( ByVal sender As Object , ByVal e As System.Windows.Forms.MouseEventArgs) Handles LstFiles.MouseDown If e.Button = Windows.Forms.MouseButtons.Left Then ' I ...Show All

©2008 Software Development Network