gafferuk's Q&A profile
.NET Development Executing Code on Uninstall
Hello, I'm not sure where my question should have been posted, but hopefully this is the correct place. I'm writing a windows service in C# that creates its own custom Event Log on install. What I can't seem to figure out is where the code for deleting the event log should go so that it is executed when the service is uninstalled. Any help would be appreciated! Thanks, JD Hop into your Service's Installer class and override the Uninstall() method and add your code there. ...Show All
.NET Development In C#, what is the difference between System.String and System.string (lowercase)
This mignt not be the correct forum, if so, I'm sorry about that. I am trying to get a better understanding of the .NET library. I am programming in c# and I see that System.String (uppercase String) and System.string (lowercase string) seem to be the same objects. However they are color coded in different colors. I am guessing that there is a reason, but I cannot seem to find it in the documentation. Can anyone shed some light on this Thanks! Bob You are correct, "string" is a keyword, "String" is a type name. Dark and light blue, respectively. The relevant section in the C# language specification is section 4.2.3: "The keyword string is simply an alias for th ...Show All
Software Development for Windows Vista Windows Server 2003 R2 SDK - Where is the X86 stuff?
Hello everyone, I recently installed VC++ 2005, and wanted to update the SDK in order to start learning programming for Windows. So from the download page i've downloaded the whole WindowsR Server 2003 R2 Platform SDK ISO (full) and installed that on my Windows XP Home computer. Now I do understand how to include the headers and libs as well, but then again; where are the X86 sdk files I see only AMD64, IA64 and Win95 folders inside the folder: Microsoft Platform SDK for Windows Server 2003 R2! Do I need to copy everything from the directory mentioned above to the VC2005 directory lib,headers etc.. overwriting the older files, or is it enough to let the compiler know the path to the new headers and libs inside th ...Show All
Windows Forms User interface question
Hi all, I'm building a software which has a UI similar as outlook 2003. The problem I'm facing is how can I perform dynamic content change while the user click the navigation buttons. I did think about using MDI but that is not what I want as it obviously not how the outlook implement. Thus, i think about using panels and swap between them. However, it seems very hard to design as i need to cover a new panel to the previous one. It anyone can tell me how outlook implement the dynamic content change thxs alot. Build User Controls for all the views that you want. You can pretty much encapsulate most of the work inside each view. If you need an outside manipulation. You can expose a prop ...Show All
Windows Live Developer Forums Wrap Text
Can anyone tell me (newb) how to wrap the text round a pic in a pushpin popup At the moment the text comes after the pic and takes up alot of space Heres my current pushpin text: var veSouthwell = new VELatLong(53.077269761289195, -0.9560036659240723); var veSouthwellDetails = "<img src='../images/minsterextweb.jpg'><br>With its imposing Norman Minster, literary and historical connections and its famous Bramley Apple, Southwell is a place you will want to return to again and again."; var veSouthwellPin = new VEPushpin('Southwell', veSouthwell, '../images/icontowntour.gif', 'Southwell', veSouthwellDetails); vemap.AddPushpin(veSouthwellPin); Thanks Sorry that was harder ...Show All
SQL Server Problem Sorting a Matrix report
I have created a Matrix report with 5 row groups (customers and store locations), one column group (division) and two data columns -- Sales Dollars and Percentage. The report works fine except that it does not sort properly. I want to sort the customer rows in descending order by sales dollars. My top customer in dollars should appear first and so on. I took the following steps -- I highlighted the matrix and in the properties dialog box, selected the groups tab. In groups I selected each row group, hit the edit button, clicked the sorting tab, and changed the ...Show All
Windows Live Developer Forums Request to VE team. Consistency
I noticed that the onclick event args is Pascal casing but the onendzoom args are all lowercase map.AttachEvent('onclick', onMapClick); function onMapClick(e) { .... ... e.view.LatLong.Latitude // Pascal casing } map.AttachEvent( 'onendzoom' , onZoomEnd); function onZoomEnd(e) { .... e.view.latlong.latitude // now its camel casing. } ...Show All
Visual Basic Beginners question.
Hi, when I use the HelloWorld example from the interop forms toolkit, everything is fine except if I try to add a new Public Sub. 1) E.g. I add the following code (while VB6 IDE is closed): in class HelloWorldForm after # Region "Public Methods" : <InteropFormMethod()> _ Public Sub newPosition( ByVal x As Integer , ByVal y As Integer ) Me .Left = x Me .Top = y End Sub 2) I open the vb6 IDE and start the main app. I press the "launch .NET form" button and see a modified .NET form, because I modified the form earlier in the .NET environment. 3) But if I edit the vb6 code re browse the objects in the object browser, I can not see the new Public Sub. What is the reason that ...Show All
Visual C# Audio and video capture for conferencing
How can I capture audio and video to send to computers in a conference ...Show All
Visual Studio Team System Team Explorer installation error
Hello! One of our developers has a Windows 2000 OS with SP4. She is trying to install Team Explorer from the CD and the installation fails with the following message The following component failed to install: Microsoft Data ACcess Component 2.8 SP1 The following components were not attempted: .Net 2.0 Framework ... It comes up with Microsoft error report as well. Please assist! Can you try installing TFC as a different user (but also a member of the local Administrators group) on that same machine Off-hand it sounds like MDAC's in a bad state, but verifying another admin gets the same error will help solidify whether that's the case or not. ...Show All
.NET Development How can I copy a whole table from MS Access database to another?
Hello, I have 2 MS Acess database, in each one I have a table named Catlog, what I want is to open the two tables and copy the Catlog table from the a database to the other, at runtime for sure! Is there an easy solution or I should use SQL to delete all the rows from the first table and then read the rows from the second table and write it again to the first one!!! Please help. Thanks in advance. This is like a shortcut in Access. First create liked table in one MS access database tht points to abnother mdb or even SQL Server. when you open linked table you see results from source table, and even it could be updateble ...Show All
.NET Development Log writting Exception thrown by a WebService
I have deployed a third part webservice on my webserver, this service throw its errors to the windows error viewer, but those error has never been wroten, the webservice shows this error: Cannot open log for source {0}. You may not have write access, I've checked out the Error log configuration in the error viewer and I've asigned full permission to the EVERYONE user group on the log file folder. the error still been appearing, I don’t understand why, if somebody had been working arround somthing like this and wants to gives me a hand on this will be nice. There is more to event log security than what you did. See http://support.microsoft.com/kb/323076 I would also contact the third party vendor and ...Show All
Smart Device Development How to Programmatically change wallpaper on a Windows Mobile 5.0 Device?
Hi everyone, I am trying to write an app to programmatically change the wallpaper on a Mobile 5.0 smartphone. I have looked at the Compact Framework and cannot find a way to do it. I have also looked at CoreDLL.dll and could not find anything. I am doing development with VS.net 2005 and .net Compact Framework. I know we can use SystemParametersInfo from User32.dll for a windows PC but can't find anything for a mobile device. Any help will be appreciated. Thanks. ...Show All
SQL Server A connection could not be made to the report server http://localhost/ReportServer.
Hello Guys, Please take me out from this hell. I created report using VS2005 Business Intelligence Project. It builds fine. I can also see data in the design time. But when I am trying to deploy it gives me this error. TITLE: Microsoft Report Designer ------------------------------ A connection could not be made to the report server http://localhost/ReportServer . ------------------------------ ADDITIONAL INFORMATION: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message: -- <html> <head> <title>Configuration Error</title> <style> body {font-family:"Verdana";font-weight:normal;font-s ...Show All
Visual C++ any comments about a cache design?
Hello everyone, I am going to design a Cache in C/C++ (memory cache). I have two different approaches to design/implement it, any comments will be appreciated. Design 1, using a map (hashtable) to store key --> object pointer relationship (simple and straight forward); Design 2, store real object or object pointer in a stack/linked list/queue/array as an internal storage data structure, then using a map (hashtable) as an external interface to mapping key --> index in the stack/linked list/queue/array; (in this design, when accessing an object, we need two times mapping, first mapping key to index in the stack/linked list/queue/array, then using the index to access the real object) I am wondering any advantages or disadvantages of th ...Show All
