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

Software Development Network >> Elaine.Wong's Q&A profile

Elaine.Wong

Member List

Variar
Eric_Sun
Stephen Ellis
pOopOo
Luv Walia
NewbieDude
wanderingbob
Fille
KevinDSE
dseifert
Daren Coles
Ademaure
chicagoclone
Mikhail Kazakov
SRbake1311
Robert Kozak
Sworder
Corres
DQM
Mark Rendle
Only Title

Elaine.Wong's Q&A profile

  • Visual C# casting

    hey all, Just a quick question about casting and how it works. if is do String s = (string)someobject, what happens in the background i.e. some method is invoked intternally to convert the object to a string or what How does this work I tried to find the answer but no luck. Please help . Thanks sunny Hi it's not some hidden method... i'll try to give you an explanation that's not really technical but which can give you an idea of what i mean :) at runtime the type of the object is known... the object in itself is accessed via a "type interface" (interface meaning the collection of methods, properties, etc; this is not the c# interface) which specifies what methods, properties and so on you can access o ...Show All

  • .NET Development Database file tied up after connection closed

    Hi, I am writing an application that: 1) downloads a database file 2) connects to the database file that was downloaded and then updates another database with it Once the update is done, I want to delete the downloaded file but I cannot seem to do this - it seems to be tied up by the sql server express instance Is there any way to be able to free up this file I am using VS2005 on a pc with windows xp pro. thanks -Barb the databases are each in their own physical file the app.config has 2 connection strings - one for each database I have reduced the program to have no other database activity except to try and "drop" or free up the database. It seems that as soon ...Show All

  • Visual Studio ReportViewer Cause error after deploying the webserver

    Dear all, When I deploy my web project into my Web server,everything is work,but except the report does not work properly. The config of my webserver is win2003 with IIS 6.0.And I make use of the report in the local processing mode and set "sessions state mode=InProc","cookieless mode=UseCookie"on the page of the state management in IIS. The error message is showed below Server Error in '/' Application. We are investigating this issue and I will report back as soon as I have more information. For information on the Visual Studio 2005 Service Pack, please look here: http://msdn.microsoft.com/vstudio/support/servicing ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA in Internet Explorer?

    I was surprised to find out that XNA doesn't work in Internet Explorer as a WinForm Control. I know I must be smoking crack, but somewhere a long the line I got the impression that XNA would enable a 3D environment in Internet Explorer. If we can put Ink on the Web, http://www.code-magazine.com/Article.aspx quickid=0512062 , then I think we should be able to put a 3D environment on the web as well Anyone know of a way to get XNA or Direct X working as an element of Internet Explorer Thanks, Johnny yes you need a webserver remote or local yes i have allso converted to xna and is works i can all so run xna inside media player like a plugin ha.ha.ha i have to clean up the source for xna a ...Show All

  • Visual Studio Express Editions Random Number Generation

    Hi, Apologies for the simplicity of this question, but I am very new to VB. I am using it to program Psychology experiments, but am having difficulty. I want to be able to randomise the time between 2 trials, to either 100ms or 1000ms. I only know how to randomise between a set of numbers, not specific numbers that are not concurrent. For example, for multiples of 500ms I used to use the code: c.setattrib "Durat", Random(1,4)*500 But how do I just randomise between 100 & 1000ms ONLY. THANKS! I am using the code in conjunction with E-Prime, an experiment programming software. The number cant be an arbitary one as it needs to be generated during the experiment itself (ie whilst ...Show All

  • .NET Development No row at position 0.

    I am trying to show/hide a control based on the value of a boolean DB field with the code below: Dim dsAdmin As New DataSet Try DBCon.ConnectionString = csWBoard DBCon.Open() userAdpt.SelectCommand = New OleDbCommand _ ( "SELECT admin FROM [User] WHERE (userID = '" & userName & "')" , DBCon) userAdpt.Fill(dsAdmin, "User" ) If dsAdmin.Tables( "User" ).Rows(0).Item( "admin" ) = True Then mnuAdmin.Visible = False Else mnuAdmin.Visible = True End If DBCon.Close() DBCon.Dispose() Catch ex As Exception MsgBox(ex.Message) End Try The field is of type Yes/No in my MS Access DB and the format property ...Show All

  • Software Development for Windows Vista not using release()

    Hi, In some of the directshow documents, the authors use release() method after they are finished with some interfaces. For example: // get next filter EnumFilters -> Next (1, & Renderer , & fetched ); Renderer -> EnumPins (& EnumPins ); EnumPins -> Reset (); numoutputpins = 0; while ( EnumPins -> Next (1, & InPin , & fetched ) == S_OK ) { InPin -> QueryPinInfo (& pinfo ); pinfo . pFilter -> Release (); InPin -> Release (); if ( pinfo . dir == PINDIR_OUTPUT ) { numoutputpins ++; // we can jump out if we found an ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Game Components - help!

    Hello, I'm just starting out with XNA (and it's the first language I've tried that doesn't include the word basic...) but have found myself a bit stuck whilst trying to use GameComponents. I followed the rather excellent tutorial for creating a tile engine at XnaResources and now have a fully functioning game component that draws & controls my tile map to screen - my idea being to create a simple 2D RPG, but first I want to build a map creator/editor that uses the tile engine to display & scroll the map. So far so good - I've written a (very) basic interface that allows me to enter the name of the text file that stores the map data and then displays it on the screen. But where I've hit a wall is that anything I do in my main game i ...Show All

  • .NET Development Sql syntax error due to parameter

    Hi all, I'm a beginner in Ado.net and met this problem which i could not solve nor find on the net. The following is my code; Hi, My best guess would be in the value of your parameter. And also the % part in your sql statement that is typed after your parameter: Where clnt_CompanyName like ' @clnt_CompanyName% ' I suggest placing your '%' in the value of the paramter instead. Dim para = oledbDaCT.SelectCommand.Parameters.AddWithValue( "@clnt_CompanyName" , cmbClients.Text) New Code: Dim para = oledbDaCT.SelectCommand.Parameters.AddWithValue( "@clnt_CompanyName" , cmbClients.Text & "%") Also, don't forget to remove the '%' in your sql statement... cheers, Paul June A. ...Show All

  • Visual Studio Express Editions Matrix implementation problem

    Hi everyone, I am implementing a matrix program which create matrix according to the values on a file and write to or read from files the values of the matrix. However, since I am not able to compile my program, I would like to ask you that whether my class si logically correct and whether it gives a compile time error or not. If there is unexpeted situations in my code, would you please help e to fix them class SymmetricMatrix { public: int index1; int index2; int **matrices; /* * Constructor that initializes an empty matrix with a given size. */ SymmetricMatrix(const int matrixSize){ size = matrixSize; matrices = new int*[size]; for(int a = 0; a < size; a++) matrices = new int[size]; // assigni ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Visual C# Express gotcha

    I am used to full blown Visual Studio 2005 but I decided that I'd play with Visual C# Express so I could better get a feel for that IDE since this is the environment for XNA Express. Just so you all know, when you create a project in C# Express it doesn't get saved to disk until you explicitly tell it to save or close the project. Amazingly even if you compile and run the new project it still won't be saved to disk. The upshot of this is that if the IDE crashes or gets terminated unexpectedly there doesn't seem to be any way to recover the project or the files you were editing. Twice I ended up losing the entire project I was working on because of this. I searched the entire disk to try and find my files and couldn't. The workarou ...Show All

  • SQL Server Nulls / Numerics and Flat File Source

    Hi, I've got a csv file which contains DT_CY fields which can be null. I set the "Retain Nulls in Source" flag but the flat file source still throws a conversion error at runtime. I had to set the error disposition to ignore errors for the nullabel numeric fields. Is this expected I checked and there doesn't appear to be anthything wrong with the source file (I initially suspected that maybe the null fields contains whitespace characters or something odd). Dave PS Annoyingly the preview works but then I get a runtime error, the preview obviously doesn't to data conversions ...Show All

  • Software Development for Windows Vista Suspend on WorkflowInstance

    Hi, I would like to know the behaviour as far as the execution of the Activity is concerned, when suspend on the workflowInstance is invoked. say, when the activity is in Executing State.. Giri Hi Giri, If suspend is called on a workflow instance, the workflow will pause execution as soon as the suspend is processed (i.e. when the workflow yields the thread). Suspend essentially means that the workflow's scheduler queue will not process any work items until the workflow is resumed - so it just remains in memory in an inactive state. -Angel ...Show All

  • Visual Studio Express Editions Database Access

    Hello, I am just starting out using Visual Basic 2005 Express and I was woundering if anyone out there can point me to an example of creating a database, adding a row or record to the dataset and saving the row back to the database. Thanks alot. Check out the code samples here: http://msdn.microsoft.com/vbasic/downloads/code/101samples/ ...Show All

  • SQL Server Installing SQL SERVER 2005 Enterprise Edition On Windows XP??????

    Hi, I brought the MCTS Sql Server 2005 Implementation and Maintenance,Self paced training kit recently but i cant get my hands on the required OS for SQL Server 2005 Enterprise Edition which comes with the book. (Too Expensive!!!!!!) Is it OK to intall it on Windows XP Will I encounter any problems Many thanks Uma Enterprise Edition won't install on XP. You can install Developer Edition on XP and get the same functionality as the Enterprise Edition. Alternatively, you can create a Virtual Server image that is running the compatible OS version and then install SQL Server Enterprise Edition into that. ...Show All

©2008 Software Development Network