bilalso's Q&A profile
.NET Development XML file validating just because it doesn't use my schema
I've been trying to write some code that reads in an XML file, validates it against my schema and then processes the XML using XPaths. I wrote the XSD and used the code below to read it in. XmlReaderSettings settings = new XmlReaderSettings (); settings.ValidationType = ValidationType .Schema; settings.Schemas.Add("http://myurl/ " , "MyXSD.xsd" ); settings.ValidationFlags = XmlSchemaValidationFlags .ReportValidationWarnings; XmlReader reader = XmlReader .Create( "TheirXML.xml" , settings); XmlDocument xml = new XmlDocument (); xml.Load(reader); This validates properly if the XML I'm reading has xmlns=" http://myurl " on the root element. However, if an XML file is suppli ...Show All
Game Technologies: DirectX, XNA, XACT, etc. AI Resources
I'm reaching out to the XNA Community for some good (and free) information on Artificial Intelligence and/or pathfinding Anyone know any ...or if not free, some book recommendations I'm more referring to the rest of the Game Programming Gems book (non-AI stuff). I'm sure the AI stuff hasn't been plutoed, but I don't know about the rest of the book. Does anyone that have the book want to comment ...Show All
Visual C# How can I change the cursor of a third part (Window/exe) ??
How can I change the cursor of a third part (Window/exe) I have tried with WindowProc Api function, but it raised the CallBackOnCollectedDelegate exception/bug. Thanks You can't. Mouse cursors for an application are set by the application in response to a WM_SETCURSOR message. You can't intercept that message and do anything different. If the handler for the WM_SETCURSOR uses a cursor from the applications resources you could edit the binary and get a different cursor--assuming the binary doesn't check for tampering. ...Show All
Smart Device Development file hided
in windows, the file's property can be set to be hided. How to implement with native c++ code at windows mobiles platform. Thank you. ...Show All
Windows Forms UserControl Data binding & BindingSource.EndEdit() Effect
I have written a simple user control with just a TextBox control on it and bound Its MyText Property to a DataTable Column. Using 2005 UI facilities I dragged this control from dataSources window on the form.In the form_load I fill my DataTable and by clicking a button I Call the associated BindingSource.EndEdit() whitout any change.But my underlying DataSet HasChanges() method returns true! how can I Fix this problem. here is my controls source: I've written a custom HasChanges method that receives a dataset and loops through all datatables and rows and compares original version value with current version value. if it finds a diffrence return true and at the end returns false. this method works correctly with user controls ...Show All
Visual C# Installing a c# app with .net framework
Hi, I want to create a wizard that also installs the .net framework. Is this possible Thanks What product are you using to create installations There's a dotnetfx.exe redistributable that some installers like Wise can kick off and run silently. If they support this then they should have documentation on how to boot strap the .net installation. ...Show All
Visual Basic Send mail in .NET
I'm new to .NET and i'm trying to send mail using VB.NET. Here is the code snippet. Try Dim SmtpClient As New System.Net.Mail.SmtpClient SmtpClient.Host = "localhost" SmtpClient.Port = 25 SmtpClient.UseDefaultCredentials = True SmtpClient.Send(" xxx@abc.com ", " yyy@abc.com " , "Test" , "hi" ) MsgBox( "sent" ) Catch ex As Exception MsgBox( "Send failure:" & ex.Message) End Try I get the following error "Failure sending mail". could anybody help Thanks in advance. I added a line break every 60 characters. That did it. I also try to do same process but not using the System.Web.Mail.MailMessage, I added a reference to "Microsoft CDO For Exchange 2000 Library". Bo ...Show All
Visual Studio Express Editions VB 2005 Express Edition error 1304 writing to VBDesigner.dll
After Greeting while installation of Microsoft Visual Basic 2005 Express Edition i get the error msg " Error 1304. Error writing to the microsot.VSDesigner.dll. Verify that you have access to that directory " I need some help fo the problem to get resolved Thanks Gerald ...Show All
Visual Studio Generating Tabs in Excel Report
Hi, Does anyone know if it is possible to generate a tabbed report to Excel format with Reporting Services Thank you, Ray raymuirhead , When a report is exported to excel, the tab name in excel is going to take the name of your rdl report, but I am having the same problem that you have when I am exporting a report that has a group and a page break is set up in the group. When this information is exported to excel the information is saved in different spreadsheets, which is really cool. but it would be nice to be able to set up the name of the spreadsheet. I would like to be able to set up the name of the spreadsheet as the name of the group instead of "sheet1, sheet2 and so on". If yo ...Show All
Visual Studio Express Editions Show URL title in title bar
Private Sub WebBrowser1_DocumentTitleChanged( ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentTitleChanged this.Text = "Farscape Navigator - " + this.theWebBrowserControl.Document.Title ; End Sub I can not get it to show the page title in the title bar. I want to display the Web pages title in the title bar. Don't paste C code into a VB program! Try: Public Class Form1 Private Sub WebBrowser1_DocumentTitleChanged1( ByVal sender As Object , _ ByVal e As System.EventArgs) Handles WebBrowser1.DocumentTitleChanged Me .Text = "Farscape Navigato ...Show All
SQL Server Using managedDTS in a CLR
Hello, Has anyone been able to create an assembly that references Microsoft.SQLServer.ManagedDTS in a CLR When I try to do a CREATE Assembly [Microsoft.SQLServer.ManagedDTS] it sets off a chain of dependencies a mile long, (system.windows.forms, system.drawing, accessibility, system.runtime.serialization.formatters.soap, microsoft.sqlserver.msxml6_interop and the list goes on). I have tried creating assemblies for these manually, but they keep referencing more. I have seen a number of posts that talk about using the manageddts in a CLR, but none have mentioned this issue. When I did manage to get all of the assembies created then I got a failure in my CLR procedure because some of the assembly signitures don't match what's in the GAC, e ...Show All
Visual Studio 2008 (Pre-release) how to set maxReceivedMessageSize for a vb6 client app that use a WCF service ...
Hi I have a VB6 client app that calls in to WCF service hosted using netTcpBinding. The calls seems to work fine for other functions that returns small amount of data. But i have a function that returns a string (xml serialized dataset) and it exceeds the maxReceivedMessageSize(65536) and i get "RunTime error -2146233087 (80131501) - The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.". My vb client app is named vb6client.exe. So i added vb6clientapp.exe.config and added maxReceivedMessageSize="6553600" in the netTcpBinding section. But i still get this error. If i do the same on a WCF client ...Show All
Visual Basic VS 2005 Commerciral Development Version?
I work for a commercial software development company and our primary product has been components (.DLLs) developed in VB6. When we started years ago, we had to buy the VB6 Enterprise Edition in order to develop .DLLs that could be distributed and registered on customer machines. Does the same concept exist in Visual Studio 2005 We want to add a line of .Net-based DLL products and currently have VS 2005 - Professional Edition. Is there any requirement to use VS 2005 Team System for developing commercial apps You can use any version of visual basic / visual studio to develop commercial applications (except student version I think) So you could develop applications using VB Express (which is free) if you ...Show All
Visual C++ Symbols different on x64 vs x86
I have a 32-bit app that I am trying to port to 64-bit. I've noticed that for exported C style functions that the leading _ gets dropped by the 64-bit compiler. For example, from dumpbin /symbols: From 32-bit object file: 00D 00000014 SECT3 notype Static | _GetEnvFunc From 64-bit object file: 00C 00000028 SECT3 notype Static | GetEnvFunc All of the compiler flags are the same, except that -DWIN32 and -D_X86_ have been replaced with -D_WIN64. For the linker /machine:x86 has been replaced with /machine:x64 and all other flags are the same. The problem is that the above ...Show All
Visual C++ Self Drawn v. Owner Drawn
Can someone please clarify this terminology for me: What is the difference between self drawing and owner drawing in MFC Yes! The DrawItem and MeasureItem are called by the WM_PAINT handler as often as needed. They give you more control than handling your own WM_PAINT, because you just have to handle one item after another. So overriding WM_PAINT might disturb the default handling. ...Show All
