|
Hi,
How can I create a Hidden Directory?
|
|
|
|
|
Call CreateDirectory() to create the directory, then SetFileAttributes() with FILE_ATTRIBUTE_HIDDEN to hide it.
|
|
|
|
|
yes I know! there is a lot of the same question here in www.codeproject.com. But I need a standard API or something to detect the connectivity.
Thank you masters!
|
|
|
|
|
You can use InternetGetConnectedState() by including wininet.h and using the following snippet:
#pragma comment(lib,"wininet.lib")
if (InternetGetConnectedState(INTERNET_CONNECTION_LAN | INTERNET_CONNECTION_MODEM,0) == FALSE)
{
}
else
{
}
Cheers!
|
|
|
|
|
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Check out the IsNetworkAlive API
«_Superman_»
|
|
|
|
|
|
complate update in : 2009/02/20
see you later...!
|
|
|
|
|
Its a question or its a notification?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
You are in a completely dark room, facing north west.
Courtesy of John Simmons
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Let's hope The Big Green Snake not only Bars The Way, but decides to have him for lunch.
|
|
|
|
|
Done. Now I'm going to enjoy a week of holydays...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I recently download the program/class CSMTPConnection which can be found at: http://www.codeproject.com/KB/IP/csmtpconn.aspx#CSMTPAddress. After making some minor changes to the code for my system, I find that I cannot use to send email. The problem is that my mail server requires authentication which I interpret to mean a password. This program/class does not allow me to supply a password. I am doing this as a learning exercise. Is there a different class I should be using to send email? If I use the yahoo email server, will that work?
I am doing that, at least for now, as a learning exercise.
Thanks
Bob
|
|
|
|
|
|
I have a neat way of registering software. The software creates
a ID number based on the time of installation, I provide a passcode
that is stored in the registry to activate the software.
It works, its simple. Only problem is, its dependent on the phone.
Too much time is spent on the phone with the person activating the
software.
Im trying to come up with an easy way where:
1. I generate a list of say 100 valid passcodes.
2. When the software is given a passcode, it downloads the list of
valid passcodes from the server and checks to see if this is a valid
passcode.
3. If it is, it removes it from the list and uploads the new list
of 99 passcodes to the server. That way they can just register once.
4. When the original list of valid passcodes gets low, I'll generate
more and restock the list.
I can do almost everything except upload that new list, which is just
a .txt file, to replace the current existing list.
I looked all over codeprojec and am looking for an easy sample
project that shows how to activate software or an easy project that
shows how to upload a file to a server to replace a current existing
file. Any chance any one knows of any sample project or can email
me anything?
Please, please, any response any one can give me will be greatly
appreciated.
Sincerely,
Danielle Brina
|
|
|
|
|
How are you downloading the file?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
There is a simple project called CWebGrab on the codeproject
site. I lets me grab a file from the server. Easy to use.
|
|
|
|
|
DanYELL wrote: There is a simple project called CWebGrab on the codeproject
site.
Which uses CHttpFile::Read() . That class has a Write() method that you should be able to use.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I would suggest to not download "stuff" on the users's computer.
Instead of the phone, use email.
- User gets "code" from software
- User sends "code" to company.
- Company validates "code" and generate "activation code"
- Company sends back "activation code".
- User paste "activation code" in software
- Software validate "activation code".
This signature was proudly tested on animals.
|
|
|
|
|
I agree. But here is what happens.
- User gets "code" from software.
- User sends "code" to me.
- User gets impatient and calls.
I cant begin to tell you how many people call to say
"I just sent you an email, can you give me a time-frame
as to when you will reply". And I just got the email.
|
|
|
|
|
This should be automatic.
In my experience, the usual response time is up to 5 "work" days.
This signature was proudly tested on animals.
|
|
|
|
|
i have taken one radio button i want to change text of it. can anybody tell how can i change the text of it. in my programme
thnz
|
|
|
|
|
_T("No name") wrote: i have taken one radio button i want to change text of it. can anybody tell how can i change the text of it.
They hide that information in the documentation[^]
|
|
|
|
|
led mike wrote: They hide that information in the documentation[^]
Bastards!
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|