Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
lumiere's user avatar
  • 43
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 ...
buddingprogrammer's user avatar
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....
user25527891's user avatar
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 ...
TheTrebuchet's user avatar
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(){ ...
Junus Safsouf's user avatar
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 ...
Safari's user avatar
  • 12k
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 <...
Safari's user avatar
  • 12k
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(&...
ccQpein's user avatar
  • 825
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 ...
Itay.B's user avatar
  • 4,129
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 ...
George's user avatar
  • 21
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 ...
I NN_'s user avatar
  • 185
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. ...
MJ1996's user avatar
  • 41
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, ...
Patrik Číhal's user avatar
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 ...
szammyboi's user avatar
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 ...
Thorberg's user avatar
  • 103

15 30 50 per page