NO

Recent Posts

Pages: [1] 2 3 ... 10
1
Assembly discussions / Re: Poasm and FreeBASIC cooperation
« Last post by Vortex on Yesterday at 09:58:26 PM »
FreeBASIC sample calling Poasm module.
2
User contributions / Re: Image Tools
« Last post by John Z on April 15, 2024, 01:38:12 PM »
The tool, from 2017, is no longer available from that site.

John Z
3
User contributions / Re: Image Tools
« Last post by Ushavilash on April 15, 2024, 08:32:18 AM »
Hey hi, to launch image tool select a folder containing the images for management. Once chosen, the tool scans the folder, generating thumbnails for each image. Utilizing the computed MD5 checksum, it offers an option to automatically delete duplicate images. When renaming files, temporary names are used, considering various sorting criteria such as image width, height, orientation, DPI, color, file size, and checksum. Additionally, the tool computes the ratio based on image dimensions for further analysis and for compressing these images you can try any online application such as https://jpegcompressor.com. It compresses image without losing their quality.
4
Beginner questions / Re: Record audio in windows 10
« Last post by Ushavilash on April 13, 2024, 08:36:35 AM »
Hey hi, you'll get information from https://learn.microsoft.com/en-us/windows/win32/
5
Graphics programming / Re: Squeezing some cool from Windows GDI
« Last post by Vortex on April 12, 2024, 10:02:16 PM »
Hello,

I agree with MrBcx. We must be careful while intepreting the output of the artificail intelligence. One can receive tricky replies to questions related to assembly programming.
6
Bug reports / Extra leading underscore issue
« Last post by Vortex on April 12, 2024, 09:17:57 PM »
Hello,

Assembling the following code and examining the symbols in the object file :

Code: [Select]
calc PROTO :QWORD,:QWORD,:QWORD,:QWORD,:QWORD,:QWORD

GetResult PROTO :QWORD,:QWORD

ALIAS <calc>=<?calc@formula@@QEAAHHHHHH@Z>
ALIAS <GetResult>=<?GetResult@formula@@QEAAXH@Z>

Code: [Select]
\PellesC\bin\podump.exe /symbols Test.obj
Code: [Select]
Dump of test.obj

File type: OBJ

SYMBOL TABLE
0000 00000000 UNDEF  notype      external     | _?calc@formula@@QEAAHHHHHH@Z
0001 00000000 UNDEF  notype      weak external | calc
     alternate index 0000, search alias
0003 00000000 UNDEF  notype      external     | _?GetResult@formula@@QEAAXH@Z
0004 00000000 UNDEF  notype      weak external | GetResult
     alternate index 0003, search alias

The two symbols should not be prepended with an underscore according to the fastcall calling convention.
7
Graphics programming / Re: Squeezing some cool from Windows GDI
« Last post by MrBcx on April 12, 2024, 03:49:16 PM »

I recall many years ago I tried to dump my VB5 code straight into BCX

John Z

BCX is incapable of performing most forms of magic and miracles.

But it does a lot of other stuff really well.   ;)

Implement a AI library, and it will more than possible. At this time, you can simply paste VBx code into GPT for example, and convert it to pure C in a matter of seconds depending on the lines generated. Your application should utilize this to support advanced conversion supporting the entire pre-CLR days.

My application carries a conversion mixture of Python, C++ & BASIC (all converted to C). GPT 3.5 made this easily available. No need for the newer data set (GPT-4).

Search for a library in your language of choice, work the prompt parameters and parsing procedures, and you will be well on your way.

What I don't know is if you need to detect the code format, and trigger pre-defined prompts while including the code in question, because you need to establish the request on the basis of "Convert this <language> code to BASIC \n\n <code insert, from file, etc).

As you can see in the last statement, you can allow your application to easily convert most languages <--> back and forth. But since this to tailored to generate BASIC code, that is where the focus would be met when interacting with the library.

Just a thought.

I've used ChatGPT, Gemini, LLama, and even You.com to produce code directly or by conversion.  Because ChatGPT
allows for default custom instructions, it tends to generate better BCX code.  The other AI's do a worse job but still
fulfill useful purposes of cross-checking other AI's code.  Right now, these AI tools can be quite helpful at helping
to create prototypes but they are all still in their infancy, so caution must be exercised before relying on their outputs.


8
Graphics programming / Re: Squeezing some cool from Windows GDI
« Last post by John Z on April 12, 2024, 12:28:55 PM »
Thanks WiiLF23!

Hadn't thought of trying this.  I may give it a try with a few aged VB programs just to see.  I have some VB using WINSOCK so that will be interesting....

John Z
9
User contributions / Re: Enable Dark Mode for Title bar
« Last post by John Z on April 12, 2024, 12:22:05 PM »
TreeView color fallback is also easy to do if one wants to supplement or avoid using window theme methods, which my Dark Mode mostly does.

Here is a code snippet:
Code: [Select]
case WM_CTLCOLORLISTBOX:
case WM_CTLCOLOREDIT:

//BookMark [{treeview color}]
        if ((HWND)lParam == GetDlgItem(gHWND, TreeView1))
  { if ((StartUp.ThemeAll == TRUE))// && (StartUp.ThemeNum >0))
      {// could color here too
TreeView_SetBkColor(GetDlgItem(gHWND, TreeView1),gColor);
                TreeView_SetTextColor(GetDlgItem(gHWND, TreeView1),lColor);
                return TRUE;
      }
    else
      {// back to 'normal'
TreeView_SetBkColor(GetDlgItem(gHWND, TreeView1),RGB(255,255,255));
                TreeView_SetTextColor(GetDlgItem(gHWND, TreeView1),0);
                return TRUE;
      }
           }

The advantage is that one can color it anyway desired.  Both background and font can be colored.

John Z
10
Graphics programming / Re: Squeezing some cool from Windows GDI
« Last post by WiiLF23 on April 12, 2024, 04:45:14 AM »

I recall many years ago I tried to dump my VB5 code straight into BCX

John Z

BCX is incapable of performing most forms of magic and miracles.

But it does a lot of other stuff really well.   ;)

Implement a AI library, and it will more than possible. At this time, you can simply paste VBx code into GPT for example, and convert it to pure C in a matter of seconds depending on the lines generated. Your application should utilize this to support advanced conversion supporting the entire pre-CLR days.

My application carries a conversion mixture of Python, C++ & BASIC (all converted to C). GPT 3.5 made this easily available. No need for the newer data set (GPT-4).

Search for a library in your language of choice, work the prompt parameters and parsing procedures, and you will be well on your way.

What I don't know is if you need to detect the code format, and trigger pre-defined prompts while including the code in question, because you need to establish the request on the basis of "Convert this <language> code to BASIC \n\n <code insert, from file, etc).

As you can see in the last statement, you can allow your application to easily convert most languages <--> back and forth. But since this to tailored to generate BASIC code, that is where the focus would be met when interacting with the library.

Just a thought.
Pages: [1] 2 3 ... 10