| My Simple U++ Application [message #6013] |
Sat, 28 October 2006 09:21  |
yeohhs
Messages: 75 Registered: November 2005 Location: Malaysia
|
Member |
|
|
This is a U++ program (version 0.0.1 alpha) released for testing and comments.
Features implemented
1. Splash screen
2. About dialog
3. Menu and popup menu
4 Toolbar
5. Status bar
6. Options dialog
7. Help (using Topic++)
8. Editors dialog (only shows DocEdit and LineEdit)
9. use of .rc file to embed program icon and version info.
This program is meant as a simple template program which I will use to explore the various aspects of U++.
I'm still new to U++ so I would appreciate any ideas or suggestions on this simple template. I want to get it right so that later I will write an article that explains how this program works.
Thanks in advance
Yeoh
--
This version is obsolete so I have deleted it. The latest version is in a later posting below.
[Updated on: Tue, 31 October 2006 14:53] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: My Simple U++ Application [message #6056 is a reply to message #6013] |
Sun, 29 October 2006 11:42   |
yeohhs
Messages: 75 Registered: November 2005 Location: Malaysia
|
Member |
|
|
Here is the revised version. 
Changes
1. it now has load buttons to load text into DocEdit and LineEdit controls.
2. splash screen now uses TimeCallback object
3. bug fix: popup menu
Thanks and best regards,
Yeoh
--
File attachment deleted.
This version is obsolete so I have deleted it. Please see posting below for the latest version. Thanks. 
[Updated on: Fri, 10 November 2006 14:44] Report message to a moderator
|
|
|
|
| Re: My Simple U++ Application [message #6397 is a reply to message #6013] |
Fri, 10 November 2006 14:42   |
yeohhs
Messages: 75 Registered: November 2005 Location: Malaysia
|
Member |
|
|
Hi,
This is the latest version of my simple U++ program.
It now covers all of the "most frequently used" controls as shown in the layout editor. This version only shows how to create the control and set, get values from the control. No fancy or complicated C++ code. 
Also, there is a custom USC file for UPX compression and file deletion.
Thanks and best regards,
Yeoh
--
P.S. This program was built using U++ 611-dev1 version and tested on Win2000 with MSC8 Optimal Build.
Obsolete attachment removed. Please see corrected version below.
[Updated on: Sat, 11 November 2006 17:39] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
| Re: My Simple U++ Application [message #6407 is a reply to message #6402] |
Sat, 11 November 2006 10:56   |
yeohhs
Messages: 75 Registered: November 2005 Location: Malaysia
|
Member |
|
|
Hi Graeme,
Thanks for reporting. This is strange as I assumed the main window automatically centers itself on the screen with the correct Z order. You're right about this too. I noticed that sometimes when I run it from theIDE, it is "hidden". There must be a Z order problem somewhere.
I'll have to look into the U++ source to see what is really happening. 
Will post a revised version soon.
Best Regards,
Yeoh
[Updated on: Sat, 11 November 2006 10:59] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
| Re: My Simple U++ Application [message #6432 is a reply to message #6418] |
Sun, 12 November 2006 19:47   |
masu
Messages: 378 Registered: February 2006
|
Senior Member |
|
|
Hi Yeoh,
I had tested your application under FreeBSD (it was winXP before) and I got an error, but I don't know what the reason is.
/home/masu/projects/upp/MyUppApp/MyUppApp.iml:4: error: expected unqualified-id before numeric constant
So I commented the affected line and it seems that it is not needed at all.
Matthias
931b81e7ea53320dccc37375b34b38c3
|
|
|
|
| Re: My Simple U++ Application [message #6441 is a reply to message #6432] |
Mon, 13 November 2006 04:24   |
yeohhs
Messages: 75 Registered: November 2005 Location: Malaysia
|
Member |
|
|
| masu wrote on Mon, 13 November 2006 02:47 |
So I commented the affected line and it seems that it is not needed at all.
Matthias
|
Hi Matthias,
Thanks for testing it under FreeBSD. 
Yes, you're right. The "Complex" image in MyUppApp.iml is now not used. MSC8 did not detect this! I must look at the compiler options again.
Fixed! Corrected version now uploaded.
Best Regards,
Yeoh
--
P.S. File attachment deleted. Please see latest upload below.
[Updated on: Tue, 19 December 2006 15:27] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
| Re: My Simple U++ Application [message #7250 is a reply to message #6013] |
Tue, 19 December 2006 15:12   |
yeohhs
Messages: 75 Registered: November 2005 Location: Malaysia
|
Member |
|
|
Hi,
I've uploaded the latest version.
It now uses some Windows specific code for storing the config file.
Also, wrote the initial draft Table of Contents in the Topic++ file and will be planning and writing the tutorial in the Topic++ files. 
Best Regards,
Yeoh
--
Obsolete attachment deleted.
[Updated on: Fri, 22 December 2006 14:06] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
| Re: My Simple U++ Application [message #7428 is a reply to message #7415] |
Fri, 29 December 2006 06:11   |
yeohhs
Messages: 75 Registered: November 2005 Location: Malaysia
|
Member |
|
|
| AngelPortal wrote on Thu, 28 December 2006 17:44 | could tell me how to compile the program?
I new on U++ and would like to have some tips in how to use it.
Angel Portal
angelp@correios.net.br
|
Hi,
Use 7-Zip to unpack the 7z file into your MyApps folder. Then run TheIDE and you should see MyUppApp package in the MyApps assembly.
You can then open the MyUppApp package and compile the package.
Best Regards,
Yeoh
|
|
|
|
| Re: My Simple U++ Application [message #7429 is a reply to message #7416] |
Fri, 29 December 2006 06:27   |
yeohhs
Messages: 75 Registered: November 2005 Location: Malaysia
|
Member |
|
|
| AngelPortal wrote on Thu, 28 December 2006 17:49 | all the iml file are empty!!!
|
Hi,
This is strange!
This version was built using Ultimate++ 612-dev2, compiled with MSC8 Optimal build and tested on Windows 2000.
Best Regards,
Yeoh
|
|
|
|
|
|
| Re: got error "PathAppend undefined" [message #18110 is a reply to message #6013] |
Wed, 10 September 2008 19:22  |
 |
amando1957
Messages: 57 Registered: November 2007 Location: Wien/Vienna/Viden
|
Member |
|
|
Hi to all,
Tried to run it at WIN2K with 2008.1, but got the following (excerpt):
C:/upp/out/MyUppApp/MINGW.Debug.Debug_full.Gui.Main\$blitz.o: In function `_ZN8MyUppApp11che
ckConfigEv':
D:/upp/MyApps/MyUppApp/MyUppApp.cpp:313: undefined reference to `__imp__PathAppendA@8'
D:/upp/MyApps/MyUppApp/MyUppApp.cpp:315: undefined reference to `__imp__PathAppendA@8'
D:/upp/MyApps/MyUppApp/MyUppApp.cpp:339: undefined reference to `__imp__PathAppendA@8'
D:/upp/MyApps/MyUppApp/MyUppApp.cpp:340: undefined reference to `__imp__PathAppendA@8'
C:/upp/out/MyUppApp/MINGW.Debug.Debug_full.Gui.Main\$blitz.o: In function `_ZN7OptionsC1Ev':
The only files were "PathAppend" can be found in are "MyUppApp.cpp" and "Options.cpp". Interesting that following code:
#ifdef flagWIN32
TCHAR szPath[MAX_PATH];
SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, 0, szPath);
PathAppend(szPath,"MyUppApp");
PathAppend(szPath, cfgfile);
fullpathtocfgfile = szPath;
#else
fullpathtocfgfile = cfgfile;
#endif
can be found in both.
@Yeoh: that's intended? Seems to be redundant code.
Commenting one of them had the effect that the errors from before were gone, but got the missing "szPath", which is not a miracle.
Anyone has a hint for me please?
kind greets
Martin
|
|
|
|