•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 397,898 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,653 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser:
Views: 1579 | Replies: 4
![]() |
•
•
Join Date: Mar 2005
Posts: 36
Reputation:
Rep Power: 4
Solved Threads: 1
I hope this makes sense... I made a program which requires authorization by username and password, once logged in it will allow you to load a program. My question is, is there a tutorial for the program being called to only open if it has been called by a certain program (Only a certain program can open it).
I was looking up google for tutorials and fstream, but I cannot find anything. Could someone please push me in the right direction?
Thanks in advance,
Rave
I was looking up google for tutorials and fstream, but I cannot find anything. Could someone please push me in the right direction?
Thanks in advance,
Rave
•
•
Join Date: Aug 2004
Location: Virginia Beach, VA
Posts: 19
Reputation:
Rep Power: 5
Solved Threads: 0
You could also use a pseudorandom number calculated by the same means on both the client and server programs. You could pass this via an IPC mechanicsm. Not exactly 'secure', but would keep anybody from randomly executing.
dale
dale
•
•
Join Date: Mar 2005
Posts: 36
Reputation:
Rep Power: 4
Solved Threads: 1
I have a idea that will work, once program A is open it will create a .bmp file with encrypted characters. The program B will search for this file and have the correct characters in it. If not it does not open.
However, I want to make it so when Program A is closed, the file is deleted (so program B wont run). How do I delete the bmp file after its been created?
However, I want to make it so when Program A is closed, the file is deleted (so program B wont run). How do I delete the bmp file after its been created?
from google
http://www.computing.net/programming...rum/12045.html
apparently the remove() function is what you are after.
www.cplusplus.com might have a reference for this function
http://www.computing.net/programming...rum/12045.html
#include <stdio.h>
if(remove("myfile.txt") == -1)
fprintf(stderr,"Remove failed");
apparently the remove() function is what you are after.
www.cplusplus.com might have a reference for this function
http://sales.carina-e.com
no www
no nonsense
coming soon to a pc near you! :cool:
no www
no nonsense
coming soon to a pc near you! :cool:
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb C Marketplace
•
•
•
•
antivirus apple blog botnet browser business crack crime database developers development dns email encryption exploit firefox fraud google government hacking id theft internet ipod linux malware mcafee microsoft mobile news phishing php privacy report research satnav search security software spam spyware survey terrorism trends trojan url virus vista web windows worm
- Possibly the worst computer mess ever (Viruses, Spyware and other Nasties)
- perl inline module (Perl)
- One Level Up & Typo3 (Linux Servers and Apache)
- Need help fast! *HJT log posted* (Viruses, Spyware and other Nasties)
- programs won't open? (Viruses, Spyware and other Nasties)
Other Threads in the C Forum
- Previous Thread: Trouble with pointers in card game.
- Next Thread: Windows programming task



Linear Mode