Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » DialSlider
DialSlider [message #35765] Sun, 18 March 2012 20:46 Go to next message
idkfa46 is currently offline  idkfa46
Messages: 155
Registered: December 2011
Experienced Member
Hello guys,
Today I have found an interesting slider application in the forum called DialSlider.
When I add it in MyApps folder and start the IDE, i cant see the main package so i rewrote it in a new package and compiling i receive the following error :

"DialSlider: 1 file(s) built in (0:02.71), 2715 msecs / file, duration = 2715 msecs, parallelization 0%
Linking...
LIBCMTD.lib(wincrt0.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
C:\upp\out\MSC9.Debug.Debug_full.Gui.Sse2\DialSlider.exe : fatal error LNK1120: 1 unresolved externals

There were errors. (0:03.49)"

Why ?!

Regards, Matteo
Re: DialSlider [message #35776 is a reply to message #35765] Tue, 20 March 2012 17:52 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
3 things missing:

1. you need something like this in your DialSlider.cpp (or create main.cpp):

class SliderWindow : public TopWindow {
public:
	DialSlider sl;
	typedef SliderWindow CLASSNAME;
	SliderWindow();
	~SliderWindow() {;}
};

SliderWindow::SliderWindow()
{
	Add(sl.SizePos());
}


GUI_APP_MAIN
{
//	SliderWindow().Run();  //crashes on img
	//or
	SliderWindow w;
	w.Run();
}


2. add CtrlLib to your package
3. add at least one compiler flag - GUI.

the last 2 things can be inspected (can be edited but not very recommended) in you *.upp file
or just put this inside your DialSlider.upp
uses
	CtrlLib;

file
	DialSlider.h,
	DialSlider.cpp,
	DialSlider.iml;

mainconfig
	"" = "GUI",
	"" = "GUI MT",
	"" = "GUI MT .NOGTK";



Re: DialSlider [message #35777 is a reply to message #35776] Tue, 20 March 2012 17:58 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
Or, if you found it in Bazaar (i haven't checked) and want to use in your programs, then create your package with similar changes and add DialSlider package.
Re: DialSlider [message #35784 is a reply to message #35777] Wed, 21 March 2012 11:57 Go to previous messageGo to next message
idkfa46 is currently offline  idkfa46
Messages: 155
Registered: December 2011
Experienced Member

oh thanks! working now Very Happy

I would like to add it in my program.
I learnt to add DialSlider package but now, how can i call it back in my layout ?!

I have to define a user class maybe ? how ?

Matteo

Re: DialSlider [message #35786 is a reply to message #35784] Wed, 21 March 2012 12:26 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
sorry, Matteo,
I can't understand what do you mean by:

idkfa46 wrote on Wed, 21 March 2012 10:57


how can i call it back in my layout ?!



guesses:
1. use c++ callbacks in your class?
2. create an upp layout *.lay and then call/use callbacks?
3. put something back into your files?

Re: DialSlider [message #35789 is a reply to message #35765] Wed, 21 March 2012 13:42 Go to previous messageGo to next message
idkfa46 is currently offline  idkfa46
Messages: 155
Registered: December 2011
Experienced Member
Well... I have a little app with an upp layout *lay and I thought to add the new slider inside it. My problem now is how can I display it in the corner of my *lay?!. I added the DialSlider package then in the *lay I have to define a new user class?

Matteo
Re: DialSlider [message #35790 is a reply to message #35789] Wed, 21 March 2012 13:56 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
idkfa46 wrote on Wed, 21 March 2012 12:42

Well... I have a little app with an upp layout *lay and I thought to add the new slider inside it. My problem now is how can I display it in the corner of my *lay?!. I added the DialSlider package then in the *lay I have to define a new user class?

Matteo



try to search our forums and eg with my username:fudadmin. I think I had posted long ago answering to forlano. Also, try formulate your questions properly when asking and/or creating topics. this is the first step to become a programmer. Otherwise, sorry for being sexist, it is the reason why very few women can program...
Re: DialSlider [message #35792 is a reply to message #35790] Wed, 21 March 2012 14:59 Go to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
for layouts check

this topic

[Updated on: Wed, 21 March 2012 14:59]

Report message to a moderator

Previous Topic: LogPos (and Logc) - what does it mean?
Next Topic: Parsing xml..
Goto Forum:
  


Current Time: Thu Mar 28 21:07:29 CET 2024

Total time taken to generate the page: 0.01684 seconds