Forum Replies Created
-
AuthorPosts
-
easy done I spent ages looking at
[/crayon]Monkey123[crayon-5cb9cb9da3ee5258534729 inline="true" ]LoadPixmap("asset::smallhm.png" ...when it should have been
[/crayon]Monkey123[crayon-5cb9cb9da3eec704752204 inline="true" ]LoadPixmap("assets::smallhm.png" ...wouldn’t this add over head ? – ie two calls per API call rather than 1 ? (but I might have misunderstood!)
also I assume
[/crayon]Monkey1234[crayon-5cb9cb9da859e944417529 inline="true" ]Struct cfloat="const float"End Structis more technically correct but out of interest will it actually make any difference ?
its a shame “class” doesn’t have a clone method, that will create a deep copy, that and final methods would make some powerful and interesting things possible…
[/crayon]Monkey123[crayon-5cb9cb9dadb80545786920 inline="true" ]error: invalid conversion from 'const dReal* {aka const float*}' to 'bbFloat* {aka float*}' [-fpermissive]ah hang on it itsn’t that const thing again is it?
I just got errors about not being able to cast a float* for a bbfloat* or similar – there does seem to be differences between mingw gcc and more up to date versions (v6.3.0 here)
I’ll try again and see if I can induce the error…
yeah, its just straight forward and works, pity about the wiki but ah well
oh you mean in visual mode, I’ve had mine on the text tab, problem with that editor is if you accidentally click off that pane you loose everything in the text box….
Yet to find a wordpress editor plugin that I *really* like…
… go on give us a clue how you get to that screen, the screen shot is to small really to see whats going on
is this post preferences?
definitely recommend you feed that xml file through an xml validator (theres a bunch of online ones)
personally I feel that size of file you’re starting to get to the practical limits for xml in terms of being a robust data encapsulation, on mangled character can bork the whole data set in difficult to find / fix way…
consider sqlite (you can always back up to SQL statements also a very portable way to convert the data)
if you really have found an issue with a *valid* xml and tinyxml you should report it, also you might consider seeing if you can run it through tinyxml2
casual grep-ping of the source doesn’t seem to show anything that would help.
low level messing with memcpy would be basically useless aside from only ending up with a ptr to the new object (if it worked at all) the GC wouldn’t know about the new “class”
Without seeing how you are creating these “components” its a little hard to guess whats going on.
try using structs but as Mark suggests put the struct in another file (ideally on its own) why having its own “compilation unit” should help is just one of the “delights” of c++
ooooh handy http://webglsamples.org/WebGL2Samples/#fbo_blit blitting!!!!
The only issue I can see linking samples directly to actual api methods (etc) is that how many examples in rosetta code http://rosettacode.org/wiki/Rosetta_Code wouldn’t fit into this model.
While not all of these snippets may be cromulent its an absolutely invaluable trove as a learning aid.
..ah of course, thanks…
although I probably wouldn;t wrap in in an asc function what you’ve made there makes for a nice little example.
…yeah macros would be useful…
anyone happen to know how to do the equivalent of chr$(n)
…edit $ ah those were the days…..
you can only convert *one* character to a value
[/crayon]Monkey12345678[crayon-5cb9cb9dc7a2d029781550 inline="true" ]Function Main()Local s:String="Abc"For Local ss:= Eachin sPrint ss+","+Int(ss)NextEnd -
AuthorPosts