absolute Newbie in C

Started by voxid, March 02, 2007, 09:47:37 AM

Previous topic - Next topic

voxid

Hi guys,
first of al i ve to say hello.. (first time in this forum).
then:
i tried to create a program to calculate some simple things..
i ve three editboxes and four pushbuttons. ok.. the when i push a button the program has to calculate. i tryed and it works. but now i stuck. i want to change a editbutton to be disabled by pressing another button. i cannot find the entrance to this way of programming. i searched for functions etc. everywhere. i only did find winapi and so on with c++ and nothing worked.
another problem:
how can i open a new window (it might be simple, but i dont check it.. poor beginners.. ;-))
can somebody help me please or tell me where i can read about it..
i did a lot off in vba.. and thought it should be simple to find the entrance.. it wasnt simple..
thanks a lot
greets of bavaria, germany

Stefan Pendl

The function you are searching for is EnableWindow, use the handle of the control and use TRUE or FALSE to enable or disable the control.
---
Stefan

Proud member of the UltraDefrag Development Team

voxid


voxid

I found a function SetReadOnly(hwndCtl,fReadOnly); for the editbox.. I don t know if it s the right one. and how to use it.
greets
voxid

Stefan Pendl

Quote from: "voxid"is the editbox a window?
Any control (button, edit, etc.) is a window, since all are created with CreateWindow  :)
---
Stefan

Proud member of the UltraDefrag Development Team

voxid

Hi back again.. ok.. seem me to get mauch mor information.. is there any way to get some information 'bout programming in windoes .. or for ppc's.. seems to be similar... but i cann ot find an reicipe, tutorial or something else for tis way of C...
please help me..
eventually I could work with code examples or program examples to check more about C for ppc' with pelles c.
greets voxid

voxid

Does nobody knows a good help for my problem?.. how did you start in programming for wm5?
greets
voxid

frankie

Just google with this key "windows programming tutorial".
You'll find more then you need.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

ivanhv

There is a great tutorial for beginning Windows programming:

www.winprog.org/tutorial

You can also check

win32assembly.online.fr/tutorials.html

It's for assembly, but code is very intuitive and the windows concepts are nicely explained.

voxid

thanks a lot i think this is the thin i couldn t find!!
i will spend my time with it and hope me to check it ;)
greets
voxid