15,893,790 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Ziya1995 (Top 200 by date)
Ziya1995
3-Aug-16 2:56am
View
I want to know why ElementName binding doesn't work.
Ziya1995
2-Jan-16 3:46am
View
Deleted
I am talking exactly about UI/UX without OS/Platform specific features.
There is huge amount information about it on the internet and I must make a choice.
But I can't explain, I am wrong or you can't understand - by anyway, it is not valuable to continue the talk.
Ziya1995
1-Jan-16 13:51pm
View
Do you consider HTML5 UI/UX high qualitative?
Ziya1995
1-Jan-16 5:30am
View
But all the people in the internet write so?
Ziya1995
1-Jan-16 3:43am
View
I tried to ask a specific question.
#1. It is about feel, look, UI, UX of app.
#2. It is not about hardware/OS specific features.
I analyzed and feel cross platform development is very bad for #1 (not enough), but it is good for simple apps. Is it true?
Ziya1995
26-Oct-15 14:48pm
View
I wanna create Image, render it by OnRender, add it into Brush.
I need it get rendered, when i invoke OnRender.
If it is impossible, let me know.
I can solve it in other ways, it is also about curiosity to know whether it is possible or no.
Ziya1995
26-Oct-15 13:49pm
View
> Where is an instance of MyImage added to an instance of Canvas as a child?
The comment:
//canvas.Children.Add(myimage); // Draws
It draws on Canvas, but not into Brush, if to add MyImage as child to Canvas.Children. You can do it by turning a comment off in the code.
It draws if to use RenderTargetBitmap, but i wanna draw it in this way for 2 reasons:
1. It is not static.
2. It is vector.
I can add it as child, but i wanna know if it is possible to do so, if yes, how?
Ziya1995
26-Oct-15 3:03am
View
> What is still unclear?
I don't understand you exactly, but the unclear is it doesn't draw when i fill Canvas.
Do you know how to solve the problem?
Ziya1995
25-Oct-15 15:00pm
View
> you are not rendering anything at all
I override OnRender and it renders. To admit it, add MyImage as child to Canvas.Children.
I updated the code, you can turn a comment off to run the code to see a red square on Canvas.
Using DrawingVisual results the same. The question is updated and you can see both options.
How to solve the problem?
Ziya1995
9-Oct-15 10:38am
View
I got your idea, but the code you gave results 2 errors:
1. The best overloaded method match for 'System.ComponentModel.DependencyPropertyDescriptor.FromProperty(System.ComponentModel.PropertyDescriptor)' has some invalid arguments
2. Argument 1: cannot convert from 'System.Windows.DependencyProperty' to 'System.ComponentModel.PropertyDescriptor'
Ziya1995
16-Sep-15 9:02am
View
Ok, i got it, thanks.
Ziya1995
16-Sep-15 8:46am
View
I didn't know, i just saw the "Marketing" tag and decided to post such a question.
I hope someone will help me.
Ziya1995
16-Sep-15 8:45am
View
Ok, i am glad.
Ziya1995
8-Sep-15 8:27am
View
Great, it worked.
I also will accept my own solution, because yours is not C#.
Ziya1995
8-Sep-15 8:26am
View
I tried it in C# and it works.
Ziya1995
8-Sep-15 8:01am
View
> https://msdn.microsoft.com/en-us/library/vstudio/ms742537(v=vs.90).aspx
It is for BlurBitmapEffect, not for BlurEffect.
Why can't you just fix my code or post the working code that you have?
You say it works, give me links not having the solution, don't post the code which is easy to write.
You say it works, where is your code which works?
If you don't have a solution, let me know.
What is wrong? How can i help to solve the problem?
Ziya1995
8-Sep-15 7:43am
View
You didn't post the code and i don't see how to make it work.
But i posted the code and you can see it doesn't animate (see my updated question).
If i am wrong, you can fix it giving the solution.
If you want, i also can post the code of animating Line.X2Property, where the same principle works which doesn't work with BlurEffect.RadiusProperty.
> All PixelSHader Effects deriving from the ShaderEffects class are dependencyproperties
I know and that is why i feel strange why my code doesn't work for BlurEffect.RadiusProperty, but for Line.X2Property.
You say it works, but my code doesn't work, if it works for you, you can post your working code and i mark it as solution.
You can say i am wrong, but it doesn't solve the problem, to solve it you can post the working code.
Notes:
1. It must be done using Storyboard.
2. When i call BeginAnimation on a BlurEffect instance, it works.
Ziya1995
8-Sep-15 7:27am
View
> as any dependency property that is of double format is valid for animation.
Not, it is not true and that is a problem.
BlurEffect.RadiusProperty is not valid for animation.
I can animate Line.X2Property, but not BlurEffect.RadiusProperty in the same way using Storyboard.
If you can animate BlurEffect.RadiusProperty using Storyboard, you can post the code.
The question remains:
How can i know about property paths?
Ziya1995
8-Sep-15 6:54am
View
> Perhaps not the easiest solution but .... :laugh:
No, it is not what i want.
Turns out it is impossible without extensions or 3rd party tools.
So how can i know what property path to use?
For example, how could i know in this case that i should write "Effect.Radius"?
How can i get a list of property paths?
Is there a place on msdn describing all of them?
Ziya1995
26-Aug-15 5:13am
View
> don't test every screen point as you do now.
But i need to do so.
> Yes, hittesting is expensive, especially if you do it every time for every pixel
I consider it as impossible to do in WPF.
Ziya1995
24-Aug-15 4:37am
View
You mean i should run UI in a parallel thread?
It is impossible in C# to run UI in a parallel thread.
If you are not agree, you can show your code where you run UI outside a main thread.
Ziya1995
24-Aug-15 3:11am
View
> if the Geom class can deal with it
Yes, it deals, however slower.
I don't understand you, you mean FillContains can't check whether a point inside or not at complex geometries? If so you can write a geometry and send me a code and i check out. We also can do next: i create a complex geometry as ellipse with a hole inside.
But i can't create a horse shoe geometry, i can't draw it.
> try to follow what it does, and you will see complexity.
What complexity? My app will get frozen when i call FillContains of a complex geometry?
Can you say exactly what you mean?
Ziya1995
24-Aug-15 2:52am
View
I added a code where i do like you said, i use a separate thread to animate one ellipse, but VisualTreeHelper.HitTest slows down the app.
Ziya1995
24-Aug-15 2:35am
View
> Thread.Sleep
It is much more inaccurate than Timers.Timer.
> do under Invoke only one thing: pure UI manipulation
Visual Hit Test is UI manipulation and it is slow.
Ziya1995
23-Aug-15 12:30pm
View
Ok, you are right, i am wrong.
You have a solution, but don't want to post it, in this case don't help me, if you don't want - it is still up to you.
But you can still answer my questions, if you can and want it at the same time.
> If you showed decent effort and gave me some hope, it would be a diffent story.
Feels like i have a chance, if you want, you can let me know what i can do to show decent effort and you will post the solution you have.
> If you don't want to get rid of timer, the whole "problem" hardly worth bothering.
I don't want, thread loop increases CPU and i feel it can't solve the problem.
> WPF in such operation is blazing fast
I checked FillContains and Visual Hit Test and they are not fast.
FillContains was checked in a different parallel thread, it was better, but not enough.
Ziya1995
23-Aug-15 1:52am
View
> Do you still have the problem?
Yes, i do.
Are you gonna post the right version of my code, where it will work fast as you say?
Ziya1995
23-Aug-15 1:50am
View
> Do it in a simple way, and it will work.
I can't.
> And the problem is really simple
If it is easy, can you you post the code?
Ziya1995
22-Aug-15 6:55am
View
> Did you notice it?
I noticed the solution and in my view it has nothing related to the problem.
No matter how i create Timer once or every time, the problem is caused by VisualTreeHelper.HitTest.
I said what causes the problem, but you say it is Timer.
If you don't see how i fixed Timer creating, you can fix it yourself and post the code, are you agree?
If you can't solve the problem, just let me know.
But if you have some potentiality, let's continue.
Ziya1995
22-Aug-15 6:53am
View
I updated the code where i create Timer once.
Is it ok?
Ziya1995
22-Aug-15 3:51am
View
> Then something is fundamentally wrong. Few ellipses is nothing at all, should be blazing fast.
You don't understand, you even don't know what causes the problem, but i repeat:
"WPF: Hit testing is slow." - the topic name shows what is a cause of slow performance.
The code has a certain line commented "// Slows down" you can see as a cause of slow performance.
Solution 2 is no solution at all having nothing related to the problem.
Do you have a solution or not?
Ziya1995
22-Aug-15 2:53am
View
My code shows the line which slows down the app and it is noted by the comment: "// Slows down". If you remove this line, you can see no problem, but with the line you get slow performance.
> on each timer event, you create a new timer
You said the problem is Timer, i fixed it, but no difference, it works same well until i add the line VisualTreeHelper.HitTest.
> thread solution will be the simplest
Thread is no option, it increases CPU usage.
Do you have solution or not?
Ziya1995
21-Aug-15 12:16pm
View
> Why is it slow: many thousands ellipses?
No, it gets slow after a few ellipses.
> Perhaps we would need to see how you made is slow...
I added the code.
Ziya1995
21-Aug-15 2:35am
View
I don't understand you.
It calculated it for the Geometry class, not for the RectangleGeometry class.
It can calculate it for any instance of the Geometry class no matter how complex the instance is.
Can i make you sure, if i post a code where it calculates points for your geometry you write a code for to me?
Ziya1995
21-Aug-15 2:26am
View
I don't understand you.
My code calculates points for the Geometry class, not for a rectangle. It means it can calculate points for any complex geometry in the same way. No matter how complex geometries are, it can calculate it, because they are still instances of the Geometry class.
I can change RectangleGeometry to EllipseGeometry in the same way.
I can group many geometries to form an instance of the Geometry class and then calculate it in the same way.
My code uses RectangleGeometry for simplification to make it easier to understand.
Now, can you explain what is wrong?
Ziya1995
20-Aug-15 14:45pm
View
You are wrong.
I posted the solution (3).
Ziya1995
19-Aug-15 13:06pm
View
By saying "2d geometry" i mean anything able to be presented as 2d geometry, no matter rect, elllipse or complex random shapes.
I need a built-in way to get points or determine if a certain point is inside.
Ziya1995
19-Aug-15 12:55pm
View
> What is your geometry, e.g:?
It is any 2d geometry, simply anything able to be a 2d geometry in WPF like rectangle, ellipse or random complex shapes. It can be a combination of 2 or more geometries. I can show a code sample of what is a 2d geometry in the context.
I need a built-in way to do it with any 2d geometry quick.
Is there a built-in way?
Ziya1995
19-Aug-15 12:55pm
View
No, you don't understand.
I need a built-in way as a ready method to do it.
It is WPF, a rich GUI framework and i need a ready to use way.
Is there a built-in way?
Ziya1995
6-Aug-15 13:18pm
View
I added the explanation.
Ziya1995
5-Aug-15 4:54am
View
Got it, it may mean WPF doesn't get affected by changing DPI, may be it takes the same DPI, not the change one. I have read somewhere that to change DPI just by clicking a button is not enough.
By anyway i am gonna try drawing by pixels using scale-transform to draw in device dependent pixels.
I have already managed to get a grid by adding additional double values, when i make it work automatic for all the DPI resolutions, i post the solution.
Ziya1995
5-Aug-15 4:19am
View
Have you seen the screenshot of XAML?
It shows 2 empty left lines.
But as i understand you say they are not empty.
In the C# code you can see a horizontal grid, but distances between lines differ, but you say they are perfectly spaced, it means distances between them is same by 1 pixel.
Here is the screenshot of C# where you can see different distances between lines:
https://drive.google.com/file/d/0B4MmPdhmZzQAR2RqTXd4SUdGOGc/view
If you get the same image, it is what i call a bug.
I doubt it is true, i feel like you get the same result, but call it right.
Ziya1995
5-Aug-15 3:04am
View
Have you checked the C# code i gave in my question?
Ziya1995
5-Aug-15 2:46am
View
No, i can't.
If you can do it in some magic way, you can take my code, fix it and post.
Ziya1995
4-Aug-15 14:58pm
View
> that try to snap it to the true pixels cause a problem...
SnapsToDevicePixels has nothing to do with DPI, it just aligns it.
Yes, i think the problem's cause is that.
How to solve the problem?
If the chance is only to try scale transform to draw by device pixels, let me know.
Why does it render a shape differently at different positions?
Ziya1995
4-Aug-15 10:24am
View
It is exactly what i am gonna do.
More precisely i am gonna use scale-transform to set DPI for my WPF app as it is the sole way to do so.
Have you got what is a problem?
Is there no other way than to try the option for setting DPI?
Ziya1995
4-Aug-15 10:08am
View
Screenshot:
https://drive.google.com/file/d/0B4MmPdhmZzQAOGpXMUZEdDNCMlE/view?usp=sharing
The problem is i can't make a grid by 1 pixel lines nice and crisp, some lines skip leaving empty places and it results in a messed grid.
I just wanna draw a grid, how can i do it?
WPF is one the best GUI frameworks and i can't draw just a grid, how can i?
Ziya1995
4-Aug-15 10:07am
View
It is because DPI is different on different devices.
Screenshot:
https://drive.google.com/file/d/0B4MmPdhmZzQAOGpXMUZEdDNCMlE/view?usp=sharing
Ziya1995
4-Aug-15 10:04am
View
My end goal is to draw a grid by many 1 pixel lines.
it is done so to show the problem for plain.
Ziya1995
30-Jul-15 10:17am
View
> Is this homework or assignment?
It is an ability i wanna get to create glow effect.
WPF lacks this ability and that is why the same geometry clips and draws differently, clipped geometry doesn't match drawn geometry despite the fact the geometry is same. As a result i can't get the glow effect. The test was done using shapes.
So it is not homework, it is a very serious problem because of which i can't create the glow effect.
I have read about setting DPI size, can it solve it?
But you said i can not do so in WPF. May be i have a chance by setting DPI size if it is possible?
Ziya1995
25-Jul-15 14:54pm
View
If EdgeMode.Aliased using shapes.
The same geometry:
Clipped != drawn.
Clipped geometry doesn't match drawn geometry.
Ziya1995
22-Jul-15 8:29am
View
I am trying, for example:
I draw 2 overlapping paths, but when i exclude, it makes the wrong path.
May be you can try and say?
Ziya1995
21-Jul-15 3:00am
View
> If you don't want to listen to my suggestions
Make you suggestions, i listen.
> you are not doing anyone a favor by explaining anything
As i understand you didn't understand something out the question, ask your questions and i answer.
> Did you ever responded to my suggestion on using an alpha channel? I don't think so.
The code given in this thread in the question uses the alpha channel and this tech is what i use to create the needed effect in Windows Forms and now trying to do the same in WPF.
I did not respond, sorry, but now you can be sure - using alpha channel is the major part, the problem comes at other stages.
Next?
I also note i am pretty close to get the effect.
Ziya1995
20-Jul-15 14:57pm
View
The problem here is you, but as i said i will continue to repeat it in different forms until you understand however you could get it just by reading my question here.
You just like repeat some rubbish without checking it whether it works or not hoping it will work.
> you need to describe exactly and formally
I gave a code piece you can run in WPF to see what it renders to understand what i want.
> Why BlurEffect does not work?
BlurEffect has completely a different goal from OuterGlowBitmapEffect.
But you don't believe me and you also don't know what does it do, but no problem - you can just check BlurEffect and see what happens and if you can achieve the effect described here in some magic way, you can save me from trouble i am in.
You can continue repeating some rubbish and giving lots of answers i don't need for just like now you answered BlurEffect without even checking it yourself just hoping for some "magic".
You can hate my demand, don't like how i demand and blah blah but the problem: you have not answered a pretty good described question on the forum and it is -1 to you.
If you wanna just solve the problem in just a few minutes, you can miss the thread.
I hope next time you will answer my question better)
Meanwhile i am trying to get the needed effect and when i find it and post it.
Ziya1995
15-Jul-15 13:19pm
View
> It's amazing how demanding you can be.
In fact i am pretty shocked WPF does not support such a simple function (it is GUI framework) out of box despite it used to support it some time ago.
DropShadowEffect and BlurEffect are not same things, i tried them and they don't result the same effect i can get even in Windows Forms.
Now i am learning those 3 ones.
When i find solution, i post it.
Ziya1995
15-Jul-15 11:58am
View
You can repeat, give all the information out msdn, list all the classes of .Net Framework if you want to, but it will not answer my question, sorry, i don't blame you, it is just a hard way to solve problems in this world.
But as you want i can repeat the same thing in different forms.
Go to:
http://www.codeproject.com/Questions/1009148/How-to-make-a-glow-effect-for-a-line-shape
Read:
"Note: DropShadowEffect and BlurEffect don't work."
Check the code and see what effect i want, because the code results exactly the effect i want, but it has a problem you can read about via the link i gave to you.
You can continue giving me what doesn't solve and that is good, because you also learn it along the way and may be once you will give right solution i hope.
And as you learn it here and if you are still interested, i can help you.
Here is an image:
https://drive.google.com/file/d/0B4MmPdhmZzQAelI2Q21qdmRoZ2s/view?usp=sharing
It is output of the code given on the other thread i linked to.
I have yet to analyze:
1. OpacityMask
2. CombinedGeometry
3. Clip
You can analyze them too to build the needed effect hence solving the problem.
I think i will find a way to solve it just like i solved all other problems.
Ziya1995
15-Jul-15 9:44am
View
If you have read the other thread you can see there was OuterGlowBitmapEffect in WPF to do it, but it is no longer supported in .Net 4.0.
If you have a question, ask, all what i want for now is to solve this problem, if you can or find a way, let me know.
I am gonna check out Opacity Mask.
Ziya1995
15-Jul-15 7:41am
View
My link has a code which does it.
I also can create it very easy in Windows Forms, because i can clear.
You need to read what i wrote in another thread i linked to to understand.
The principle is simple using StrokeThickness.
While i have not analyzed your first solution, i feel like it has nothing related to my problem.
If you wanna understand, you can check the code in the other thread to see what happens.
> There is no such technical thing as "glow".
Wrong, it is absolutely the certain thing, it is not about some "super" effects, it is about the exact thing i can do in Windows Forms.
If you will read the other thread, you can see WPF used to support it as one function.
Ziya1995
15-Jul-15 3:31am
View
Because of the next goal:
http://www.codeproject.com/Questions/1009148/How-to-make-a-glow-effect-for-a-line-shape
If you know how to solve the problem in a better way, i would be happy to know.
While i am reading your solution.
Ziya1995
12-Jul-15 8:40am
View
Can you link me to WinRT documentation?
The question is about managed WinRT, not non managed.
As i understand you are talking about non managed WinRT and it is way far not like WPF.
If so, it doesn't answer the question.
Ziya1995
12-Jul-15 7:58am
View
Ok, i just hoped whether someone has information out the WEB, i didn't find anything.
Ziya1995
7-Jun-15 12:03pm
View
> Don't you see that these 2 overrides is exactly what expose the visual of the declaring class?
I sent "this" as "Visual Parent" in constructor of "VisualCollection" and thought it is enough, but it was not, because it is done by 2 override voids.
I change it to another UI element and it still draws on Window.
What does "Visual Parent" mean?
Ziya1995
3-Jun-15 3:52am
View
> Can you spot the difference?
The only difference i spot is 2 protected override voids.
I checked the code via the link before i came here and it didn't work like yours until i tweaked it:
WPF app has Grid on Window by default and that is why i didn't see the drawing, i removed it and it worked.
Solved!
Ziya1995
26-May-15 9:06am
View
> if you work with 3d you "Need" something to create your models...
I specify my goal to make it clear:
I wanna create primitive models like 3d Ellipse or 3d Cube.
I wanna do it in code using C#, not XAML.
I wanna go for 3d in WPF to make an app with 3d models out scratch in WPF.
The code given through your link is written in XAML.
I need in C#.
You can convert it into C# and give me and if it works, i accept your solution.
Ziya1995
26-May-15 8:34am
View
You copied it from another forum.
I don't wanna convert models into XAML.
I need a code to create a model, for example, 3d Ellipse, 3d Cube in WPF.
Ziya1995
9-May-15 10:24am
View
> YES! It's a POOL THREAD the timer fires on.
If i tell - it fires on UI thread.
If i don't tell - it fires on a pool thread.
Result - i can tell.
> There is no way to tell it which thread to use.
I can tell to run on UI thread by invoking, but if i wanna invoke it on none UI thread, i need to use SynchronizationContext class.
Ziya1995
9-May-15 9:48am
View
You are wrong, SynchronizingObject set to Control makes sure it will run on UI thread.
It fires Elapsed event on UI thread, i wanna fire it on a thread i created.
So, i can tell Timers.Timer to run on UI thread.
Now, how to tell it to run on my thread?
You mean i can't fire Elapsed event on my thread like i fire on UI thread by Invoke?
Ziya1995
30-Apr-15 3:38am
View
I updated the question.
The result:
1. I can't stop mouse working outside my WPF Window.
2. I can't change Mouse Position in WPF.
Ok.
Ziya1995
29-Apr-15 15:22pm
View
> No, you can set mouse position.
It works without Pinvoke in Windows Forms and with Pinvoke in WPF.
It doesn't work without Pinvoke in WPF.
WPF has no API to change mouse position.
If you know, let me know)
By "disable" i mean to keep mouse to work in my WPF app and not outside.
I can create a window and move it by mouse position, top most and activated - it can disable mouse, but it is not a professional way.
Ziya1995
29-Apr-15 14:56pm
View
I know about Mouse Capture, it doesn't disable mouse down outside WPF Window.
I can't neither set mouse position nor disable it in WPF.
It is bad news.
Ok.
Ziya1995
23-Apr-15 7:06am
View
Deleted
I updated the question:
System.Windows.Forms.Cursor.Position doesn't work because it has no types in a WPF app, but it works in a Windows Forms app.
Intellisense gets System.Windows.Forms.Cursor.Position,
but it doesn't get any type of Position,
hence i can't get:
Position.X
Position.Y
Ziya1995
23-Apr-15 4:14am
View
Deleted
It gives 0,0 if mouse is not withing a control.
It is absolutely not solution.
The question is not answered.
Take a look, i updated the question:
2 needed points:
Mouse events when mouse is not within a control, but on a screen.
Mouse position when mouse is not within a control, but on a screen.
Ziya1995
18-Apr-15 6:46am
View
Solution is Margin.
Solved.
Ziya1995
18-Apr-15 6:21am
View
It worked, but not enough.
It sets location to Left, Top.
But my goal is to define exact location.
How to define exact location like axb?
I updated the question.
Ziya1995
18-Apr-15 6:15am
View
Deleted
Write this code in C#, not XAML, i don't know XAML.
Ziya1995
18-Apr-15 5:28am
View
> Normally I'd use Canvas.SetTop, and Canvas.SetLEft
It doesn't work, i updated the question.
> But where do you place the Canvas then?
I don't modificate WPF app, this is MainWindow.
> If its on a stackpanel it would always center it
Now can you answer? I see 3 options:
1. It is impossible to set location on MainWindow (this).
2. It is possible, you can do it in the next way...
if it is possible, please write a code itself to finish the thread.
At the moment the question is unanswered.
Ziya1995
15-Apr-15 4:44am
View
Deleted
I just said both)
Ziya1995
15-Apr-15 4:37am
View
> On Android, it's the main language. :-)
C++ QT (no Mac OS), Adobe AIR (no Linux) support almost all said platforms - Windows, Androids, iOS.
But other 2 guys said it is impossible
> The short answer is: no, you cannot do it.
> its no good in any one based on performance
C++ QT compiles into native + performance.
Adobe AIR can compile into native too.
What is a problem?
And some people say being cross platform doesn't work, it is buggy.
Ziya1995
15-Apr-15 4:05am
View
> On Android, it's the main language. :-)
Android Java is different and you can't run Oracle Java running on Windows on Android.
Ziya1995
15-Apr-15 3:56am
View
> Now: Java is supported everywhere. I have no idea how you manages to exclude some platforms.
Windows, Linux, Mac OS.
No Android, no iOS.
http://java.com/en/download/help/sysreq.xml
> With Xamarin, you miss the point. You need to write common code
I know it, i checked out Xamarin too, common code is not GUI, it is logic behind, i will still need to write platform specific codes separately
> And Microsoft promises multi-platform .NET at the end of this year.
Sounds great, i know C# Windows Forms.
I checked out .Net Core, it has no GUI.
Will i be able to write C# code once and run on all said platforms without correcting code for platforms separately like in Xamarin?
Ziya1995
15-Apr-15 3:12am
View
> You can consider Qt, GTK+, FreePascal, and more.
Great.
i am checking out your [EDIT].
> I would not consider anything by Adobe as anything serious, but this is up to you to decide.
Advice is got, thanks.
> Not anything useful?
I am not fighting, skip this, i have no idea how to explain that Java, .Net and Xamarin do not support listed platforms, what best means and so on.
You said:
1. Qt
2. GTK+
3. FreePascal
and your [EDIT].
It look promising, great, that is what i wanted, now you understand what i want, thanks.
> Let's agree on stopping this conversation.
After the whole conversation you said great useful technologies, thanks.
Ziya1995
15-Apr-15 3:06am
View
> After all, looking is not enough, it needs seeing.
It has no support for Windows.
Xamarin.Forms is not supported by Mac OS.
> 2. No, "best" does not mean anything certain. Something could be "best" for you, not for me.
Best means something good, not exactly number one, listen, you are really kidding me, skip this part, if you don't what know "best" means, you can skip this question, i am wasting my time talking about damn - what "best" means?!
I could say:
What cross platform APIs are there?
I am not gonna play philosophical games.
> Are you going to ignore it?
Of course no, i am gonna look at them.
Ziya1995
15-Apr-15 2:58am
View
> why asking the question you asked?
I asked the question to get information about cross platform libraries just like the ones i found on the internet.
But you didn't say anything about them(
But you said it is impossible, you meant they don't work, i am gonna check out them.
Ziya1995
15-Apr-15 2:54am
View
> Now, "Xamarin shares code across, it is not one code running across" is the saying which does not make any certain sense and certainly cannot be true.
Xamarin shares code, it has no one GUI library for all 3 platforms, you make logic and create separate UI.
What are you talking about?
> using vague or incorrect notions as "best". It's to your benefit to understand this incorrectness,
I just said "best" to get some advice, not really number one in market, i could say:
What cross platforms libraries are there?
I hope now you got what "best" means here.
Ziya1995
14-Apr-15 14:34pm
View
There are so many cross platforms APIs, but you say it is impossible or bad, i don't understand, i am very confused.
Ziya1995
14-Apr-15 14:25pm
View
> its no good in any one based on performance.
Same C++ QT code is compiled into native code for all listed platforms - what performance issue might be when it is native?
Ziya1995
14-Apr-15 13:11pm
View
I wanna create a high performance app once and run on:
- Windows desktop
- Linux
- Mac OS
- iOS
- Android
You advice Java and .Net:
Java support:
Widnows
Linux
Mac OS
.Net Support:
Windows
> It's not my fault that you "know all that"; you never indicated what you know and what not.
I am a friend, not enemy, we should not show what we know and what we don't know, because we know so many things) and to make question easy to get, i make it specific by asking what cross platform way, framework is the best or at least in the top.
It is simple, i am new, i don't know what cross platform ways are there and i ask to get your help.
> And what you say about Xamarin is gibberish.
So explain me, it shares code across Android, iOS, Mac OS and it has no GUI for 3 of them at the same time, it is meant to be common logic and separate GUI.
> Adobe... Everything created by Adobe is proprietary and, in certain sense, low-quality.
That is what i need from you, more information about Adobe AIR, ok it is low quailty.
But Unity3D is cross platform and it is not low quality, just look at games it made.
I know C# Windows Forms and want to choose WPF, but i would like something cross platform.
Ziya1995
14-Apr-15 12:33pm
View
I get it as you mean it is not guaranteed it will work, so there were cases when it did not.
Ok.
Ziya1995
14-Apr-15 12:12pm
View
None of said by you support all said platforms at the same time.
So, your answer is wrong.
> So, I'll just mentioned two most widely used options which are
I know all of that, i asked a specific question, but you can also describe lots of other ways that do not support platforms listed in the question.
Adobe AIR is write once and run on all said platforms in exception of Linux and that is great and i wanna know is it true? I heard it doesn't work normally, makes bugs and so on, can you explain? I would happy happy)
Ziya1995
14-Apr-15 11:58am
View
Many people tried it until me and i just can't check it on all platforms in a few days.
If you know, say me what do you think, does it work normally or makes many bugs? I have just read it doesn't work normally, is it true?
Say me what you think, i would get any information about it now.
Ziya1995
14-Apr-15 11:50am
View
> if it does not work as well as these organisations claim.
You mean it doesn't work?
Right now i am stuck between .Net WPF and Adobe AIR.
Ziya1995
14-Apr-15 11:23am
View
Wait, there are so many technologies, for example Adobe AIR.
It says it is cross platform, i understand it as you can write once and run anywhere with Adobe Runtime.
There are also C++ QT and Unity3D.
All of that means you can write once and run on all said platforms without normalizing code for a specific platform.
And Unity3D has high performance.
You say no, but C++ QT, Unity3D, Adobe Air are saying conversely or i don't understand something?
What is wrong?
Ziya1995
14-Apr-15 10:36am
View
> but that's!
it would be cool if you answer my question:
Can i write high performance app once (not WEB) and compile it into native code for different platforms?
Xamarin shares code, it doesn't run the same code on different platforms.
Can you answer?
For example, i read about Adobe Air and it says it is cross platforms, but i can't understand what it means - sharing code?
Ziya1995
14-Apr-15 10:07am
View
Can you say is it possible to write once a simple GUI app and run across said platforms?
Or do i always need to change code to fit platforms separately?
Ziya1995
14-Apr-15 9:45am
View
> should be "Windows Mobile", right?
No, it is Windows like Windows 7 or 8.1.
> what is here a difference to Android / iOS?
I want my app support Windows desktop, Android, iOS because i will get more money, it is also would be pretty cool if they do support Windows Store, Play Store, App Store.
Right now i am a bit confused because of the 2 major things:
Web based cross platform technologies are slow, i don't want HTML/CSS/Javascript - just exclude it.
Others confuse me, because i don't know they share code or it is completely write once run anywhere.
For example, i downloaded Xamarin and it turned out i can't share GUI, i need to write GUI separately for all 3 platforms - i don't want it.
I don't now, but if you know whether it is possible or the max level way is to share code and normalize it separately for different platforms - let me know)
Ziya1995
14-Apr-15 5:51am
View
Wait, help me understand, is it possible or not?
If not possible as you say "dream on", let me know and will not ask other questions and i will stop searching it.
Cross platform development with high performance.
Without sharing any code, just write once and run.
Can you say it is possible or not?
I wanna make any type of app like Paint or Tic Tac Toe game.
Ziya1995
13-Apr-15 5:39am
View
And i compare .Net Core to JVM as you say.
In JVM using Java i can create an app with GUI without any need to port, from the start to the end only in Java and run on 3 platforms!
But you say .Net Core is just a set of libraries common to all .Net frameworks of the same power as Portable Class Libraries that have no GUI!
They just gathered all libraries common to all .Net frameworks (PCLs) into the one called .Net Core.
But if .Net Core is just another JVM as you say, it should be a new framework, not a set of libraries common to all .Net frameworks!
Your answer says:
.Net Core is a set of libraries common to all .Net frameworks.
I don't know you are right or not, but the answer is accepted.
Ok!
Ziya1995
13-Apr-15 5:06am
View
> .NET Core runs .NET framework, what more bigger you want it to run for you?
In Java we can create games and run across platforms without any need to port.
.Net Core is not Java and my dream to create games and run across the 3 platforms is not real with .Net Core.
.Net Core is a set of libraries common to all .Net frameworks.
Ok!
Ziya1995
13-Apr-15 3:18am
View
What? I don't get what you say(
You can read the question again.
I feel like i can create Windows Runtime apps using C#, but without .Net for Windows store apps?
Ziya1995
12-Apr-15 13:34pm
View
I am a bit confused, i open .Net Store supported APIs, but Windows namespace has only a few types and i don't see how to create graphics:
https://msdn.microsoft.com/en-us/library/windows/apps/hh454041.aspx
Look, you Windows.UI namespace contains only Color! Just Color? And i am gonna create a rich user interface using just only Color type?
Do you get it now?!
> Both are .NET based - so what the question
Both are different:
WPS is .Net.
.Net Store is a subset of .Net.
> It is not for Windows Store apllications only...
False, it is only for .Net for Windows Store apps:
https://msdn.microsoft.com/en-us/library/dn600165(v=vs.110).aspx
Ziya1995
12-Apr-15 13:19pm
View
> Java is not .NET and .NET is not Java...
Ok, conclusion .Net Core has no GUI?
> Java cross platform UI is somehow primitive and does not fit into the native look and feel of that platform...
It doesn't matter, people create cross platform games using Java - fact.
> but first you have to decide what do you want to do...
I wanna create a simple GUI game in .Net Core, is it possible?
Can you say 100% sure is it possible to create a nice game in .Net Core to run across platforms?
> what do you want to do...
I want to develop all my apps only using .Net Core without a need to share the code to get GUI - is it possible?
If you don't know let me know, may be .Net Core is new and there is no enough information.
Ziya1995
12-Apr-15 12:16pm
View
I ask the same question in different forms:
1. Can i develop cross platforms GUI in .Net Core?
Java has Swing and Java can create cross platform games.
> Will .Net Core have GUI?
PCLs have no GUI - fact, it is only for none GUI code, only logic behind.
My question (Quote):
"Can i write a simple game, create simple 3d models, create one GUI across platforms using .Net Core?"
I ask a real question, yes, may be i describe in a way you don't understand, but let me know and i explain)
> If you cannot ask a question properly then I suggest you don't ask!!!
Sorry if i asked in a wrong way, but i always get answers and this will not be an exception.
Ziya1995
12-Apr-15 12:07pm
View
> you can develop the business layer of your application to be independent of any platform as data, file and other IO related APIs were unified...
I can't develop UI? It means i can't make a simple game using .Net Core?
I always need to share the code, because i can't make a simple GUI app only in .Net Core?
Java has cross platforms GUI, but .Net Core not?
It is where i am confused(
Ziya1995
12-Apr-15 9:45am
View
As i understand you clearly know what is .Net Core.
So, please say me what is it?
1. Common libraries used by all the .Net frameworks?
2. A new framework made to be cross platform like Java?
Is it hard for you to say in a few words what you clearly understand?
Ziya1995
12-Apr-15 9:23am
View
I came from there and posted the question.
Can you help me understand?
Common libraries or a new cross platform C#?
Ziya1995
12-Apr-15 8:12am
View
I had read it before to post the question, it just explains how it works.
But i need what it might do.
For example, i wanna make a simple GUI game.
I need to make only logic on .Net Core and share code to make GUI?
Or i can write the whole game in .Net Core and run on all the 3 platforms?
Ziya1995
12-Apr-15 8:06am
View
You can read the questions:
"I looked at Portable Class Libraries and it turned out it has no GUI, but only logic."
But i need one framework to rule different platforms.
I am interested in the power of .Net Core, it is new and i wanna know what it might do.
For example, are there libraries for 3d like in WPF?
May be i can't create even a simple GUI?
and so on.
Ziya1995
10-Apr-15 7:07am
View
No, Google does not offer reference for HTML or CSS.
Ziya1995
10-Apr-15 6:37am
View
It is a pretty simple question.
I can fix the question like next:
Is one JS, HTML or CSS code always run across all browsers?
Do all browsers implement JS, HTML or CSS in the same way?
Can you answer?
You can just point clauses like:
1. Dependent
2. Independent
3. ...
Ziya1995
10-Apr-15 6:21am
View
Google has its own documentation for HTML and CSS or i should rely on w3schools?
Ziya1995
10-Apr-15 6:11am
View
"I want" is not my quote.
I need official reference of HTML and CSS for Chrome, but seems like there is not such one, yes?
Ziya1995
10-Apr-15 6:06am
View
Deleted
So Google has not documentation for HTML and CSS and people rely on websites like this one?
But it is not official, right?
And it is all right, yes?
Ziya1995
7-Apr-15 6:07am
View
> you can add reference to whatever you have in GAC.
I don't know what is GAC, but BCL is not included into any API completely.
There are 3 APIs and the list shows everything included into a certain API in exception BCL.
The answer from another forum:
"You can't use Windows Forms in an Android app. That doc is misleading - it is showing you everything in the BCL, not the classes specifically supported in Xamarin Android."
That was a problem.
Ziya1995
6-Apr-15 16:17pm
View
Solved: Solution 2.
Ziya1995
6-Apr-15 15:40pm
View
No, you didn't answer.
I opened the next page:
http://androidapi.xamarin.com/
I see "System.Windows.Forms" on the page in "Base Class Library", it means it is supported by Android.
I wanna add a reference to it to use in my Android app.
But i can't do it, how to do?
I feel like "System.Windows.Forms" is Windows specific, but that fact - it is in the list for Android. What is wrong?
Ziya1995
6-Apr-15 15:18pm
View
Deleted
But i don't know any name to reference it, i see System.Drawing on the website of Xamarin.
In Visual Studio .Net Framework i simply add System.Drawing dll and use, for example, Bitmap class.
But i don't know what to add here.
What to add?
Ziya1995
6-Apr-15 12:29pm
View
Is it native or my app created in Xamarin needs some Virtual Machine?
Ziya1995
6-Apr-15 12:09pm
View
1. Portable Class Library has no GUI.
2. Everything written in Xamarin should be Cross Platform and run on Windows desktop, IOS, Android and Mac.
But i see Xamarin.IOS and Xamarin.Android - they are separate.
I see Xamarin APIs and they are separate for IOS, Android, Mac.
What does it mean?
Can i write once in Xamarin GUI and run on all 4 platforms including Windows desktop?
Ziya1995
24-Mar-15 12:56pm
View
Ok, i got everything, thank you.
Ziya1995
24-Mar-15 11:21am
View
I accepted, but i knew all of that, the real answer is:
C++ Standard Library is much more less powerful than Java Standard Library and it is fact, just look at lists of both of them.
You can not create a good app in C++ Standard, but you can do it in Java Standard. Why? Because C++ Standard is just not for apps and applets.
Yes, it is possible to create the same Java Standard to compile anywhere without JVM instead of running, but it is not made today.
I got everything.
""Much more less power" is about some relative measures, not the "real answer"."
C++ purpose and Java purpose are completely different, so, to measure them is not right, ok.
Ziya1995
24-Mar-15 9:25am
View
Yes, i knew all of that and resulted the next conclusion:
I can write a code and compile it (the same code) for other operations systems.
In this case, as you say, i can create a game on pure console I/O based on standard C++ library and compile it anywhere depending on compilers.
I think i can create a pretty good stuff like "Jewels" game with some good graphics on pure C++ Standard Library and compile it anywhere depending on compilers.
Just like in Java!
If Java and C++ could support the same amount of operation systems, it could be the same quality of cross platform apps in Java and C++, first to run, second to compile and then run.
But! The next points confuse me!:
1. When i read about C++ Standard i see opinions like even simple GUI is not possible without frameworks like QT. C++ Standard has no GUI.
2. C++ standard library is so small i saw on a website, Java Standard library is so big.
3. You say console based games, but Java cross platform apps are not console based, they are based on nice GUI.
Do you understand now?
Why it is possible to create nice GUI on Java Standard, but not possible on C++ standard?
I have read and it writes C++ Standard Library has no GUI.
I think the right answer is the next:
It is possible to create the same language like Java where we write once and compile anywhere where JVM can work today and it will has all the abilities of Java Standard Library, briefly, it will be the same Java replacing running with compiling-to-run.
C++ Standard is just not specialized to have all the power of Java, for example, it has no GUI, Standard Library is so small in compare to Java, why?
Because C++ also would run on none screen device where GUI is not possible to run.
It is simple, C++ is specialized for apps and applets, but it could and we could have the same power of Java to compile anywhere.
Ziya1995
24-Mar-15 4:20am
View
You need to understand that i know all of that literally!
I know ALL OF THAT!
I ask a specific question and you think i am not aware of all that, but i have read all that including those Wiki links until i came here and read everyday.
Now, let's stop at the point i need:
"Nothing is cross-platform, except common standard library things, such as console and file I/O. It's not "cross-platform", it's portable."
YES! It is portable and i can compile the same code for different OS.
Java can create a cross platform good stuff like games.
And now: can i create such the complex good stuff using C++ using "common standard library things, such as console and file I/O" to compile the same stuff for other platforms without nothing like QT?
I wanna create a cool game in C++ using C++ Standard Library to compile the same code for different OS, is it possible without nothing like QT?
Java runs the code on different platforms.
C++ compiles the same code (i mean its own C++ code, but as powerful as Java's) for other platforms or its portable capabilities are much less than Java's?
I asked the same question in different poses.
Ziya1995
23-Mar-15 15:54pm
View
I know about platform, Java has JVM, C++ is native machine code, i know that.
Explain, can i create the same cross platform app in C++ like in Java and compile it anywhere?
Can i create a powerful cross platform app in C++ just like people do in Java, and compile it anywhere?
I know about platforms and compilers, of course i mean existing platform and compilers.
I feel like Java cross platform apps are more powerful than C++ compiling anywhere.
I get it as i can create the same powerful cross platforms apps like in Java and compile them anywhere in C++.
What is wrong?
You said only a little piece of code is portable in C++, it means it is not as powerful as Java? Right?
I know Java is powerful.
Can you help me?
Right now i get it as C++ is much more less portable than Java and that is why Java is better from this aspect, is it right?
Ziya1995
23-Mar-15 15:46pm
View
> No you cannot, in general case.
That is what confuses me!
In my understanding i get it as:
You can write a cross platform app in Java and run it anywhere with JVM installed.
And you can write the same app in C++ and compile it anywhere, what is wrong?
Ziya1995
23-Mar-15 15:41pm
View
I don't wanna argue, i need you explain me:
We can write once in C++ and compile anywhere, right?
So, why Java is better, just because you can run anywhere?
Please help me.
Ziya1995
23-Mar-15 15:28pm
View
Explain me, i feel good at compiling an app separately.
Can i make the same stuff on both of them?
I wanna make cross platform games on C++ once and compile anywhere.
I wanna have an easy language, not hard.
Help me, i am really confused, why cross platform Java is the most popular, when you can write once and run anywhere while being native, i can't understand.
What is easier?
One user said if i wanna make apps i need to use managed languages like Java or C#.
But in actually i can write a cross platform app in C++ and compile anywhere just by click and that is what confuses me!
Cross platform Java vs cross platform C++:
Are they of the same power?
Ziya1995
23-Mar-15 15:24pm
View
Now i wanna make a choice, compiling anywhere is no problem for me.
Should i choose Java or C++?
It makes sense, i hope you will help.
I mean only cross platform C++.
We write once code in Java and run it on any platform.
We write once code in C++ and compile it on any platform.
Is it all the difference?
Ziya1995
22-Mar-15 17:19pm
View
Ok, thanks, i will ask on home website where people sell.
Ziya1995
22-Mar-15 16:19pm
View
My program is going to be 5 dollars.
There are lots of apps about 15 dollars with 100 sells.
Some of them are free to run, demo or nothing at all.
My question:
If i upload only the video preview and no app, will they buy it?
Ziya1995
22-Mar-15 15:59pm
View
For example:
http://codecanyon.net/
I see there apps sometimes possible and not possible to download an app for free, but in the both cases they buy.
I hope here is someone who used to do such a business to help me.
Ziya1995
22-Mar-15 15:37pm
View
I wanna know if i show only the video, is it a problem?
And what do developers do in this case?
Ziya1995
12-Mar-15 13:21pm
View
Take a look, now the code is simple and i also uploaded a video file:
https://www.youtube.com/watch?v=1dZJZjpq99Y
Forget the code from another thread, follow only this thread.
Ziya1995
12-Mar-15 13:18pm
View
Look, i uploaded a video file:
https://www.youtube.com/watch?v=1dZJZjpq99Y
Follow only this thread, forget others.
Ziya1995
12-Mar-15 13:04pm
View
I made the code simpler and i am recording video, we are gonna get everything plain.
Forget the code in another thread.
Ziya1995
12-Mar-15 12:35pm
View
That was different question, that is why i asked in another thread, i hope it makes no serious problems.
So, can you solve this problem?
I can record a video to show what is going wrong.
It is a bit complicated.
Ziya1995
12-Mar-15 12:20pm
View
Yes, it is what i have a problem with.
I can make a video to show what is going wrong.
Ziya1995
12-Mar-15 12:19pm
View
Can you fix the problem?
I would be happy.
Ziya1995
12-Mar-15 10:16am
View
It is not reposting, another question is solved, but now i need to pass, you mistake, it is not the same question.
First question was how to call it.
This second question how to pass it, i don't know.
Just fix it and will be ok.
It is easy.
Ziya1995
7-Mar-15 12:24pm
View
I accepted another answer, but as you wanted, yes, i accepted yours too.
In actually it is better to have one answer accepted to not confuse novices.
I got everything i wanted to get out the answer.
Thanks.
Ziya1995
7-Mar-15 11:46am
View
Great, ok.
Ziya1995
7-Mar-15 11:45am
View
Yes, ok.
Ziya1995
7-Mar-15 11:21am
View
So, there is no direct way in the case of native machine code like C++ executable, just to press a button and decompile is impossible.
But in the case with managed code, it is easy, you can use software like .Net Reflector to get readable source code just by pressing a button.
Right?
It is my last question.
Ziya1995
7-Mar-15 9:33am
View
Deleted
I miss something, i made the question easier.
Let's be simple, i made an app on C# .Net, and now i have .exe file i can use to run my whole app.
So, can anyone convert it into a readable source code, then customize it?
I am talking about .Net .exe app, no C++, managed .Net app, possible?
Ziya1995
7-Mar-15 9:30am
View
You are talking about .Net assemblies?
I am talking about .Net .exe app.
Ok, let's be simple, i made an app on C# .Net, and now i have .exe file i can use to run my whole app.
So, can anyone convert it into a readable source code, then customize it?
I am talking about .Net .exe app, no C++, managed .Net app, possible?
Ziya1995
2-Mar-15 12:25pm
View
+5
I removed my exception line to make the program work normally again.
Then i created, but not initialized:
public static Form1 form2;
and assigned:
public static int i4_size = i3_size + Form1.form2.items.itemslength;
That gave the same exception in another part of the code, but InnerException showed the same line of Data.
And as i understand when i call Data.speed, a simple initialized double variable, it initializes all the variables in the static Data class, when form1 is not initialized i don't know exactly this part, but i am gonna examine all that, thank you!
As i understand it is safer to use class instances instead of static classes to be sure they are instantiated normally.
Ziya1995
2-Mar-15 12:07pm
View
Yes, that is what i can not understand, i can record a video, upload to youtube where you can watch how that exception happens.
Ziya1995
2-Mar-15 12:05pm
View
Let's be gentle, i really need help, i learned how to use Thread Timer as you teached me the last time and it turned out the best option, better than all the 3 timers of .Net Framework, and now i can use Thread Timer, so you can be sure, it is not wasting time on me, and if it was easy, i would not post this question, although i post easy questions sometimes. I hope it is ok)
Let's get to task.
I know what is null, i mean i don't know how a class can be null, an instance of the class can be null, not a class.
So, can you teach me how a class (Data) can be null?
And how to fix this problem?
Ziya1995
2-Mar-15 11:52am
View
I can't understand, i need to change a value of Data.speed, it is double and already initialized.
My program works fine if don't do it.
Error happens at the line labeled "exception":
Data.speed = 5; // exception
If i take that line away, the program works fine.
I don't get something?
What can i do?
Ziya1995
2-Mar-15 11:41am
View
I checked and added, take a look.
What to do now?
Ziya1995
2-Mar-15 11:28am
View
I never do something to Data, i just named a static class "Data" and that is all.
I always used Data static variables and now can use, but in this case with this variable it gives exception.
So, what does "Data is null" mean and how can i fix it?
Ziya1995
2-Mar-15 11:12am
View
Deleted
The static class also calls constructors of other classes created by me, but double variable not, it is just double.
Ziya1995
2-Mar-15 10:52am
View
I added:
Data.speed = 5; // exception
Let me know, if i can help.
Ziya1995
23-Feb-15 7:02am
View
As i understand it uses Pinvoke to make calls to unmanaged code.
I need to do everything in managed way.
WPF kinda supports touch events.
Can i apply this WPF function in Windows Forms?
If there is no managed way to do mouse down touch and recognize whether user clicks or touchs, let me know.
Ziya1995
13-Feb-15 4:50am
View
Deleted
Invalidate worked, but i changed it to what you offered.
Now, is everything good?
No problem?
Can i accept it as answer?
Ziya1995
12-Feb-15 12:17pm
View
Look, i updated solution and that works greatly!
Is it what you meant?
is it the best way?
Mistake me or approve it as the fully usable principle for my next projects.
Ziya1995
22-Jan-15 2:27am
View
1. I have a vector based animation and a bitmap based animation.
Bitmap based draws smoother, because i don't need to recalculate lots of numbers and that increases performance.
2. Using Threads. Your quote:
"organize infinite loop, use System.Threading.Thread.Sleep for certain period of time inside the loop. Then calculate current time using System.DateTime.Now; depending on current time, update BallPosition and call Form.Invalidate."
And now my question - how can you get precise DateTime using Thread Sleep which is not precise?
Here is a quote:
"Timers are not guaranteed to execute exactly when the time interval occurs, but they are guaranteed to not execute before the time interval occurs."
It is impossible to capture a right moment using Thread.Sleep, but you can capture when it is lower or upper than the right moment.
For example, we wanna capture 1000 milliseconds,
Thread Sleep counts 1000 milliseconds, but it mistakes by 50 milliseconds and we get 1050 milliseconds.
Inaccuracy: 50 milliseconds.
And now we can use your way to reduce inaccuracy down to nearly 1000 milliseconds to get 1000 -+ 5 milliseconds if to consider Thread.Sleep inaccuracy as 5 milliseconds by 1 interval.
> You talked here enough not to help you.
I am friend, not enemy)
Ziya1995
21-Jan-15 7:19am
View
The other user gave right answer:
http://developer.android.com/reference/packages.html
I am checking out whether it is for Android Store or Android Operation System.
The link you wrote is Xamarin, i know that.
Of course we need API reference of a certain operation system we wanna create apps for.
Ziya1995
21-Jan-15 7:07am
View
Great, thanks, now i am checking out is it for Android Store or Android Operation System.
I am checking out it because in the case with Windows it is not same as i wrote in my question.
Ziya1995
21-Jan-15 6:58am
View
"The Google Play Developer API allows you to perform a number of publishing and app-management tasks. "
It is not for creating apps, i mean API reference for creating apps for Android Store.
Version 2 is something different.
Do you understand?
We use a programming language and API to create apps, in this case we have Android SDK, but i am talking about creating app for Android Store, it is not same in the case with Windows.
As i said in the case of Windows, for example we can not use WPF to create apps for Windows Store.
Ziya1995
21-Jan-15 6:56am
View
I already saw it, one question: is it used to create apps?
Is it API used to create apps for Play Store?
I mean API reference to create apps to publish on Android Store.
But it shows:
"The Google Play Developer API is a REST-based web service that allows you to perform publishing and app-management tasks. You can use this API to integrate your publishing operations with your release-management process."
Do you understand? API reference to create apps like Java Reference or .Net Framework , but in this case for Play Store.
Ziya1995
20-Jan-15 8:37am
View
3. Maybe we should not even waste time discussing your questions. It might take forever...
I know what is Vector Graphics and i have vector based animation and bitmap images based animation.
I know there is a wrapper class for AVI file to create a video file in C#, but i should use only native .Net Framework.
I know all of that.
So, it is worth to help me, but i think you don't know more than what i said, because all what is need i already know, i came here because thought - may be there is a better way.
I posted a bitmap images based animation code.
It uses Timer Class, i will replace it to Thread Timer.
If you know a better way, let me know, if you don't, let me know and i mark my answer as solution.
Thank you for reading!
Ziya1995
20-Jan-15 3:09am
View
1. I already talked about it on this forum, making video files are not supported in .Net.
3. Ok, sorry, i just need a link to a page where i can learn how to make animation better than what i am doing now. And i know what is vector graphics and already have animations using vector graphics, but i thought you mean something else.
I already made animations and use them in my game, i am just curious if there is a better way. You said my way is bad, so you can send me a link where is a better way or just teach me.
I have no idea how to create animation without frames or recreating vector images, but i guess low level code can create a video file which is a better way, but as i said it is not supported in .Net, i need to use 3d party ways, but i don't want.
Ziya1995
20-Jan-15 2:33am
View
1. I can't create a video file because it is not supported in .Net 4.0, i don't want to use Pinvoke or 3d party libraries.
2. I remember using Threads, thanks.
3. Vector Graphics? What is this?
4. I use for loop to store bytes, bytes[0][x], bytes[1][x]...and so on.
For example, i increase alpha to make light effect animation.
So, can you give me a link to read about it?
Ziya1995
19-Jan-15 13:29pm
View
Deleted
I have read much that unsafe is faster, ok, i got it.
Ziya1995
14-Jan-15 4:43am
View
I mean to make html/css/js app and run it on client side on Windows like C# WPF app.
Ziya1995
14-Jan-15 4:22am
View
Mistake, i mean on client side, to run on client side.
Ziya1995
14-Jan-15 4:09am
View
Yes, but hybrid on client side.
Ziya1995
14-Jan-15 3:46am
View
I think no, normal html.
Ziya1995
14-Jan-15 3:38am
View
Both for Windows desktop, yes, WPF runs only on Windows by anyway.
And HTML/CSS/Javascript is hybrid on client side.
Ziya1995
14-Jan-15 3:23am
View
I know, but as i said, we compare them.
Ziya1995
13-Jan-15 8:56am
View
I think you mean no issue for simple apps, but not for really complex apps.
Ziya1995
12-Jan-15 10:48am
View
> You can make a good use of these frameworks and engines..
I use .Net Framework.
I would choose C# WPF .Net Framework to make games, because it has higher performance than Javascript.
What i like in managed code like C# WPF is that:
Native C++ is high performance, but very hard.
Hybrid Javascript is easy and cross platform, but low performance.
Managed C# WPF .Net Framework is easy, high performance and going to be WORA - Write once, run anywhere like Java.
That is why i would like to choose managed C# WPF .Net Framework.
Ziya1995
12-Jan-15 2:09am
View
I wanna choose Javascript because it is cross platform, but i am not sure about its performance and that is why i am confused.
If i choose C# WPF, i am sure there is no performance issue.
Ziya1995
12-Jan-15 2:02am
View
The real question is Javascript vs C# WPF.
As i understand Javascript has no issue for simple games, but when it comes to more complex games it makes problems. It is also slower than C#.
So if i choose C# WPF i can be 100% sure there is no performance issue.
No, i am talking about pure HTML/CSS/JS and pure WPF, not engines.
Now i am confused and don't know what to choose.
Right now the only problem is performance.
Ziya1995
6-Jan-15 16:02pm
View
I was thinking the whole day and got everything before i opened this page again and saw this post, thank you.
I thought i get access only to a part of the Framework, but not, i can use all of the namespaces, thank you, reference names and namespace names are different, i got it.
I just need to open .Net Framework Class Library, i always was ok with that, but a few days ago i got confused, started thinking wrong, but now everything is ok.
Sorry, i feel a shame, thanks!
Ziya1995
6-Jan-15 15:59pm
View
I got everything, I just need to open .Net Framework Class Library!
I feel shape, sorry, Windows Forms includes all the namespaces of the framework, i used to think so, but then i got confused, i thought only a part of the framework, but all the Framework, ok, i got everything, sorry, thanks!
Ziya1995
6-Jan-15 15:57pm
View
Sorry!
I just need to open .Net Framework Class Library!
I feel a shame, Windows Forms like WPF provides access to all the namespaces of .Net Framework, i used to think so, but then i got confused, but now i got everything, thank you!
Ziya1995
6-Jan-15 15:56pm
View
Sorry! I feel a shame, Windows Forms like WPF provides access to all the namespaces of .Net Framework, i used to think so, but then i got confused, but now i got everything, thank you!
Ziya1995
6-Jan-15 15:48pm
View
Sorry! Names of references are different from names of namespaces, sorry!
I feel a shame, i always used to think rightly, but then got confuzed, learning curve, thanks.
Ziya1995
6-Jan-15 9:33am
View
> You can use speech recognition is System.Windows.Forms, but do you want to include it?
I wanna know what i can include if i want to.
Windows Forms is based on .Net Framework.
I wanna know what parts of the Framework i can use in my Windows Forms project.
You gave me System.Windows.Forms.dll that scans System.Windows.Forms namespace. I said lots of times i am talking about technology, not namespace.
The time has come and i will post solution here!
Ziya1995
6-Jan-15 9:12am
View
I don't understand, i just wanna know names of references to add them, do you get it?
You said Windows Forms provides access to any of .Net Framework classes, but it is wrong, do you admit it?
I open a new Windows Forms project, i wanna add new references, but i don't know their names, there is that list?
You get me wrong, my question is so simple as to be stupid.
You wanna say that people don't know names of references they use and they add them by guessing?
The problem is in all of you, you are so smart that get my simple question as something serious.
Ziya1995
6-Jan-15 8:53am
View
Hi guys again, i made what you said about Assembly:
http://www.codeproject.com/Questions/861196/System-Windows-Forms-Dll-Assembly-Get-A-List-Of-Wh
Guys, i really ask a simple question, you get my question as something hard, but it is not, look:
I open new Windows Forms project in Visual Studio, then i add references like System.Drawing and so on.
But how can i know how to add a reference, if i don't know names of references.
I repeat, i use namespaces, add references and so on, and now i wanna add a reference to use it, how to add if i don't know a name of reference???
Until today i go to .Net Framework Class Library and copy reference names, but Windows Forms provides access only to a part of the whole Framework and it is not only about System.Windows.Forms namespace, it is also about, for examples, next ones:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
And now i am a simple guy, i must know names of references, to write them and add, that is one the easiest questions.
I read what you write and understand you are really smart and wise people, but the problem that you are so professional that don't understand my simple question, because you get it as something very hard.
Ziya1995
6-Jan-15 8:14am
View
Yes, i went to "System.Windows.Media.Media3D Namespace".
I can not use it in my Windows Forms, there is no reference, i use .Net Framework 4.0.
There are different Class Libraries for SilverLight, WPF and so on, look:
Class Library (WPF)
http://msdn.microsoft.com/en-us/library/ms753307(v=vs.110).aspx
.NET Framework Class Library for Silverlight
http://msdn.microsoft.com/en-us/library/cc838194(v=vs.95).aspx
Are you sure i can use any of functions provided by .Net Framework Class library? Because i can use lots of them, but not all.
I need such a class library for Windows Forms where i can see only what i can use.
Ziya1995
6-Jan-15 7:24am
View
Ok, now i wanna ask a very simple question:
Can i use anything from Framework, i mean all of the .Net Framework in my Windows Forms project?
I think no.
Ziya1995
5-Jan-15 14:03pm
View
You don't understand, come on, please, understand my question, please.
I need a list of a set of API that Windows Forms uses by default.
You give me lots of information that i know, i don't need to learn what is difference between Windows Forms and WPF again, because i know that, sorry, but what the hell? I need a simple list, not all that lecture.
Go and read my question again, please understand.
If you don't know, let me know and i go to another forum to search.
How can i know what i can use in my Windows Forms application? What the hell? I wanna know what i can use in my application, i need a list of what i can use, ohhh... nobody understands, you are all confused people, please understand, thank you.
Ziya1995
5-Jan-15 13:39pm
View
No, "System.Windows.Forms.dll" is about namespace, it is about windows interface elements, controls, button, picturebox and so on.
But i am talking about Windows Forms technology.
Look:
http://msdn.microsoft.com/en-us/library/8bxxy49h(v=vs.110).aspx
"Windows Forms is a smart client technology for the .NET Framework"
If you want, you can understand that what you talk about and what i talk about are different things.
Ziya1995
5-Jan-15 13:15pm
View
There is no one who knows answer to such a simple question.
Do you understand what i mean at all?
Ziya1995
5-Jan-15 12:50pm
View
No, i can't understand.
Listen, i use Windows Forms to code.
I need a list of what it uses by default from .Net Framework.
What is wrong? Please explain me, what is wrong? Thanks.
Look:
http://msdn.microsoft.com/en-us/library/8bxxy49h(v=vs.110).aspx
I am talking about Windows Forms technology, not namespace.
Ziya1995
5-Jan-15 12:47pm
View
Wait, i can get information about any library in .Net Framework Class Library without loading assembly.
But i need a list of libraries used in Windows Forms.
So, there is no such a list, right?
Ziya1995
5-Jan-15 12:42pm
View
You are talking about namespace or technology?
> What is "Windows Forms technology like WPF"?
I am not talking about namespace.
Windows Forms rivals WPF.
http://msdn.microsoft.com/en-us/library/dd30h2yb(v=vs.100).aspx
Ziya1995
5-Jan-15 12:37pm
View
I started 2 years ago, thank you, i don't need that.
I appreciate your diligence, guys, but you can take a bit to understand my simple question.
I need a list of classes, methods, functions and so on, a part of API that Windows Forms uses.
I need a list of what Windows Forms uses.
Windows Forms uses a part of the whole .Net Framework, i need a list of that part.
Ziya1995
5-Jan-15 12:34pm
View
No, i am talking about Windows Forms technology like WPF.
I am not talking about Windows.Forms namespace.
Their names are just accidently same.
I need a list of classes, functions, methods and so on, in other words what Windows Forms uses from .Net Framework, for example, from 4.0 version.
Ziya1995
5-Jan-15 12:23pm
View
I am talking about Windows Forms technology like WPF, not Windows.Forms namespace.
My question is much more simpler, very very simpler, i know all of that, i don't need you to teach me what is Windows Forms and so on, because i already know that.
I am not talking about Platform Invoke, i mean those classes, functions, methods and so on, by simple words what Windows Forms use, not by Platform Invoke, not 3d party components, what does it use from .Net Framework, for example 4.0 version.
I just need to get a list of methods, functions and so on used in C# Windows Forms.
I repeat, i need a list of part of the whole API used in C# Windows Forms.
I repeat, as you said Windows Forms does not use everything in the Framework, i need to get a list of those that it uses.
I have no idea how to explain my simple question, but it is a learning curve.
Thank you!
Ziya1995
3-Jan-15 8:09am
View
Ok, i went to read and got it, thank you!
Ziya1995
3-Jan-15 7:58am
View
Deleted
I know that it is a not programming language, but i can write the same game on that and on Java. I can write apps on HTML, it is text that browser formats into result.
I can create pretty good apps using HTML or Java.
Please understand, i know they are different, but i can do the same thing on both of them.
I know all of that, but i don't know what is faster.
What is faster?
Ziya1995
3-Jan-15 7:54am
View
Deleted
I know that it is a not programming language, but i can write the same game on that and on Java. I can write apps on HTML, it is text that browser formats into result.
I can create pretty good apps using HTML or Java.
Please understand, i know they are different, but i can do the same thing on both of them.
I know all of that, but i don't know what is faster.
What is faster?
Ziya1995
3-Jan-15 7:40am
View
I am talking about markup, HTML, not Javascript, is markup (Html) faster or slower than managed code (Java)?
Ziya1995
3-Jan-15 7:07am
View
Ok, sorry, thanks.
Ziya1995
3-Jan-15 6:48am
View
No, i know native code is faster than markup hybrid code, for example C++ is faster than HTML, but my question is: Managed code vs markup hybrid code, for example, Java vs HTML, what is faster?
Ziya1995
2-Jan-15 4:50am
View
I got all the answers i needed for (Solution 1).
Thanks.
Ziya1995
1-Jan-15 11:44am
View
Deleted
Sorry, but i meant not performance, i meant quality of apps made in Pure Java.
Is it a very low quality apps?
Is Pure Java very limited?
Or i can write a good app on that, for example a Paint app?
I would know, maybe i should switch to Pure Java to write once and run anywhere.
I think it is very limited, and it is almost impossible to write something worthful using Pure Java.
Right?
Please answer last time and i accept your solution.
Thank you.
Show More