|
as i know, the answer to ur Q is one of secrets of microsoft, they will not let u know for free.
i am very interested in the Q, hope u get right reply.
good luck.
includeh10
|
|
|
|
|
I have tried the function : NetShareEnum, but it only showed all the directories that a computer shares. But I am looking for the functions that showed all the shared files.
vietdung
|
|
|
|
|
Couldn't you just list the files in each of those directories then?
That's why I ramble so much. If you're short and quotable, there's a much greater danger of ending up in a sig.
[Christopher Duncan on how to prevent yourself from ending up in a sig]
|
|
|
|
|
I have made a mistake here. I haven't used the function NetShareEnum to show all the shared directories of a computer. I used the code in MSDN but don't noticed that it only listed all the shared foders of my computer.;P
Of course, if we know the directory, we can find all the files it contains.
Can the function NetShareEnum list all the shared directories of a computer? Or we must use other functions?
vietdung
|
|
|
|
|
Hi.
I'm considering writting a program with output of the times that other programs append files. Is there an easy way of doing this in c++?
I thought that I could start a thread that accesses all of the files and constantly checks there accessability, whether they're being shared etc.
However I'm not sure about the priority the thread would need, so is there a list stored someone in windows of what files are open or closed, and if so how could i access this list? Some sort of file management system as i know very little about any of this.
- Jason
|
|
|
|
|
NT offers special functions for monitoring folders and files, win2k should be the same but i never try.
for other OS, u have to use thread to implement ur task.
includeh10
|
|
|
|
|
Hi all,
Is there a way to include bitmaps, cursors and icons into my application without using an .rc file and the resource compiler? Something like a library that can read #include()-able .xpm files and convert them to icons/cursors etc at will.
The reason for this is as follows: I'm writing a component that will be used by other departments here. It's written as a static library, but now in order to use it, people have to include stuff in View->Resource Includes (in VC6 that is) and the VC ide is not very compatible with having your resource.h and .rc file in non-standard places (we have headers and implementation files in separate, unrelated directories, and the resource.h file and .rc file have to be with the headers to be #include()-able)
I thought if I could just get rid of the .rc file and have another way to include resources into my project, that would save me a lot of hairpulling.
Thanks in advance everybody!
cheers,
roel
|
|
|
|
|
if u want to distribute ur app in a single exe file, u have to add all to resource.
otherwise why don't dynamically load from files (i.e. my.bmp)? but in MFC, i think u have to have one or two icons and menus in resource, otherwise u have much more extra things to do.
includeh10
|
|
|
|
|
I could indeed load the resources dynamically, but that would mean that I'd have to distribute all these images & cursors etc as separate files, which I'm trying to avoid.
The main application (the one that will be using my component) does use a resource file, like you say, for the menu and so on. I was trying to get my component to not have to use a resource, to make it easier to use for others.
Anyway, thanks for taking the time to answer my question!
cheers,
roel
|
|
|
|
|
I dont know any (free) lib/tools. Perhaps you need to make your own resource compiler, to create object file(s) from your resource files and access them in your app.
|
|
|
|
|
It is a good idea indeed, but I'm afraid that it would take me more time than my boss would allow me to spend on it I'll keep it in mind, and thanks for replying.
|
|
|
|
|
well, a very simple idea is to polute global namespace!
I need a portable solution for using resources (linked in my executable) in my tiny game engine... so here is my idea:
Your "resource compiler" takes files and create (hughe) const unsigned char[] arrays of it. The arrays will be written into one big cpp file. Compile to an object file, link it with your app and write a simple wrapper class to access the data. The wrapper can look identical to the MFC solution (if you need).
I think it doesnt take much time.... however I'm busy and have done it yet.
M
|
|
|
|
|
typo: have NOT done it yet.
|
|
|
|
|
This might be workable but I haven't tested it, use at your own risk, make backup copies, blah blah blah.
The path to the .rc file and resource.h are contained in the project (MyProject.dsp, for example) file as SOURCE=.\MyProject.rc and SOURCE=.\resource.h. Of course, you're not supposed to edit the .dsp file (although I have). MyProject.rc and MyProject.cpp contain includes for resource.h. If you changed those includes and the paths in MyProject.dsp, I would think you could put the .rc and resource.h files anywhere you wanted.
|
|
|
|
|
How to convert GIF to BMP?
|
|
|
|
|
Try the Search box in top of this side. (You´re a newbie)
Best I Think: http://www.codeproject.com/bitmap/load_jpeg__gif_resource..asp
|
|
|
|
|
with cximage[^]
CxImage image;
image.Load("file.gif",CXIMAGE_FORMAT_GIF);
if (image.IsValid()) image.Save("file.bmp",CXIMAGE_FORMAT_BMP);
|
|
|
|
|
If you are using VC7, you can use the new, built-in class, CImage.
|
|
|
|
|
first you pay Unisys $3000 for using their LZW compression scheme (which GIF is based on), then you search this site to find an implementation.
“If it turns out that I’m actually the one who did it, then looking for the real killers would be a big old waste of time.”
-- OJ Simpson
|
|
|
|
|
I'm building a little utility to help with budgeting. I have a dialog in which one will enter transaction information, but the one I have is damn ugly.
How would you reorganize to make this dialog[^] prettier?
|
|
|
|
|
Make the list of options a drop down and then underneath it dynamically show only the options that relate to the selection - use ShowWindow to show/hide different things as needed.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Christian Graus wrote:
Make the list of options a drop down and then underneath it dynamically show only the options that relate to the selection - use ShowWindow to show/hide different things as needed.
I was wondering about this when I first threw the dialog together. It's a bit more work, but it will be much prettier. Thanks.
|
|
|
|
|
Be sure to provide history entries in the dropdown stuff, so users don't have to enter the data again and again, just select it instead.
How low can you go ? (MS rant)
|
|
|
|
|
If your working with Calendars include some MS stuff: CDateTimeCtrl.
|
|
|
|
|
I'll second that.
How low can you go ? (MS rant)
|
|
|
|