Tag Archives: C++

C++ 小小複習char*

最近在溫故知新中

繼續閱讀

練習C++程式分享:cin.ignore();

練習C++程式分享:cin.ignore();

繼續閱讀

Pascal之父Niklaus Wirth以89歲高齡去世

Pascal之父Niklaus Wirth以89歲高齡去世。Niklaus Wirt對程式語言的貢獻,讓他在1984年獲得世界計算機學會(ACM)所頒布的圖靈獎。<文章>

繼續閱讀

2024第一天第一件事: 享受學習C++

2024第一天第一件事: 上課
縱然使用C與C++已經超過20年了,但遇到好老師好課程,還是再次投入享受學習。

繼續閱讀

C++ ‘尋找程式視窗及變更位置大小’程式小改善 (A minor enhancement for ‘Find programs’ Windows and Change Position/Size’

加入滑鼠中鍵滾動時變換ListBox項目

繼續閱讀

C++ 文字及檔名簡轉繁 (Convert Chinese Simplified to Traditional in Text and File Names)

本程式功能:

繼續閱讀

優化PDM查詢零件之ERP庫存資訊與成本功能 (Optimizing PDM system for querying ERP inventory information and costs of parts)

日前研發部提出對此功能優化之需求:優化PDM整批查詢零件之GP庫存量與成本功能。

繼續閱讀

C++ 看圖小程式新舊版本 (A program for Displaying Images, New Version and Old Version)

新版與舊版,有差。

繼續閱讀

C++11 __func__,好用 (__func__is very useful)

(C++11) 預先定義的識別碼 __func__ 會隱含定義為字串,其中包含封入函式的非限定和未限定名稱。 __func__ 是由 C++ 標準所授權,而不是 Microsoft 擴充功能。

繼續閱讀

C++ 尋找程式視窗及變更位置大小 (Find programs’ Windows and Change Position/Size with C++)

本程式功能為找出在Windows所有執行中程式的所有視窗,並可個別變更視窗的位置與大小。

繼續閱讀

C++ 查詢電腦IP, ChatGPT有幫到 (Ping IP helped by ChatGPT)

近日因為作業需求需要查詢遠端電腦的開機狀態,直覺就想到ping ip。

繼續閱讀

C++ 擷取控件資訊包含資料庫(Retrieve control’s information including data base)

在BCB6設計一功能,在Form之任何控件上按Ctrl_q,即列示游標所在元件的物件資訊,包括資料庫來源資料。對資料來源之理解、除錯、維護大有幫助。

繼續閱讀

C++實例 — 從外部拖拉一群檔案至視窗 (C++ an actual example Dragdrop a group of files onto the form)

本文展示C++從外部拖拉一群檔案至視窗的實例。

在PDM系統之業務洽辦單之各單有其專屬的文件資料,於是設計成可由使用者以拖拉檔案的方式建立相關文件檔案。

繼續閱讀

C++ 在for..next中刪除ADOQuery資料時要注意的細節 (Some details we should be careful with while deleting ADOQuery’s data in For..Next)

在for..next中刪除ADOQuery資料時,要注意一些細節,不然有些資料會沒刪到,所得結果就會錯誤。

We should be careful with some details while deleting ADOQuery’s data in a For..Next or we will get wrong data result.

繼續閱讀

C++呼叫SQL預存程序傳送E-Mail(A C++ application calling a SQL stored procedure to mail out)

本文展示以C++程式呼叫SQL預存程序傳送E-Mail的作法。

This article is showing how to use C++ program calling a SQL stored procedure to mail out.

繼續閱讀

C++兩程式互傳訊息實例 — PDM的觀圖功能(viewing CAD drawings in PDM)

繼上文中提到的兩程式互傳訊息之後,近日以互傳訊息完成PDM的觀圖功能。

    After last article described how to transfer message between two programs, I recently have used this method to accomplish the viewing function of the PDM system.

繼續閱讀

C++小案例分享 : 兩支視窗程式雙向互傳訊息(Transferring message to each other between two programs)

本文展示以C++ (Borlad C++ Cuilder 6) 設計兩支視窗程式雙向互傳訊息作法 — prg1與prg2互傳訊息。

    This article is presenting how to design two programs within BCB6 to let them  can transfer messages to each other.

繼續閱讀

C++小案例分享 : 兩支視窗程式單向傳遞訊息 (Transferring message from a program to the other)

本文展示以C++ (Borlad C++ Cuilder 6) 設計兩支視窗程式單向傳遞訊息的作法 — prg1傳訊息給prg2。

This article is presenting how to design two programs within BCB to let one can transfer message to the other. 繼續閱讀

C++ 有趣的一件事:另類遞迴 (An interesting event:abnormal recursion)

想試寫兩個程式,可以互相呼叫及傳遞訊息什麼的。

Try to design two programs that they can transmit messages to each other, so they can do some communicating things or so.

繼續閱讀

C++獲取網芳資料夾安全性的管理者權限(Getting the authority of administrator from network shares)

通常為了安全起見,必須將分享資料夾的NTFS安全性設為users或everyone僅唯讀不允修改寫入,然而在執行程式時卻又必須依程式系統的帳號權限來寫入。這要如何做到呢? 本文分享作法。

(Usually for security reasons, we must set network shared-folder’s NTFS security to read-only for normal users or everyone . But at the same time , the folder also needed by writting by program . What would we do  ? This article is showing the practice.)

繼續閱讀