When I add a CRITICAL_SECTION to my code I get error 481 after running Inclean
Here are the steps:
1 Code compiles ok
2 - add
Instance myCriticalSection As CRITICAL_SECTION
still compiles
3 - run Inclean, then compile
compile error: 481 Mismatch with prior definition
line 126 Fllink AS LIST_ENTRY PTR
Inclean has put this in my .inc file
Type LIST_ENTRY
Flink As LIST_ENTRY Ptr
Blink As LIST_ENTRY Ptr
End Type
which is a duplicate of what is in win32api.inc
If I comment out the type in my generated .inc file, it then compiles. However, the next time I run Inclean, it puts it back.
In my main .BAS file, I include win32api.inc first:
' turn off unnecessary stuff in win32api.inc
%NOGDI = 1 ' no GDI (Graphics Device Interface) functions
%NOMMIDS = 1 ' no Multimedia ID definitions
#Include once "\pbwin90\winApi\win32api.inc"
#Include "C:\pbwin80\ezgui40\includes\ezresize.inc"
#Include "c:\playback innovations\PiConstants.inc"
#Include "C:\Playback Innovations\DS\PiDs.inc" (the generated file)
I saw USEMACROS mentioned in a prior posting and tried setting it to 0 or 1 and it didn't make any difference.
Any ideas?
Thanks...
Here are the steps:
1 Code compiles ok
2 - add
Instance myCriticalSection As CRITICAL_SECTION
still compiles
3 - run Inclean, then compile
compile error: 481 Mismatch with prior definition
line 126 Fllink AS LIST_ENTRY PTR
Inclean has put this in my .inc file
Type LIST_ENTRY
Flink As LIST_ENTRY Ptr
Blink As LIST_ENTRY Ptr
End Type
which is a duplicate of what is in win32api.inc
If I comment out the type in my generated .inc file, it then compiles. However, the next time I run Inclean, it puts it back.
In my main .BAS file, I include win32api.inc first:
' turn off unnecessary stuff in win32api.inc
%NOGDI = 1 ' no GDI (Graphics Device Interface) functions
%NOMMIDS = 1 ' no Multimedia ID definitions
#Include once "\pbwin90\winApi\win32api.inc"
#Include "C:\pbwin80\ezgui40\includes\ezresize.inc"
#Include "c:\playback innovations\PiConstants.inc"
#Include "C:\Playback Innovations\DS\PiDs.inc" (the generated file)
I saw USEMACROS mentioned in a prior posting and tried setting it to 0 or 1 and it didn't make any difference.
Any ideas?
Thanks...
Comment