Skip to content

LoadResData works in IDE but errors in compiled ActiveX DLL #2280

@TBDev111

Description

@TBDev111

Describe the bug
LoadResData works in IDE but errors in compiled ActiveX DLL

To Reproduce
Steps to reproduce the behavior:

Create STRING Resource DefSilo.txt
Run:
strText = LoadResData("DefSilo.txt", "STRING")

This works fine in tB IDE.
Compile DLL and it generates Error:
-2147467259 Unspecified error.

Expected behavior
Work same as it does in the IDE.

Screenshots
NA

Desktop (please complete the following information):
OS: Windows 11
tB: 895

Additional context
This was tricky to debug as it is in a DLL.
Created a trace stack to find the error.
There are similar issues reported elsewhere with tB compiled EXE and DLL resources.
This is mission critical, would appreciate a response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions