MacMark's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Interfaces
Could anyone point me in the right direction regarding programming c# with interfaces. I've googled up the subject and whilst there are some good tutorials on how to do it, non of them really explain in simple terms why we should or shouldn't. I just can't seem to get my head around how they work properly. That helped very much Robin, thank you. So could you basically have multiple Interfaces and theortically change a classes behaviour or rather add to a classes behaviour dependant on your current needs ...Show All
Visual Studio 2008 (Pre-release) Request for multiple configuration file support
After some digging around, I found that ASP.NET 2.0 supports separation of configuration files in appSettings element with configSource or file attribute. It would be really cool if WCF can support this feature in the <system.serviceModel> configuration section and sub-sections as well. In any enterprise development, there will be multiple teams involved with their own WCF services, each one with their own service model configurations. It would be clumsy to add and remove from one config file during installations file. Of course, including reference to antoher file also requires the change to master config file but it is going to make change at one known include location, which is better than the alternative. If there is already a ...Show All
Software Development for Windows Vista Hardware Profiles & Windows Vista
Hi, My question is about hardware profiles. In Vista the boot environment has drastically changed, and a hardware profile selection dialog (text mode screen during startup) seems to have vanished. I'd appreciate any information about how to a) reactivate the hardware profile menu or b) query user input similar to that menu during system boot. Description of my App (for you to understand what I'd like to achieve): My App's heart is a boot start driver which runs far before explorer or normal services. No GUI is available there. The user must be able to choose wether or not to activate the driver's main functionality. That has been implemented by creating and managing an additional hardware profile. It doesn't work that way for V ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Please Add Non-Generic DrawUserPrimitives and DrawIndexedUserPrimitives methods.
I posted this request in the Suggestion tool as well. Btw- where is the link to actually view the contents of the Bug reports, and Suggestions You'd think that would be handy from the connect.microsoft.com site, but I can't find it. Add the method: Device.DrawUserPrimitives(Type vertexType, PrimitiveType type, int count, Array vertexData); and a similar non-generic method for Indexed primitives. I have a rendering system that captures rendering calls, and retains the call information. Later on, it sorts all of the calls in order to minimize state changes before execution. This is a very commen scenario. IT IS VERY DIFFICULT to call generic methods (in a generic fashion) when you only know the vertex type, and have a un-typed array. For ...Show All
Visual Studio 2008 (Pre-release) Asynchronous calls and ChannelFactory.CreateChannel
Has anyone an example of how to implement an asynchronous call when I’ve used CreateChannnel from the ChannelFactory. I had a look around but there doesn’t seem to be any info on it. I don’t what to use svcutil because the return types for my generic collection are returned as a dataset. I’ve tried using /ct flag and it doesn’t seem to work for my collection (it’s from llblgen) . When I use CreateChannel and call the methods synchronously I can cast the return values to my collections with no problem. am I missing something Cheers Johnny Here is a nice blog that might help you to build Asych calls. http://blogs.msdn.com/mjm/archive/2005/05/04/414793.aspx ...Show All
SQL Server SSIS Flat File Connection Manager Max Columns
Hi everyone I’m using the Flat File Connection Manager to access a flat file, tab delimited. The flat file has 200 columns, and when I'm editing the columns, I only preview columns from 0 to 97. Does the flat file connection have a column number limit How could I increase it Thank you for your answer..... Regards, I dont think there is any known limit on the number of columns in FlatFileConnectionManager (apart from the theoretical limit which, I guess, could be the max value supported by int variable). 200 columns sounds too less to be that limit. I created a test file with 240 columns. In FlatFileConnectionManager editor I could see all the columns in "Columns", "Advanced" and "Preview" pages. ...Show All
Visual C++ Memory leaks in managed classes that use dynamically-allocated native structures
I apologize for the textbook question but I have spent enough already looking for the answer in the "textbook" (MSDN) not finding the answer that I decided to ask here, I hope you don't mind throwing in a quick answer. I am forced to use dynamically-allocated native data structures in managed classes and I am getting memory leaks because I am not properly freeing the allocated resources. I was hoping to add a destructor to the managed class but that didn't help - the destructor was never called when the object was destroyed. After reading the article "Changes in Destructor Semantics" in the Library, I still can't figure out why (note: VC++ 2005 is my first interaction with .Net – I skipped 2002 and 2003). I know there is more than one ...Show All
.NET Development How to get the calling Assemblies
Hi, A method of my application needs to get the stack of its "calling Assemblies". I.e: a sorted list with the names of all the assemblies executed by the current thread. I guess I should do this with reflection, but I do not find how to procede I can only get the last "calling Assembly" with System.Reflection.Assembly.GetCallingAssembly. I need this "call stack of Assemblies" to read the value of a "Custom Attribute" defined on each of them. But this method cannot be used recursively (Am I wrong ). I am looking for any solution, such as parsing something like the Environment.callStack, reading properties from the currentThread, or anything else ... Thank you in advance for any help. ...Show All
SharePoint Products and Technologies Folder "CryptnetUrlCache"
Hi ! Does CryptnetUrlCache folder and its subfolders "Content" and "MetaData" under username\application data\microsoft\ on WS 2003 has to do something with InfoPath Is there anybody who know what they are for BVR Melii This folder applies to Windows XP SP2 and similar applications. It has to do with Windows certificates. If you have a %SystemDrive% folder on your desktop, you should see the same (internal folders) in your User account. Look in C:\Documents and Settings\Your User Name\Application Data\Microsoft\. See the following MS article for further information... hope this helps. http://support.microsoft.com/kb/887196 ...Show All
Visual Studio 2008 (Pre-release) Can't get OperationContext.Current from within UserNamePasswordValidator
Hi, I’m writing a WCF service, and I’m using my own UserNamePasswordValidator class in order to validate my clients (this mean I’m working in custom validation mode - userNamePasswordValidationMode = " Custom " ). I’m trying to retrieve OperationContext .Current from within the validate method - Validate( string userName, string password) but it is always null. Is there a way to get OperationContext .Current from within the Validate method And if not, is there any way to retrieve message sessionId of the current message from within the Validate method Thanks, Dror. OperationContext is not set in the validator. Its set later in the pipeline. Could you explain w ...Show All
Visual Studio Tools for Office VS.NET 2005 - Professional and Office Tools version..
after looking over these two versions, i was wondering what the deal was w/ the Office Tools version. it looks like it's ~only~ the part of VS.NET that deals w/ MS Office. is this the case, or am i mistaken what does the Office Tools version deal with (when compared to the professional version). thanks :) :) :) Don't forget, though, that VSTO is available as a stand-alone, full version of Visual Studio. If you buy the VSTO edition of Visual Studio you get most of the features that are in the Professional edition--the main differences are VSTO includes only Visual Basic and Visual C# (not C++ or other languages), VSTO doesn't include support for mobile device development, and there are a few other things. You can see ...Show All
Visual Studio 2008 (Pre-release) XBAP distribution
Hello, There is one item that has caused me some confusion and that is XBAPs and WPF/E applications. I understand that XBAPs provide more functionality. However, my question is, can you run an XBAP on a Windows machine through Firefox Or must an XBAP run within Internet Explorer Thank you, Alan XBAPs must be launched within Internet Explorer. A workaraound is to install the IETab extension on firefox and add a *.xbap filter in the IETab options dialog. While you’re at it you can also add the .xaml extension to handle Loose XAML the same way. Simon ...Show All
Windows Forms PropertyGrid - Custom Types
Hello, I've used a property grid in my project. I have a custom class, called Vector, which should be shown in the property grid too. So I used the TypeConverter and ExpandableObjectConverter. In the property grid, I see an entry called Location with a string representation of a Vector (like this "24;50"). I can expand this property and I see two sub-entries, called "X" and "Y". The problem: if I change the string representation everything works fine. But if I change the x or y values, nothing happens. That means the set-method in the Location property is not called. I don't know why. Here my code: Class A (uses f.ex. the Vector class) { [GlobalizedCategoryAttribute("Layout")] public Vector L ...Show All
.NET Development How do you update GridView??
Hi, I've just created an eidtable Gridview on a form and can't update it. As with many other posts on the web it goes to edit mode, allows editing then when you click update - nothing. The database isn't being updated, the GridView comes back with exactly the same data it had first time and nothing has changed. I have let Studio create the Update statement, tried doing it myself and even tried copying it out of SQL Server where it works but to no avail. What am I missing With the amount of posts relating to this on the web someone somewhere must have an answer. Code is below. <asp : GridView ID ="grdMissing" runat ="server" AllowPaging ="True" AutoGenerateColumns ="False" A ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Vista install problems
XNA won't install on Vista RC 1 5736. I'll try on a daily build tomorrow in the office. Are you going to support Vista in December Please read the FAQ ! ...Show All
