Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23
  1. #11

    Default Re: Making MS ACCESS Database part of .EXE file in VB6... how?


    Quote Originally Posted by kibotizer
    Making MS ACCESS Database part of .EXE file in VB6... how?
    unsa man na mga bai?... kinsa naay idea ug kamao?... murag embedding ACCESS Database to a VB6 program, MDB or MDE...
    then how to retrieve data from it?...
    yeah! bling bling men...abz'
    This is easy.
    Just create an ODBC connection for the MsAccess Database
    Then create a either use RDO or ADO connection to point to the ODBC created.
    Example in RDO:

    Code:
    Dim cnAccess As New rdoConnection
    Dim rdoQry As New rdoQuery
    Dim rdors As rdoResultset
    Dim conn_string As String
    Dim sql as String
    
    con_string = "ODBC connection string here...."
    
    cnAccess.CursorDriver = rdUseOdbc
    cnAccess.Connect = conn_string
    cnAccess .EstablishConnection
    
    sql="SQL statement here...."
    
    openRS rdoQry, rdors, sql
    
    manipulate recordset rdors here....
    .
    .
    .
    
    rdors.Close
    rdoQry.Close

  2. #12

    Default Re: Making MS ACCESS Database part of .EXE file in VB6... how?

    Quote Originally Posted by cold_fusion
    This is easy.
    Just create an ODBC connection for the MsAccess Database
    Then create a either use RDO or ADO connection to point to the ODBC created.
    Example in RDO:

    Code:
    Dim cnAccess As New rdoConnection
    Dim rdoQry As New rdoQuery
    Dim rdors As rdoResultset
    Dim conn_string As String
    Dim sql as String
    
    con_string = "ODBC connection string here...."
    
    cnAccess.CursorDriver = rdUseOdbc
    cnAccess.Connect = conn_string
    cnAccess .EstablishConnection
    
    sql="SQL statement here...."
    
    openRS rdoQry, rdors, sql
    
    manipulate recordset rdors here....
    .
    .
    .
    
    rdors.Close
    rdoQry.Close

    nasod naba sa .EXE file ang database ani bro?... pwede na madelete ang database ining compile sa program?...



    yeah! bling bling men...abz'

  3. #13

    Default Re: Making MS ACCESS Database part of .EXE file in VB6... how?

    Quote Originally Posted by kibotizer

    nasod naba sa .EXE file ang database ani bro?... pwede na madelete ang database ining compile sa program?...
    I-sulod sa .EXE
    Why would you do that?
    Exe files are even protected by anti-virus programs at runtime.

    But there are database engines that are embedable but not the data. They are mostly written in C. For example sqlite.
    You could put the data in memory but will be erased after the program quits.

  4. #14

    Default Re: Making MS ACCESS Database part of .EXE file in VB6... how?

    I dont know if mabutang ba jud na sa exe.

    Gamita nalang ang mdb file.
    The application could still make use of it even wla ka ms access.

  5. #15

    Default Re: Making MS ACCESS Database part of .EXE file in VB6... how?

    kana diay mga resource files?.. naka suway kog butang access files sa exe. or dlls via resource files. pro c# to. wa ko kabaw onsaon pag inser resource files for vb6 pro duda ko mao na.. imo i resource. ang .mdb file.

  6. #16

    Default Re: Making MS ACCESS Database part of .EXE file in VB6... how?

    Quote Originally Posted by silent-kill
    kana diay mga resource files?.. naka suway kog butang access files sa exe. or dlls via resource files. pro c# to. wa ko kabaw onsaon pag inser resource files for vb6 pro duda ko mao na.. imo i resource. ang .mdb file.
    I'm not an expert sa .NET, I think mga resource files is gi-zip(compressed) ra na siya sulod sa exe file. Dili gyud na siya part sa executable code.

  7. #17

    Default Re: Making MS ACCESS Database part of .EXE file in VB6... how?

    di man jud na i apil sa executable code ang mga resource file bai. in ASM theres what they call the

    executable code /block. where all the jmp jne, mov, pop ,push, static pointers, dynamic pointers. comes in.
    and the resource/data block. just binary data floating around in the sea of bytes. LOL..

    pro sulod siya sa exe file and DLL. and i guess ma access nimo pro readonly ra basin..
    and theres this technique where they actually writes the "tmp/mdb/jpg etc" files and place it on the user profile...
    so the next time you run your program... you'll just read from that location instead from the exe.... this technique is helpful. when you want to create "templates" for your data storage and dont want user to change them... but not really intended for saving to the mdb file inside the exe.

    i dont know kong ila bajud i compress.. ang file kai 190k manto ang access.. file nya pag compile nako 200k+ na. heheeh.

  8. #18

    Default Re: Making MS ACCESS Database part of .EXE file in VB6... how?

    Quote Originally Posted by silent-kill
    pro sulod siya sa exe file and DLL. and i guess ma access nimo pro readonly ra basin..
    and theres this technique where they actually writes the "tmp/mdb/jpg etc" files and place it on the user profile...
    so the next time you run your program... you'll just read from that location instead from the exe.... this technique is helpful. when you want to create "templates" for your data storage and dont want user to change them... but not really intended for saving to the mdb file inside the exe.
    I think dili gihapon sakto kay u just statically/dynamically link a file. Kay iyang gusto is sulod man sa binary codes ang mga data sa exe file.

  9. #19

    Default Re: Making MS ACCESS Database part of .EXE file in VB6... how?

    Quote Originally Posted by kibotizer
    possible cguro siya kung data retrieval lng...bisan data retrieval lng... unsaon kha?
    If it is for data retrieval only, why not just put the data in an array?
    Hardcode the data and assign them in a large array and voila you have your database.
    This is already included in your exe file. Retrieval is even faster than on a native MDB.

    BTW, What is purpose of this idea? Maybe we could give a better suggestion on for your intent...

  10. #20

    Default Re: Making MS ACCESS Database part of .EXE file in VB6... how?

    Quote Originally Posted by silent-kill
    di man jud na i apil sa executable code ang mga resource file bai. in ASM theres what they call the

    executable code /block. where all the jmp jne, mov, pop ,push, static pointers, dynamic pointers. comes in.
    and the resource/data block. just binary data floating around in the sea of bytes. LOL..

    pro sulod siya sa exe file and DLL. and i guess ma access nimo pro readonly ra basin..
    and theres this technique where they actually writes the "tmp/mdb/jpg etc" files and place it on the user profile...
    so the next time you run your program... you'll just read from that location instead from the exe.... this technique is helpful. when you want to create "templates" for your data storage and dont want user to change them... but not really intended for saving to the mdb file inside the exe.

    i dont know kong ila bajud i compress.. ang file kai 190k manto ang access.. file nya pag compile nako 200k+ na. heheeh.

    bitaw bai silent-kill, sakto jud... gamit jud ni nako ron kung naa makahatag more idea... im only planning to read from a file not writing on it because i know it's very hard if not impossible.

    maski asa: Resource File or OLE, basta after the program is compiled and turns to EXE file dili na dayon ka-edit ang user sa maong database... pwede pod kung gamiton na ang maong file i-extract siya from the EXE file and will be temporarily/permanently save in a specific location

    ===========
    opening embedded object in the OLE control in vb6

    'kung unsa ang file sa OLE control i-save niya temporarily to a specific file unya i-open kung unsa ang default software nga 'maka-open niya
    'another alternative in opening the file during runtime is by double clicking the icon of the file
    OLE1.DoVerb


    'ang ako problema kay dili ko ka-kuha sa path kung asa na-save ang embedded file
    'unya dili pod siya ko ka-access sa file kung dili i-open
    ===========

    pasaylo mga bai nga mag-lisod jud ko pasabot sa ako gipangita... hehe


    yeah! bling bling men...abz'

  11.    Advertisement

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

 
  1. Looking For: 1BRO - Be part of the most in demand business today !
    By mariel1bro in forum Everything Else...
    Replies: 19
    Last Post: 12-09-2013, 02:01 AM
  2. Forced disappearances - part of political culture in the philippines
    By kid_linux in forum Politics & Current Events
    Replies: 13
    Last Post: 07-29-2011, 10:47 AM
  3. Dropping an MS Access Database, possible?
    By cjoyce12 in forum Programming
    Replies: 1
    Last Post: 01-28-2011, 08:24 AM
  4. How to create MS Access Database in VB.Net
    By cjoyce12 in forum Programming
    Replies: 1
    Last Post: 01-24-2011, 02:06 PM
  5. help:Cant download .exe file in Vista
    By ingkiang in forum Software & Games (Old)
    Replies: 6
    Last Post: 01-08-2009, 06:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top