c

UTF-8のBOMなしでファイル出力

BOOL UTFout(void) { FILE *fp; long position; if (_tfopen_s(&fp, _T("file.txt"), _T("wt, ccs=UTF-8"))) { error(_T("リンクページの作成に失敗しました。")); return FALSE; } // ファイル開始位置を最初にもって行きBOMを消去 // position = ftell(fp)…

WritePrivateProfileSection()

プライベートなiniファイルを書き込む際に、"Key=値"の文字列の終端には"\0\0"である必要があるそうです。 TCHAR crntPath[1024]; // カレントパス+iniファイルのパス名 BOOL SaveIniFile(void) { TCHAR strBuf[NUM_MAXBUF]; int length; // 『Key=値の末端…

WindowsAPI その他参考ページ

IEコンポーネントの使い方 [VC++の使い方] http://rararahp.cool.ne.jp/cgi-bin/lng/vc/vclng.cgi?print+200608/06080047.txt COMプログラミング COM(Component Object Model)とは - IT用語辞典 e-Words InternetExplorer‚ðCOM‚ðŽg‚Á‚Ä‘€ì‚·‚é クリップボ…

Windows プログラミング参考

http://www13.plala.or.jp/kmaeda/index.html

WindowsAPI クリップボードの使用方法

c c++

クリップボードの操作

VC++ プログラミング参考

c c++

http://www.geocities.jp/anatora5000/index.html

WindowsAPI 参考

c c++

Windowsプログラミング研究室

WindowsAPI WCHAR ユニコードの扱い参考

c c++

char、wchar_t(WCHAR)とTCHAR(dinop.com) http://hpcgi1.nifty.com/MADIA/Vcbbs/wwwlng.cgi?print+200605/06050002.txt http://rararahp.cool.ne.jp/cgi-bin/lng/vc/vclng.cgi?print+200406/04060027.txt ユニコードとMBCS(char、WCHAR)(dinop.com)

WindowsAPI 動的にメニューを作成する方法

c c++

http://michelangelo.hp.infoseek.co.jp/programming/cpp/win32API/17yourmenu.html

WindowAPI 情報

http://homepage1.nifty.com/MADIA/vc/api/

BCC5.5.1 設定方法

Wie funktioniert das Internet? - m-n-j.com |

DDE 参考

DDE�Ƃ͉����H [�t�^/FAQ]

Windows APIに関する参考HP

標準 Windows API http://yokohama.cool.ne.jp/chokuto/urawaza/api/

Borland C++ 参考HP

Borland C++ Compiler 5.5@FAQ

BCC での Makefile

c c++

Future's Laboratory殿を参考 makefile_bcc - FreeStyleWiki #Makefile CC = bcc32 LINKER = ilink32 INCLUDE = -I"c:\borland\bcc55\Include" LIB = -L"c:\borland\bcc55\Lib;c:\borland\bcc55\Lib\PSDK" #コンパイルオプション CFLAGS = -w -tWC LFLAG = /…

ILINK32でコマンドコンソール実行ファイルを作る

c c++

ilink32 c0x32.obj my.obj,my.exe,,cw32.lib import32.lib my.lib

BCC 5 で スタティックライブラリ生成と使用方法

c

bcc32 -c Mylib.c tlib Mylib.lib +Mylib.obj bcc32 -c main.c ilink32 main.obj Mylib.lib main.c内に #pragma comment(lib, "Mylib.lib") が必要かも知れないがなくても動作した

プログラムに参考になります。

http://docs.codegear.com/docs/radstudio/radstudio2007/RS2007_helpupdates/HUpdate4/JA/html/devwin32/contents.html

『プログラミング作法』 第4章

/* csv.c: csvライブラリ本体 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "csv.h" enum { NOMEM = -2 }; /* メモリ不足のシグナル */ /* 独立csvフィールド構造体 */ typedef struct csv_field { int csv_num; /* csv独立ナンバー */ char *line; /* 入力文</string.h></stdlib.h></stdio.h>…

『プログラミング作法』 デバッグ

デバッガ ・我々の個人的な手法で言えば、我々がデバッガを使うのは、せいぜいスタックとレースを実行したり変数の値を1~2個表示させたりするときぐらいにすぎない。 ・プログラムをステップ実行するよりも、もっと真剣に考えたり、重要な部分に出力文や自動…

fscanf()関数でcsvファイルを読み込む

c

/* hash関数 */ #include <stdio.h> #include <string.h> #include <stdlib.h> #define NHASH 30 #define MULTIPLER 31 #define CREATE 1 typedef struct Nameval Nameval; struct Nameval { char *name; int value; Nameval *next; /* チェイン中の次 */ }; Nameval *symtab[NHASH]; /* </stdlib.h></string.h></stdio.h>…

Borland C++ でのマクロのコンパイル時指定

c c++

-D をヌル文字列として定義する -D をとして定義する 例 >bcc32 -ea.exe -DDEBUG cp_mac2.cpp

VC++でのコマンドプロンプトでのコンパイル

c++ c

>cl /EHsc smp1.cpp /EHscはVisual C++独自のスイッチ指定で、標準C++機能の一部(例外処理機能)を適切に処理するためのものである。C++>より

Borland C++ 5.5のプリプロセッサ

c++ c

Borland C++ Compiler 5.5 - FAQ CPP32 BCC32が行うコンパイル処理のうちC/C++としてのプリプロセッサの処理だけを行います。プリプロセッサとは、ソースコード中に#で始まる指令(#includeや#define)などを処理する機能です。通常のC/C++コンパイラでは、…

UbuntuでC/C++のライブラリ関数のマニュアルを表示させたい

sudo apt-get install manpages-dev

Web上でコンパイルできるC/C++

codepad

meory.hの中身はstring.h

c

/* memory.h Copyright 1998, 2001 Red Hat, Inc. This file is part of Cygwin. This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ #ifndef _MEMORY_H #def…

Language C FAQ

http://www.kouno.jp/home/c_faq/

検索文字列置換

/*----------------------------------------------------------- 心霊研究所引用テキスト変換プログラム -----------------------------------------------------------*/ #include <stdio.h> #include <string.h> #include <stddef.h> #define FOUND 0 #define GYOUMAX 500 #define TIKA</stddef.h></string.h></stdio.h>…

(条件) ? A : B について

int minimum(int a, int b) { return (a < b> ? a : b; } ? より前の条件 (a