I'd like to write a plugin for some Windows application, and it must be a DLL. I'd really love to try doing it in a mix of Red & Red/System. But asking on Rebol&Red chatroom here on SO, I got mixed responses as to whether it is currently possible in both Red and Red/System, or in Red/System only. What's the definitive answer?
Is it possible to write a Windows DLL in Red?
466 Views Asked by akavel At
1
There are 1 best solutions below
Related Questions in RED
- What is the difference between `context` and `object`?
- How to get values from the Red/System parts in a Red file
- Which new language would mostly fit for writing an OS
- invalid target type casting: red-context
- Converting strings to other datatypes in Red
- How to create a Red/System binding to a function that takes a pointer to a pointer?
- Rebol code gui working but not clearing fields
- Red language executable also opening up a console
- Creating pdf file in Rebol/Red
- Try/catch exceptions in Red language
- Saving data to file in Red language
- Parallel list assignment in Red language
- Garbage collection in Rebol & Red
- GUI elements from a function not being displayed in Red language
- How to access values from panels in Red language
Related Questions in RED-SYSTEM
- invalid target type casting: red-context
- How to create a Red/System binding to a function that takes a pointer to a pointer?
- How to represent a hex string in Red/System?
- How do you use #call directive for Red function with string datatypes as parameters?
- Is it possible to write a Windows DLL in Red?
- Pass Red function pointer to C
- Red/System binding for 3D graphics on Raspberry Pi
- How to pass value from Red/System to Red?
- How to append data to block from R/S?
- How do you get a directory listing in Red/System?
- Pointers to an 'array' in Red/System
- How to cast between integer and character in Red/System?
- Accessing runtime functions from Red/System
- Pass by reference in Red routines
- How to pass block with context to routine?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yes, it is possible. You can check the announcement on the Red-Blog for 0.3.3
First of all, here is a short snippet describing the process for Red/System:
Secondly, I was finally able to get a single simple Red script to compile to a .dll. The
#exportdirective needs to be in a Red/System context as you can see the#system-globaldirective provides. Any function you have in Red needs to be wrapped with a Red/System wrapper. You can do this using#callas done below: