![]() |
Aaaah. Now I understand. You need to communicate with an console application (You mentioned the function printf.)?
Well if that's what you want to do you should make yourself familiar with Pipes: ![]() |
Oh actually I don't want console hehe, I want an application window...like the one we're using here. "Microsoft look" :mrgreen:
Bcoz apart from those input and ouputs I want some buttons there. And yse I mentioned printf bcoz I wrote the console proram. I think I'll simply replace all those printf with TextOut But I don't know how to deal with the inputs... :shock: And pipes...what are they for? Actually I have those two stevens book on UNIX programming, I have read some little on pipes. But how can I use it here? :shock: I know what I want to do now but I'm not quite sure how should I do it...hope you can give me some guidlines Thans really!! :D [edit] pipes are for two parties to communicate one writes to a pipe amd the other reads from the pipe so...which are the two parties concerned here? :shock: |
Did you follow the link I gave you? And did you read what is written there? These Pipes are different from them you know from your bash.
All right. Next try. :mrgreen: You can get the text of an TEdit or a TMemo with the message WM_GETTEXT, you can put text into these controlls with the message WM_SETTEXT. You can click a botton on a windows by sending the message BM_CLICK to it. But in all cases you need the handles of these controlls. With FindWindow you can get the handle of any mainapplication window and with FindWindowEx you can retrieve the handles of childwindows like TEdits, TButtons and so on. Alternitivly you can use GetDlgItem if you know the ID of these childwindows. You can look up any of these messages and functions here: ![]() But that's all I can provide to help you. Sorry. |
Actually me still reading the MSDN library
sooooooo many things there...but I have to finish all these by tomorrow.. :? Well...think it's ok hehe :mrgreen: Oh but isn't GetDigItem only for dialog boxes? :shock: I won't be having any dialog boxes in the program I'll simply make it like a console window, but with one or two little buttons :mrgreen: |
By tomorrow? :shock: Good luck, guy. :?
You can use GetDlgItem with windows as well. Zitat:
|
Zitat:
damn...ahhhh :( well....I'll show you!! hehe with your help maybe....:mrgreen:... ok me back to read the named pipes :coder: by the way, I should use named pipes right? Not Anonymous Pipes right? :shock: [edit] Oh and actually it's 5pm here in Hong Kong hehe, it's midnight over you there, haha of coz can't make it...so I stand a higher chance then do I? :wink: tell me yes... :? [edit] Oh and yes, actually how should I use the pipes? I read a few pages and I think it is "about" the same as the one I know :shock: |
With my help? Maybe, but I will get some sleep now, even if it's here a quarter past eleven before noon. :wink:
Well I never worked with pipes. I just know that it is a way to communicate. And if you can make ist in time? Hard to tell. Say good-bye to your bed, say good-bye to your wife or girlfriend for the rest of the evening and night, don't eat and just work as hard as you can. But if you want to deliver a good work, a stable program with the minimum of bugs, you will need at least three days or even a hole week. Because there's a lot to learn and if you don't understand what you are actually doing, you will fail. |
But me and all the others will try to help as best as possible. Maybe we can help you if you provide some code or something we can work with to help you.
|
11am?!?!?!?! :shock: :shock: :shock:
HOLY SH!T :!: OH MY GOD.......I'm not gonna make it....is there any simpler methods? Or this is the simplest already? I am already quitting all the usual things...no girls here...as always :? Not eating anything...o...damn.....it sounds very bad... :shock: |
Ok. Here is another idea: You can send data from one application to another by using WM_COPYDATA.
And don't worry we'll make it. :wink: |
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:36 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz