上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 92 下一页
This is not a new topic. But interestingly I could not find a good example on the web while I wanted to find one for some other investigation. So I decided to create a sample here to show the following scenario:A WCF service has the access to a ASP.NET session. Different WCF client proxies can conne Read More
posted @ 2012-02-20 14:07 庚武 Views(316) Comments(0) Diggs(0) Edit
using System;using System.Threading;namespace InterlockedExchange_Example{ class MyInterlockedExchangeExampleClass { //0 for false, 1 for true. private static int usingResource = 0; private const int numThreadIterations = 5; private const int numThreads = 10; ... Read More
posted @ 2012-02-20 11:06 庚武 Views(432) Comments(0) Diggs(0) Edit
书名原文:Programming Windows With MFC, Second EditionISBN 978-7-302-15042-8作者:Jeff Prosise Read More
posted @ 2012-02-19 11:36 庚武 Views(255) Comments(0) Diggs(0) Edit
http://msdn.microsoft.com/en-us/library/azz5wt61(v=vs.80).aspxA device context is a Windows data structure containing information about the drawing attributes of a device such as a display or a printer. All drawing calls are made through a device-context object, which encapsulates the Windows APIs f Read More
posted @ 2012-02-18 20:35 庚武 Views(728) Comments(0) Diggs(0) Edit
//filename:Hello.hclass CMyApp:public CWinApp{public: virtual BOOL InitInstance();};class CMainWindow:public CFrameWnd{public: CMainWindow();protected: afx_msg void OnPaint(); afx_msg void OnLButtonDown( UINT nFlags, CPoint point ); DECLARE_MESSAGE_MAP()};//filename:Hello.cpp#include <afxwin.h> Read More
posted @ 2012-02-18 19:13 庚武 Views(193) Comments(0) Diggs(0) Edit
#include <iostream>using namespace std;class P{public: P * m_p; P(){ this->m_p=this; } virtual void Intro(){ cout<<"this is P"<<endl; }};class S:public P{public : virtual void Intro(){ cout<<"this is S"<<endl; }};S s;int main(){ s.Intro(); s.m_p-& Read More
posted @ 2012-02-18 13:44 庚武 Views(190) Comments(0) Diggs(0) Edit
#include <windows.h>#include <stdio.h>LONG WINAPI WndProc(HWND, UINT,WPARAM,LPARAM); //回调原型int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ){ WNDCLASS wc; HWND hwnd; MSG msg; //1.设计窗体 //wc... Read More
posted @ 2012-02-16 01:50 庚武 Views(193) Comments(0) Diggs(0) Edit
#include <windows.h>LONG WINAPI WndProc(HWND, UINT,WPARAM,LPARAM); //回调原型int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ){ WNDCLASS wc; HWND hwnd; MSG msg; //1.设计窗体 wc.style = 0; wc.lpfnW... Read More
posted @ 2012-02-16 00:48 庚武 Views(449) Comments(0) Diggs(0) Edit
posted @ 2012-02-15 14:46 庚武 Views(146) Comments(0) Diggs(0) Edit
from: http://wiki.answers.com/Q/What_are_the_differences_between_SSRAM(Static Random Assessable Memory)-where the wordstaticindicates that it, does not need to be periodically refreshed, as SRAM uses bistable latching circuitry (i.e.,flip-flops) to store each bit. Each bit is stored as a voltage.Eac Read More
posted @ 2012-02-15 10:54 庚武 Views(290) Comments(0) Diggs(0) Edit
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 92 下一页