15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Client/server with MFC TCP/IP and DAO

Willie Lyons -- willie@ccohs.ca
Friday, March 01, 1996

I am about to start an application which will consist of a data server 
and several clients, (multi user), using the MFC tcp/ip classes. I was 
wondering if it is possible using tcp/ip to have one of the clients 
running on the same machine as the server?

Also, I have been looking at the DAO classes and was wondering if 
applications written using DAO are easily converted to a client/server 
configuration such as an SQL server?

Thanks for your time.!



Dave Brooks -- info@brooksnet.com
Monday, March 04, 1996

At 09:08 AM 3/1/96 -0800, Willie Lyons wrote:
>I am about to start an application which will consist of a data server 
>and several clients, (multi user), using the MFC tcp/ip classes. I was 
>wondering if it is possible using tcp/ip to have one of the clients 
>running on the same machine as the server?

Typically that is a stack issue, not an MFC issue.  It works with all the
stacks I've tried, including 16 bit Trumpet and NT.

Good luck with your DAO question; sorry I can't help with that one.

Best regards,
Dave
**************************************************************************
David L. Brooks                             Brooks Internet Software, Inc.
info@brooksnet.com        1-800-523-9175 MST         http://brooksnet.com/
 Home of RPM, a new LPD server for Windows - check the Web page for demo!




Ricardo Venegas Parra -- rvenegas@infosel.com.mx
Tuesday, March 05, 1996

[Mini-digest: 2 responses]

You can change la source of your data directly in the mdb database. Make an
attach of you SQL table in your access table. i supouse to  be better than
accesing directly SQL.


+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
|            Ricardo Venegas Parra               |
|            InfoSel D&R Center                  |
|                                                |
|                      rvenegas@infosel.com.mx   |
|                    http://www.infosel.com.mx   |                     
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+


-----From: daveferg@niagara.com

I am using a client/server SQL database product called Velocis which runs fine
under TCP/IP on a single machine therefore I would assume other C/S DBMS's
would as well.
>I am about to start an application which will consist of a data server 
>and several clients, (multi user), using the MFC tcp/ip classes. I was 
>wondering if it is possible using tcp/ip to have one of the clients 
>running on the same machine as the server?
>
>Also, I have been looking at the DAO classes and was wondering if 
>applications written using DAO are easily converted to a client/server 
>configuration such as an SQL server?
>
>Thanks for your time.!
>
>




Tim Hagemann -- 100063.323@compuserve.com
Thursday, March 07, 1996

Willie,

>> I am about to start an application which will consist of a data server 
>> and several clients, (multi user), using the MFC tcp/ip classes. I was 
>> wondering if it is possible using tcp/ip to have one of the clients 
>> running on the same machine as the server?

Of course, this is possible. The client creates a tcp/ip connection to the same
machine. (Think about using telnet and the chargen service of your own machine
...)

Tim




Mike Blaszczak -- mikeblas@interserv.com
Friday, March 08, 1996

On Fri, 01 Mar 1996, Willie Lyons  wrote:
>I am about to start an application which will consist of a data server 
>and several clients, (multi user), using the MFC tcp/ip classes. I was 
>wondering if it is possible using tcp/ip to have one of the clients 
>running on the same machine as the server?

Yes. You can see this yourself by running CHATSRVR and CHATTER, which are MFC 
samples.

If you can find a good book on TCP/IP, it will explain what the "loopback" 
name and the address "127.0.0.1" mean.

>Also, I have been looking at the DAO classes and was wondering if 
>applications written using DAO are easily converted to a client/server 
>configuration such as an SQL server?

Yes.  DAO supports the notion of attached tables. That is, you can tell DAO 
to connect to a local Access MDB database file, but only use that file as a 
cache for getting data from a remote SQL Server database server. 

You can find this out by reading the DAO SDK overview which is built into the 
online help of Visual C++.  It's explained within the first few paragraphs.

>Thanks for your time.!

It's about 12:10am.

.B ekiM
--
error C2511 : 'mfcTeam.BekiM' : overloaded member not found




| Вернуться в корень Архива |