CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2009
    Posts
    68

    Smile database on network and MFC aplication

    hai friend,,,,, how are you all??

    usually i build MFC aplication which the database and my aplication on same computer not on a network.

    i want to built a MFC aplication with database support. but database on the network, not on computer where aplication will put.
    1. how can i built it?
    2. i saw 3 option to built MFC aplication, they are : single document, multiple document and dialog base. if i use "dialog base" can i built my aplication? or any suggestion??

    thanks for your help...

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,398

    Re: database on network and MFC aplication

    The type of application (SDI/MDI/Dialog/...) has nothing to do with the place of database.
    If your database is in some other PC on the network - just pass the correct network path name for it.
    Victor Nijegorodov

  3. #3
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: database on network and MFC aplication

    ...and it will depend on the target database type. Say MS Access is a bad choice for distributed application, while MS SQL Server, Oracle, MySQL, etc. are okay.
    Best regards,
    Igor

  4. #4
    Join Date
    Aug 2009
    Posts
    68

    Re: database on network and MFC aplication

    i use ADO Data COntrol. where can i set the path of database server? or should i just make new ODBC which connect to that database server?

    thanks before,,,

  5. #5
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,398

    Re: database on network and MFC aplication

    Well. I don't know what "ADO Data COntrol" is. However, AFAIK, ADO must open a connection to a database to use it.
    To open a connection the connection string must be correctly set; the exact connection string parameters depend on used DBMS, Provider, and many other things. See the connection string examples here
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured