Paul Bradley's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Resource management
Hi, I was wondering if loadGraphicsContent can ever be called with loadAllContent=true except the very first time. The reason it's an important issue is that if it can, references can go dead, ex. if I load effect in Game1 and give it to object X, then Game1.loadGraphicsContent(true) is called and I have to reload effect, X's reference to effect is no longer any good. This can be solved with some simple indirection, but it would be nicer not to do that if it isn't necessary. I'm also curious if it's ever necessary to explicitly Dispose() a resource, such as a VertexBuffer, if it is created with ResourceManagementMode.Automatic, or if everything will be taken care of when it is garbage collected. Part of my concern is that I had a huge prob ...Show All
SQL Server Mutilple space gets converted to single space in Report Viewer Control
I am generating a Report from Sql Data Source in Sql Server 2005 and viewing the Report in Report viewer control of Visual Studio 2005. The data in the Data Source contains string with multiple spaces (for example “ Test String “) but when they get rendered in Report viewer control, multiple spaces gets converted to single space ” Test String “. I tried following solutions 1) Replacing spaces with “ ” 2) Inserting <pre> tag before the string and </pre> tag after the string (Also tried <Pre> instead of <pre>) But in all the cases result is same. The Report Viewer control is showing “ ” instead of space and “<Pre>” tag instead of preserving ...Show All
.NET Development Document/Literal Web Service with Simple Types?
I'm looking into the ASP.NET 2.0 ObjectDataSource. It looks like I can directly bind to the Web service proxy generated using wsdl.exe. But, my Web service is document/literal based and as such I'm using complex types, i.e.: //XSD < xs:element name = " EmployerInfoID " > < xs:complexType > < xs:sequence > < xs:element name = " EmployerID " type = " xs:int " /> </ xs:sequence > </ xs:complexType > </ xs:element > // WSDL < types > < xsd:schema > < xsd:import schemaLocation = " EmployerInfoRequest.xsd " namespace = " http://worksafebc.com/employerInfoIDDocument " id = " eiRequest ...Show All
Windows Networking Development Questions about QOSNotifyFlow
In the MSDN API , It says that the QOSNotifyFlow function registers the calling application to receive a notification about changes in network characteristics, such as congestion. But I have a question about how to receives the notification. Is is an event or anything else How do I receive such notification in the program Thanks fo any help... When you call QOSNotifyFlow, you pass one of the following operations: (i) QOSNotifyCongested, (ii) QOSNotifyUncongested, (iii) QOSNotifyAvailable. If you were to call this function without specifying an overlapped parameter, it would return when the selected operation occurs. For example, if you were to specify QOSNotifyCongested as the operation, the ...Show All
Microsoft ISV Community Center Forums [Access SQL]: Have a function similar Oracle SQL function Minus use in MS Access SQL?
Caption the subject Many Thanks ...Show All
Visual C++ Custom Dll with MFC linked
Hello people! Now i have this tricky task: I would like to create a regular dll, but with MFC statically linked and initialized, to use the MFC classes. BUT the MFC library provides it's own DllMain. How can i override the MFC's DllMain, while still linked to MFC The reason i want to do that is that CWinApp doesn't give me an opportunity to handle the THREAD_ATTACH and THREAD_DETACH events. I DID IT But this was tough if you are interested, here is the code: BOOL WINAPI MyDllMain(HANDLE hDllHandle, DWORD dwReason, LPVOID lpreserved ) { BOOL retcode = TRUE; __try { if ( dwReason == DLL_PROCESS_ATTACH || dwReason == DLL_THREAD_ATTACH ) { if ( _pRawDllMain ) retcode = (*_pRawDllMain ...Show All
.NET Development Datatable value not displaying!!!
Hello, I'm new to ado.net. Here is the code which i use to declare the dataTable: DataTable dtable = new DataTable ( "dtable" ); dtable.Columns.Add( "SID" , typeof (System. String )); dtable.Columns.Add( "givenName" , typeof (System. String )); dtable.Columns.Add( "sn" , typeof (System. String )); dtable.Columns.Add( "mail" , typeof (System. String )); dtable.Columns.Add( "tel" , typeof (System. String )); dtable.Columns.Add( "mobile" , typeof (System. String )); dtable.Columns.Add( "office" , typeof (System. String )); and here is the code for adding a new row. for ( int i = 0; i <src.Count - 1; i++) { DataRow tempRow = dtable.NewRow(); tempRow.ItemArray[0] = SID[ i ]; tempRo ...Show All
Visual Studio Express Editions How to code the role function?
Hi, I would like to code the role and change password function instead of going to .NET Administration Tool. Any code sample or suggestion is welcome Thanks If you drop over the the http://forums.asp.net site you will find a group for the membership and security systems in .net 2.0, post you question there or have a read through that group as you will find some good examples of what you are asking. ...Show All
.NET Development How to Find All the Web services in localSystem
Hi, How to Find All the Web services in localSystem and list it. I need " Add Web reference " (IDE) wizard like funtionality. For exapmle if i enter the server path (say Localhost) in a text box and press a button then all the sevices available in localhost should be displayed in a listbox. reply if anyone find the solution. Thanks in Advance. note: Please don't reply like Right click on reference and select "Add Web Reference" ...Show All
Visual Studio Team System PascalCase
trying to write a custom rule for pascal case checking for VS integrated code analysis. The tokenizer provided in SDK is not working as expected. Any reference to any library that will help in splitting a compound word(as used in pascal/camel format) would be highly appreciated. Girish, We are aware that TokenizeCompoundWord does not tokenize some tokens correctly, and have since replaced it with a new WordParser class in vNext of Visual Studio/FxCop. Download the latest CTP and tell us what you think. Regards David ...Show All
Software Development for Windows Vista DirectShowLib
I am using DirectShowLib C#, I want to know which class in DirectShowLib is Equivalent to IAMCameraControl or ICameraControl Hi Eman, I took a quick look at the Interfaces.txt file that came with DirectShowLib and in the (Untested/deprecated...etc) interfaces I found the IAMCameraControl. In order to use it in DirectShowLib, you need to compile the DirectShowLib library with the conditional compilation symbols: "ALLOW_UNTESTED_STRUCTS;ALLOW_UNTESTED_INTERFACES" After that the IAMCameraControl interface is accessable in the Library. As for the ICameraControl, I have no idea where it is :). I hope this was of help. Regards, Fadi ...Show All
SQL Server SSIS and sql server2000
Hi, Is it possible to use ssis for the etl processes and still have an existing 2000 db For e.g. CanI create a ssis pkg and use the xml task to download data to a 2000 db. ok, now I'm going to have space issues on the server. Is it possible for me to set up ssis locally to create the packages and then install SSMS on the server to create jobs from a .dtsx file. Would this work I'm triing my hardest not to go back to dts. ...Show All
SQL Server How to redeploy reports?
Hello everyone, I have created a selection of reports in VS and deployed them to my test machine. I would now like to deploy the project to the live machine, I cant install visual studio on this machine and the test machine cannot connect to live. What is the best way to move my reports into the live environment Any help appreciated. Kind regards Taz I know there have been a couple of replies to your question. I would like to reccommend RSScripter. It works very well for deploying our sites. You can find it at http://www.sqldbatips.com/showarticle.asp ID=62 . R ...Show All
.NET Development Disable selected treenode highlighting during a dragover
Is it possible to temporarily switch off node highlighting in a treeview In particular I want to do this during dragenter and dragover events. TreeView.HideSelection does not seem to work as the TreeView control has focus. I tried TreView.SelectedNode = null but that failed to work. - Paul ...Show All
.NET Development NEED URGENT HELP!!Creating an xml file based on xsd schema
Hi all, I need urgent help with an xml issue. Let me explain the scenario: My app needs to read an xml (e.g. Sales Orders). This xml contains say 10 sales orders. Next the app needs to split the original xml into 10 individual SalesOrder xml files, each file containing a single sales order. The xml files created must be created based on a set xsd schema.See example below: Here I have 2 sales orders in my original xml, I want to create 1 xml file for each Sales order. e.g. <Sales Order> <DocNum>"1234"</DocNum> <ItemCode>"321"</ItemCode> <DocDate>20070215</DocDate> <Qty>1</Qty> <Amount>$1500.00</Amount&g ...Show All
