babucherayath's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. How safe is it to inherits one class from XNA's GraphicsComponent?
Hi, In another thread, somebody gave me a link about GameServices (http://blogs.msdn.com/mitchw/archive/2006/09/06/742955.aspx) and it made think about how to design a renderer inside an engine. Let's say I want the my game to have, as a GameComponent, my own renderer. I want my renderer to offer IGraphicsDeviceService and also offer the same functionality that the GraphicsComponent have without too much work. Can I simply inherits from the GraphicsComponent class Since I have no idea what's going behind the scene, it's hard to have a clear idea if it'll create bugs or not. I did a small test and it seems to work but there is nothing wrong in asking. :P Louis Inheriting from ...Show All
Visual Studio 2008 (Pre-release) Question about Expander Control
I have used Microsoft Expression Graphics Designer to add a few expandable controls. I cannot figure out how to add a few options in each of them, I have tried using Content property but that only adds one option. How can I add a few "options" to the expander control ...Show All
Smart Device Development "\\Storage Card\\" path name in China?
Hi Is the "\\Storage Card\\" path name the same all over the world or does it differ depending on language If so how does one get the current Storage Card path in runtime without using .net Many thanks, Martin Malek FindFirstFlashCard/FindNextFlashCard should be fine. If your device has more than one storage card (or internal flash storage which also looks like a storage card) it would be enumerated. There’s no way for you to determine which one is which since they both look the same form software point of view. If you found more than one storage ask user which one to use or pick one at random assuming they both have enough space. Some devices can have more than one removable storage cards, e.g. Dell x50v has both SD and ...Show All
SQL Server Connecting to AdventureWorks2000_Data.mdf
When I try to connect to this AdventureWorks2000_Data.mdf, I get the following message: The file "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks2000_Data.mdf" is compressed but does not reside in a read-only database or filegroup. The file must be decompressed. Could not open new database 'AdventureWorks2000'. CREATE DATABASE is aborted. (Microsoft SQL Server, Error: 5118) Any ideas on how to get the local version installed of SQL Server to open this db I'm trying to follow along with the examples in the book "Beginning Transact-SQL with SQL Server 2000 and 2005". Thanks, Vanzant I think I've figured it out. There are two folders (MSSQL and ...Show All
SQL Server login and pass in a web.config
Hi!! is there any way to get the login and password on my program’s web.config Full explain: I have a sub report that is missing credentials. In my tests, the sub report worked when I fill the login and password with a login and pass (mine, for example). But, this is not a good idea because the login and password would be changed when it’s system go to a production server. So I would need to deploy again with the new login and password. Best regards!! Pedro But this is to put on my web.config, I need put in my report’s datasource the login and password that is in my web.config. Pedro ...Show All
Visual Basic combo box using table field as the source (beginner)
i had set an outlook table using adodb.recordset. The table have 2 field : 'ID' and 'ITEM_NAME'. I would like to set my COMBO BOX with all the 'ITEM_NAME' values from the table without using combo.additem method, because the recordcount is to many. how to set the 'Item_name' table fields into the combo box :-) Thats the problem. These forums are for .NET development. VB6 questions should be posted here: http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx dg=microsoft.public.vb.general.discussion&cat=en_us_ab067bc0-bda5-4921-a1ec-e76402873945&lang=en&cr=us ...Show All
SQL Server Programmatically checking the database compatibility level?
When my app starts up I want to ensure that the database compatibility level has been set to 90. I know about sp_dbcmptlevel, but that only seems to work in an interactive session; the documentation says it can't be used in a stored procedure, and that appears to be true. Does anyone know how I could read the database compatibility level in a stored proc You can query the catalog views below to get the database compatibility level information: -- SQL Server 2005 only select compatibility_level from sys.databases where name = @dbname -- SQL70/2000/2005 select cmptlevel from master.dbo.sysdatabases where name = @dbname ...Show All
Gadgets How do I hide scrollbars in Firefox?
How can I hide the scrollbars of gadgets in Firefox I've tried adding overflow:hidden to the css, but it doesn't do a thing. abowman wrote: I hope this gets resolved soon, because it looks horrible. I wouldn't rely on it, since this behavior has been in place for more than a year (since live.com switched to iframed gadgets in late-November or early-December 2005). The best way to work around it is to make sure that your gadgets don't exceed the default size of the iframe. It's okay for them to be smaller, but larger causes scrolling. It's not a perfect solution, since the disabled scrollbars will still exist, but it's better than not supporting Firefox at all. ...Show All
SharePoint Products and Technologies LDAP Membership Provider with SSL
Hi, dear MOSS community, We are trying to implement user authentication against Active Directory via LDAP. We have successfully configured the LDAPMembershipProvider WITHOUT SSL for the authentication. But if we try to do the authentication via LDAPS by changing the the attribute "useSSL" from false to true, and the port from the stardard "389" to "636", user cannot log in with their credentials anymore. Are there any steps that we are missing in the configuration By the way, we have already installed the certificates of the Active Directory on the local machine. Hier ist the configuration for the LDAPMembershipProvider: <add name="LdapMembership" type="Microsoft.Office.Server.Security.LDAPMembershipProvid ...Show All
Visual Studio 2008 (Pre-release) May CTP Installation problems ...
Hey guys, I've run the May CTP installer on my machine ( Win XP Pro SP2) with VS 2005 Pro - both US English. The installer succeeds, everything seems to be working ok, however the project templates for LINQ are nowhere to be found in my C# New Project options. If I open the sample solutions off the hard drive, they compile and run file, therefore I assume that there's something wrong with the project templates Anybody have a clue Cheers, Angel For what its worth... I had the same environment except; I installed Visual Studio SP1 - Beta prior to installing the May LINQ CTP. LINQ seemed to work fine with no significant problems. Shawnk ...Show All
Visual C# Difference in allocating memory when static or local
I have a static array of struct that I use in a lot of code. Recently I have found need to try and create this variable with an array size over 27M. I am able to do this, as a test, if I create a local variable, but my code requires that it is static and when I try to create it - I get an OutOfMemory Exception. My machine has 4G ram and can easily hold the array. How might I get around this problem Moon But you don't have 4GB unless you're running 64bit Windows, you only have 2GB, since Windows takes the upper 2GB of the address space. In addition, .NET consumes a large portion of the memory too, so your actual memory available to your app is between 800MB and 1.2GB depending on .NET' ...Show All
SQL Server How to combine to boolean collumns ?
Hi, my name is Wilhelm and I'm new to this forum. I having problems with a SQL SELECT statement. I'm trying to combine two boolean columns in ms sql server 2000. I tried this: SELECT (Bol1 OR Bol2) as Bol Anyone have any suggestion why this don't work I think i have done something similar in Orcale ones. ...Show All
Visual C++ Static object initialization and thread safe
I have ran into a situation that is very werid. Could anyone help me This a C++ application built and debugged on Visual Studio .Net 2005. Basically I'm implementing a singleton class using double check locking pattern. I have read many arcticles about how this pattern is not thread safe, but my problem is slightly different. Here is the pseudo code: MyMutex.h/cpp class MyMutex { public: ... Lock() { ... } Unlock() { ... } ... }; ThreadMutex.h/cpp class ThreadMutex { public: ThreadMutex() { ... _lock = new MyMutex(); ... } Acquire() { ... _lock->Lock(); ... } Release() { ... _lock->Unlock(); ... } ... private: M ...Show All
SQL Server Package configurations stored in the database
If the configurations are stored in the database then does the package pick up the configuration as and when required or it a one time pick when the package is executed. What I plan to do When the package is executed, I want to have a script task at the start of the package that will update the configuration table in the database with the values that the package needs to run with. I mean change the values of the configurations of the tasks which will be executed after the script task. Thanks for your time. $wapnil spattewar wrote: Ok understand that. Then maybe I can save the package configuration into an xml file and the provide that xml file as an input to th ...Show All
Visual Studio How to show the totalpage number with c#
dear all i am a newbie today i have a question in CR 11 How to use code to show the totalpagenumber in My Winform Application(Not VB.NET) my environment C# 2005 ,CR 11 HELP me pls! crReport.FormatEngine.GetLastPageNumber(New CrystalDecisions.Shared.ReportPageRequestContext()); where crReport is of type ReportDocument. you must have set parameters and database logon or else this will throw an error. ...Show All
