Hi, I am really new to programming using keil. I wanted to create a windows form kind of application which takes some parameters from a user and then runs the C code present in the file based on the inputs.
I have the C code files with me, but i am not able to set up a user interface (the form).
Can anyone please help me.
Thanks and Regards, Siddharth Gupta
First, have you realised that Keil tools are not for writing PC applications?
Keil tools are for writing programs to run on embedded microcontrollers.
If you want a GUI creation tool, you will have to obtain that separately; there are several available - google for "embedded GUI"
Are you really sure you want to do this on an 80251...?
Hi Andy, Thanks a lot for your prompt reply. Let me tell you my project : I have a board which contains a 8051 based microcontroller which in turn issues commands to another frequency tuner chip.
My aim here is to build a software which sends commands to the 8051 controller.
I already have the C code which does so. It contains keil C code. So i think i can compile the code using C51 compiler uvision3.
But the problem is i want to create a form which can be used to change some parameters before i send commands to the device.
My friend told me that keil is used for writing programs which does this. Also i saw one sample in which they had implemented a C code and when i compiled that code i got a form on which i could perfrom some operations to send commands to the device.
can u please guide me as to how can i go about implementing this.
No, Keil tools cannot be used to create applications that run on a PC - known as "native" applications.
To create "native" PC applications, you need "native" PC tools - such as Microsoft Visual Studio, CodeGear (formerly Borland) C++/Delphi/etc.
I think the GCC "native" PC compiler is called MingW?
MinGW = Minimalistic GNU Windows. I tcontains a number of tools ported from the Unix environment, including a complete tool chain to develop Windows applications.
By the way - might the friend have shown you some code to create an add-on to the Keil debugger/simulator. There are a number of such extensions, for example allowing a simulation of an embedded program to display text on a simulated LCD on the PC. Anyway - what you need is a real GUI for talking with a real embedded hardware, so you need separate tools for creating the PC program. The Keil tools are for creating programs running in the 8051.
Thanks - I had wondered about the origin of that name!
"... CodeGear (formerly Borland) C++/Delphi/etc"
Should now read something like:
"... Embarcadero (formerly CodeGear (formerly Borland)) C++/Delphi/etc"
They are still using the "CodeGear" name - so it's actually more like "CodeGear from Embarcadero (formerly Borland)"
But you knew what I meant...!
;-)
"Borland Software" is now owned by Micro Focus: www.microfocus.com/.../PressRelease.asp
It's all rather confusing, really!
Borland died as developer of tools for developers the day the ties took over _all_ decision making. Their R&D department wasn't allowed to acknowledge bugs because such actions would damage the perceived value of the company. A developer who does not see any feedback at all when reporting - or questioning about - a problem with a tool will quickly look for an alternative supplier.
There tools were much better than MS I still use BCB 5 (think year 2000 ) as a functional tool. The biggest issue I've had with Codegear 'stuff' is that the help is next to dung. Namely because they used MS help data which was excruciatingly poor to begin with, and expunged all the help information regarding the VCL (I don't use .NET because it's a waste of time).
I think the 'yes' only people are hopefully unemployed from the business world. They created all the economic woe we all suffer from today. No negative feedback makes anything unstable.
It might be that the guy needs the 8051 to run the menu system through an RS232 (a serial port), and have Windows running Hyperterminal. If that is the case, then his friend might be right, and the OP can indeed use Keil.
--Cpt. Vince Foster 2nd Cannon Place Fort Marcy Park, VA
"It might be that the guy needs the 8051 to run the menu system through an RS232 (a serial port), and have Windows running Hyperterminal"
Well, what he actually said was,
"My aim here is to build a software which sends commands to the 8051 controller"
and
"i want to create a form which can be used to change some parameters before i send commands to the device"
(my emphases)
And he called it "Windows forms" - which is a type of windows application.
But you are right, the 8051 could be used to generate a crude form using escape-sequences to program a terminal - like we used to do on VT100-style terminals before the days of real GUIs...
Maybe he wants that "retro" look...?
More likely he wanted to interface a PC into the 8051 device and hadn't considered the physical interface (IE to him that's trivial), being focused on the ginger bread (the UI instead of how to get data to the device).
Having done the serial UI before one can do a fair bit with it, but alas that uses up lots of code space in the device. I tend to use some sort of protocol that facilitates proper information exchange.
This is however all speculation at the moment.
Stephen
can Tamir help plz>?
Nobody knows what the question is
Erik
PS did you just change your name?