Search found 479 matches

by superadnim
Thu May 04, 2023 6:02 am
Forum: Coding Questions
Topic: unresolved externals (atoll)
Replies: 1
Views: 177

unresolved externals (atoll)

I'm compiling a static library using visual studio 2015 but when I try to compile the PB source I get this error --------------------------- PureBasic - Linker error --------------------------- POLINK: error: Unresolved external symbol 'atoll'. POLINK: fatal error: 1 unresolved external(s). --------...
by superadnim
Fri Mar 10, 2023 4:50 pm
Forum: Tricks 'n' Tips
Topic: EditorFactory - Module for object management in a Canvas
Replies: 181
Views: 42124

Re: EditorFactory - Module for object management in a Canvas

i didn't fully understand his message either but i think he means "share them as-is don't worry about translating them".
there is interest but this is a very niche module for a niche programming language!
by superadnim
Wed Feb 22, 2023 12:27 am
Forum: Tricks 'n' Tips
Topic: EditorFactory - Module for object management in a Canvas
Replies: 181
Views: 42124

Re: EditorFactory - Module for object management in a Canvas

fantastic!
one note: when testing the save/load example it somehow removes the top element whenever I load the json file

otherwise it all seems to work fine
I think this feature ties the whole lib together
by superadnim
Fri Jan 27, 2023 5:06 am
Forum: Coding Questions
Topic: calling statically linked c functions in pb (by value and by reference)
Replies: 12
Views: 658

Re: calling statically linked c functions in pb (by value and by reference)

maybe this is a stupid question but the memory allocated with cpcalloc can be accessed by pb without issues as long as i free the memory in the c code later on? cpalloc is not initialized data (not all 0s) but is it all compatible or do i have to somehow pass a pointer to pb's allocatememory and use...
by superadnim
Fri Jan 27, 2023 3:26 am
Forum: Coding Questions
Topic: calling statically linked c functions in pb (by value and by reference)
Replies: 12
Views: 658

Re: calling statically linked c functions in pb (by value and by reference)

that sounds about right unless you could somehow use the same memory stack? but im no expert im just thinking out loud! so i am still getting memory access violations on PB and i find it very hard to debug because the compiled library in C cannot be debugged while I run the PB program (or can it?) i...
by superadnim
Wed Jan 25, 2023 1:39 am
Forum: Coding Questions
Topic: calling statically linked c functions in pb (by value and by reference)
Replies: 12
Views: 658

Re: calling statically linked c functions in pb (by value and by reference)

oh sorry! here is an example, first pseudo code of a "get" function that returns by value from what i understand: dkVector dkHandlerGetSomeValue(const dkArbiter *arb) { return dkVectorMultiply(arb->n, arb->swapped ? -1.0f : 1.0); } so in PB one would have to pass a second argument namely a...
by superadnim
Tue Jan 24, 2023 11:25 pm
Forum: Coding Questions
Topic: calling statically linked c functions in pb (by value and by reference)
Replies: 12
Views: 658

calling statically linked c functions in pb (by value and by reference)

so ive been coding a library wrapper that requires certain functions to be converted from "by value" to "by reference" i know this isn't strictly a PB question but could someone show me the way as to how one would go about converting the functions? my interpretation is that I mus...
by superadnim
Sun Jan 22, 2023 6:45 pm
Forum: Windows
Topic: POLINK: error: Unresolved external symbol '__imp____iob_func
Replies: 10
Views: 8186

Re: POLINK: error: Unresolved external symbol '__imp____iob_func

i know this is an old thread but i am also trying to get rid of this error in x64 any advice?
pb 5.7lts because right now i cannot port my code to the latest version too many changes for my project

using the commandline options in x64 doesnt seem to work in visual studio.
by superadnim
Sun Jan 22, 2023 1:15 am
Forum: Tricks 'n' Tips
Topic: EditorFactory - Module for object management in a Canvas
Replies: 181
Views: 42124

Re: EditorFactory - Module for object management in a Canvas

1) I thought the structure would be simpler but the project is quite complex for me I did notice pointers could be an issue if strings could be used to reference them in this way then that's a viable solution! 2) The idea of using base64 is fine you could also just have the path to the file and reco...
by superadnim
Fri Jan 20, 2023 12:56 am
Forum: Tricks 'n' Tips
Topic: EditorFactory - Module for object management in a Canvas
Replies: 181
Views: 42124

Re: EditorFactory - Module for object management in a Canvas

so i tried to use EditorFactory with InsertJSONStructure but i constantly get MAVs

also if memory addresses are kept when i save and load again it would corrupt the program does this mean i have to manually iterate and save each element properties instead?

thanks
by superadnim
Fri Jan 20, 2023 12:34 am
Forum: Tricks 'n' Tips
Topic: EditorFactory - Module for object management in a Canvas
Replies: 181
Views: 42124

Re: EditorFactory - Module for object management in a Canvas

well i tried but this doesnt seem to save everything ;{ Saves all objects to a file ; Result: The output filesize if created. ;} Procedure.i SaveObjects(iCanvasGadget.i, FileName.s) Protected *ObjectManager.ObjectManager : _ObjectManagerID_(*ObjectManager, iCanvasGadget, 0) If ListSize(*ObjectManage...
by superadnim
Mon Nov 14, 2022 1:21 pm
Forum: Tricks 'n' Tips
Topic: EditorFactory - Module for object management in a Canvas
Replies: 181
Views: 42124

Re: EditorFactory - Module for object management in a Canvas

Hello! Either format could be natively implemented if there is a way to use InsertJSONStructure / InsertXMLStructure otherwise I would steer toward JSON these days over XML. After all they are just settings / static data. Yes every position / dimension / property of every object could be saved and l...
by superadnim
Sat Nov 12, 2022 3:58 pm
Forum: Tricks 'n' Tips
Topic: EditorFactory - Module for object management in a Canvas
Replies: 181
Views: 42124

Re: EditorFactory - Module for object management in a Canvas

Any chance of adding load and save functions?
by superadnim
Thu Dec 16, 2021 2:11 am
Forum: Coding Questions
Topic: Operator precedence in C and PB
Replies: 4
Views: 688

Re: Operator precedence in C and PB

oh just a matrix translation but I get different results from pb and c the pb code without any brackets works fine: *matrix\e41 = *matrix\e11 * x + *matrix\e21 * y + *matrix\e31 * z + *matrix\e41 *matrix\e42 = *matrix\e12 * x + *matrix\e22 * y + *matrix\e32 * z + *matrix\e42 *matrix\e43 = *matrix\e1...
by superadnim
Wed Dec 15, 2021 4:03 am
Forum: Coding Questions
Topic: Operator precedence in C and PB
Replies: 4
Views: 688

Operator precedence in C and PB

I have a question about the operator precedence in PB is it the same in C (c99) or are they different? working on porting some code I cant get it to work properly even with a literal port on very basic code im thinking the operator precedence might be different I have multiplications followed by add...