Özge Çolak's Q&A profile
Visual Studio Express Editions Can U get line numbers for the *.cpp files area
When U code in a Visual Studio env, can U get the line numbers in the code area, ie *.cpp or *.c area. How Thanks Yes. Go to Tools menu, Opions, Text Editor, C/C++. Under Display you'll find a check box named "Line Numbers". Check that. ...Show All
Visual C# Why can't attribute parameters be dynamic?
I was looking at decorating a method with the PrincipalPermission attribute. It tried to do this: protected static string foo = "bar"; [PrincipalPermission(SecurityAction.Demand, Role = foo )] public void DoSomething() { } But it doesn't compile: "An attribute argument must be a constant expression, typeof expression or array creation expression" What the technical reason for this and do you think it would be good feature to have this, or better to leave it as it is I would be very interested in hearing your opinions on this, thanks! DebuggerDisplayAttribute, like every other attribute, cannot take parameters at runtime. They must be compile-time constants. DebuggerDisplayAttribute takes ...Show All
Windows Forms MAJOR Bug? In Webbrowser Control
There is a major bug in the webbrowser control, OR I am doing something wrong. I'm hoping its the second. Whenever you navigate directly to a flash application (ex. www.microsoft.com/flash.swf) in the webbrowser control, buttons in the flash application do not work unless the application is unfocused. 1) Is this supposed to happen What properties could be screwing this up 2) Are there any fixes for it if it is indeed a bug I think it may be a bug, according to this previous post... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=152285&SiteID=1 ...Show All
Visual Studio Filed to import .ACF files to Access 2003
I use Visual Source safe v6.0 for developing Access 2003 applications. I can not get Forms from Source Safe for one of the Access database. The error message is "Filed to import file 'c:\~.ACF' into Microsoft Access" Does anyone know how to fix this problem It sounds like your ACF files might be corrupted. Can you run Analyze on the VSS database Also, please check the file properties and verify whether it is listed as "binary" or "text". ...Show All
SQL Server Stored Procedures Not Converted or copied to SQL Server 2005
I am converting about 50 databases from Windows 2000 and from SQL Server 2000 to a totally new 4 processor Server 2003 with SQL SErver 2005. I used the Database Copy Wizard in SS2005 to do the transfer. After making sure the databases were big enough to hold the new Masterdatabase everything went well... except none of the stored procedures from any of the 50 databases copied from SQL Server 2000 to SQL Server 2005. What did I do wrong And how do i fix it. Also, even though I changed the default database, the wizard did not reflect the new SAN location for the Data and Log files. I had to do each one manually. When you specified the location names, I'm assuming that the SAN was on-line. ...Show All
Windows Forms DataGridView and new rows
I have a DataGridView that binds to an IList<T> collection of custom objects. The problem I have is that when I click on the new line, the DataGridView creates a new object using the default constructor (but I assume it doesn't get added to the collection at this point). What I would like to do is intecept this proceedure so that I can call a different constructor for the new object or else do some initialization before the DataGridView attempts to bind it. The reason is that my object implements ICustomTypeDescriptor and I need to set up all the rows to have identical properties so that they can all have the same columns. Any help here Thanks. In simpler terms, use the BindingSource.Add ...Show All
Visual C++ Weird compiler error related to function template argument deduction
Hi everybody. I have just found a compiler error that is driving me crazy. I can not guess what is going on with this: //****************************************************************************** struct Dummy { void CallMe(const int i) { //WhatEver... int a = 43; } }; template <typename T> struct Test { template<typename R> void Function(R* pInstance, void (R::* TMemberNonConst) (T param)) { //WhatEver... int a = 43; } }; int _tmain(int argc, _TCHAR* argv[]) { Dummy dummy; Test<const int> test; test.Function(&dummy, &Dummy::CallMe); //Error.... } //*************************************************************************** The compiler says: error C2784: 'void Test&l ...Show All
.NET Development Transaction support in MS ACCESS
I made the following query on the Office forums... I am using VB.NET 2005 to program a Database Application, with Access 2003 as the DB backend. Every now & then, I have to make a series of updates to the tables as a result of user actions. Either all of these updates should be performed or none of them should be applied to the database. ADO.NET provides transactions fo the purpose. So, I create OleDB commands for each update. Now, the problem is that when I set the command's Transaction property as: command.Transaction=tx and later try to commit or rollback the transaction using, tx.Commit or tx.Rollback It gives me an exception saying that the ...Show All
Visual C# running application error
my friend send me a program..he made a setup for that program.. installation is succesful ..i can install the .exe application.. he wrote that program with using Visual Studio / C#.. but i cannot use that program..when i try to run program, windows xp creates an error report.. i installed dotnetfx 2.0 .. do i need anything else the error report is this: http://img216.imageshack.us/img216/5413/vfdzz2.jpg and the contents of the error report is this: http://img177.imageshack.us/my.php image=dfstt2.jpg Error says FileNotFoundException, which means you probably need some file. Maybe your friend did't put in the setup or that file is expected to be in some location in your system but it's not there. You must contact your friend t ...Show All
Windows Forms DataGrid
I would like to populate a datagrid during a forms load procedure... It is a static grid i.e it will always be the same. How do I insert the headers and the data in the columns and rows Thanks Mitch well it depends on how you are doing this. are you populating the data etc... from the database and binding it on form load if so, then technically it can be bad design as well, it can take time since databases are expensive and anything can go wrong, so if this happens whilst form is loading (form_load) then anything can go wrong such as errors and user will be unhappy. I would therefore make a button for example to do this job so the user is in control and can do what they like when ...Show All
.NET Development Securing my assembly
Here is the thing. I have a component freeComponent which references coreComponent. Its like this: coreComponent | | V freeComponent I want to give my freeComponent to another user but that will mean that coreComponent.dll should also be given to him since my freeComponent.dll references it. I want to prevent him from using my coreComponent alone. I mean he should not be able to add coreComponent.dll as reference to his own projects. Is that possible by signing that asssembly with a strong name and private/public key pairs Any help will be appreciated. Thanks. Well, not really. Once it's on his PC, he can do anything. But you can raise the bar. See http://msdn2.microsoft.com/en-us/library/0tke9fxk.a ...Show All
SQL Server Attributes not visible in Cube when adding with AMO and Hierarchyenabled = false
I need help with a big problem. I'm using AMO to add new Attributes to a Dimension and I have to use AttributeHierarchyEnabled property = false as Default. But then I'm never able again to see the Attribute in the Cube though I change with Visiual Studio the property to true. If use AttributeHierarchyEnabled = true all works fine. Dimension dim = mDataBase.Dimensions.GetByName(Attr.DimensionName); DimensionAttribute Attribute = dim.Attributes.FindByName(Attr.AttributeName); Attribute = new DimensionAttribute (); Attribute.Name = Attr.AttributeName; Attribute.ID = Attr.AttributeName; ... Attribute.AttributeHierarchyEnabled = true ; dim.Attributes.Add(Attribute); Thanks for any help. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Sprites
Hi all how can I draw sprites on more than 1 or 2 different layers is there a possibility like a "z-coordinate" for a 2d sprite - which gives the order of the sprites I do know the Spritebatch.Begin(SpriteBlendMode.AlphaBlend); - method.. but can i put 3 or 4 sprites above each other I hope you know what i mean ;) thx greg http://msdn2.microsoft.com/en-us/library/2782338-65f-34da-cab2-2483afee3df7.aspx#Depth The SpriteBatch's Draw method has two overloads that allow you to specify the sort depth. ...Show All
.NET Development xml error
I try to load a xml file. When i do i get the fowlling error below Data at the root level is invalid. Line 1, position 1. Cisco < hi > < Spary106914 > < apop > < ActionName > MoveUpRelative </ ActionName > < Parameter > Distance </ Parameter > < Value > 0 </ Value > < Unit > cm </ Unit > < Notes > Click to add notes </ Notes > </ apop > < apop > < ActionName > MoveUpRelative </ ActionName > < Parameter > velocity </ Parameter > < Value > 0 </ Value > < Unit > cm </ Unit > < Notes > Click to add notes </ Notes > ...Show All
.NET Development XMLElement Attribute
Good Day Everyone!! I am just wondering if it is possible to use the XMLElement Attribute without indicating the XMLRootElement I was doing a serialization and deserialization coding and when i tried to deserialized the XML without specifying the root element in the serializable class, it produces an xml error. Any help would highly be appreciated!! Thanks! The wrapper (top-level) element of the instance has to match XmlRoot attribute declared on the class you are desrialinzing, you do not have always declare XmlRoot attribute: in the absence of the explicit [XmlRoot], the name and the namespace of the wrapper will be determined as follow: wrapper name == the name of the class (possibly xml encoded, if it has xml-invalid ...Show All
