|
jayyaj wrote: i am trying to write a c++ program...to create a base converter to do interconversion between OCT, DEC, BIN, HEX.
Have you tried strtol() ?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
...and _itoa()!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Is there a way to get the list of filenames that are copied? I have a need to keep track of all the file names that are copied using ShFileOperation.
Thanks
|
|
|
|
|
Off the top of my head, you could try the FindFirstFile() /FindNextFile() pair using the same file pattern passed to SHFileOperation() .
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
You can use of a counter when you want to copy files.
|
|
|
|
|
I need to get the IHTMLDocument2 from a running instance of IE without using SHDocVw. Im trying to write an application that will fill a form in IE, but i am doing this in a seamless citrix session. so explorer is not running. how can i get the IWebBrowser2, and IHTMLDocument2? and how do i enumerate all instances of IE?
|
|
|
|
|
I noticed that in some applications that I've written the CPU is overloaded:
- on a single core CPU is occupied ~95 - 100 %
- on dualcore ~ 48 - 52 %
Can this be prevented?
In VC++ 6 please...
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
RomTibi wrote: Can this be prevented?
Probably, but not until you figure out what is consuming the CPU.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
My app try to read data from a slow COM port. While finishing it's job, it's making 130.000-150.000 attempts to read, only ~700 succesfully. This is the mess I'vewritten.
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
Rather than polling, it would seem more efficient to let the COM port tell your app when it has data available to read.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I solved the problem working arround the timeouts. Thanks for support!
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
So that others may benefit from your discovery, would you please share your solution?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
RomTibi wrote: Can this be prevented?
Yes, never run applications you've written.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
R U always so funny?
|
|
|
|
|
|
Yeah I agree with Maximilien.
|
|
|
|
|
This is normal behaviour. What exactly do you want to prevent? What do you mean by overloaded?
|
|
|
|
|
|
RomTibi wrote: ~95 - 100 %
Is that while the app is sitting idle (waiting for user input) or is it doing some work?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
I know I've sent this once again! But It's really important to me
(Special Thanks To DavidCrow)
I've derived a class from CRecordset without passing a CDatabase object to it.
I've also defined a string (e.g strConnectionString ) in its GetDefaultConnection() function as connection string. It goes fine unless I close my app! In that case the following error message appears:
"The instruction at "0xefa005" referenced memory at "0xacdf14". The memory could not be "read". Click on OK to terminate the program."
Whem I pass the same connectioin string (e.g strConnectionString ) to a CDatabase object and then use it to construct my CRecordset derived class, I won't see the error message again.
(I'm in release mode! But I don't think It's matter)
Can anyone help me to get the reason PLS.
I really need it!
|
|
|
|
|
Usef Marzbani wrote: I've derived a class from CRecordset without passing a CDatabase object to it.
At any point in time do you try and use the set's m_pDatabase member?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I didn't get it! Can U explain a little more please?
|
|
|
|
|
Hi all,
How to upload an image file into mysql database using CDatabase connection... please send a samples if you have..
thanks in advance
|
|
|
|
|
If you cannot access Google from your location you should complain to your ISP.
Well I don't know why I thought I was in the ASP.NET forum but obviously I was wrong. Anyway maybe this will help[^]
Last modified: 53mins after originally posted --
led mike
|
|
|
|