• Welcome to PlanetSquires Forums.
 

How to use WinFBX Framework?

Started by Eros Olmi, May 04, 2023, 05:01:46 PM

Previous topic - Next topic

Eros Olmi

Sorry, maybe dummy question but not found anything.

I've created a Windows 32Bit DLL using WinFBE and all is fine.

Later I wanted to take advantage of WinFBX framework so I just added:
#include "\afx\AfxWin.INC"
and try to compile.

Compiler say the following and I cannot get how to start with WinFBX:

Failed Compile (Errors 5  Warnings 0  [2023-05-04  09:54:39])

Failed Compile (Errors 5  Warnings 0  [2023-05-04  10:00:58])

Command Line:
C:\WinFBE_Suite\Toolchains\FreeBASIC-1.09.0-winlibs-gcc-9.3.0\fbc32.exe -m "C:\thinBasic\Lib\thinBasic_Tokenizer_FB\thinBasic_Tokenizer.bas" "C:\thinBasic\Lib\thinBasic_Tokenizer_FB\resource.rc" -v -s gui -dll -export  -x "C:\thinBasic\Lib\thinBasic_Tokenizer_FB\thinBasic_Tokenizer.dll"

FreeBASIC Compiler - Version 1.09.0 (2021-12-31), built for win32 (32bit)
Copyright (C) 2004-2021 The FreeBASIC development team.
standalone
target:       win32, 486, 32bit
backend:      gas
compiling:    C:\thinBasic\Lib\thinBasic_Tokenizer_FB\thinBasic_Tokenizer.bas -o C:\thinBasic\Lib\thinBasic_Tokenizer_FB\thinBasic_Tokenizer.asm (main module)
C:\WinFBE_Suite\Toolchains\FreeBASIC-1.09.0-winlibs-gcc-9.3.0\inc\Afx\CWStr.inc(1983) error 171: REDIM on UDT with non-CDECL constructor in 'REDIM PRESERVE rgwstr(LBOUND(rgwstr) TO upperBound + 1) AS CWSTR'
C:\WinFBE_Suite\Toolchains\FreeBASIC-1.09.0-winlibs-gcc-9.3.0\inc\Afx\CWStr.inc(2018) error 171: REDIM on UDT with non-CDECL constructor in 'REDIM PRESERVE rgwstr(lowerBound TO upperBound + 1) AS CWSTR'
C:\WinFBE_Suite\Toolchains\FreeBASIC-1.09.0-winlibs-gcc-9.3.0\inc\Afx\CWStr.inc(2061) error 171: REDIM on UDT with non-CDECL constructor in 'REDIM PRESERVE rgwstr(lowerBound TO upperBound - 1) AS CWSTR'
C:\WinFBE_Suite\Toolchains\FreeBASIC-1.09.0-winlibs-gcc-9.3.0\inc\Afx\CWStr.inc(2077) error 171: REDIM on UDT with non-CDECL constructor in 'REDIM PRESERVE rgwstr(lowerBound TO upperBound - 1) AS CWSTR'
C:\WinFBE_Suite\Toolchains\FreeBASIC-1.09.0-winlibs-gcc-9.3.0\inc\Afx\CWStr.inc(2089) error 171: REDIM on UDT with non-CDECL constructor in 'REDIM PRESERVE rgwstr(lowerBound TO upperBound - 1) AS CWSTR'

Eros Olmi

Sorry, my fault   :-[

I was using
  #include "\afx\AfxWin.INC"
inside
  Extern
  ...
  End Extern

Problem solved.

Bumblebee

All is well that compiles well  :)
Failed pollinator.