wajhi's Q&A profile
Smart Device Development VS2005, How to create Mobile5.0 project
If I want to create a project for PPC2005, (WM5.0), how do I do that in VS2005. When I click to create new project, I see only the following options under Smart Devices. PPC2003, SP2003 and CE5.0 devices. If I create project for CE5.0 device, the screen sizes are not for PPC devices. We have to adjust each screen's size as well as calling PPC's unmanaged API's throws exception. Can somebody help Thanks. But when I try to create Device Application(1.0) project for Mobile5.0, it says 'This project requires .NET CF1.0 which is not installed on this machine'. I do have VS2003 and .NET CF1.0 with service pack ...Show All
SQL Server how to do case-sensitive search
say, in my database there're two rows, name age career ------------------------ dave 20 student Dave 20 student if i use select * from db where name='dave' both will come out, how to do a case-sensitive that i got only the 1st row I do think I understood your question, however you can pich the collation you want but be sure to check the Case sensetive checkbox. ...Show All
SQL Server Memory configuration for SQL 2005 x64 bits
Hi I understand that I do not need to use /PAE on Windows Server 2003 x64bits as it is not supported. I also do not need to use awe enable under SQL Server 2005x64 bits because 64bit SQL doesn't need to use the AWE api to address the larger memory space. When I do a sp_configure, AWE indicates that it is disabled but is that OK Do I still need to set a max and a min memory for SQL Server Is there any pro/cons if I do that Please advise. Thanks. This is really a question for the database engine folks, so I've moved your post to that forum. Paul ...Show All
SQL Server SQL 2005 Developer edition fails during installation
When trying to install SQL 2005, I keep getting the foll. error: Error 1706. Setup cannot find the required files. Check your connection to the network or CD-Rom drive. For other potential soltions to this problem, see C:\Program ....\1033\setup.chm I have tried using two different DVDs, and also downloaded SQL 2005 from msdn, but none of them work. Can some please help. Thanks, Amir acharania@trimontrea.com JHD , thanks a bunch. I ran into the same problem when installing SQL Sever 2005 on WinXP Pro. Your post put an end to my endless search for the solution. Once again, thank you very much! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C# - DirectX 9.0c - Creating a Basic Hexagon
I was wondering if someone could walk me through drawing a basic hexagon using DirectX 9.0c in C#. I've been using the Vector3 structure, and I am having problems understanding how to initialize the view transformation matrix for a hexagon, as well as what input vectors will represent the hexagon (understandably 6). Thank you in advance, Owen If I were you I would not purchase the book by Wendy Stahler. The book by Eric Lengyel is very good ( although I do only have the first edition) it provides enough of mathematics and physics to play with for a long time. ...Show All
Visual C++ This application has failed to start because the application configuration is incorrect
Hi, I am just starting programming using Visual C++ 2005 Express Edition. I have had some limited practice in other languages and older versions of C++, so I have some idea whats going on but not much... Anyway I made a short program which perfroms a bubble sort on an array of numbers which the user enters (I know its nothing to write home about but its a start), it works fine on my PC and when I sent it to a freind who also had VC++ 2005 Express Edition it worked fine for him. However I then sent it to a freind without it (in a fairly poor attempt to persuade him to download it) , and my program didn't work on his PC giving the error: ...Show All
Windows Forms bring already opened form in focus
Hi, I have a FormA that is already opened. I am at Form C, and theres a button on FormC that closes FormC and takes user to FormA. Do I need to make an object of formA and do objFormA.Show() again Can I bring the instance of FormA already opened in focus Also, is there any way to check if FormA is already open or not Th ...Show All
Windows Forms MaskedTextBox and the Decimal Type
Hello All, I'm hoping someone can help me with this one. I have a model object that represents a stock part. This part has a price. The price is stored on the database as type money. The price on the object is stored as type decimal. I have a binding source that has this object as it's datasource and it is bound to serveral controls on the stock part view. The bound control for the price is a MaskedTextBox. When I input a price, say 2.35, and tab out of the control it is stored properly in the object but the bound control displays 235.__ I have tried the following masks, none of which work... 999.00 ###.00 000.00 Can someone clue ...Show All
Windows Forms TaskVision VB.NET
YES! After a full week of dedicated work, I have ported every single line of this application to VB.NET! jc, what a butload of work. Soon as I can actually verify that all is working like it does in the C# version. I'll be happy to post my source here to anyone who is interested. I have learned a lot porting it over, and I hope you will& ...Show All
Windows Forms NullReferenceException using CodeDomComponentSerializationService
I'm seeing a NullReferenceException when calling Deserialize on an instance of CodeDomComponentSerializationService in my custom designer. I am trying to implement cut/copy/paste functionality. I have already successfully implemented Undo/Redo using the same class to perform serialization. Using the default Windows Forms implementation for the Paste command (in the private CommandSet class from what I can see), the components are serialized without complaint (using CommandSet's copy and cut), but always throw the NullReferenceException on deserialization. To troubleshoot, I've attempted an immediate deserializatio ...Show All
SQL Server Problem in Initialize SQL2005 Reporting Service
I have installed SQL 2005 Standard Edition downloaded from MSDN web site and selected to install all components, install database engine on default instance and default reporting service configuration. After installation, I found that the initialization option in "Configure Report Server" page goes disabled. I checked the log and it has "INFO: Evaluation copy: 0 days left" at the end. I am sure that this server have not installed any pre-release copy of .NET 2.0 and related stuff. Please help. Same problem here brand new machine with 2005 Standard Edition installed. Windows XP SP2 also have VS 2005 ins ...Show All
Smart Device Development SP3 question
I have a few questions about sp3. This service pack came as a set of distributable cab files, not as an sdk, so how does Visual Studio know anything about it It seems to be debugging with an older version of the compact framework. I just ran into issues with this while building an install shield project. Install shield goes to the sdk folder in Visual Studio 2003 and grabs the redistributable cabs there, not ideal for us since we wanted to release sp3 cabs for our newer devices. Do I have to manually update all the cabs in the sdk directory Thanks for any insight. Mike That ...Show All
Windows Forms Forms AutoSize
i wantto be do that when i maximize or make fullscreen form, my form and its component automaticly autosize. how can i do with C# The easy way to do this is by using anchoring and docking . In the .NET 2.0 framework you can also use LayoutManagers for advanced layout management. See for instance TableLayoutPanel and FlowLayoutPanel. Similar behaviour is also possible in .NET 1.1, read this article about it if necessary. ...Show All
Visual Studio Unable to add the command
Hello, I need to add a command to the context menu of the project. I am running the following code: object[] contextGUIDS = new object[] { }; Commands2 commands = (Commands2)_applicationObject.Commands; CommandBars commandBars = (CommandBars)_applicationObject.CommandBars; try { _command = commands.AddNamedCommand( _addInInstance, "WCFProxyGenerator", "Add WCF Service Reference...", "Windows Communications Foundation Proxy Generator", & ...Show All
.NET Development CAS Security and Remoting
I've found what I believe to be a very strange problem that I am about to call a bug, as I cannot find it documented anywhere. Using .NET 2.0, Remoting and CAS (code access security), I am trying to restrict access to my singleton object on the server side. I have found that when using singleton (a single call object does not have this issue), the CAS attributes (in this case PrincipalPermissionAttribute is ignored on the method invoked on server side. Creating a PrincipalPermission and calling PrincipalPermission.Demand() method does infact throw the expected SecurityException in this situation. Example Assume th ...Show All
