|
Hi, does anyone know what header files/libraries to use to use ppm file formats?
I'm trying to parse a ppm format file in c++.
|
|
|
|
|
|
Hello friends...can anyone guide me how to start programming for USB Interface in VC++ since iam new to VC++ as well USB Port.
Thanks
prav
prav
|
|
|
|
|
You never access the USB port directly like you would do for a serial port. Instead, you work with a device driver that interract with your hardware.
Now, it depends a lot of the device with which you want to communicate, as the drivers are very specific. So, which kind of hardware are you using ?
|
|
|
|
|
Thanks for posting a wonderful topic...
Even i have the same qustion to ask to all..
I have finger print sensor and i have to access the finger print data using the vc++ code, Drivers for the device is installed in my machine
with regards
||SnAkeBed||
|
|
|
|
|
I already answered your question. Did you read that? Because I have no memory of you responding.
Iain.
Iain Clarke appearing in spite of being begged not to by CPallini.
|
|
|
|
|
Hi ,
I have an xyz.dll ,when i was trying to register that dll i am getting error message like below
error message: xyz.dll was loadable,but dllregisterserver not find entry point for that dll.
but i want to register that dll and need to get classid for xyz.dll.
could u plz help me that how can i register and get classid for that particular dll.
Thanks-
|
|
|
|
|
Are you sure that is really a COM DLL?
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
Probably your DLL is not a COM one (registration applies only to COM components), see [^].
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
|
|
|
|
|
Is it possible to use custom baud rates on a regular PC (Windows XP) with a built-in standard RS-232 com port?
|
|
|
|
|
I've just done a bit of reading, and you can get windows to give you the information.
Open a handle to the com port (CreateFile etc), and then use GetCommProperties on it.
One of the COMMPROP structure members is called dwMaxBaud and also dwSettableBaud - these are bit masks, and one of the flags is BAUD_USER. I'd assume that's the one you want.
So, the answer is "maybe - it depends on your 'standard' RS-232 com port."
Iain.
Iain Clarke appearing in spite of being begged not to by CPallini.
|
|
|
|
|
MSDN [^] states:
BaudRate
The baud rate at which the communications device operates. This member can be an actual baud rate value, or one of the following indexes.
hence, have a try.
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
|
|
|
|
|
Thanks a lot! By trying different values of the dcb.BaudRate parameter in the call to SetCommState I was able to find all the supported baud rates on my PC.
|
|
|
|
|
Can you find this out via Device Manager?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
Ashish Chauhan wrote: Very URGENT...Plzzzz
Who really cares if it is very urgent? You simply don't have the manners. You want free help and that would be on an urgent basis? At the very least you don't even know which is the forum that you need to ask help at? Just bog off. Bang your head on a wall. There's nothing for you here. All the Indians are accused of sh*t-dropping in the forums, just because of people like you. You don't care for it, do you? You just want the code, as you call it, don't you?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
|
Ashish Chauhan wrote: managed
Thats the keyword!
Please ask your question in the "Managed C++/CLI" forum.
And please try not to act as if you were in a position ordering us to do something. In fact, most of us are stealing the time to answer here from their employers.
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
Rajesh R Subramanian wrote: Ashish Chauhan wrote:
Very URGENT...Plzzzz
Who really cares if it is very urgent? You simply don't have the manners. You want free help and that would be on an urgent basis? At the very least you don't even know which is the forum that you need to ask help at? Just bog off. Bang your head on a wall. There's nothing for you here. All the Indians are accused of sh*t-dropping in the forums, just because of people like you. You don't care for it, do you? You just want the code, as you call it, don't you?
See, Brammah. This is the kind of stuff I am talking about. The number of Indians doing this outweigh you, and the other great's from your country at least 50:1. I wasn't trying to be racist, as I never mentioned India by name until someone else did. However, take a look at posts like this. When you see them, look at their profile. More often than not, they are from India. I hope I didn't offend you, as I respect you. Please see my reply to your message in the original thread.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
I've read your replies. I'd agree with your point that there are a lot of crappy posts floating around posted by Indians. But I was just against your idea of blocking posts based on a country, rather than an individual. At times, we get irritated by their attitude we may become rude while replying. But, never say something like "People from this country are stupids" or the kind. After having said that, adding notes like "There are exceptions too" wouldn't do any good. If you know that there are exceptions, then make your generalization with some other factor, which will leave no exceptions!
Please bear in mind that I would be saying this to you, even if you were talking about any other country too, just like how so many others who are non-Indians, who stated their views about your idea. Hope that I'm clear.
[to add]On an additional note, I ain't down-voting you here.[/to add]
|
|
|
|
|
You are correct. While there are crappy posts out there, my statement was not right. The "exceptions" I made were made null because of what I said. My statement was made out of frustration and anger, and I was wrong to say it. I know there are a lot of great Indian programmers, such as yourself, who are no doubtedly better than me. I hope you, and the other Indians here at CP will find it in your heart to forgive me. What I said was 100% wrong.
Again, Brammah, I hope you forgive me. I respect you and the other Indians here at CP. I am sure I have offended you, but I hope you guys can forgive me. What I said was said out of frustration, and I didn't mean it.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
Hey, please don't apologize repeatedly. I don't have anything against you. It's not just you making such a mistake here. I've been making several such mistakes and I apparently learned how I should talk and behave in public. Especially, when you comment something bad about a specific group of people, it apparently becomes a racist comment, even though it weren't in your thoughts. I mean - nobody will want to give you just a damn. You've said it and that's it. Such things are very sensitive and you need to handle it with utmost care. If your post stirs up a slight misunderstanding, there would be a flame-war and the replies you'd get is definitely going to be hurting you for a good long time. Additionally, it would literally destroy any of your hard earned reputation easily. They will remember you as "the racist guy".
I was upset because at the first time, you made a very wrong statement. And to add to it, your suggestion was completely against the spirit of the community. As somebody already stated, we will have to live with this pond of crap and get the golden fishes out. There's just no way out. The main reason why you find a lot of crap posts is that this is an unmoderated community. But, look at the other side of it. You have the freedom to do just about anything. It may take you a while to understand it. After all, you learn from your mistakes, even though sometimes it is painful.
And you just don't need anyone's forgiveness after you've realized your mistakes (look at the post about Love in my profile page). Realizing your mistake is all is required. I promise you that I (and so many) were sure you had nothing against Indians or anybody for that matter. But then it should come out of your mouth for all good reasons.
Be a little more careful in the future, or better just ignore the crap-posts. Mark them as spam or abuse for the worst posts. If everyone does the same, the posts will just disappear. I'm glad you've taken the time to explain your part of the story. Now forget what happened, cheer up and move on.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
hi all,
can any one help me?
I need to run a C++ program from another
thank you
|
|
|
|
|
CreateProcess [^].
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
|
|
|
|
|
::system("Programname") or ShellExecute
can do that.
You might want to use CreateProcess for added control.
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|