|
Hi,
I have one program which writes some text to a file, and save it and closes.
If we click on the file the contents can be read {text file}.
I want to know is there any way I can make a file unreadable when its opened from outside, I want to know to how to compress when file when it is closed and uncompressed when it is opened by the program.
Can u please give me some suggestions.
Thanking you,
Suresh H.
|
|
|
|
|
Why don't you encrypt/decrypt it?
Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
Hi, Thanks for the reply.
How to do that ??? can u please give me some suggestions and also along that i want to compress the file.
|
|
|
|
|
You can find several in Criptography[^] category.
I have tested this one[^] and I think you could use it. All depends on the degree of security you need or if you just needs a first stop for a possible opener.
I hope it helps,
Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
|
Thank you very much for the link I will check it.
|
|
|
|
|
Hi,
I need create function which returned pointer
for example:
void* tmp;
return tmp
Can ActiveX returned pointer to the external application???
Because I don't know how do it.
Function in external apllication which used ActiveX is for e.:
InvokeHelper(0x11, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
instead VT_BOOL I need poiter variable...
Please help me...
|
|
|
|
|
Hi all friends .
Is any technology for developing graphics program (GUI programming) faster than DirectDraw ?
Thank in advance .
|
|
|
|
|
|
A_Fa wrote: Is any technology for developing graphics program (GUI programming) faster than DirectDraw ?
Is OpenGl is of any use? do you want to make game?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Dear Sir,
I still have difficult to do printPreview.
I need to do printPreview without doc/view facilities , to preview more than one pages.
And I can have more than one dialogs to preview.
Who can help me?
|
|
|
|
|
|
I go directly to the printpreview adresse.
After doing all, I have this message on #include "PrintExtension.h";
fatal error C1083: Cannot open include file: 'PrintExtension.h': No such file or directory
What to do ?
|
|
|
|
|
check you have this file and check path from this file is correct
|
|
|
|
|
Whar is true is that this fine don't exist, we have only *.lib and *.dll that I put thoses in the program path and c:\windows\system32, but still have the same error
|
|
|
|
|
From the demo example copy this file to my path but i have this message:
C:\backupmik\research\help\dialogpreview.cpp(16) : error C2039: 'classCPrintPreviewDialog' : is not a member of 'CPrintPreviewDialog'
I don't understank because this file I copy it like that from the dem project.
|
|
|
|
|
error C2039: 'classCPrintPreviewDialog' : is not a member of 'CPrintPreviewDialog'
maybe you need to include a file(header) that has CPrintPreviewDialog
|
|
|
|
|
Thanks to all for your help.
I did'nt reply soon because I have problems with my provider.
I try all ideas we have sended me and I have a good result.
Thanks to all again.
|
|
|
|
|
and I'm wondering because i see your reply now,
Is your problem solve?
|
|
|
|
|
I am very glad to solve my PrintPreview problem after two years.
God bless All code Project specialists
|
|
|
|
|
You get this error "Cannot open include file: 'PrintExtension.h':"
so you include this file and compiler cant find this file so it show this error to you
|
|
|
|
|
Excuse me, i was create CFormView instead of CDialog.
Now I coorect it, no compilation error but in execution, they ask me PrintExtension.dll. I don't see this file because i have only PrintExtensiond.lib(PrintExtensiond.dll).
|
|
|
|
|
Dear Sir,
Using PrintExtension library, how can I have print preview in Landscape ?
I learn My self
|
|
|
|
|
Using PrintExtension LIB to do printPreview, how can I Do preview in LANDSCAP orientation ?
|
|
|
|
|
I was unable to figure this out with http://www.codeproject.com/printing/printextension.asp[^]. This was a big problem for me because I need this functionality to work. So what I did was write everything into a dc in memory and then found some functionality to rotate the dc 90 degrees. After rotating it 90 degrees I was then showed the print preview. Even though the print preview was still showing portrait everything was rotated 90 degress so it was really landscape.
I know this seems pretty complicated and it was. Like I said I had to make this functionality work....and I did. It just took a lot of work.
Chris
|
|
|
|