|
Hahahaha, good remark, didn't give any real error.
No the problem is that it does read the dir, as it doesn't exit with code 3. But the printf() of the directorynames don't display anything, while the other printf() with strings in them work perfectly. I'm working in VC6, since I got totally freaked while working in VC2005 with all the different string types. So the problem isn't a compile error or anything, the problem runs smoothly, but just doesn't print the foldernames.
|
|
|
|
|
Your strcpy() call looks odd. I think the arguments need to be reversed.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Thanks man! That was it! Now to get the rest of the code working!
|
|
|
|
|
Can't see any "<"s or ">"s or what's between them. Can't read the code as it's poorly formatted (no indentation). If you don't want to make the effort to format the code nicely for us tick the "Ignore HTML tags in this message (good for code snippets)" checkbox when you post so we can see the tabs and such. Unless I'm in a really good mood or the question in particularly interesting I don't pay much attention if the code is too hard to read.
Steve
|
|
|
|
|
Hi Steve,
I'm sorry that my code is not good enough for you. It is ubersimple code! Got a main, got 1 function, that's it! I must admit that the indentations got removed when I copied the code, my appologies, didn't notice that. But still, instantly replying with this kinda rude reply wasn't necessary. Dave replied within 2 minutes and he figured it out correctly, even from the crappy format! I'll try to deliver better format in the future if you try to be a bit.... more patient.
Joe
|
|
|
|
|
It's not the code per se; it's the fact that you can't see any "<"s or ">"s charcters or what's between them and none of the formatting can be seen as the HTML doesn't honour the tabs. As I said, if you don't want to put them in manually (as I do for short code segments) tick the "Ignore HTML tags in this message (good for code snippets)" check box when you post the message and your code will be readable.
Steve
|
|
|
|
|
I write some files and folder to harddisk while I run my program.
whenever I close the program, I want to delete these files too.
I don't know what the function use for this issue.
Can Anybody help me?
|
|
|
|
|
See DeleteFile and SHFileOperation
|
|
|
|
|
Have you tried DeleteFile() and RemoveDirectory() ?
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
What about, if want to delete all file in specific folder, such as Folder "Temp"?
|
|
|
|
|
Use SHFileOperation() for wildcards.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
I'm just a beginner. I can set the range of SpinButtn but don't know how to
deny values outside Min and Max thru keyboard input w/o using messsage box
|
|
|
|
|
Did you use CSpinButtonCtrl::SetRange
|
|
|
|
|
For the SpinButton yes it's working, problem is It allows values outside the range thru keyboard input
thanks
|
|
|
|
|
Using the ClassView, add an integer variable that is attached to the edit control. This will add a DDX_ function call in your DoDataExchange method. You will also note that there is a min and max range you can set for the variable that will add a DDV_ call in DoDataExchange.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
thanks Zac I'll try that.
|
|
|
|
|
By the way I messed up my project by adding and deleting a dialog and rename the new with the old one. can't open class wizard and keeps on prompting to locate the source even though I set selected it already
|
|
|
|
|
If need be, you can add the code by hand. All it requires is declaring an integer variable in your dialog class, and adding the DDX and DDV calls in DoDataExchange. If you create another dialog app to test it with, you can see the format for those function calls.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
If the maximum value for the edit control is 999, for example, use SetLimitText(3) . If the maximum value is something else like 756, you can't keep 757 from being pasted or typed into the control, but you can disable the OK button. There are other possible solutions, but without more knowledge of the problem, those would be guesses at best.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
By means of "subclassing" the CEdit you can overwrite it's message handlers. This way you can sort out the characters you want to block. Search for "Subclassing" or "SubclassDlgItem" here in the forum. There are good articles about the subject.
MS
|
|
|
|
|
I am writing a program based on a site.
When the user click the "scan" button on the page, a dll will start to work.It will enum the disk for some special files. Then it will return the data to the script.
Now, I want to display a "gif" to show something like "scanning,Please waiting....." .
But my problem comes. Maybe the enum program has used most of the CPU time , the "gif" can not be shown until the enum data retrives. During the wating time,the user can to nothing in the IE.
So, is there any method to solve this ?
thanks
|
|
|
|
|
Could someone give me some examples on decoding ascii85??
I have a rather large file encoded in ascii85 and I need to convert to binary.
The file is around 6mb in size.
|
|
|
|
|
See here[^] maybe it is some helpful to you
|
|
|
|
|
I just cant seem to understand this ascii85 decoding. Lets say I have the following string of characters:
zzzzzzzz!!!!=*#KP6)]1@O)&O>5(`=>5(`FD4(`XM4)''Y5)BB\4*#oe5*?,h6*>o\6*#KP6
)]0J6)&O>5(`=>5(`FD4(`XM4)''Y5)BB\4*#oe5*?,h6*>o\6*#KP6)]0J6)&O>5(`=>5
(`FD4(`XM4)''Y5)BB\4*#oe5*?,h6*>o\6*#KP6)]0J6)&O>5(`=>5(`FD4(`XM4)''Y5
)BB\4*#oe5*?,h6*>o\6*#KP6)]0J6)&O>5(`=>5(`FD4(`XM4)''Y5)BB\4*#oe5*?,h6
*>o\6*#KP6)]0J6)&O>5(`=>5(`FD4(`XM4)''Y5)BB\4*#oe5*?,h6*>o\6*#KP6)]0J6
)&O>5(`=>5(`FD4(`XM4)''Y5)BB\4*#oe5*?,h6*>o\6*#KP6)]0J6)&O>5(`=>5(`FD4
(`XM4)''Y5)BB\4*#oe5*?,h6*>o\6*#KP6)]0J6)&O>5(`=>5(`FD4(`XM4)''Y5)BB\4
*#oe5*?,h6*>o\6*#KP6)]0J6)&O>5(`=>5(`FD4(`XM4)''Y5)BB\4*#oe5*?,h6*>o\6
*#KP6)]0J6)&O>5(`=>5(`FD4(`XM4)''Y5)BB\4*#oe5*?,h6*>o\6*#KP6)]0J6)&O>5
(`=>5(`FD4(`XM4)''Y5)BB\4+ohTCzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Could someone please explain the sequence of events to decode this to binary data please.
Seems there is lots of info on encoding but only one example of decoding which I dont really understand.
Thanks
|
|
|
|