文件名称:Messenger
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 3.02mb
- 下载次数:
- 0次
- 提 供 者:
- 高*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
网络数据通信案例——MyMessenger
代码使用说明
==============================================================
ATM文件夹为DCOM客户端代码。
Bank文件夹为DCOM服务器端代码。
BankAccount.mdb为DCOM服务器端数据库。
1. 服务器端运行准备
将Bank.EXE、Bankps.dll及BankAccount.mdb数据库文件复制到服务器端。
在DOS环境下进入Bankps.dll所在目录,运行regsvr32 bankps.dll进行注册。
设置数据库:打开操作系统控制面板,打开管理工具-数据源 [ODBC],添加
系统DSN,命名为BankAccount,选择BankAccount.mdb文件作为数据源。
运行前先用Access打开BankAccount.mdb文件添加若干账户及密码、存款余额。
2. 客户端运行准备
将组件服务器端生成的Bankps.dll复制到客户端可执行程序ATM.EXE文件夹下,
在DOS环境下进入该目录,执行命令regsvr32 bankps.dll进行注册。
运行ATM.EXE出现登录界面,登录成功后可看到存款余额,然后进行存/取款。
-Network Data Communications Case- MyMessenger
Code for use
================================================== ============
ATM folder for the DCOM client-side code.
Bank folder for the DCOM server-side code.
BankAccount.mdb for the DCOM server-side database.
1. Server-side ready to run
Will Bank.EXE, Bankps.dll and BankAccount.mdb database files copied to the server-side.
In the DOS environment to enter the directory where Bankps.dll, run regsvr32 bankps.dll to register.
Set database: Open Operating System Control Panel, open Administrative Tools- Data Sources [ODBC], add
System DSN, named BankAccount, select BankAccount.mdb documents as data sources.
Running before the first Open Access document BankAccount.mdb add a number of accounts and passwords, and deposits.
2. Ready to run the client
Will be generated server-side components Bankps.dll copy to the client ATM.EXE executable program folder,
I
代码使用说明
==============================================================
ATM文件夹为DCOM客户端代码。
Bank文件夹为DCOM服务器端代码。
BankAccount.mdb为DCOM服务器端数据库。
1. 服务器端运行准备
将Bank.EXE、Bankps.dll及BankAccount.mdb数据库文件复制到服务器端。
在DOS环境下进入Bankps.dll所在目录,运行regsvr32 bankps.dll进行注册。
设置数据库:打开操作系统控制面板,打开管理工具-数据源 [ODBC],添加
系统DSN,命名为BankAccount,选择BankAccount.mdb文件作为数据源。
运行前先用Access打开BankAccount.mdb文件添加若干账户及密码、存款余额。
2. 客户端运行准备
将组件服务器端生成的Bankps.dll复制到客户端可执行程序ATM.EXE文件夹下,
在DOS环境下进入该目录,执行命令regsvr32 bankps.dll进行注册。
运行ATM.EXE出现登录界面,登录成功后可看到存款余额,然后进行存/取款。
-Network Data Communications Case- MyMessenger
Code for use
================================================== ============
ATM folder for the DCOM client-side code.
Bank folder for the DCOM server-side code.
BankAccount.mdb for the DCOM server-side database.
1. Server-side ready to run
Will Bank.EXE, Bankps.dll and BankAccount.mdb database files copied to the server-side.
In the DOS environment to enter the directory where Bankps.dll, run regsvr32 bankps.dll to register.
Set database: Open Operating System Control Panel, open Administrative Tools- Data Sources [ODBC], add
System DSN, named BankAccount, select BankAccount.mdb documents as data sources.
Running before the first Open Access document BankAccount.mdb add a number of accounts and passwords, and deposits.
2. Ready to run the client
Will be generated server-side components Bankps.dll copy to the client ATM.EXE executable program folder,
I
(系统自动生成,下载前可以参看下载内容)
下载文件列表
第8章源代码
...........\ATM
...........\...\ATM.APS
...........\...\ATM.clw
...........\...\ATM.cpp
...........\...\ATM.dsp
...........\...\ATM.dsw
...........\...\ATM.h
...........\...\ATM.ncb
...........\...\ATM.opt
...........\...\ATM.plg
...........\...\ATM.rc
...........\...\ATMDlg.cpp
...........\...\ATMDlg.h
...........\...\Bank.h
...........\...\Debug
...........\...\DlgExchange.cpp
...........\...\DlgExchange.h
...........\...\DlgLogin.cpp
...........\...\DlgLogin.h
...........\...\ReadMe.txt
...........\...\res
...........\...\...\ATM.rc2
...........\...\...\Bankps.def
...........\...\Resource.h
...........\...\StdAfx.cpp
...........\...\StdAfx.h
...........\Bank
...........\....\Account.cpp
...........\....\Account.h
...........\....\Account.rgs
...........\....\Bank.aps
...........\....\Bank.cpp
...........\....\Bank.dsp
...........\....\Bank.dsw
...........\....\Bank.h
...........\....\Bank.idl
...........\....\Bank.ncb
...........\....\Bank.opt
...........\....\Bank.plg
...........\....\Bank.rc
...........\....\Bank.rgs
...........\....\Bank.tlb
...........\....\Bankps.def
...........\....\Bankps.dll
...........\....\Bankps.exp
...........\....\Bankps.lib
...........\....\Bankps.mk
...........\....\Bank_i.c
...........\....\Bank_i.obj
...........\....\Bank_p.c
...........\....\Bank_p.obj
...........\....\dlldata.c
...........\....\dlldata.obj
...........\....\msado15.tlh
...........\....\msado15.tli
...........\....\Resource.h
...........\....\StdAfx.cpp
...........\....\StdAfx.h
...........\BankAccout.mdb
...........\说明8.txt
...........\ATM
...........\...\ATM.APS
...........\...\ATM.clw
...........\...\ATM.cpp
...........\...\ATM.dsp
...........\...\ATM.dsw
...........\...\ATM.h
...........\...\ATM.ncb
...........\...\ATM.opt
...........\...\ATM.plg
...........\...\ATM.rc
...........\...\ATMDlg.cpp
...........\...\ATMDlg.h
...........\...\Bank.h
...........\...\Debug
...........\...\DlgExchange.cpp
...........\...\DlgExchange.h
...........\...\DlgLogin.cpp
...........\...\DlgLogin.h
...........\...\ReadMe.txt
...........\...\res
...........\...\...\ATM.rc2
...........\...\...\Bankps.def
...........\...\Resource.h
...........\...\StdAfx.cpp
...........\...\StdAfx.h
...........\Bank
...........\....\Account.cpp
...........\....\Account.h
...........\....\Account.rgs
...........\....\Bank.aps
...........\....\Bank.cpp
...........\....\Bank.dsp
...........\....\Bank.dsw
...........\....\Bank.h
...........\....\Bank.idl
...........\....\Bank.ncb
...........\....\Bank.opt
...........\....\Bank.plg
...........\....\Bank.rc
...........\....\Bank.rgs
...........\....\Bank.tlb
...........\....\Bankps.def
...........\....\Bankps.dll
...........\....\Bankps.exp
...........\....\Bankps.lib
...........\....\Bankps.mk
...........\....\Bank_i.c
...........\....\Bank_i.obj
...........\....\Bank_p.c
...........\....\Bank_p.obj
...........\....\dlldata.c
...........\....\dlldata.obj
...........\....\msado15.tlh
...........\....\msado15.tli
...........\....\Resource.h
...........\....\StdAfx.cpp
...........\....\StdAfx.h
...........\BankAccout.mdb
...........\说明8.txt