Hila123's Q&A profile
.NET Development Boolean or bool?
I noticed when I am declaring fields that their are both a Boolean type and a bool type private Boolean mIncreasedInvasion = false ; private bool mExecuteScript = false ; What's the differance between the two Is there a performance differance Should one be used instead of the other Or are they both the exact same thing Thanks for clearing this up for me, Scionwest No difference. From MSDN: The bool keyword is an alias of System.Boolean Most people use the bool keyword (and similarly for int, long, string etc). ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Speed of XNA - Super Stickman Adventure
Hi all, why is this game so damn slow I testet many tutorial games and lots of them have a bad frame rate is this a problem of XNA or bad programming Make sure you're not running it in Debug mode. I have a project that runs at 30FPS in Debug mode but 200+ otherwise. From VisualStudio use Ctrl-F5 instead of F5, or just run the .exe in the Release folder from Windows Explorer. Matt ...Show All
Visual C# Recording a wma stream to a file?
Hi, how can I save a wma stream (without DRM) from the Internet directly to a file on my local filesystem Thanks in advance, Randy ...Show All
.NET Development Cross-Thread Events
Is there any way of directly raising an event in another thread The way I implement such a task now is by using SynchronizationContext.Post to call a method in the other thread and then raise the event from there. If it is possible to directly raise an event in another thread I doubt that it would cut down on the overhead, but it would reduce the complexity and size of the code. Hi, I do it using the same technique as you, posting using the synchronization object. I have seen implementations where you build a proxy object that can expose methods to raise events. This proxy is visible in both threads (static if the sync is between two threads only or instanceable if there will be many objects). Therefor ...Show All
Visual C++ DDK functions link error (error LNK2019: unresolved external symbol )
Hello. I have new other link errors due to probably ddk functions... Please see below the link errors. I made sure that files containing the declarations are included in the project, but no definitions in the project because they are ddk functions. Also, I included <ntddk.h> and <header_file_having_declarations.h> in the file and set the path in Additional Include Directories as well as Additional Library Directories. What is problem I hope your help... Thank you. System Environment: Windows XP Prof. SP2 MS Visual Studio 2005 Errors: A few Warnings... ... Compiling resources... Linking... Detect.obj : error LNK2019: unresolved external symbol __imp__ZwClo ...Show All
Visual Studio Team System outside changes to solution don't make it into tfs
OK We use an orm to create a data layer for our apps. This orm generates classes and modifies the project file from it's own ide. After a change, the vs.net ide says "hey you changed the project file, do you want to reload". I hit yes, and any new classes it generates are in my project now. The problem is that the new files don't make it into tfs like they used to with vss. Is there some way I can fix this Right now I have to remember to remove the new files with exclude from project and readd them back which is a royal pain. Even a right mouse click that had a add to tfs would be ok. Thanks. Note that the powertoy should work here. It should pend edits on the csproj files, and adds to ...Show All
.NET Development Multiuser in ado.Net
I have this windows forms application used by one user. Now there are 2 users on this application. Everything is running on a a small network with SBS 2003, SQL 2000 and Windows XP clients. The forms application is coded in VS 2005. As i am using ADO.Net anywhere in my application, all data is always cached in the client side . This means that the 2 users don't see (immediatly) the changes made by the other user (which is unacceptable). How should i solve this Do i really need to replace all ado.net code with custom business objects I don't know the terms to search for a system like this. Hope someone in here knows more than me. I have to say I never implemented something like this on a big system. Instead of using ADO the cl ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Writing the screen back to itself
Hi chaps, just started playing with the XNA studio, and its top banana. 2D graphics are proving straightforward, especially as blitting, clipping, rotating and scaling sprites is so easy. Now I have a little question. - lets say I want to grab the screen as a texture so I can write it back to itself, but with more transparency - ie do the classic full screen feedback blur beloved of so many mp3 players and Squaresoft games - what is the best approach ie - how do I turn the screen into a texture. and how do I access the alpha channels on a per pixel basis so I can increase all the values in this new texture Or is there a better way to do it, for instance with tinting or some other shortcut Any help much appreciated. I've only been co ...Show All
SQL Server How to detect overlapping Time Entries
Hello, I am trying to create a SQL Statement which will identify if an entry can be added to a table or not. My table consists of 4 fields which are: . UserID (Integer) . StartTime (datetime) . EndTime (datetime) . Activity (varchar) This is a timesheet application. I am trying to identify if a time entered by a user is valid or not. Basically, times cannot overlap. I'm trying to figure out how to code for the following conditions: Assume an entry already exists for User 1 as follows: . UserID: 1 . StartTime: 2006-12-30 08:00:00 . EndTime: 2006-12-30 08:15:00 . Activity: Test I want to make sure that the following entries cannot be added by that user because they would overlap the existing entry: . StartTime: 2006-12-3 ...Show All
Visual C# Use function from DLL file
Hi, I'm a beginning C# programmer and I'm writing an earlier written program(c++) in C#. I have a DLL file called K8062D.dll which has following functions: StartDevice Opens the communication link to the K8062 device StopDevice Closes the link to the K8062 device SetChannelCount(Count) Sets the maximum DMX channel in use SetData(Channel, Data) How can I call these functions from C# Best regards, Yannick Michael_Grumbach wrote: Do I just make sure the dll file is in the same directory, or do I put a reference to it in the code somewhere Putting Dll in the same directory as of your application is enough and you dont need to do anything. Best ...Show All
.NET Development Node order when validating against a DataSet generated schema
I have a schema which was generated by a dataset which was filled by a data adapter, so it's all xs:element -> xs:complextype -> xs:sequence. I try to validate an XML document against the schema, and it fails because nodes are out of order. Everything about the document is correct except for the node order. Is there any way I can either magically reorder the nodes according to the schema or ignore node order when validating Alternately is there a way I could modify the schema to allow unordered nodes I tried changing xs:sequence to xs:all, adding maxOccurs=1 to the appropriate nodes, but it failed when it got to my maxOccurs="unbounded". I create a new xs:sequence section below the xs:all section and added the unbounded nod ...Show All
Visual Studio Team System Good book on SQL Server Reporting Services in TFS context
Hello guys I wonder whether someone could recommend a good book on SQL Server Reporting Services. I need to create customized reports for some Team Projects and I know that there are several books out there on SQL Server 2005 Reporting Services but I was wondering if there was a book that somehow closely relates to Team Foundation Server. Thanks Gabriel Hi Gabriel, As far as I know there is not a book that tells you how to make reports with TFS. You can look at this post for a bunch of references: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1243455&SiteID=1 I can ask our developers for what references they use when building the reports. HTH mauli ...Show All
Visual Studio Team System Error when running tests: Column 'TestType' does not belong to table test.
I and everyone on my TFS team is getting the following error message box when trying to run unit tests: --------------------------- Microsoft Visual Studio --------------------------- Column 'TestType' does not belong to table test. --------------------------- OK --------------------------- I checked the TFS databases, and I couldn't locate any table named test, so I'm not really sure where else to look. Has anyone seen this before We've been able to run tests before and this just started happening today. We are using the RTM version of Visual Studio Team System with TFS Beta 3 Refresh. I received the Column 'TestType' does not belong to table test error as well. Steps that I remember doing to re ...Show All
.NET Development FileStream and Sockets running slow...
Maybe someone can shed some light here. I am using sockets and FileStream to send a file from client to server. Everything works fine, except it is REALLY slow. I mean like 2kb every 5 seconds. The basic rundown is: CLIENT: fs = new FileStream(@"c:\mailroot\MENU.pdf",FileMode.Open,FileAccess.Read); byte[] currentBuffer = new byte [16384]; fs.Read(currentBuffer,0,16384); return Encoding.ASCII.GetString(currentBuffer); SERVER: (Arg is the string of currentBuffer above) fs = new FileStream(@"c:\mailroot\temp_file.txt",FileMode.Create,FileAccess.Write); fs.Write(Encoding.ASCII.GetBytes(Arg),0,Arg.Length); Upon testing, I found that the read is quick, and the encoding is quick. Milliseconds. ...Show All
Visual Studio Team System Unable to determine the workspace
I am executing the below command line implementation as .bat file. I am getting "Unable to determine the workspace" while getting the latest version. IF NOT EXIST C:\TFSGet MD C:\TFSGet tf workspace /delete ws1 /noprompt /s:s1 /login:j,j1 tf workspace /new /s:s1 ws1 /noprompt /login:j,j1 tf workfold /s:s1 /workspace:ws1 /unmap $/ tf workfold /server:s1 /workspace:ws1 /map $/x/y/z/customer/9 C:\TFSGet tf get /recursive /noprompt echo getting files echo finished The 'get' command in tf.exe attempts to automatically determine the workspace which it should operate on. For this to work correctly there can only be one workspace with a local path mapped at or below the directory in which the ...Show All
