|
Thanks for the info. I never knew you could do that.
John
|
|
|
|
|
I need some articles, tutorials, websites, etc... to learn file management well, I would be very thankful if anyone helped.
<marquee>Universal Project... Soon to be a .net
|
|
|
|
|
"File management" is quite a broad topic. What kinds of files are you trying to manage?
- Mike
|
|
|
|
|
Text Files
<marquee>Universal Project... Soon to be a .net
|
|
|
|
|
Have you even looked?
"Sucks less" isn't progress - Kent Beck [^]
Awasu 1.1.3 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
Hmm.. What does one do when one manages text files?
--
Ofra Haza: R.I.P
|
|
|
|
|
Yes but nothing i found came close to my problem, I'm thinking that I'm just a bad looker, I tried google and... you get the picture
<marquee>Universal Project... Soon to be a .net
|
|
|
|
|
Not wanting to sound preachy but one of the most important things these days is not necessarily how much you stuff know but the ability to find it when you need it.
Whenever I'm looking for stuff like this, I always look for "XXX tutorial" and it usually gets me pretty good hits. So Google for "file management tutorial", "file I/O tutorial", "managing files tutorial" and you should find something!
HTH
"Sucks less" isn't progress - Kent Beck [^]
Awasu 1.1.3 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
what do u mean with manage files ?? like doing what ?
|
|
|
|
|
like finding the end of a file and then deleting upwards until a certain point, certain character
<marquee>Universal Project... Soon to be a .net
|
|
|
|
|
You cannot delete certain bytes from a file partially but you can copy the required bytes to another file.
Search in MSDN for using CFile
Bunburry
|
|
|
|
|
I posted an article up today with smart tic tac toe, I should have known better, I got alot of bad emails and everything, I took it down and decided I will have to find some spare time if possible in the near future of completion of my project, I will eventually post it up and still use The Code Project as a very well respected resource, it's just that I am under a lot of stress right now and I have a lot of problems with my project, one of which is time. Though I know the layout of the program, I don't exactly know how to manage files that well. Sorry again, don't get mad at me.
<marquee>Universal Project... Soon to be a .net
|
|
|
|
|
does anyone has an example of using MSXML4 DOM parser..?
I know there's one here that uses some dll..but I actually need something like this: but this one has it's issues...
it is good, but there is something wrong, plus i would need msxml 4 version if it...he is using here msxml3:
but that's excactly what i need: (except version msxml4 :
http://www.codeguru.com/data-misc/DdEdE.html
thank you.
_ra
|
|
|
|
|
I am kinda new again to Visual C++ it has been 6 and a half years. I have started a new workspace, it compiles right and all, I have added alot of features to it so far to get the program running the way I want it. Unfortunatly I am having trouble changing something easy now. I haven't yet messed with the doc.cpp or doc.h or the view.cpp or veiw.h I told it (when I created the MFC Wizzard) to allow for server stuff. Well I want to change the document to a text document. What part of the doc.cpp and doc.h do I have to change to get it to be a text document? and so that it becomes active when I click it? My program allows for multiple files open at once, and some of them will have different file extentions.
LOSTTWARE.com
|
|
|
|
|
Is there any way to programatically change a theme on Windows XP??? I'm talking about a system-wide change, like what can be done in "Display Properties > Themes".
After spending hours on this, I've come to the conclusion that Microsoft has not documented any of the information required for 3rd party developers to do this. Is that correct??? If so, that seems crazy. Why is Microsoft the only one with access to such an obvious feature in Windows? After all -- it's a part of the Desktop Properties dialog and there are ways to change everything else (wallpaper, screen savers, desktop icons, etc). How can there be no way to automatically change a theme?
The closest I could come is manually updating the registry, and then logging off and back on. However that is not acceptable, unless there is some way to make the Windows desktop completely refresh itself (thus reload the Theme) without requiring a logoff. ???
I also tried playing with virtual desktops, manually broadcasting WM_THEMECHANGING, and even took a look at all of the text and function names in desk.cpl to see if I could get a clue as to what it is doing -- but didn't get anywhere.
Does anyone have any ideas at all???
|
|
|
|
|
Larry Antram wrote:
Is there any way to programatically change a theme on Windows XP???
I certainly hope not! I sure as hell don't want some random program deciding to change my theme just because whatever dimwit wrote it thinks he knows better than me what colors I like.
But on a more serious note, any time programmatic access is given to user-controlled areas, idiot companies/people abuse it. Top of the Start menu - abused. Quick launch toolbar - spammed with icons (*coughNetscapecough*). Desktop - more unwanted icons put there. IE favorites folder - junk shows up there.
You know the pinned apps list on the XP Start menu? Notice how there's no programmatic access to that list. That was done on purpose so that nothing can override what the user wants to show up there.
--Mike--
Ericahist [updated Oct 26] | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber
"Linux is good. It can do no wrong. It is open source so must be right. It has penguins. I want to eat your brain."
-- Paul Watson, Linux Zombie
|
|
|
|
|
Michael Dunn wrote:
I certainly hope not! I sure as hell don't want some random program deciding to change my theme just because whatever dimwit wrote it thinks he knows better than me what colors I like.
I'm not suggesting that. I just want to create a tool that makes it easier for the user to view and switch between themes. A better mousetrap.
Unfortunately, it appears Microsoft has added a major feature to Windows XP and intentionally kept the API undocumented -- except for its own use. That sounds suspiciously like the behavior that got them in trouble before. They never learn.
I'll figure it out one way or another.
|
|
|
|
|
I'm creating a chained hash table data structure using VC++ 6.0.
I've got one template for a linked list and another for the hash table. I need to create assignment operators for both, but when I do it seems that using one in the other template class doesn't work. I either get a "can't nest template classes" error or "can't resolve right hand argument" error.
Any suggestions?
Peace
|
|
|
|
|
Could you post some code showing your problem? At least to me, it is not clear what your problem precisely is.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
How can i make a pinging appliction in vc++(MFC), that pings an server after evry specified time interval.I will be thankful to you all.
Amit
|
|
|
|
|
Hm... have you tried looking here on CodeProject for code? I know there is ping code here somewhere, too lazy to search for ya...
Rickard Andersson
Here is my card, contact me later!
UIN: 50302279
Sonork: 37318
|
|
|
|
|
use the system() function and specify the ping command with it like the following.
system("ping computername");
but it works only in XP/2000
|
|
|
|
|
Hail all!
How windows know where to search dll's? I don't want to store my debug dlls in system32 but in someone else. Or may be there another solution to run debug projects what uses dll?
|
|
|
|
|
What debug DLLs? Yours? Microsoft?
You aren't allow to distribute Microsoft debug DLLs.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
See MSDN's documentation for LoadLibrary[^].
Generally you should place your own DLLs in your application's directory, unless you're going to ship DLLs shared between many applications, in which case they should go in the Program Files\Common Files directory. Use your installer tool's method for finding this folder (the name is localised and the user may have moved it) or call SHGetFolderPath passing CSIDL_PROGRAM_FILES_COMMON as the nFolder parameter.
|
|
|
|