|
Thanks for replying,
I need to delete all values of MountedDevices key. So To delete them one by one I need to put it in to a loop, so how can I know the no of values that are there.
RegDeleteValue(mhKey,(LPCWSTR)lpValueName)
in this function lpValueName I need to pass the value name one by one. But I want to delete all values so that it will take the next value itself.
Thanks.
|
|
|
|
|
|
Hello,
I have finished writing ftp client in c/c++ using system funtion to get/put ftp commands
for example:
int FTPGet(char *asFtpSite, char *asFtpUser, char *asFtpPasswd, char* asRemoteDir,
char *asRemoteFile, char *asLocalFile, char *asLogFile)
{
char lsFtpCommand[4096];
sprintf(lsFtpCommand,
"export LANG=en_US\n"
"ftp -i -v -n >%s <<EOJ\n"
"open %s\n"
"user %s %s\n"
"ascii\n"
"cd %s\n"
"get %s %s\n"
"bye\n"
"EOJ\n",
asLogFile,
asFtpSite,asFtpUser,asFtpPasswd,
asRemoteDir,
asRemoteFile,asLocalFile);
system(lsFtpCommand);
return 0;
}
It works fine, but very slow, I found out it is why because i use "system" function,
What i want to ask from u, Is there any other method to make it faster?
I am told that there is a ftp library for C, which is cURL, somebody has ever tried it? or
Is There any other ftp library which works faster?
My platform is IBM AIX unix.
Thanks in advance
It is never late to learn
|
|
|
|
|
I havnt used libCurl, there's also libwww http://www.w3.org/Library/[^] which also looks promising...
you say its slow, and thats becuase you use the 'system' function .. what do you mean by slow ? I would have thought that once a shell had been spawned using system it could handle that easily, unless it does a truckload of parsing etc to read the commands from stdin/the input 'stream'
Is your system having other difficulties, like with memory or network connection issues ?? I'll see if I can test it on Solaris tomorrow...
|
|
|
|
|
Thanks for reply.
What i mean by slow was that when u want get file from ftp server and save it to your localhost or such operations works very slow, and i think it is from why i use "system" function in c, if i use other low level OS function, it could be faster such as Curl or something else.
It is never late to learn
|
|
|
|
|
|
Jusef Marzbany wrote: Pardon me Mr. toxcct!
When I found you're here online, I cought the time and a tought occured to me!
I have a (likely) simple problem and am trying to resolve it in this forum since 4 days ago; But nobody answered me!
Since I really need it, I decided to do so and ask you so ... Can you date a time to chat to me about that PLEASE?
I am at work.
I answer questions in this place in my free time.
I don't want to give my ID publically to anyone here.
If you have a question, ask it here, clearly, fully, and be patient.
If you don't get answers, it's because other people don't understand it, or they just don't know the answer, or you don't provide enough informations...
modified on Monday, September 15, 2008 7:24 AM
|
|
|
|
|
any way! thanks for your attention!
But I didn't mean to ask you republice your ID; I meant a private chat for once!
Thank you just the same ...
|
|
|
|
|
Hi There,
I want to extract images & banners with their redirecting URL from a website.
I'm using IHTMLElementCollection to enumerate the HTML elements but still not able to get the redirecting URL of images & banners.
If you need any further information/clarification please let me know.
Thanks!
|
|
|
|
|
Hello,
When I build the Release configuration of my MFC application I get the following linker warning:
LINK : warning LNK4089: all references to 'OLEAUT32.dll' discarded by /OPT:REF
How can I get rid of this linker warning? (without the use of /IGNORE:4089 )
Hiding the warning via /IGNORE:4089 in the project settings is not the solution I'm looking for.
My guess is that the problem comes from the 7.1 MFC libraries I use... is this true?
I'm compiling with Visual Studio 2003 (7.1)
Thanks in advance.
-- Ricky Marek (AKA: rbid)
-- "Things are only impossible until they are not" --- Jean-Luc Picard
My articles
|
|
|
|
|
#pragma comment(ignore: 4089)
|
|
|
|
|
Question: Can we use this #pragma comment(ignore 4089) for the warning related to "OLEAUT32.dll" only?
For what I understand, the use of the #pragma is the same as hiding the warning via /IGNORE:4089 in the project settings, which is not the solution I'm looking for.
Does anybody has another suggestion?
Thanks in advance
-- Ricky Marek (AKA: rbid)
-- "Things are only impossible until they are not" --- Jean-Luc Picard
My articles
|
|
|
|
|
rbid wrote: Question:
Can we use this #pragma comment(ignore 4089) for the warning related to "OLEAUT32.dll" only?
no.
rbid wrote: or what I understand, the use of the #pragma is the same as hiding the warning via /IGNORE:4089 in the project settings
exactly.
rbid wrote: Does anybody has another suggestion?
there's no other way. either you hide every 4089 warnings, or you show them all.
but hey, it's only a warning , why do you bother that much ?
|
|
|
|
|
Hi Friends,
I am using CRichEditCtrl in my application.
Is it possible to display some line of text in seperate color(e.g 1 and 3 line in red color), and remainig(e.g 2 and 5 in blue) line text in another color.
Regards,
Prasanth
|
|
|
|
|
Did you search on the codeproject?
|
|
|
|
|
Prasanth M V wrote: Is it possible to display some line of text in seperate color...
Did you look for the SetSelectionCharFormat() method?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Thanks
SetSelectionCharFormat works well
|
|
|
|
|
hi,
i am having a CMap , and i am trying to write a word document in my vc++ appln,
i am going for Cmap.Lookup() Method, and getting the values and writing to a document file.
but its taking 100% cpu performance
why ?
what is the solution for this ? and any other kind of reports are there, to get a report from my application.
Thanks,
jhony
Born to win...!
|
|
|
|
|
Jhony george wrote: i am trying to write a word document
What does "word document" mean? Like in Microsoft Word .doc/.docx format?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
modified on Monday, September 15, 2008 7:53 AM
|
|
|
|
|
sashoalm wrote: What does "word document" mean?
yes, i am having a data and
i am trying to write into a word document.
like "sample.doc"
Born to win...!
|
|
|
|
|
how big is the data you're writing, in megabytes?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Are you sure that this Lookup() Method is the cause for 100% CPU. Please use a diagnostic tool to find out the exact cause for the peak CPU usage. May be dump analysis can help.
Regards,
Rane
|
|
|
|
|
hai,
i am not pointing to only lookup, may be some other probs...!
where can i get the diagnostic tool, do u knw any link for that ?
Born to win...!
|
|
|
|
|
You may use MS DebugDiag Tool.The Debug Diagnostic Tool (DebugDiag) is designed to assist in troubleshooting issues such as hangs, slow performance, memory leaks or fragmentation, and crashes in any windows process.
Regards,
Rane
|
|
|
|
|
hi,
actually My problem is i am writing into a word doc file, but its taking 5 minutes hardly , (at that time cpu performance was 100%)
total no.of pages in the Report document is 30,
what is the solution for reducing this time span...?
Born to win...!
|
|
|
|