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

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

SweptSquash

Member List

su45937
Asday
RemcoJVG
ChandraP
Jon Stroh
Parker Lewis
Patrick8639
GLutz78
azound
Alex Ivanoff
jchau
huskerden
vaughanSkyblue
VinceExtense
perstam
qkhader
Chicken Leg Willy
Guido G.
Trophimus
hye_heena
Only Title

SweptSquash's Q&A profile

  • Visual C# how to return null from a constructor

    say, i a m trying to do something like: class something something(streamreader){ if (wrong format or end of file) caller receives null as result else build object from what has been read in file } i tried 'return null', but it says it can not do that since a constructor is 'void', so i can not place a return sentence. i'm not sure something like this.dispose would retunr a null, since the 'dispose' may be asynchronous (or something) i have the next alternative class something blah blah somehting(string) (build object from string, check if string==null or wrong format before calling) static bool checkformat(string) check to see if string is adecuate to build somet ...Show All

  • .NET Development .net, .mdb, and the framework

    I am a consultant and I have commissioned work from a programmer I have hired, the software is written in .net for Windows and is not web based. The problem we are having is causing us to pull our hair out. The problem is this: On the developers WinXP machine with 03 visual studio the application he wrote works phenomenally well. On my machine Win2K no visual studio the application he wrote works phenomenally well. The unfortunate problem is that the CLIENT has installed the same application multiple times (XP SP1 and SP2) and is consistently getting the table display errors, either to do with the database access or something to do with the draw routine. He has installed .NET framework 1.1 from MSFT multiple times but its always a no go. I ...Show All

  • .NET Development Static classes with codedom

    If I create a class using CodeTypeDeclaration, how can I make that class static Something like: CodeTypeDeclaration myType = new CodeTypeDeclaration( "MyClass" ); myType.TypeAttributes = TypeAttribute.Static; Unfortunately there is no TypeAttribute.Static (why Did anyone miss anything ), so the above code won't compile. How can I achieve this Thanks for any help. The CodeDom is language independent. A static class is a C# thing. Therefore you can't directly create a static class through the CodeDom. In fact you can't even set up the appropriate attributes to get it to work. A static class is really just an abstract, sealed class. However attempting to do this through the DOM will fail. Your o ...Show All

  • .NET Development Create Image in VC++ 6.0

    This is an out of time question, but I don't know any other way to solve my problem. What I need is a piece of sample code , in old VC++ 6.0 style, which creates an Image from a memory buffer containing image data (as those got from an IP camera). In VisualStudio.NET 2005 and C# this is done in 2 simple lines of code: MemoryStream mstr = new MemoryStream(imageBuffer); Image img = Image.FromStream(mstr); But I don't know how to do it in Visual C++ 6.0 The problem comes from the fact I want to develop an ActiveX control (unmanaged) to show the live video of an IP camera. I already did it in VisualStudio.NET, but this way the control can only be used with IIS, while I must use Apache or Tomcat as web server. Thanks ...Show All

  • SQL Server Report from prcedure that return multiple recordsets

    Hi there, I am creating a report from a stored procedure that returns multiples record sets. For an example, my stored procedure is as follows CREATE PROCEDURE MYPROCEDURE AS BEGIN SELECT * FROM TABLE1 SELECT * FROM TABLE2 SELECT * FROM TABLE3 END Now lets say I want to create a report that will display the result of the query no 2 (which is SELECT * FROM TABLE2 in this example). How can I do this Is there any way to bind the second record set to the report dataset with out changing the stored procedure I will appreciate any kind of suggestions on this Thanks Moim Can you mark this one as answered so others can see that multiple recordsets aren't s ...Show All

  • Microsoft ISV Community Center Forums how to open read only file that will be open for notification in word?

    Hi i am tring to write a vb script that use word to do the following: 1 .open document from pc A. 2. open the same document ( use a "share" folder ) from pc B. the file will be read only but open for notification to the time that the file will be release for editing. 3. close file from pc A. 4. view file changes in pc B. any ideas on how to implement it thanks in advanced lior ...Show All

  • Visual C++ Changing Colour of a Row in DataGrid

    Hi, I have a datagrid and I would like to set some rows to a certain colour depending on a certain criteria. How could this be implemented in C++ Would it be easier maybe to colour a certain cell within a row Thanks in advance for your help. hello Please note that this forum is dedicated to visual c++ 2005 and its c++ features of visual studio, questions like GUI problems are out of scope of this forum . please find an appropriate newsgroup listed here to get more resource to solve your problem, thanks. good luck Bite ...Show All

  • Visual Studio 2008 (Pre-release) Dispose objects?

    Hello, In my WPF application, I'm creating objects such as image, mediaelement and other things and than have to get rid from them after a while. I want to be sure that I don't cause any memory leak but I didn't see any "Dispose" method in objects like in Windows Forms. Can somebody point me tips about this Regards, Ozden Great tips Seb, and for how to use weak event pattern in WPF, you can have a look at my blog article about it: Weak Event Pattern In WPF Sheva ...Show All

  • SQL Server VOTING/RATING SYSTEM: HOW TO ADD POINTS AND UPLOAD SQL VALUE?

    I am trying to build a voting system. Website visitors will rate a pictures from 0-10. This value should update the amount of points already stored is SQL. I think the way to do it is passing the value of a field to a varible, performing the operation and updating the database, but I don't know how to capture a value in Sql and pass it to variable... Does anybody there could post a piece of code or point to a link where I could find this information thanks Jens, thanks again for helping! If you don't mind I would like both. I am really enjoying learning SQL and would like to try different things and decide what to implement. I appreciate your help. Rubens Cunha ...Show All

  • SQL Server SQL Express SP2 - December CTP has been released

    You can download the December CTP from the SQL MSDN Developer Center, here . Regards, Mike Wachal SQL Express team ...Show All

  • Visual Studio Team System Removing User option under "Assigned To"

    We have recently removed the permissions from an employee that is no longer with the company (he doesn't have access to TFS), but each individual in various groups still have the option to add him as an "Assigned To:" value. Is there anyway to keep the history in the database as to what he worked on while removing him from the option in the field Moved thread to Work Item tracking, since "assigned to" is exclusive to WIT. I think you just need to remove him from any *other* groups to which he belongs (is he a user, admin, or contributor on any team projects, or in any of the project groups ), and he'll be removed from Valid Users as well (but it may take a few minutes to sync). Anything referring to " ...Show All

  • Visual Studio Express Editions Open excel files from a button click event

    i am having a huge problem finding a way to open an already created excel workbook from a button click event from my forms in visual studio express...does anyone know the coding to do this or how it can be done well if the file already exists, you can launch it like so: System.Diagnostics.Process.Start( TheFileNameAndPathToExcelFile ) this will start a process, launching the specified file externally. The code can be placed any where in your code, for example as you stated, on the button click event. This will open the excel file, just as if you double clicked on it manually. Does this help/answer your question ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Camera translation in a 2D environment

    I'm trying to build a platformer, but I can't figure out how to do camera translation in the 2D space. I'm using sprites for the environment and characters... How would I achieve camera movement in this situation I've tried messing around with the BasicEffect class (since I read on the forum that that's where you should move the camera), but to no avail. Thanks in advance. If you are using SpriteBatch, then you are using Screen coordinates.  There are no Effects, vertex shaders, or other forms of vertex processing.  Since BasicEffect is an Effect, which the SpriteBatch draw operations will not be processed by, using it will do nothing for you. If you wan't to translate the positions of your ...Show All

  • Visual C# Debug Deployment taking forever

    I am deploying my app to a Windows Pocket PC 2003 Device. When I deploy its taking close to 10 minutes to deploy. The app is only 104K on my device. I noticed that it is hanging specifically on these files: System.Data.dll System.Windows.Forms.dll System.Web.dll System.Design.dll System.DataOracleClient.dll (Im not even using Oracle) Then these files are also being transfered and popping up a msg box stating that "Windows SQL Server Mobile is aready installed. Do You wish to reinstall [Yes] [Cancel]" sqlce30.ppc.wce4.armv4.cab sqlce30.repl.ppc.wce4.armv4.cab sqlce30.dev.enu.ppc.wce4.armv4.cab I don't think these files need to be transmitted everytime to my device as they are already there. Does anyone have any ideas how to speed ...Show All

  • Visual Basic How do I create a database application that is to be installed on a non-network machine?

    I need to create a database application (like a cleint-server) app. that will be installed on a local, non-network machine. I do not want to use Access. Is this possible or do I have to install SQL Express on the local machine and attach my database to this Thanks Thank you for your help. That is what I was thinking of doing but I needed some expert advice. Do I need to instal the .NET Framework also (if it is not on the local machine) ...Show All

©2008 Software Development Network