Jupi's Q&A profile
SQL Server AttachDBFileName refers to original log file
Hello, I'm using the AttachDBFilename option in the SQL connection string to attach a database mdf file copied to another machine. There is an error though, it seems to want to refer to a log file on the machine the .mdf was originally created on. The error is as follows: Could not attach file 'C:\Program Files\Strategic Systems\Time Master\TimeMasterDat.mdf' as database 'TimeMaster'. File activation failure. The physical file name "D:\Visual Studio 2005 Projects\Strategic\Applications\TimeMaster\Database\Strategic.TimeMaster.Database.SQL2005\TimeMasterDat_log.LDF" may be incorrect How can I get the attach to avoid referring to this log file If you want to use a server attached instance you will ...Show All
Software Development for Windows Vista DelayAvtivity in whileActivity
I have a a voting application. The users have 24 hours to vote on a certain matter. I have the a listen activity inside a while loop that count all the votes. The whole voting process must stop after 24 hours. I can not place a the listen activity inside another listen activity and when i place the delay activity inside the while activity it is resetted every time that the loop goes through. Any ideas on how to do this workflow The two options I can think of are using a Replicator with a Listen child or using a StateMachine. For the replicator option you would initialize the InitialChildData with all the users that could vote and a separate instance of the Listen will be created for each user. W ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Framerate Independent Movement
Hey all, GameTime gives us ElapsedGameTime and ElapsedRealTime. I'm used to using real time for my framerate delta values to move objects - but it appears that Update() is locked at 60 frames per second. So should I be using ElapsedGameTime.TotalMilliseconds as my delta Thanks all. I have the same problem but to disable this add : graphics.SynchronizeWithVerticalRetrace = false; IsFixedTimeStep = false; graphics.ApplyChanges(); The problem is that i use realtime and all become more fastly if 60fps is desactived... ...Show All
SQL Server Getting only the first member when isAggregatable=false
Hello, I am using AS 2005 and trying not to get the "All" member in the cube browser. I changed the value of isAggregatable to false of the highest level in the dimension. than, I change the the AttributeHierarchyEnabled of the children to false (otherwise the cube could not be deployed). than I tried to view the dimension in the cube browser, and I could see only the first member of the dimension. Is there any way to see all the members without the "all" member I would appreciate any help! I tried that, and it didn't help. I have noticed that if i have one dimension in the cube, than it works fine - but My situation is that I have 2 dimensions, the first one is related to a table and the second one is relat ...Show All
Visual Studio How to get class from CodeClass or CodeElement?
I want to get the class object from CodeClass. CodeClass.FullName gives me the class name in string type but I want to get the object of that type. Do I need to use reflection I appreciate your help. Notice that an add-in can work with: - Code declared in source files, maybe not compiled yet or out of synch. For this you use the extensibility model (EnvDTE) which provides classes such as CodeClass to retrieve information from the source code without forcing you to parse it. Since the code maybe is not even compiled, there is no point asking about the object of a type. - Code compiled in assemblies. For this you use Reflection, which can be used outside add-ins too. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Benefits of XNA Game Studio
Can someone with experience using Game Studio please identify the features it provides to assist an individual game developer I'm skeptical because it doesn't have any built-in capabilities to import animations created in 3D packages. That's a basic feature any game creation tool should have. You are dismissing alot of features that came with XGS: * template projects to get you started * basic game engine/state machine already written for you * content pipe-line so you don't have to worry about resource format/import/export if you just need the basic * deployment on Xbox * debug your code via simple Visual Studio interface * access to alot of the graphics classes/routines so you don't have to write your own ...Show All
Software Development for Windows Vista ICredentialProvider
Did anybody make a successful user logon using the new ICredentialProvider interface My credentials are displayed, but I can't make them to logon. And what worse - after 20 or 30 seconds, the winlogon crashes completely with no recovery possible excepting hardware reset. I thought I basically did something wrong and decided to wait for more detailed documentation or some sample code. But MS doesn't seem to put too much effort on improving their SDK documentation and I also found that at least one other programmer has the same problem: http://msdn.microsoft.com/newsgroups/default.aspx query=vista&dg=microsoft.public.platformsdk.security&cat=en-us-msdn-windev-winsdk&lang=en&cr=US&pt=&catli ...Show All
Windows Forms datagridview cell focus and reset datagridview
Hi, How do I do to the "cell focus" don’t pass to the next row when I press <enter> in a unbound datagrindview Insert or edit row I would like that "cell focus" stay on the same row that I Insert or Edit ! and... How I reset the unbound DatagridView I have a "New Button" on my form and I need to clean the datagridview, but I don’t know how do that Thanks ...Show All
SQL Server Get date according to particular timezone
Hello, I am struggling with one algo i.e. I want to retrieve the date according to time zone I have table called TIMEZONe in which i have the information about the hours difference (+12 to -12) from GMT... now my scenario is that I want to get the date, using information from timezone area table (time difference from GMT), of any particluar time zone can any one tell me, how will I able to achieve this task. for example: it 4:00 AM in the mornign in GMT TIME and date is 11-08-2006 but in US it 11:00 PM and date is 10-08-2006 Note: Server date is set to GMT (System date) regards, Anas you can use the script task to achieve what you're attempting to accomplish. i suggest that you employ th ...Show All
Windows Forms Eject CD
Hi, I am making an application that allows user to eject CD through pressing some button. How can I do this Do I have to call some API which API would that be any alternative ways any pre-built DLL from some website Thanks, put it somewhere in your class...I usually put them at the top below my class variable declarations but it can really go anywhere inside the class ...Show All
Software Development for Windows Vista question about the custom debugger on windows forms application
I've been using the custom debugger for windows forms posted here: http://wf.netfx3.com/files/folders/design_time/entry1929.aspx And it works great. Just a question. When a different view of a composite activity is being "debugged" (like the Faults View), I cannot make it to appear automatically, so if the activity being debugged is in that view, I have to change it manually (clicking on the views tab on the designer)... So, I would like to know how can I make the debugged view (in this case, the Fault View) to appear without user interaction when an activity that belongs to it is active. I've been trying the methods ActivityDesigner.EnsureVisible() and activityDesigner.Parent.EnsureVisibleContainedDesigner(activityDesigner) ...Show All
SQL Server CREATE SCHEMA fails Inside an If Block
Hello All, The below "CREATE SCHEMA" sql statement fails if it is inside an IF block. It runs fine if i run it without the IF block... --------------------------------------------------------------------- IF NOT EXISTS ( SELECT * FROM sys.schemas WHERE name = N 'Customer' ) BEGIN CREATE SCHEMA Customer AUTHORIZATION [sys] END ---------------------------------------------------------------------- Did anyone encountered this issue before.... Thanks.. This is such an OBVIOUS shortcoming of TransactSQL. Why hasn't Microsoft corrected this flaw. As far as I know (with the exception of entering the exec ('sneak the CREATE in as a te ...Show All
Game Technologies: DirectX, XNA, XACT, etc. spacewar starter kit problem
When I run the spacewar starter kit on visual studio (f5), it seems nothing happens, it can't even accept mouse pointer. Is this the proper way of running this starter kit. Also unless you enable the keyboard you can only play spacewar with the xbox 360 controller. So if you se the title page but cannot move on then this is why ...Show All
Visual C++ Build Errors for a Dll
Hello, I get the following errors when trying to build: It happens over 10 times Performing Post-Build Event... The filename, directory name, or volume label syntax is incorrect. 'Unit' is not recognized as an internal or external command, operable program or batch file. Where are the files located that it is trying to invoke Project + properties, Configuration properties, Build events, Post-build event, Command line. Whatever is there is probably causing your problem... ...Show All
.NET Development how to control the webreference proxy generate tool to generate return collection type of webmethod
how to control the webreference proxy code generate tool to generate custom Collection class return collection type of webmethod like "ArrayList", than Array. for example, Class A { // be omited public List<string> Names { get { // be omited } set { // be omited } } ///be omited. } publish this class to webmethod return type a webreference proxy code will generated below like: Class A { // be omited private string[] m_Names; public string[] Names { get { // be omited } set { // be omited } } ///be omited. } how can i control this action code generate to generate code like below: Class A ...Show All
