All Questions
Tagged with webassembly html
53 questions
1
vote
0
answers
137
views
WebAssembly module not initializing with Emscripten-generated JavaScript
I'm new to WebAssembly. Can you please help for the below issue? I was trying to get solutions from GitHub copilot but no luck.
I'm trying to create a minimal example of using WebAssembly with ...
0
votes
0
answers
124
views
Blazor (or vanilla C#) to WASM for showing a console application on a webpage
"That's odd. Why are you doing this?" I just want to know if it's possible. Of course there's alternatives, as there is to everything. This is 100% just a proof of concept.
I have a simple ...
0
votes
0
answers
9
views
About c++ multithreaded code converted to WebAssembly view rendering problem in js call
var Module = {
print: (function() {
var element = document.getElementById('output');
test_element=document.getElementById('test_element');
// if (element) element....
1
vote
0
answers
52
views
Speeding up Brython with WebAssembly compiled from Rust
I want to speed up brython code with webassembly functions. It appears I can properly use the wasm functions in javascript code, but for brython I would need to assign them to window. That in itself ...
1
vote
0
answers
60
views
Wasm data not rendering on html canvas
I made a wasm/js application that should display a array of colors on a html canvas, but nothing is displaying. heres the c code:
void print(int val);
int screen[57600];
int* get_screen(){
...
0
votes
1
answer
429
views
WebAssembly C++ using JS value - Import #0 module="env": module is not an object or function
I'm new to WebAssembly and I'm doing some experiments.
I managed to create very simple examples.
Now I would like to try using JS objects within my C++ code. Specifically,
I would like to try printing ...
1
vote
1
answer
432
views
Configuring WebAssembly/Emscripten locally build issues
I'm new to the world of WebAssembly/Emscripten.
I found this example and I would like to try it locally (mac OS). These are my files:
#include <string>
#include <emscripten.h>
#include <...
2
votes
0
answers
76
views
Trouble Loading .wasm Files in HTML from a Golang File Server
I'm working on creating a sub-url for my file server in Golang.
The Golang function code I have is:
func main() {
fs := http.FileServer(http.Dir("../../dist/"))
http.Handle(&...
0
votes
0
answers
52
views
Replacement for an old embedded dll in html page
I have an ASP.NET MVC app that is designed to run on IE.
The app is using the <object> tag to embed a DLL that all it's purpose is to run an EXE file on the client's computer.
This app is used ...
2
votes
1
answer
567
views
GBA Emulator Bug
I've been trying to reverse engineer a GBA emulator I found online (https://gba.44670.org/), and I used a HTML extracter to try to replicate it. I wanted it to work offline, so I downloaded all of the ...
1
vote
0
answers
264
views
Blazor Webasembly on github pages
I am trying to publish a Blazor WASM app to Github pages, I believe it is possible because there are many tutorials in the internet they are just very old and don't seem to be working anymore. My ...
0
votes
1
answer
807
views
How can I load javascript when the wasm in it, completely loaded
Before starting, Sorry for my poor english..
I have encountered some problems using javascript that contains web assembly module load.
I created mobile keypad based on rust, and builded it wasm-pack.
...
0
votes
0
answers
350
views
How to pass a pointer from Rust to an external WASM module function, such that it can modify that value?
I am trying to allow user to select a file .wasm in HTML page, then pass a function from that module into already loaded Rust wasm module. After that I want to call that function and pass pointers, ...
2
votes
1
answer
1k
views
Render WASM Graphics to Custom HTML Canvas
I have setup a WASM project using Rust and a game engine called Bevy to create graphics within a Svelte app. However, when I run the init() function generated by wasm-pack, it creates a canvas element ...
0
votes
1
answer
808
views
Blazor EditForm: How to handle empty values same as undefined
I am using an EditForm component with validations in Blazor WASM app.
The problem I have is that if I enter an input to InputText and then later decide remove it, the form acts as if I entered empty ...