Results 1 to 14 of 14

Thread: 2 major questions i need awnsered. PDF file in vb6, and disable.

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    2 major questions i need awnsered. PDF file in vb6, and disable.

    Is there a way to embed a pdf file in vb6, and is there a way completly disable ALL things the user can do to exit out, minimize, close, and even control alt and deleat?
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  2. #2
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: 2 major questions i need awnsered. PDF file in vb6, and disable.

    you can cancel the unload on the queryunload event by setting cancel = 1
    this won't work when the user choose to terminate your process with no warning.

    it's very hard to take control of the ctrl-alt-delete, it requires sub classing + dll

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: 2 major questions i need awnsered. PDF file in vb6, and disable.

    Hmm.... Well, beacause i was going to write a book kinda thing. I was planning on using pdf and embedding it in vb6, exporting it as a file. But, to try to stop ppl from sharing it, etc, i was going to have it to where there was no other way of closing it, except for a button, which will deleat the file that vb6 exported for using..... Anyone else have a better idea?
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  4. #4
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: 2 major questions i need awnsered. PDF file in vb6, and disable.

    i'm doing a task exactly like you need

    steps:

    1. i embed the file to my exe file by running this cmd.exe command
    Code:
    copy myapp.exe /b + myseperator.txt /b + myembedfile.pdf /b mytargetfile.exe
    2. on runtime i extract the embed file,
    and in your case, open it for reading.

    3. immediatly after step 2, i reopen the pdf in share read - off
    so now the pdf is locked and no other program can open/copy do anything with it.

    even if the user terminate your app from the task manager
    the pdf file will remain lock, so no other program can use it.

    but ...
    after the user reset the machine he can use the pdf.

    so to ensure that the user won't be able to terminate your app from task manager, i have a timer that check every half a second
    for the running process - task manager, and if it find it, i post message to the task manager to close it

    so as long as your app is running the task manager will be disabled.

    yu can show a message to the user, that if he want to use task manager,
    he must close your app, first.


    4. after the user close your app with the close button,

    i have a destroy function that destroy the pdf, so no recover utilty can recover it.


    all this i do ofcourse with APIs.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: 2 major questions i need awnsered. PDF file in vb6, and disable.

    Is there any way you can show me some code, and how to do this? I haven't used any API's.... So.... Yeah.... =)
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  6. #6
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: 2 major questions i need awnsered. PDF file in vb6, and disable.

    I'm not sure if Windows will allow you to disable ctrl+alt+delete combo...

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: 2 major questions i need awnsered. PDF file in vb6, and disable.

    well, all i want is it to where the user cannot copy, upload, send, etc. the pdf file....... to stop pirating....
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  8. #8
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: 2 major questions i need awnsered. PDF file in vb6, and disable.

    If they can view it, they can copy it. If with nothing else then with making screen shots to 'screen-scrape' it.

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: 2 major questions i need awnsered. PDF file in vb6, and disable.

    so, there is no way to stop them?
    not even a way to lock it?
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  10. #10
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: 2 major questions i need awnsered. PDF file in vb6, and disable.

    If they have to be able to view it, then no.

  11. #11

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: 2 major questions i need awnsered. PDF file in vb6, and disable.

    crap........ this sucks...... =(
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  12. #12
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: 2 major questions i need awnsered. PDF file in vb6, and disable.

    Nothing can be 100% protected, but what you can do is try and make it hard for users to copy it. If it's a book, I doubt most users will have enough patience to take hundreds of screen shots and then compile them into a new file.

    But then again, I have run across PDFs made of scanned pages of books, some with over 700 pages. I can't even imagine how long it took to scan that many pages, one by one and compile them into one file. So if a user is determined, they will do it.

  13. #13

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: 2 major questions i need awnsered. PDF file in vb6, and disable.

    yeah. Thanks Baja_yu
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  14. #14
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: 2 major questions i need awnsered. PDF file in vb6, and disable.

    attached example tested project.
    instructions file included
    Attached Files Attached Files

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