Town Of 1770, Queensland, Australia
William Bartholomew
Posts
-
Weird town name - 84 -
Notepad's Hidden FeatureI just discovered a useful feature that I never knew notepad had. I'm sure i'm not the only one that uses a couple of text files on my desktop with ideas, things I need to do etc. If the top line of your file is .LOG (must be uppercase and the only thing on the line), whenever you open the document notepad will insert the date and time on a new line and position the cursor below it ready to type your great idea or TODO...
-
Notify when an article is updatedNot sure if CP already does this but it would be nice to be emailed when an article you have bookmarked is updated.
-
Get databse nameSELECT name FROM master..sysdatabases
-
No accessible 'Main' methodThe problem was that you didn't have the signature of your Main correct, rather than using the Microsoft.VisualBasic compatibility namespace you could do the following: Public Shared Sub Main(ByVal args() As String) Dim strMode As String If args.Length > 0 Then strMode = args(0) End If If strMode = "Report" Then MsgBox("Print Report") Else MsgBox("Display Form") End If End Sub
-
TCP/IP Multi Server Chat SystemThis would definitely interest me...
-
Very Handy UtilityNot sure about you guys but I often need to paste the output of console apps into emails, documents, and the like so what I normally do is: dir /s > test.txt Then open up "test.txt" and then copy and paste the contents to wherever I need it and then delete "test.txt" now this is a pain and I thought there has to be a better way. So I wrote a utility in VB.Net to solve the problem. I would have written this as an article but the .NET Framework has made this so simple the article would be too short :) 1. Create a new console application 2. Add a Reference to System.Windows.Forms 3. Paste this code into the Main function Dim strInput As String strInput = Console.In.ReadToEnd() Windows.Forms.Clipboard.SetDataObject(strInput, True) 4. Compile and put the resulting .exe in your path Now all you need to do is: dir /s | YourProgramName.exe Then go into your email, document, etc. and paste... the program has captured the console output and put it into the clipboard. Hope you guys find this helpful.
-
wacked out idea, unless its possibleYou're not on too much crack, there is a device which does this called a time-domain reflectometer.
-
HTML de-bloaterVim is the way to go :)
-
Code Project Project (CPP) [UPDATED 5/31]Speaking of which is CodeProject hosted here in AU or overseas? You hosting it yourself?
-
Does MS Exchange 2000 includes a Listserv-like component ?I know under 5.5 there was a routing add-in sample that implemented this kind of functionality. It was pretty basic though. You would be best writing this server-side rather than using client side functionality or writing it client side using POP3 and SMTP so it can be used with any mailserver but I would keep away from writing client side MAPI to do this.
-
Testing anti-spam application for Outlook and standaloneLuke, If you haven't you should serious look at VMWare http://www.vmware.com/[^]. You can set up virtual machines running whatever OS you want and set all the memory and disk size settings to your hearts content for testing. And in the new version you can take a snapshot before you install your app or configure it or whatever and rollback to that point for some really rapid testing without having to reinstall :)
-
Code Project Project (CPP) [UPDATED 5/31]A phone? How primitive ;P Then again most people don't think us Aussies have phones yet ;)
-
VB.Net NNTP ClassI've almost completed a VB.Net NNTP class and was wondering if anyone would be interested in me writing an article around it? It will probably take awhile but i'm just wondering if there is any interest... As a follow up article I might write ASP.Net site that uses the class. It implements RFC977 only and not the extensions in RFC2980.
-
Quick Backup surveyOur backup strategy: Full nightly backup of all IIS, SQL, VSS, File Server data to the disk of another machine and to tape. One weeks nightly backups is kept on the backup server. One weeks nightly backups is kept on tape. Four weeks worth of Thursday backs are kept on tape. Full weekly backup of all IIS, SQL and VSS data compressed to 6 or 7 CD's. These are kept forever. Differential backup of SQL databases at 6am and 7pm to the hard disk of the respective SQL server. These are also copied to the backup server nightly. Transactional backup of SQL databases every hour to the hard disk of the respective SQL server. I am looking at copying these to another SQL server and restoring them as part of the backup script so there is a failover server ready to go.
-
Drawing to the ScreenDoes anyone have any pointers on how to draw directly onto the screen in C# or VB.Net? I've found you can get a handle to the desktop using this VB.Net code: Graphics.FromHwnd(IntPtr.Zero) However, attempts to draw to this result in nothing, no errors, and no output. Any suggestions would be very welcome... William Bartholomew
-
To Port or Not To Port... That Is The QuestionFirstly, sorry for the subject ;P We have written a generic data-access layer which we use to execute stored procedures on a MS SQL Server database and return various data-types depending on the method called (recordset, array, integer etc.). This data-access layer is a COM+ object (because we need to call it from ASP) written with Visual Basic. We are currently looking at doing a re-write to support some new functionality (XML, multiple output parameters and the like), what I would like to know is would there be a significant performance benefit in porting the code to Visual C++ as an ATL COM+ object? I have made a number of ATL objects before and I am comfortable writing C++ but if the performance benefit isn't going to be measurable then I might as well leave the code in it's current Visual Basic form... Any input would be greatly appreciated. William D. Bartholomew
-
Event LogI'm using the ReportEvent API to write a message to the Windows 2000 event log... However it is coming up with a message in the event log saying that the description for event id (1) in source (OTEmail) could not be found. Can anyone help me?
-
COM IDLCan anyone assist me I currently have a data-access layer written in VB and would like to port it over to C++ as I'm pretty sure there will be speed benefits in doing so... This is the prototype of the function currently in VB: Public Function RunSPReturnRS( ByVal sDSN As String, ByVal sSP As String, ParamArray params() As Variant) As ADODB.Recordset I have no problems with the first two strings but can anyone give me the IDL and the function prototype to handle the ParamArray and returning the Recordset??? I have been able to find any good samples on these... Many thanks, William :-D
-
Overiding OnOKJust a quick question? Why is the value of the member variable linked to an edit box always empty until I call CDialog:OnOK(). I'm guessing it has something to do with DoDataExchange but I haven't quite worked out what. What is the proper way to do this because I was always under the impression that you should call the base class last...