Search found 16 matches

by Kulrom
Wed Dec 18, 2024 3:16 pm
Forum: Coding Questions
Topic: No functions found in a DLL
Replies: 12
Views: 1700

Re: No functions found in a DLL

Try again as described in this topic
viewtopic.php?p=586522&hilit=dotnet+dll#p586522

But it is still better to use .NET programming language and Visual Studio!!!
by Kulrom
Wed Dec 18, 2024 2:22 pm
Forum: Coding Questions
Topic: No functions found in a DLL
Replies: 12
Views: 1700

Re: No functions found in a DLL


If I can generate a PB compatible DLL I am tempted to follow this path. Which CPP compiler would you recommend for this purpose ?
I guess that it is not possible to just open the TWS API CPP project and quickly generate a DLL ? There will probably be millions of options to select as well as many ...
by Kulrom
Tue Dec 17, 2024 7:04 am
Forum: Coding Questions
Topic: No functions found in a DLL
Replies: 12
Views: 1700

Re: No functions found in a DLL

You can't use .net dll in PureBasic or any other programming language that doesn't run on .net .
Learn what .net is
If you're not happy with the web API, you'll have to learn at least Visual Basic.net
by Kulrom
Thu Nov 21, 2024 6:27 am
Forum: Tricks 'n' Tips
Topic: Read and modify openoffice / libreoffice spreadsheets
Replies: 21
Views: 6963

Re: Read and modify openoffice / libreoffice spreadsheets

i am posting update

Code: Select all

; v 0.5.0 The internal mechanism for allocating memory has been changed. It is now a list
;		Added ODS::freeAndNull() -  The macro clears the memory and resets the variable.
; v 0.5.1 Fixed ODS::SaveOdsBook() - added support PB version < 611
Updated Module in first message
by Kulrom
Fri Nov 15, 2024 4:16 am
Forum: Coding Questions
Topic: Circular include best ways to avoid?
Replies: 4
Views: 658

Re: Circular include best ways to avoid?

You already have spaghetti code. Make a separate file in which you declare all the structures.
by Kulrom
Fri Nov 15, 2024 3:59 am
Forum: Coding Questions
Topic: copying a structure to a variable with a type that was extended from?
Replies: 7
Views: 1094

Re: copying a structure to a variable with a type that was extended from?

CopyStructure make it.
I use СopyStructure in my OOP realisation.
This function copied memory from pointer1 to pointer2.
if the second structure is extended from the first, then everything will succeed, and all fields of the parent structure will be inherited.
by Kulrom
Tue Oct 15, 2024 11:25 am
Forum: Tricks 'n' Tips
Topic: Read and modify openoffice / libreoffice spreadsheets
Replies: 21
Views: 6963

Re: Read and modify openoffice / libreoffice spreadsheets

Hello everyone! I am posting two updates at once. While working with the module, problems with cells in which the text has several lines or styles were detected.
Now GetCellValue() returns the entire text.
Using SetCellValue(), you can write multi-line text to a cell. The separator is the line break ...
by Kulrom
Fri Oct 11, 2024 1:41 pm
Forum: Tricks 'n' Tips
Topic: Read and modify openoffice / libreoffice spreadsheets
Replies: 21
Views: 6963

Re: Read and modify openoffice / libreoffice spreadsheets

v 0.4.5 fixed ODS::GetCellValue() - fixed returned result if link in cell 11/10/2024
by Kulrom
Tue Oct 08, 2024 1:27 pm
Forum: Coding Questions
Topic: How to update json value or if it empty do insert ?
Replies: 3
Views: 706

Re: How to update json value or if it empty do insert ?

like this

Code: Select all

json$ = ~"{\"done\" : true}"

If ParseJSON(0, json$)
	Debug json$
	SetJSONBoolean(GetJSONMember(JSONValue(0), "done"), #False)
	json$ = ComposeJSON(0)
	FreeJSON(0)
	Debug "---------------"
	Debug json$ ;    {"done":false}
EndIf
by Kulrom
Wed Aug 07, 2024 7:52 am
Forum: Tricks 'n' Tips
Topic: Read and modify openoffice / libreoffice spreadsheets
Replies: 21
Views: 6963

Re: Read and modify openoffice / libreoffice spreadsheets


Hi Kulrom

I'll having issues with 6.11 LTS (x64) on line 347
Apparently some changes in: AddPackMemory(zip_out, 0, 0, entry_name$)
Doesn't seem to like zeros


Hi, blueb!

I haven't installed version 6.11 yet. I'm using version 6.10. New versions are coming out too often :)

My mistake was ...
by Kulrom
Mon Feb 26, 2024 9:39 am
Forum: Tricks 'n' Tips
Topic: Read and modify openoffice / libreoffice spreadsheets
Replies: 21
Views: 6963

Re: Read and modify openoffice / libreoffice spreadsheets

v 0.4.3 fixed ODS::getCellValue() - fixed calculation of cell address in a row with merged and repeated cells 25/02/2024
by Kulrom
Wed Nov 01, 2023 11:21 am
Forum: Tricks 'n' Tips
Topic: Read and modify openoffice / libreoffice spreadsheets
Replies: 21
Views: 6963

Re: Read and modify openoffice / libreoffice spreadsheets

I posted a new version of the module in the first message

Version 0.4.2
fixed ODS::getCellValue() - fixed calculation of cell address in a row with covered cells
fixed calculation of cell adress in a row if repeated values
fixed ODS::setCellValue() - fixed calculation of cell address in a row ...
by Kulrom
Tue Sep 12, 2023 12:49 pm
Forum: Coding Questions
Topic: Is it possible to restrict access on structure fields?
Replies: 9
Views: 1314

Re: Is it possible to restrict access on structure fields?

In my opinion there is too much difficulty in hiding fields.
There are no hidden fields in classes in Python. And this doesn’t upset anyone. There is an agreement that hidden fields and methods begin with the character "_". For example "_field" or "_method". And the programmer does not use them ...
by Kulrom
Mon Sep 11, 2023 1:31 pm
Forum: Tricks 'n' Tips
Topic: Read and modify openoffice / libreoffice spreadsheets
Replies: 21
Views: 6963

Re: Read and modify openoffice / libreoffice spreadsheets

Updated to version 0.4.1.
Added ODS::getSheetName() - return name of sheet by sheet id
Added ODS::getSheetID() - return sheetId by name
Added ODS::setSheetName() - set sheet name

The code in the start message has been updated
by Kulrom
Thu Sep 07, 2023 1:46 pm
Forum: Tricks 'n' Tips
Topic: Read and modify openoffice / libreoffice spreadsheets
Replies: 21
Views: 6963

Re: Read and modify openoffice / libreoffice spreadsheets


I took the liberty of translating the Russian comments over to English (in order to understand it for my use)


Thanks for the translation, blueb . To be honest, I was too lazy to translate :oops: . Only here the word "Строка" in this case should be translated as "row" and not "string"