|
i downloaded the zip and will try soon.
thx
includeh10
|
|
|
|
|
Hello Joaquín
Aehm, did I talk about string resources?
I would store the data as uninterpreted custom resource. You can store any binary data this way.
Joaquín M López Muñoz wrote:
If you are interested, Erik Kallen wrote a superb clone of this API for 9x systems that you can have a look at in his article Updating Resources on Win9x.
That's really good news for all those poor folks who have to support bulshit OS versions
(And obviously the code would throw light on how to deal with PE and resource formats! Very interesting!)
--
Daniel Lohmann
http://www.losoft.de
(Hey, this page is worth looking! You can find some free and handy NT tools there )
|
|
|
|
|
I would store the data as uninterpreted custom resource. You can store any binary data this way.
Didn't think of it at first. Yes, this avoids the strings hassle.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hi,
I would like to know that Visual C++ 6.0 can use ClassWizard with CDaoRecordset to open a MS Access 97 file or not?
a) I create a simple trypassword97.mdb (attached) with 1 row & 2 columns
b) Using password option (password = 12345)
c) Every thing is OK
d) But in Visual C++ 6.0 Application, when I use the ClassWizard --> Member Variable --> Add Classe --> New --> Filename.cpp --> CDaoRecordset --> trypassword97.mdb --> "Invalid passord!" ... I could not open that mdb file!
*) That means somehow Visual C++ must know the password (12345) to open the trypassword97.mdb
1) Can any one help me about this (above)?
2) In programing (at run time) at any time when I try to open it, what command line to use (with password?) to open it?
I appreciate very much for any help!
Thanks,
Anh Truong
|
|
|
|
|
Check MFC technical note TN054.
Tomasz Sowinski -- http://www.shooltz.com
- It's for protection - Protection from what? Zee Germans?
|
|
|
|
|
Hi Tomasz,
Thank you for your guide of info. I did take a look and will try at Run Time! But my problem is that I could not use Visual C++ 6.0 ClassWizard to open my MS Access file which created "before" and using option password!
Can you clarify this?
Many thanks,
Anh Truong
|
|
|
|
|
Anonymous wrote:
But my problem is that I could not use Visual C++ 6.0 ClassWizard to open my MS Access file which created "before" and using option password!
I'm afraid you're stuck with the problem. KB article Q153291 describes this issue, but doesn't offer any reasonable solution.
Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
|
|
|
|
|
Hi Tomasz,
You did help me a lot so that I will not search more info. to fix my problem! I think I should create a MS Access mdb file "without security password" from its environment to avoid the problem when I use ClassWizard! I will use at Run Time instead (I hope that it will work)
Many thanks for helps
Anh Truong
|
|
|
|
|
Hi all.
Could someone tell me how to take some resource strings I have in an access db and write then to a valid .RES file so I can include it in my program?
There has to be a API for writting to .RES files surely? Or some other simple way.
Thanks.
Pete
|
|
|
|
|
There's an API for changing resources in PE files (.exe and .dlls), however, it's available only on NT/2K/XP (UpdateResource and friends).
If you need .res file, then you'll be linking next. Why don't you write .rc and invoke Resource Compiler?
Tomasz Sowinski -- http://www.shooltz.com
- It's for protection - Protection from what? Zee Germans?
|
|
|
|
|
Thanks for the swift reply...
Writing an RC file would be acceptable...What exe is the resource compiler? and how to use it?
Can't you tell I've never been outside an IDE before!
Pete
|
|
|
|
|
Pete Bassett wrote:
What exe is the resource compiler? and how to use it?
RC.EXE. Run with /? to get basic usage info. I believe there should be more in MSDN.
Tomasz Sowinski -- http://www.shooltz.com
- It's for protection - Protection from what? Zee Germans?
|
|
|
|
|
|
You could also include the created RC file into your own projects RC file. Then you don't have to invoke RC.EXE to compile it.
--
Daniel Lohmann
http://www.losoft.de
(Hey, this page is worth looking! You can find some free and handy NT tools there )
|
|
|
|
|
Its going to be a .RES for for use in a VB app...Thats the problem, you cant use .RC files in VB. Damn!
Pete
|
|
|
|
|
When I call OpenPrinter, it fails and GetLastError() returns 87 -> ERROR_INVALID_PARAMETER
it's the last parameter ! i know this because this is the one i don't know how to init. it's a PRINTER_DEFAULTS struct.
if somebody knows how to init this struct, post me the tips !
See you later on the web !
March'
|
|
|
|
|
It can be NULL
|
|
|
|
|
I want to make my program expire after 30 days. What's the best way to implement this? I just need a simple solution, one that will prevent normal users from bypassing the expiration.
Thanks!
Johnny Wood
|
|
|
|
|
1. get the current time
2. read a registry key that your program owns HKCU/Software/MyCompany/Whatever...
3. if that key doesn't exist, create it and write the current time there. this wil happen the first time your app runs.
4. if the key does exists, read the time stamp that was stored there and compare it to the current time.
-c
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses. /. #3848917
|
|
|
|
|
save lastest date in register or a file, make sure ur user can't find it
avoid to use 'current time', so if user changes time setting, the app still expired
includeh10
|
|
|
|
|
There is an article on this site regarding this: CExpire
Peter O.
|
|
|
|
|
in file manager, we can see many info:
1. disks, folders and files
2. network connections
3. ....
some time i want to access those info directly, but i have no idea.
i.e. 'find file' only can find folder, file and is very slow. if use resource in file manager, it should be faster. and how to get network info?
i guess microsoft keeps it as itsown secret, am i wrong?
includeh10
|
|
|
|
|
I have a code snippet that just doesn't seem to work on 2 NT4 machines here(Win2K/98 are fine).
Here's the code:
PRINTDLG pdlg;
ZeroMemory(&pdlg, sizeof(PRINTDLG));
pdlg.lStructSize=(DWORD)sizeof(PRINTDLG);
BOOL bVal = AfxGetApp()->GetPrinterDeviceDefaults(&pdlg);
Even though both NT machines have default printers setup, bVal returns FALSE every time.
Any ideas?
|
|
|
|
|
i connect internet vs telephone line, so i have an ip address (in format of 111.111.111.111). but if i disconnect internet, i have nothing (ipconfig says nothing).
i think the number is related to my internet vender, possible related to my PC (adapter etc) also, maybe more.
i think if i change a vender or change a modem (or PC), the number must be changed.
do you kown story of the number?
thx
includeh10
|
|
|
|
|
if you dial up you will almost certainly get a temporary IP from one of the numbers your ISP has reserved. it isn't related at all to your PC or modem, but it is related to your vendor (ISP).
-c
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses. /. #3848917
|
|
|
|