|
Hi,
I need to be able to toggle the handshaking lines on the serial port.
Can anyone help with this.
I am using vc6 on XP.
Cheers
Jim
|
|
|
|
|
|
Thanks for that, I'll give it a go.
I'll let you know how I get on.
Cheers
Jim
|
|
|
|
|
I need some help creating a unix shell using c++. Can anyone help me out here. Starting from scratch.
#include <iostream>
using namespace std:
Are the only includes I have so far. Code wise I have started it but no clue where should I end up.
|
|
|
|
|
crain1981 wrote: #include <iostream>
using namespace std:
Are the only includes I have so far. Code wise I have started...
Wow. Other than the syntax error, you're almost done!
"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
|
|
|
|
|
lol.... glad you pointed that out...
so:
#include <iostream>
using namespace std;
Is this better.
Anyhow I'm trying to code the unix command cd in C++. Any pointers.
|
|
|
|
|
crain1981 wrote: Anyhow I'm trying to code the unix command cd in C++. Any pointers.
Try SetCurrentDirectory() .
"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
|
|
|
|
|
hmmm... do I need the #include <winsock2.h> for that command?
|
|
|
|
|
SetCurrentDirectory() does not require the iostream file.
"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 man...
Sorry for being annoying...
And I'm just asking... can you do that for all commands.
|
|
|
|
|
crain1981 wrote: can you do that...
Do what?
"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
|
|
|
|
|
Use something like setDirectory() for all the unix commands.
|
|
|
|
|
crain1981 wrote: Use something like setDirectory() for all the unix commands.
Uh, no. You would only use that if you wanted to set the directory of the FileDialog object's window to be the specified directory, and only if you were using Java.
"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
|
|
|
|
|
What you mean by creating a shell ? I would suppose that almost (or maybe even all) commands in the shell are just different executables.
|
|
|
|
|
that could be true... but i want to do it manually... and not by executables. I know they can but I choose to do it the other way so that I know how the command is implemented.
|
|
|
|
|
Cedric Moonen wrote: I would suppose that almost (or maybe even all) commands in the shell are just different executables.
Back in DOS days, it had internal (i.e., those contained within command.com) and external commands (i.e., separate executables).
"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
|
|
|
|
|
It is a daunting task, you know. Good luck.
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
[My articles]
|
|
|
|
|
Hi Guys,
Is there any way or tool exists to tells "hot" critical sections in your code?
- Vikram S
|
|
|
|
|
vikrams wrote: Is there any way
Yes. One can learn skills related to software development.
led mike
|
|
|
|
|
Yes very true.
But consider a case where you are using third party library with such locks.
|
|
|
|
|
vikrams wrote: But consider a case where you are using third party library with such locks.
what are these locks you are talking about? Here is your first post that says nothing about them at all.
vikrams wrote: Is there any way or tool exists to tells "hot" critical sections in your code?
led mike
|
|
|
|
|
My dear friend,
Please read my initial post carefully. This entire discussion is moving around critical sections.
|
|
|
|
|
vikrams wrote: This entire discussion is moving around critical sections.
Ah, you mean Critical Section Objects[^]?
If so what does the "hot" mean?
vikrams wrote: "hot" critical sections in your code?
Reading that part of your post I in no way understood you were talking about Critical Section Objects. You might consider you are using text based communications, therefore you should attempt to avoid confusion. For example, you could have linked your "critical section" to a resource that specified what you meant, like I did. After all it is you that is asking for help, not us.
led mike
|
|
|
|
|
Okey Mike. I will take care of such thing in my new postings.
Now Do you have anything useful for me and ofcourse related with this topic?
|
|
|
|
|