体中が筋肉痛というか間接痛というかそんな感じになってる。
目もぼやけているしねぇ。
それでも、作業は可能な限りがんばりたいだす。
何となく思うけど、仕事ができる人は(妄想)情報の集め方が上手と思う、
必要な情報を的確にかつ迅速に集めることができるのかね。
「調べられるものをいちいち覚えておく必要などない」byアインシュタイン
と言う言葉もあるしね。
■SQL Server Compact
MSDNココから抜粋
//Declarations
HRESULT hr = NOERROR;
DBPROPSET dbpropset[1];
DBPROP dbprop[1];
DBPROPSET rowsetpropset[1];
DBPROP rowsetprop[2];
ULONG cbRecordCount;
// Provider interfaces
IDBProperties * pIDBProperties = NULL;
IDBInitialize * pIDBInitialize = NULL;
IDBCreateSession * pIDBCreateSession = NULL;
IRowsetPosition * pIRowsetPos = NULL;
ICommandProperties * pICmdProps = NULL;
IDBCreateCommand * pIDBCrtCmd = NULL;
ICommandText * pICmdText = NULL;
IRowset * pIRowset = NULL;
// Initialize the environment.
hr = CoCreateInstance(CLSID_SQLSERVERCE_2_0, 0, CLSCTX_INPROC_SERVER,
IID_IDBInitialize, (void**) &pIDBInitialize);
if (FAILED(hr))
{
//Send an error-specific message and do error handling.
goto Exit;
}
// Initialize property structures
VariantInit(&dbprop[0].vValue);
// Initialize the property with the name of database.
dbprop[0].dwPropertyID = DBPROP_INIT_DATASOURCE;
dbprop[0].dwOptions = DBPROPOPTIONS_REQUIRED;
dbprop[0].vValue.vt = VT_BSTR;
dbprop[0].vValue.bstrVal = SysAllocString(L"\\Windows\\Northwind.sdf");
if(!(dbprop[0].vValue.bstrVal))
{
hr = E_OUTOFMEMORY;
goto Exit;
}
// Initialize the property set.
dbpropset[0].guidPropertySet = DBPROPSET_DBINIT;
dbpropset[0].rgProperties = dbprop;
dbpropset[0].cProperties = sizeof(dbprop)/sizeof(dbprop[0]);
// Set the properties into the provider's data source object.
pIDBInitialize->QueryInterface(IID_IDBProperties,(void**)&pIDBProperties);
hr = pIDBProperties->SetProperties(sizeof(dbpropset)/sizeof(dbpropset[0]),
dbpropset);
if(FAILED(hr))
{
goto Exit;
}
// Initialize the data source.
hr = pIDBInitialize->Initialize();
if(FAILED(hr))
{
goto Exit;
}
// Create the Session and Command objects.
hr = pIDBProperties->QueryInterface(IID_IDBCreateSession, (void **)
&pIDBCreateSession);
if (FAILED(hr))
{
//Send an error-specific message and do error handling.
goto Exit;
}
hr = pIDBCreateSession->CreateSession(NULL, IID_IDBCreateCommand,
(IUnknown**) &pIDBCrtCmd);
if (FAILED(hr))
{
//Send an error-specific message and do error handling.
goto Exit;
}
hr = pIDBCrtCmd->CreateCommand(NULL, IID_ICommandText, (IUnknown**)
&pICmdText);
if (FAILED(hr))
{
//Send an error-specific message and do error handling.
goto Exit;
}
// Request the ability to use the IRowsetPosition interface.
rowsetpropset[0].cProperties = 1;
rowsetpropset[0].guidPropertySet = DBPROPSET_ROWSET;
rowsetpropset[0].rgProperties = rowsetprop;
rowsetprop[0].dwPropertyID = DBPROP_CANFETCHBACKWARDS;
rowsetprop[0].dwOptions = DBPROPOPTIONS_REQUIRED;
rowsetprop[0].vValue.vt = VT_BOOL;
rowsetprop[0].vValue.boolVal = VARIANT_TRUE;
// Set the query text for the command.
hr = pICmdText->SetCommandText(DBGUID_SQL, L"Select * from Employees");
if (FAILED(hr))
{
//Send an error-specific message and do error handling.
goto Exit;
}
hr = pICmdText->QueryInterface(IID_ICommandProperties, (void**) &pICmdProps);
if (FAILED(hr))
{
//Send an error-specific message and do error handling.
goto Exit;
}
hr = pICmdProps->SetProperties(1, rowsetpropset);
if (FAILED(hr))
{
//Send an error-specific message and do error handling.
goto Exit;
}
// Creates an IRowsetPosition object for the returned rowset.
hr = pICmdText->Execute(NULL, IID_IRowsetPosition, NULL, NULL,
(IUnknown**)&pIRowsetPos);
if (FAILED(hr))
{
//Send an error-specific message and do error handling.
goto Exit;
} // Get a count of the number or rows returned in the rowset.
hr = pIRowsetPos->GetRecordCount(DB_NULL_HCHAPTER, &cbRecordCount);
if (FAILED(hr))
{
//Send an error-specific message and do error handling.
goto Exit;
}
// Do something here with the aquired row count information.
Exit:
// When finished, clear the properties arrays, release
// the interfaces and uninitialize the environment.
return;
■ゲーム作り
そこが一番問題で、ビジネスになってしまっている以上、
自分たちが作りたいとか身内が面白いネタでは通してもらえない。
これは当然のことだけど。そう言う事がしたいなら同人でやってくれという風潮なんだろう。
そして、旧世代のクリエイターはそれを打ち破るだけの力とお金があるから可能になると思っている。
が、それが業界全体を悪い方向に向かわせている場合もあることは確か。
結果ユーザーが面白いと感じるものがなんなのか?
本当にユーザーが面白いと思っているのか?
というところが一番のポイントなんだと思うけど。
だからという訳では無いけど、プロジェクトにアサインされた場合に
いかにそのプロジェクトを良くするかが俺、下っ端の役目なんだと思ってた。
俺にそんな事を言う権利は無いんだろうけどもね。
■今日の俺
5:00 起床
10:00~11:00 休憩
11:00~14:00 作業
15:00~16:00 休憩
16:00~20:00 作業
21:00~ ダウン
ここ数日の暑さで完全に身体やられている様子。
作業に全然時間とれないや。む~。
0 件のコメント:
コメントを投稿