可以發(fā)我看下源碼嘛 ~524710389@qq.com
您博客上也沒(méi)放出核心部分啊 求您了 給下代碼看看吧 真的救命用啊
找到原因了 我的CTestDlg對(duì)話框?qū)傩栽O(shè)置問(wèn)題。
你好,CTestDlg應(yīng)該顯示在 VCRightView里面,但我的為什么顯示在CMainFrame的坐標(biāo)(0。0)位置?請(qǐng)指點(diǎn)。
很好,很強(qiáng)大!!
呵呵,ym. 這個(gè)圖很漂亮,能不能講一下它生成原理嗎?
re: OpenGL的視圖變換 TH 2006-08-15 16:03
@可冰
呵呵,OpenGL本身是沒(méi)有對(duì)窗口進(jìn)行處理能力的.需要借助GLUT庫(kù),處理一些簡(jiǎn)單的窗口應(yīng)用.當(dāng)然處理能力可能不是很強(qiáng).
還有一個(gè)庫(kù)GLUI也許可以滿足你的要求:
/**
GLUI is a GLUT-based C++ user interface library which provides controls such as buttons, checkboxes, radio
buttons, spinners, and listboxes to OpenGL applications. It is window-system independent, relying on GLUT to
handle all system-dependent issues, such as window and mouse management.
**/
當(dāng)然還有很多很優(yōu)秀的GUI庫(kù).如smartwin++,wxWidgets等.每種都有其不同的設(shè)計(jì)特點(diǎn).按需學(xué)習(xí)了~~~
你一定是一個(gè)算法高手. 呵呵,收集你很多文章 .
關(guān)注
re: C++資源之不完全導(dǎo)引 TH 2006-06-01 23:29
已拜讀。特別是最后“不得不寫(xiě)的結(jié)束語(yǔ)”,確實(shí)給人很多啟示。
給我在C++的定位的思考。
/********************
C++在訓(xùn)練思維上,確實(shí)很好
re: C++異常處理一例 TH 2006-05-30 20:37
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main(int argc, char *argv[])
{
ifstream source("c:\\abc.txt"); //´ò¿ªÎļþ
string line;
try //¶¨ÒåÒì³£
{
if (source.fail())
throw "txt"; //Å×ÖÀÒì³£
}
catch(string& s) //¶¨ÒåÒì³£´¦Àí
{
cout << "error opening the file " << s <<endl;
exit(1);
}
while(!source.eof())
{
getline(source, line, '\n');
cout<< line << endl;
}
source.close();
system("PAUSE");
return EXIT_SUCCESS;
}
re: 第一個(gè)C++程序 TH 2006-05-28 20:36
#include <iostream>
using std::cout;
using std::endl;
int main(int argc, char* argv[])
{
cout<<"Hello , This is my first home for C++."<<endl;
cout<<"I am very like it!"<<endl;
cout<<"I'll stay here.OK."<<endl;
return 0;
}
學(xué)習(xí)本來(lái)就是個(gè)嚴(yán)謹(jǐn)?shù)倪^(guò)程,做技術(shù)的更是如此,所以還需努力才行。
好了,就寫(xiě)到這里吧。