スキップしてメイン コンテンツに移動

投稿

How to convert java-project to web-project in Eclipse

I faced the problem that I could not convert simple java project to wtp project in eclipse. I asked Dr.Google, then he gave me an answer :). Please see the below article. This is exactly what I wanted to know!! How to convert Java Project to Web Project in Eclipse Quick Tips You should check .project file if your project is not what you expect. eclipse determine the project style by the natures section in the file. You should use Navigator window, if you would like to see the files which starts ".".

Sandcastle

I tried using Sandcastle which is the documentation build tool for generating MSDN-style documentation from .NET assemblies and their associated XML comments files like NDoc . I googled information around it and found out good articles and some of related tools. Tools DocProject This tool uses the latest version of Microsoft Sandcastle to build HTML help topics. It can generate variety formats of API documents :). Sandcastle Help File Builder This tool can make building documents from Sandcastle easier. The latest version of Sandcastle Help File Builder (1.8.0 or later) does NOT include SandcastleBuilderConsole.exe which can be used from console for generating domenet. Sandcastle project think that all the process should be done in MSBuild rather than console. If you need SandcastleBuilderConsole.exe please get and use 1.7.0 from here . Articles Generating MSDN-style Documentation with Sandcastle, NAnt and CruiseControl.NET This article is a good example of how to use sandcastle. Th

Eclipseのプラグインメニューの英語化

私は英語版のeclipseを使っているのですが、インストールしたSubverionやFindBugsのプラグインのメニューやメッセージがデフォルトでは日本語になってしまいました。Google先生で調べたところ、 国際化プログラミングの常識 で答えが見つかりました。 eclipse.ini に以下の2行を追加してlocaleを変更すればよいようです。 -Duser.language=en -Duser.country=US 私の場合はこれでメニューを英語に統一できました。

Outlookにアクセスしてメールを送信するVBAコード

Public Sub GenerateOutlookEmail() Dim Outlook As Outlook.Application Dim message As Outlook.MailItem Set Outlook = CreateObject("Outlook.Application") Set message = Outlook.CreateItem(0)  With message  .Subject = "Test Mail"  .To = "foobar@foobar.com"  .HTMLBody = "Good morning life"  .Display End With End Sub

WinHttp.WinHttpRequestを使ってHttp PostでByte配列やString配列を送信するプログラム(Excel VBA)

WinHttp.WinHttpRequestオブジェクトを使って使ってHttp PostでByte配列のデータを送信するExcel VBAプログラムです。 WinHttp.WinHttpRequestを使う際には、 1. ExcelのMicrosoft Visual Basic エディタのメニューバーから「ツール->参照設定」とたどる。 2. 表示されたダイアログからMicrosoft WinHTTP Serviceにチェックを入れる。 という手順が必要です。 Byte配列をPOST Private Const BOUNDARY As String = "SOMETHING" Private Function httpPostServletByte(url As String, data() As Byte) As Byte() On Error GoTo e Dim WinHttpReq As WinHttp.WinHttpRequest If (WinHttpReq Is Nothing) Then Set WinHttpReq = New WinHttpRequest End If WinHttpReq.Open "POST", url, False WinHttpReq.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded; boundary=" & BOUNDARY WinHttpReq.send data Dim response() As Byte: response = WinHttpReq.ResponseBody httpPostServletByte = response Set WinHttpReq = Nothing Exit Function e: Set WinHttpReq = Nothing Debug.Print "httpPost Error:" & Err.