« Home « Chủ đề C Sharp

Chủ đề : C Sharp


Có 40+ tài liệu thuộc chủ đề "C Sharp"

LẬP TRÌNH WINDOWS - Bài tập thực hành

tailieu.vn

Làm quen với 1 chương trình C viết trên thư viện API a. Sử dụng VC++ 6, dùng chức năng New project, chọn loại project “Win32 Application”. Chọn chức năng “A typical Hello World. Hoàn tất tạo project, biên dịch và chạy thử nghiệm chương trình b. Thay đổi nội dung hiển thị trên màn hình client area thành:. Tài...

LẬP TRÌNH WINDOWS - Bài tập tuần 1

tailieu.vn

Viết chương trình từ hàm WinMain:. Đọc tập tin input.txt các thông tin:. Dòng kế tiếp có n số nguyên, mỗi số cách một khoảng trắng Yêu cầu:. a) Tính tổng của dãy số trên và thông báo bằng MessageBox b) Tìm phần tử lớn nhất của dãy và thông báo bằng MessageBox c) Sắp xếp tăng dần dãy số...

LẬP TRÌNH WINDOWS - Các khái niệm cơ bản

tailieu.vn

Khoa CNTT – ĐH.KHTN.Tp.HCM Email: nttuan@ fit.hcmuns.edu.vn. Các thư viện lập trình của Windows. Các loại ứng dụng. Tài nguyên của ứng dụng (Resources). C4W - Basic - Nguyen Tri Tuan - DH.KHTN Tp.HCM 3. Ứng dụng 16 bits Hỗ trợ 32 bits hay hơn nữa. Phải dùng các thư viện Multimedia riêng. Là bộ thư viện lập trình nền...

LẬP TRÌNH WINDOWS - CÁC KIỂU DỮ LIỆU CƠ BẢN TRONG WINDOWS

tailieu.vn

DWORD số nguyên không dấu 32 bits. DWORD_PTR số nguyên không dấu 32 bits sử dụng khi cần chuyển kiểu con trỏ DWORD để tính toán. DWORD32 số nguyên không dấu 32 bits. DWORD64 số nguyên không dấu 64 bits. HANDLE handle của 1 đối tượng. HBITMAP handle của 1 đối tượng ảnh bitmap. HBRUSH handle của 1 đối tượng...

LẬP TRÌNH WINDOWS - Bài tập tuần 2

tailieu.vn

Mô tả dữ liệu lưu trữ và mô tả xử lý các sự kiện sau để viết một chương trình soạn thảo văn bản.. Các sự kiện: WM_CHAR, WM_PAINT Các chức năng soạn thảo:. a) Nhập dữ liệu. Một số hướng dẫn khi cài đặt Lệnh cập nhật lại màn hình:. input string: "A&bc&&d". normal: "Abc&d". Một số câu hỏi:....

LẬP TRÌNH WINDOWS - Generic App

tailieu.vn

GENERIC_APP.CPP. #include "stdafx.h". #include "resource.h". wcex.cbSize = sizeof(WNDCLASSEX);. wcex.style = CS_HREDRAW | CS_VREDRAW;. wcex.lpfnWndProc = (WNDPROC)WndProc;. wcex.cbClsExtra = 0;. wcex.cbWndExtra = 0;. wcex.hInstance = hInstance;. wcex.hIcon = LoadIcon(hInstance, (LPCTSTR)IDI_C);. wcex.hCursor = LoadCursor(NULL, IDC_ARROW);. wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);. wcex.lpszMenuName = (LPCSTR)IDC_C;. wcex.lpszClassName = szWindowClass;. wcex.hIconSm = LoadIcon(wcex.hInstance, (LPCTSTR)IDI_SMALL);. Generic_App.rc. #include "windows.h". IDI_C ICON DISCARDABLE "c.ICO". MENUITEM "&About ...", IDM_ABOUT END. Version 1.0",IDC_STATIC...

LẬP TRÌNH WINDOWS - Ví dụ và Bài tập

tailieu.vn

wcex.cbSize = sizeof(WNDCLASSEX);. wcex.style = CS_HREDRAW | CS_VREDRAW;. wcex.lpfnWndProc = (WNDPROC)WndProc;. wcex.cbClsExtra = 0;. wcex.cbWndExtra = 0;. wcex.hInstance = hInstance;. wcex.hIcon = LoadIcon(hInstance, (LPCTSTR)IDI_BBBBB);. wcex.hCursor = LoadCursor(NULL, IDC_ARROW);. wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);. wcex.lpszMenuName = (LPCSTR)IDC_BBBBB;. wcex.lpszClassName = szWindowClass;. wcex.hIconSm = LoadIcon(hInstance,(LPCTSTR)IDI_SMALL);. Ví dụ 1. P2.x = P2.y = 0;. P2.x = LOWORD(lParam). P2.y = HIWORD(lParam);. Ví dụ 2. Ví dụ 3

LẬP TRÌNH WINDOWS - Ví dụ và Bài tập (T4)

tailieu.vn

robot[n].hBmp. robot[0].hBmp = LoadBitmap(hInst,LPCTSTR(IDB_BITMAP1));. robot[0].next =1. robot[0].dx = 27-13. robot[0].dy =0;. robot[1].hBmp = LoadBitmap(hInst,LPCTSTR(IDB_BITMAP2));. robot[1].next =2. robot[1].dx = 38-27. robot[1].dy =0;. robot[2].hBmp = LoadBitmap(hInst,LPCTSTR(IDB_BITMAP1));. robot[2].next = 3. robot[2].dx = 27-13. robot[2].dy =0;. robot[3].hBmp = LoadBitmap(hInst,LPCTSTR(IDB_BITMAP3));. robot[3].next =0. robot[3].dx = 38-27. robot[3].dy =0;. robot[n].dx;. robot[n].dy;. n = robot[n].next

LẬP TRÌNH WINDOWS - Thư viện đồ họa GDI (Graphics Device Interface)

tailieu.vn

Khoa CNTT – ĐH.KHTN.Tp.HCM Email: nttuan@ fit.hcmuns.edu.vn. C4W - GDI - Nguyen Tri Tuan - DH.KHTN Tp.HCM 3. Thiết bị đồ họa (Graphics device). Ngữ cảnh của thiết bị (DC - Device Context). Đối tượng vẽ (Drawing object). Đối tượng vẽ trong MFC. C4W - GDI - Nguyen Tri Tuan - DH.KHTN Tp.HCM 5. Các khái niệm cơ bản -...

LẬP TRÌNH WINDOWS - Clipboard

tailieu.vn

Thông tin về dữ liệu. Dữ liệu đầy đủ:. Thông tin về dữ liệu: (Kỹ thuật Delayed Rendering)

LẬP TRÌNH WINDOWS - Các kỹ thuật xử lý Clipboard

tailieu.vn

Các kiểu định dạng sử dụng trong Clipboard. [2] Các kiểu định dạng sử dụng trong Clipboard. Định dạng chuẩn. Định dạng riêng. [2] Các kiểu định dạng. Định dạng dữ liệu được xác định bởi tham số uFormat trong hàm. hMem là handle của khối bộ nhớ chứa dữ liệu có định dạng tương ứng với uFormat. Clipboard API...

LẬP TRÌNH WINDOWS - Kỹ thuật lập trình Hook (phụ lục)

tailieu.vn

Lập trình C trên Windows. Kỹ thuật lập trình Hook (phụ lục). Khoa CNTT – ĐH.KHTN.Tp.HCM Email: nttuan@ fit.hcmuns.edu.vn. Lập trình sự kiện. Giới thiệu kỹ thuật Hook. Minh họa cách lập trình Hook. C4W - Hook - Nguyen Tri Tuan - DH.KHTN Tp.HCM 3. Các loại Hook. Thủ tục Hook (Hook procedure). Chuỗi Hook (Hook chain). C4W - Hook...

LẬP TRÌNH WINDOWS - Thư viện lập trình Multi-Media

tailieu.vn

Lập trình C trên Windows. Thư viện lập trình Multi-Media. Khoa CNTT – ĐH.KHTN.Tp.HCM Email: nttuan@ fit.hcmuns.edu.vn. Các kiến thức cơ bản về Multi-Media. Các thư viện lập trình Multi-Media trên Windows. Thư viện MCI. C4W - MultiMedia - Nguyen Tri Tuan - DH.KHTN Tp.HCM 3. Giới thiệu các kiến thức khái quát về Multi-Media. Giới thiệu các thư viện...

Lập trình Cơ sở dữ liệu nâng cao với ADO.NET

tailieu.vn

Bạn đã thấy cách sử dụng một giao dịch với một đối tượng Lệnh như thế nào. Bạn đã thấy cách sử dụng một giao dịch với một DataAdapter như thế nào. Bạn sẽ xem xét cách sử dụng một số thuộc tính và phương pháp trong chương này.. THIẾT ĐẶT MỘT Saverpoint SỬ DỤNG T-SQL. Thiết đặt một Savepoint...

Beginning C# 2008

tailieu.vn

completely foolproof is to underestimate the ingenuity of complete fools.” “The major difference between a thing that might go wrong and a thing that. at the beginning of the method. In the. call the pieces modules, but I personally prefer the term components.) The components are. tions of the data. (plus or minus) of the number. Each of the operations...

Giới thiệu Lập trình hướng đối tượng

tailieu.vn

Chương 1: Giới thiệu về lập trình hướng ñối tượng (object oriented programming - oop). Lập trình hướng ñối tượng là gì?. ðể hiểu oop là gì, trước hết chúng ta nhìn lại lịch sử của các kỹ thuật lập trình, ñồng thời xem xét các nhược ñiểm của các kỹ thuật lập trình trước khi oop ra ñời.. Nhìn...

Chapter 11 - Threading in C#

tailieu.vn

11.1 Threading in C# and .NET. Worker threads can be used to perform the following without tying up the primary thread.. How an auxiliary or worker thread can be created and used to perform processing in parallel with the primary thread.. using System.Threading;. Console.WriteLine("worker thread: working...");. Console.WriteLine("worker thread: terminating gracefully.");. executed by worker thread.. Start the worker thread.. Console.WriteLine("main thread:...

Chapter12 - Working with String

tailieu.vn

A large portion of the chapter covers the string-formatting capabilities of various types in the .NET Framework and how to make your defined types behave similarly by implementing IFormattable. Additionally, I introduce you to the globalization capabilities of the framework and how to create custom CultureInfo for cultures and regions that the .NET Framework doesn’t already know about. 12 .1...

Chapter 13 - File IO and Isolated Storage

tailieu.vn

File I/O and Isolated Storage. The System.IO namespace allows you to interact with a machine’s file and directory structure. The latter part of this chapter examines the role of isolated storage, which allows you to persist per-user data into a safe sandbox, regardless of the security settings of a target machine. To understand certain aspects of the System.IO.IsolatedStorage API, you...

Inheritance

tailieu.vn

Similarly, in C#, the classes in a program can be related to each other. You can make the following observations:. Consider the following example:. The following figure is an example of the hierarchy establishing the inheritance relationship of the Mammals class.. In the preceding figure, notice there is a set of classes: mammals , dogs , cats , humans. Mammals...