Archive for 3月 12th, 2013
-
Hello, Win32 API(Objective-C) World!
Posted on 3月 12th, 2013 by cx20
Win32 API(Objective-C)
Win32 API は、Windows の機能にアクセスする為の API(Application Programming Interface)である。
以下は MinGW 版 Objective-C による呼出し例である。ソースコード
#import <windows.h> int main( int argc, char* argv[] ) { MessageBox( NULL, "Hello, Win32 API World!", "Hello, World!", MB_OK ); return 0; }
#import <windows.h> int main( int argc, char* argv[] ) { MessageBox( NULL, "Hello, Win32 API World!", "Hello, World!", MB_OK ); return 0; }
コンパイル方法(MinGW Objective-C)
C:¥> gcc -o hello hello.c -l objc
C:¥> gcc -o hello hello.c -l objc
実行結果
--------------------------- Hello, World! --------------------------- Hello, Win32 API World! --------------------------- OK ---------------------------
--------------------------- Hello, World! --------------------------- Hello, Win32 API World! --------------------------- OK ---------------------------
サイト内の検索
カテゴリー
- .NET
- Access
- ACE Database
- Ada
- ADO
- ADO.NET
- AppleScript
- ASP
- ASP.NET
- assembler
- ATL
- AWK
- AWT
- BeanShell
- Berkeley DB
- Boo
- Bourne Shell
- C Shell
- C#
- C++
- C++/CLI
- CASL
- CGI
- Cheetah
- Clojure
- ClojureCLR
- cmd
- CNI
- COBOL
- Cobra
- CoffeeScript
- COM
- Common Lisp
- Connector/NET
- CouchDB
- Curl
- C言語
- DAO
- Dart
- DB2
- DBI
- Delphi
- Derby
- DirectX
- D言語
- EL
- Emscripten
- ERB
- Erlang
- eRuby
- ESQL/C
- F#
- Fantom
- Flash
- Fortran
- GAS
- GCJ
- Go
- Groovy
- H2 Database
- Haskell
- Haxe
- HSQLDB
- HTA
- HTML
- HTML Application
- HTML::Template
- Io
- IronPython
- IronRuby
- IronScheme
- Jacl
- Jasmin
- Java
- Java 2D
- Java 3D
- Java Applet
- Java VM
- JavaFX
- JavaScript
- JDBC
- JDBC Type1
- JDBC Type2
- JDBC Type4
- Jet Database
- JNA
- JNI
- jQuery
- JRuby
- JScript
- JScript.NET
- JSF
- JSP
- JSTL
- JSX
- Jython
- library
- LINQ
- Lisp
- LLVM
- Lua
- MASM
- MFC
- MongoDB
- MSIL
- MySQL
- NASM
- Nemerle
- Node.js
- NoSQL
- NVelocity
- Objective-C
- OCaml
- OCCI
- OCI
- ODBC
- ODP.NET
- OLE DB
- oo4o
- Oracle Database
- Oxygene
- Pascal
- PDO
- Perl
- Phalanger
- PHP
- PL/SQL
- PostgreSQL
- PostScript
- PowerShell
- Pro*C
- prototype.js
- Python
- Quercus
- Razor
- Rhino
- Ruby
- Scala
- Scheme
- Servlet
- Silverlight
- Smalltalk
- SpiderMonkey
- SQL
- SQL Server
- SQL Server Compact
- SQLite
- SQLJ
- StringTemplate.NET
- Swing
- SWT
- T-SQL
- Tcl
- Tcl Shell
- Tcl/CSharp
- Tcl/Java
- Tcl/Tk
- Template Toolkit
- TypeScript
- UWSC
- VB.NET
- VB6
- VBA
- VBScript
- Velocity
- Win32 API
- Win32 GUI
- Windows Forms
- WTL
- XAML
- XHTML
- XML
- XSLT
- 未分類
カテゴリー
.NET
ADO
ADO.NET
assembler
AWT
BeanShell
C#
C++
C++/CLI
Clojure
COM
Connector/NET
C言語
DirectX
Fantom
Groovy
Jasmin
Java
Java 2D
Java 3D
JavaScript
JDBC
JDBC Type1
JDBC Type2
JDBC Type4
JRuby
Jython
library
ODP.NET
Oxygene
Perl
PHP
Python
Rhino
Ruby
Scala
SQL
SQL Server
Swing
SWT
Tcl/Java
VB.NET
Win32 API
Win32 GUI
Windows Forms
最近の投稿
- Hello, Tkinter World!
- Hello, Ruby/Tk World!
- Hello, Perl/Tk World!
- Hello, Tcl/Tk(C言語) World!
- Hello, Tcl/Tk World!
- Hello, Win32 API(Quercus) World!
- Hello, Quercus World!
- Hello, JDBC Type4(Oxygene) World!
- Hello, JDBC Type2(Oxygene) World!
- Hello, JDBC Type1(Oxygene) World!
- Hello, Connector/NET(ClojureCLR) World!
- Hello, Connector/NET(IronScheme) World!
- Hello, Connector/NET(Oxygene) World!
- Hello, Connector/NET(Nemerle) World!
- Hello, Connector/NET(Boo) World!
- Hello, Connector/NET(Cobra) World!
- Hello, Connector/NET(Phalanger) World!
- Hello, Connector/NET(IronRuby) World!
- Hello, Connector/NET(IronPython) World!
- Hello, Connector/NET(PowerShell) World!
- Hello, Connector/NET(F#) World!
- Hello, Connector/NET(JScript.NET) World!
- Hello, Connector/NET(C++/CLI) World!
- Hello, Connector/NET(VB.NET) World!
- Hello, Connector/NET World!
- Hello, Windows Forms(Tcl/CSharp) World!
- Hello, Tcl/CSharp World!
- Hello, Win32 API(CNI) World!
- Hello, GCJ World!
- Hello, Emscripten World!