Kryor's Q&A profile
Visual Basic Dataset.ReadXmlSchema problem
Ok folks i've now got a flat fore head from all of the head banging on the wall I've been doing so I need your help!... I am trying to read in an xml document against a xml schema using the dataset.readxml and dataset.readxmlschema methods. See code below... Public Sub ReadXML Dim settings As XmlReaderSettings Dim reader As XmlReader Dim strSchemaLocation As String Dim objDataSet As New DataSet ' First check the schema is where it should be If Not File.Exists(strSchemaLocation) Then Throw New BespokeException( Nothing , BespokeException.ErrorType.FILE_NOT_FOUND, "Cannot find file: '" & strSchemaLocation & "'" ) End If Try ...Show All
.NET Development Reading data from networkstream
I normally read data like this, in a new thread on a while true condition while ( true ) { byte [] someData = new byte [Int16.MaxValue]; //ok so thats overkill! int theDataRead = 0; theDataRead = this.theNetworkStream.Read(someData, 0, someData.Length); while (this.theNetworkStream.DataAvailable) { theDataRead += this.theNetworkStream.Read(someData, theDataRead, someData.Length - theDataRead); } if (theDataRead > 0) { this.theDataManager.DoHandleData(someData, theDataRead); } } question is, am I doing it correctly or is there no n ...Show All
.NET Development Sending large number of mails
Hi every one Here I have a problem. I need to send over 2,000,000 mails or more (to the members only not Spam) in asp.net web application. I don’t know how to handle the situation. I ma looking for any help you guys. Any code snippet or article on how to will be highly helpful to me. Thanks in advance. Please help me. Thank you Amit and Ahmed for your help, I am able to send mails using the asp.net (1.1) (c#) code. Here my problem is sending mails above 2,000,000 in number that to in few hours that too without hanging the server. Took me around 25 min to send 2000 mails. I know it take lot of time to send 2,000,000 mails. I want to know is there any way through which we can start any ot ...Show All
Visual Basic Question about Deleting Files
I have a VBScript file that I needed to code into VB I can understand some of how this is done but I'm unable to found any information on some of the problems I'm having. Here is the code for the VBScript file the main problems I'm having with some users for some reason there login name and the folder that windows uses isn't named the same so I needed to ask is there a way to delete files in VB basiced on there Extension and how can I point to a Directory using a variable Thank you for any help. 'This script will delete the CSV file in the users temp folder, this was created to fix a problem that we were 'having with windows displaying the wrong information once some many of these file were created. 'Version: 1.0 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problems with: Detecting if a user clicked on a 3D object
I'm rather new at working in 3d at this level but not exactly new to C# and definitely not new to 3D models... but I usually work with a tool such as Blender, 3DS or Maya. I have my simple mesh object and it displays just fine. When I use the sample code as a guide, I find that I need to make my own Bounding Box... and I understand the process in theory but applying it to the code is giving me fits. **************** Issue1: Using a Bounding Box with the dimentions of triangleBB in the sample causes this: Nullable < float > result = pickRay . Intersects(triangleBB); // Returns NaN regardless of where clicked. That's my shorthand... pasted code with what it results in after the comment.... Question... so why ...Show All
Silverlight (formerly WPF/E) Reusable definition
I am coming from the SVG side and looking for the <defs> option in xaml. For instance, can I define a LinearGradientBrush once in a xaml file and use it several times within several shapes Something like Resources: <Canvas xmlns=" http://schemas.microsoft.com/client/2007 " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " > <Canvas.Resources> <ResourceDictionary> <LinearGradientBrush x:Name="arcenciel" StartPoint="0,0" EndPoint="1,1"> <GradientStop Color="Yellow" Offset="0.0" /> <GradientStop Color="Red" Offset="0.25" /> <GradientStop Color="Blue" Offset="0.75" ...Show All
SQL Server Hypertext link in a report.
hello : On a hypertext link in a report, how to open the link in a new window IE. Thank's. Thank's: but : I I use the properties of a zone of text, and I put in anglet Navigation towards another report(relationship). Thus I do not know or I put your code. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can a managed DirectX app keep running if a DirectX problem would normally crash an unmanaged game?
We have probably all seen DirectX games crash, usually due to driver issues, or bugs in a particular game (where you may find a patch to fix them later, or update your drivers, and the problem doesn't happen any more) -- and they either drop you on your desktop or cause the PC to restart. Usually the games also lose whatever changed in the game since your last save as well.. In either of these cases, if the game were written in .NET, using managed DirectX, and caused exactly the same problem.. would it simply be treated as an exception, and the game could recover (assuming you programmed it that way), or would it crash just like an unmanaged game If it's possible for it to recover, it could re-initialize everything related to DirectX, o ...Show All
Visual Studio Team System Can I add a field to a work item after the project has been created?
On my project we modified a process file and accidently removed a field from one of the work items screens. Is it possible yet to make modification to the process of existing projects Yes, you can modify work item type and import it using witimport tool ( http://msdn2.microsoft.com/en-us/library/ms253163.aspx ). Also check witexport tool to export the current form. ...Show All
SQL Server Deploying Reports/Models with WSS 3.0 integrated mode
Using BIDS, and trying to deploy to a newly created reporting server. I can deploy the report but cannot figure out how to display it in the WSS 3.0 teamsite. My document library settings allow 'new report builder report' and 'new report datasource' but I don't see how to upload reports built in BIDS for use in the Sharepoint site. Models that I created in BIDS I cannot deploy at all. Just get an error saying 'this operation is not supported in sharepoint integrated mode. Anyone else worked through the deployment of existing datasources and reports yet to a WSS 3.0 reporting server in integrated mode If I just upload an RDL file to the document library and try to display it, I get the following: System.Web.Services.Protocols.So ...Show All
Visual Studio Printing Issues
Hello, I’ve been having this issue for a couple of weeks now and have tried countless ways to find a work around without much luck. Long story short, I’m writing an application with Visual Studio 2005 Professional using J#, the application has a user enter data such as name, address, phone, etc and then a Submit Button. I want to print a form with this data, and I have created a separate form that gets populated with this information and is sized to fit an 81/2 x 11 piece of paper. The print solutions that I’ve found in the Help section and on these forums have a lot of flaws for what I’m trying to accomplish. The answer I’ve found is to do the screen capture – and that works some times, the problem is, the form doesn’t comple ...Show All
.NET Development WSE 3.0 UsernameTokenManager not working plz help!
Hi, Im using a custom UsernameTokenManager in WSE 3.0 but it always authenticates when it should'nt. I'm missing something but don't know what. my Web Service code is: using System; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; [WebService(Namespace = " http://tempuri.org/ ")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [Microsoft.Web.Services3.Policy("usernameTokenSecurity")] public class Service : System.Web.Services.WebService { public Service () { //Uncomment the following line if using designed components //InitializeComponent(); &nb ...Show All
Visual Studio Tools for Office Application level addin
There has been a lot of talk about not being able to create an application level addin using VSTO 2.0 I have created something that kind of mimics it. Let me explain 1. Create a VSTO solution, call it VSTO_Addin.xls 2. Add code in workbook_open event to add custom menus 3. Now attach routines to the custom menus which does manipulation using Activeworkbook, Activesheet so on .. for ex - To display the name of the active workbook, messagebox.show (Globals.thisworkbook.application.activeworkbook.name), kindof get the drift 4. Set the thisworkbook.addin property to true for VSTO_Addin.xls Run Excel, open VSTO_Addin.xls, since the addin = true this workbook will not be visible but the custom menus are!! Now click on the me ...Show All
Game Technologies: DirectX, XNA, XACT, etc. D3DERR_NOTAVAILABLE while build of first example in help how to do
I used to code in pascal, cobol, assembly, basic, etc, but not C. From: Your First Game: Microsoft XNA Game Studio Express in 2D following along and doing the first build, I get the error above. I did not think I was calling the 3d engine only the 2d. I cannot find any help on the error, where to look, etc, except what is in the error window when you cursor over it. I cannot figure out how to copy the error in that popup window to look at it further. I know some dislike nubies, but please help if you know the answer. Its disheartening to type in only 6 lines of code and not be able to debug it! To say the least. Thanks OH OH OH, I figured out how to copy the error: Error 1 Building content threw InvalidOperationExcept ...Show All
Visual Studio MSBuild + ProjectReference + tmp_xxx files?
Hi! The problem: The same solution builds successfully in Visual Studio, but fails to build in MSBuild... The solution contains ~18 .vcproj files. In the solution, there are project-to-project references. When MSBuild runs, it generates temporary files, like XXX_tmp_Release_Win32.vcproj (what for, BTW ), where some of those project-to-project dependencies are just missing ! So, the resulting project just fails to link... Am I missing something Kind regards. Comments are greatly appreciated :) ...Show All
