Martinezg's Q&A profile
.NET Development Static Interfaces
What about allowing static interfaces Regards SvenC, Here's an example of where a static interface ( or possibly an interface which includes both static and non-static methods) might be useful. Suppose that we want to create a bunch of validator objects in our domain, but we don't want to incur the costs of object creation. Furthermore, aside from performing validation, there is really no need to keep the validators around - e.g. a ...Show All
Visual Studio 2008 (Pre-release) MouseGesture Working correctly?
I have the following code, and when I use a keyboard gesture, I get the notifications perfectly, but with the MouseGesture's, nothing, I can even limit it to ModifierKeys.None and still get nothing... InputGestureCollection pasteInputs = new InputGestureCollection (); pasteInputs.Add( new MouseGesture ( MouseAction .LeftClick, ModifierKeys .Control)); AdvancedPasteCommand = new RoutedCommand ( "Paste" , typeof ( Window1 ), pasteInp ...Show All
.NET Development converting c++ char array to .net string
Hi all, I'm having some trouble to read a binary file containing a c++ struct's data into my c# application. The last 16Bytes of the 24 Byte file contain a 15 chars and the \0 end character. I'm trying to convert these bytes I read from the file to a C# string using BitConverter.ToString(data, counter + 8, 16); However, what I get is just: 30-20-36-30-30-20-38-30-30-20-30-32-34-00-00-83 I don't have any idea how get the actual text from the f ...Show All
SQL Server How to format in SSMS?
How can I format a query in SSMS so it does not look like this: sELecT * fRoM CusTomERs Currently SSMS doesn't have any tools to format queries except of query designer and Ctrl+Shift+U or Ctrl+Shift+L. ...Show All
.NET Development How do I know if I need MFC x86 or x64?
I know this sounds like a dumb question but here is why I am asking. I recently installed the .NET 2005 Express versions of C++, C#, and J#. I have a 64 bit laptop running win64. It has 2 program folders one for 64 bit apps and 1 for x86 apps. After the installation was complete I notcied that all of the Visual Studio Express versions were in the x86 folder. There is however one folder name MS Visual Studio 8 in the 64 b ...Show All
Visual Basic vb.NET2005 frustration .....'Unable to copy file "obj\Debug\....." to "bin\Release\......"'
Recently, but not immediately, I started to get the above error message almost every time I rebuilt my vb.NET application. The only way I know how to proceed is to rename all the \bin\Release\ files. I'm sure this isn't the normal expectation but why do I get it and how can I avoid it Urgent help required please! Geoff what other programs are running at the time, you dont have a second instance of vs with that pr ...Show All
SQL Server Can Alter (current) Database?
I have a *.sql script that creates database tables, and I need to modify the database to enable the service broker. In addition, the actual name of the database is not known in advance - it is set per instance of the application. I know I need to do: ALTER DATABASE dbname SET ENABLE_BROKER But I must avoid including the name of the database in the script. I did wonder if this would work: DECLARE @DB varchar(50) SELECT @DB ...Show All
Smart Device Development Accessing the Garmin iQue M5 built in GPS Unit
I wonder if someone out here could help me. I'm busy building an application for specific use with a Garmin iQue M5 Pocket PC. I was very excited when I joined the Garmin Developer Network ( www. garmin .com/DeveloperZone/ ) and found that there was an SDK already built for this unit allowing developers access to the built in GPS Unit. Sadly, once I had downloaded the unit I realised that it was built in Native C++, something which I am not ...Show All
Windows Forms Reverting an upgrade
I have an application with some tricky customizations at customer sites. For the most part upgrading is straightforward, but I'm worried about accidentally blowing away some customizations while running the upgrade. Is there a way to roll back an upgrade, to the original files, after the upgrade install has completed Thanks! I believe that if you go to Add/Remove programs and opt to remove, it will ro ...Show All
Visual Studio Team System Team Explorer Bug - Get Latest on Check-out
I consider it a bug that Team Explorer does not fetch the latest version of a file when the client selects to check it out for edit. There should be at least an option in settings to enable/diable this. Editing out-of-date files is getting old. That's my 2 cents. DougN explains why this is the default behavior: http://blogs.msdn.com/buckh/archive/2005/08/20/454140.aspx In short, silently breaking your build is a lot worse than making ...Show All
Windows Live Developer Forums How to call a web server asyncronously without ActiveX
My article at http://www.codeproject.com/jscript/MSNMessengerActivity.asp shows how to call a web server from your MSN Messenger Activity without using ActiveX. When the update gets added by tomarrow hopefully then it will also show how I simulated a mouse pointer so that each user can see the others mouse movements without using ActiveX. Check them out if you need either of these techniques for your activities. I have alre ...Show All
Visual Studio 2008 (Pre-release) database support
Hi! Will LINQ support database providers other than sql server Actually, I didn't ask -- someone else did. But I *was* wondering when a Mono-affiliated project was going to be doing something with this, aside from the XLinq classes that were whipped up during PDC. ...Show All
Visual C# DateTime.Parse and empty strings
I'm trying to import a text file into my SQL table. I'm running into problems when the date field is empty. DateTime.Parse(sField[3]) will throw and exception if the field is blank. I've tried sField[3] =="" null : DateTime.Parse(sField[3]) to no avial, the compiler comlains that it cannot implicitly convert datetime to string. any ideas Glad you got it working. You can streamline the above cod ...Show All
Visual Studio Does VSS 2005 have Netsetup?
Does VSS 2005 have a netsetup or equivalent I much prefer that installation tool versus toting and inserting a CD at every client box. Mike Hi Alin- This is an old thread, but I have a related question. We would like our many developers/users to uninstall their VSS 6 clients and then install the VSS 2005 client. We do not want them to have the option to install the Administrative tools or the server ...Show All
Visual Studio .net framework unable to install.
[07/13/05,17:37:48] Starting Install.exe [07/13/05,17:37:48] Parsing switches from commandline: C:\DOCUME~1\Desktop\LOCALS~1\Temp\IXP000.TMP\Install.exe [07/13/05,17:37:48] SourceDir: C:\DOCUME~1\Desktop\LOCALS~1\Temp\IXP000.TMP\ [07/13/05,17:37:48] Install started [07/13/05,17:37:48] Checking system requirements [07/13/05,17:37:48] OS: Win NT [07/13/05,17:37:48] Ver: [07/13/05,17:37:48] SP: Service Pack 2 [07/13/05,17:37:48] Checking I ...Show All
