|
This http://support.microsoft.com/?id=835601[^] talks of a similar problem?
Why not make a socket-based app at the other end of the connection, and make that app do the CFileFind thing on the remote comupter. This would take some effort no doubt, but I suppose it should be faster than using CFileFind on a local pc with a remote directory...
Bikram Singh
|
|
|
|
|
Yeap - I've thought about having a service on the other end that keeps a tally in real-time and have my app just ask it for the folder sizes. If I have to I'll take that approach.
I'm just wondering if there is any other way that might even be marginally faster than what I am doing. I was wondering if there's a way to query a folder's size rather than querying each and every file as I am doing.
I'll have a look at that MS article now... perhaps it might shed some light on things for me. Thanks to both you and palbano for quick replies. If anyone thinks of something else I'm all ears
|
|
|
|
|
>> If anyone thinks of something else I'm all ears
Well you might also take a look at using FTP. At least that way you don't have to build your own service just the client to communicate with FTP. FTP without getting into file transfers is fairly simple.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
I managed to cut the time it takes down by half.
I was being dense, I did not realise that CFileFind can return the filesize without having to call CFile::GetStatus().
It's still slow, so if anyone else knows of a quicker way, other than using a service on the networked PC, feel free to let me know!
: Dean 'Karnatos' Michaud
|
|
|
|
|
No, but if you DO end up writing a service, then you can also use the file change notifications, if you are only wathcing a few directories, and the OS will let you know if anything has changed in the folder, so you won't even really need to periodically scan the folder, you will be told when something is different about it!
We ran into this same network issue, and went the 'remote app' route.
|
|
|
|
|
CFileFind might be converting the date and times to c style dates and times. In your case, I doubt it matters much, but I have seen applications where the conversions where taking up over 20% of the process time. You might try using the WIN32 functions directly.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
How to complile WMI andf ADSI with studio version 6 ?
Including ADSI .h files
I have errors of "not dofined classes",
same abour sample from this site.
When I install Platform SDK 2001 (for time of studio),
error changes to RPC files .h can not right compile.
How to resolve it?
Install new Platform SDK 2004 ?
(All works fine in 7.1 studio, but buyer wants 6.0 version).
thanks
|
|
|
|
|
Hi all
I had trouble with registration my own ActiveX component in Win98.
I make one in VC.7 and compiled under Win2000 ,and when i
register one under Win2000 all fine.But when i register same component under Win98 regsvr32 rise error: "0x0000045a"
Registration routine filed .I explore this scomponent's dll by depends.exe and all depended file presented on the target(Win98) platform.
P.s. component use multi byte character set
Any idea???
Thank.
|
|
|
|
|
This problem happens probably because the Win98 don't have native support to Unicode.
Check if your machine Win98 have Uicowslib.dll installed. If not, Install support for Unicode for Win98, and then, try to register your component.
Also, you can static link your dll with Uicowslib.lib.
Enjoy it
Rodrigo Pinho Pereira de souza
|
|
|
|
|
http://msdn.microsoft.com/msdnmag/issues/01/10/MSLU/default.aspx
Enjoy it
Rodrigo Pinho Pereira de Souza
|
|
|
|
|
|
could some give me a sample program to write a DDE server program for Excel that updates the sheet every 1 minute.
|
|
|
|
|
repost...
TOXCCT >>> GEII power
|
|
|
|
|
Need help with using VC++6 .dll and .lib with VC.NET.
I add the .dll and .lib to the Linker option and #include a .h file that has the function definitions.
Seems that the functions in the .dll and .lib are found by the compiler and linker but VC.NET does not like something about the way they are formatted???
Is there something new in VC.NET that I'm missing? These .dll and .lib files work perfect in VC++6.
Thanks.
|
|
|
|
|
For compile error that you will face in VC7,
VC7 has a updated version of STL and stronger type checking. Do expect some compile errors like type checking error, STL related errors and etc. But it should be obvious and easy to fix.
For linker error that you will face,
As you know that VC 7 uses upgraded version of STL and other CRT. Do expect some function conflicts or incompatible problem during linkage stage. Theoritically, a updated STL should work with lower version but not in this case. Other than this problem, you will face another error like fatal error LNK1235: corrupt or invalid COFF symbol table. Linker error that relate to COFF. COFF symbol table is not generated in earlier version of Visual C++ compiler as the /clr switch is not exist at that time.
The quick fix for this is to recompile your VC6 lib to reproduce a newer one with VC.NET. Other than that, what I think of is not to use the lib in VC.NET.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
Using visual studio c++ 6.0 , when building exe but have some compilation error the link hangup and I need to Kill the compailer using task manager.
need some help on this.
Geffen
|
|
|
|
|
which service pack do you have ?
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
Michae_geffen wrote:
need some help on this.
What specifically are you asking for? Are you wanting to know how to end the msdev.exe process using Task Manager?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi..All
Please give me Hint How to capture right click on datagrid control...
Actully I want to set a popup menu at right click of Datagrid..please please give me any hint...
there is no event given to check right click...
Thanks..OK! Good Bye
---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
|
|
|
|
|
Add a handler for the MouseDown. In the parameter list, you will have the button wich is pressed (left=1 right=2).
|
|
|
|
|
Hi..Thanks for reply...
But there is no event for mouse down...this is not as other control in mfc..i'm not getting its full event list..as limited events are provided...
please help me...if u know
Thanks
---Sumit Kapoor---
|
|
|
|
|
Is it the Microsoft FlexGrid control you are using ?? If so there is a message for mousedown event.
If you are using something else, I cannot help you (I don't know all the things you can do with the control)
|
|
|
|
|
I'm using DataGrid Control..as I've to use data editing in grid that save automatically as user change that data...
so I think that I cann't do in flex grid...
Give me any idea..Dear..
Thanks again.I'm waiting for reply...Bye
---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
|
|
|
|
|
I'm not sure on what your working on, but maybe you can add the handler manually. (if you get an error just try to adapt the message handler a little. ==> copy/paste in your .h file) (not pretty, but if all else fails...)
If you can detect your mouse pressing in the control where your datagrid is in, maybe you can get the coördinates and try that way?
Just ideas, don't have the answer myself.
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimmy Hendrix
|
|
|
|
|
Hi..Jimmy,
Thanks For Hint..I got my solution...
Have a Great Life..Bye
---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
|
|
|
|