Welcome! Log In Create A New Profile

Advanced

EZWIN (again)

Posted by Wiseguy 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
avatar EZWIN (again)
March 27, 2006 02:44PM
when running the progam with the code (see below) my window just flashes ( doesn't remain for 5 sec as stated in the EZWIN quickstart guide).Only the black console window remains after running the program.What could be the problem?

Anyone please help .. angry smiley


Here's the code


#include "ezwin.h"

int ApiMain()
{

SimpleWindow W;
W.Open();

return 0;
}
avatar Re: EZWIN (again)
March 27, 2006 03:45PM
If i check "console window remains open" under environment options then nothing happens.
Anonymous User
Re: EZWIN (again)
March 27, 2006 04:10PM
Add

Sleep(5000); //pause for 5 seconds

after

W.Open();

and remember

W.Close();
avatar Re: EZWIN (again)
March 27, 2006 04:16PM
Thanks gvs ! It worked !
avatar Re: EZWIN (again)
March 28, 2006 12:37PM
I get the following error message when trying to include a rectangle: "no matching function for call to RectangleShape::RectangleShape "

Here's my code, please help !

#include "ezwin.h"
#include "rect.h"

int ApiMain()
{

SimpleWindow W;
W.Open();
RectangleShape S(W, 4.0, 2.0, "Red", 4, 4);
S.Draw();
Sleep(5000); // pause for 5 seconds
W.Close();
return 0;
}


Thanks
confused smiley
Anonymous User
Re: EZWIN (again)
March 28, 2006 12:59PM
Take the " " out.

RectangleShape S(W, 4.0, 2.0, Red, 4, 4);
avatar Re: EZWIN (again)
March 28, 2006 01:06PM
Thanks mate ... i feel like such a fool !

Re: EZWIN (again)
May 02, 2006 10:20AM
When i use the Ezwindows for
sad smiley
#include "ezwin.h"

int ApiMain()
{

SimpleWindow W;
W.Open();

return 0;

I get this message:

ezwin.h: No such file or directory

[Warning] In function `int ApiMain()':

`SimpleWindow' undeclared (first use this function)

(Each undeclared identifier is reported only once for each function

I called the lecturer she advise me to uninstall and check using find and delete all Dev.cpp I did but still get the same thing. I cannot do Question 1 and 2 because of this. I checked all trouble shoots but it seem not to work.

Anyone with an idea of what to do?
Anonymous User
Re: EZWIN (again)
May 02, 2006 11:58AM
Did you install the ezwin library?
You can find it on Disk2006, under downloads if you haven't received the disk.
Re: EZWIN (again)
May 02, 2006 02:15PM
I only recieved one disc for COS111 and 112 could it be a problem?
Anonymous User
Re: EZWIN (again)
May 02, 2006 02:29PM
It's a disk for all COS modules.
It's also on osprey's website under @#$%&.
Disk2006
Re: EZWIN (again)
May 03, 2006 04:47PM
I'm trying everything possible I'm just failing. Lastnight I went to check Ezwindows try all trouble shoot. I feel like I'll haave to give up the module. Anyone who understand the problem?
Anonymous User
Re: EZWIN (again)
May 04, 2006 10:30PM
ok what you have to do is put your disk you recived with the course
1. Go to the install file and find and click on ezwin file
2. Once you have done that click on the compressed file ezwin that should download the files you need

3. Once these files are loaded onto your comp open up your development environment DEV C++

4.Select Tools on the menu bar
5.Then select Compiler options
6.Once you have done that click the directories button
7.Now click the Libraries button then in the input bar write C:\unisa\examples\ezwin\lib this must be identical to what i have written
8.Then click on C Includes button and write C:\unisa\examples\ezwin\include

NOW YOU ARE SET TO GO

remember when you write these programs your must start a new project of the Ez Win Application type

what you have just done is tell the compiler where to find these new files

if this dosent work you have installed the new files in the wrong location delete the files and reinstall put the new files into a unisa folder
Re: EZWIN (again)
May 05, 2006 07:22PM
Thanx Brendon, I'll try tonight. I'll let you know tommorrow what happened. But i tried to unzip the file and copy the path as you gave me, what i did not do was step 8
Re: EZWIN (again)
May 10, 2006 01:50PM
Brendon I tried it did not work. I tried in several PC's as well but stil the same
Re: EZWIN (again)
May 16, 2006 07:55PM
Yo yo,

What you need to do is to add the ezwinvc50.lib value to the object/library modules edit box in Project->Settings->Link Tab

If the project settings isnt enabled just try compile your source file, it will moan about not having created a workspace, just create it then.

also make sure as mentioned above to include
the path of the ezwin library in Tools->Options->Directories Tab

I had to add c:\program files\c++programdesign\ezwin\include

Hope this helps, otherwise gimme a shout.

Ciao

Timo
avatar Re: EZWIN (again)
May 19, 2006 11:33PM
If you are getting errors like "ezwin.h not found" the first thing you should check is that your compiler directories are set up correctly. If you installed MingGW and DevC++ only, then you are not finished yet, you still need to set up DevC++ so that it knows where to find the EzWin files.

You should set up the directories for the include files and for the library files. I don't use DevC++ myself so check the tut letters for help on how to do this.
Sorry, only registered users may post in this forum.

Click here to login