1,933 questions
1
vote
0
answers
192
views
Visual Studio 2022 WinForms resources "missing" (but they aren't)
I used to be a developer and software engineer but I've been retired for 15 years now so I'm a bit rusty and not up to speed on the latest stuff.
Fired up Visual Studio 2022 for the first time in a ...
1
vote
1
answer
58
views
Seeding Surrealdb Schemafull tables using the Rust sdk
I'm working on an application that embeds a surrealdb database. I'm new to Rust, but this isn't as much of a Rust specific question. How should I go about seeding the database with the schema?
Right ...
1
vote
0
answers
79
views
from OV7670 camera module without fifo memory is not getting the photo and input in serial monitor event though camera is initialize
Below is the code, but in the serial monitor I'm getting the outputs camera is initialized, waiting, error. The code in if loop Serial.read() == 'c' is not getting executed. If anyone knows how to ...
0
votes
1
answer
108
views
Referencing compiled resources in .exe for with URI for toast notifications?
With a normal Win32 C++ application with compiled resource file (.rc), how does one reference the icons, bitmaps and png files from the resource using a URI required for toast notifications?
I presume ...
0
votes
0
answers
844
views
Bun `build --compile` with embedded assets
I'm experimenting with embedding assets into executable. The executable successfully logs the JSON file's content even if the executable is moved elsewhere. However, the file does not appear in the ...
0
votes
0
answers
60
views
System.Resources.MissingManifestResourceException when Form and resx are in project folder
I have a legacy .NET Framework Winforms application that I am migrating from the old csproj file format to the new SDK-Style format. I did this by creating a new SDK-Style project in the solution ...
1
vote
0
answers
54
views
Why doesn't relativize work for jar resources?
I want to get the path of a jar resource relative to the jar root. This is the MVCE I created:
// Using website example to demonstrate relativize working
URL website = new URL("https://...
0
votes
1
answer
71
views
"Unable to load the specified metadata resource" after building using dotnet build
After some conclusions, a more precise questions:
I have a .NET 4.0 project with Entity Framework v4 which uses an .edmx file. Let's call it EFProject and MyDB to the database accessed by Entity ...
1
vote
0
answers
132
views
how to make a ComponentResourceManager image to be automatic for each custom component in C#
I'm Trying to make a ComponentResourceManager image to be automatic for each custom component in C# from the decompile library .
so previously I had to create a library but the source code was stored ...
0
votes
1
answer
130
views
How to assign an integer value to a Macro in trace32 cmm script?
I have written one file1.cmm file, in this file many
&BITPOS=21
is present.
For example,
&BITPOS=21 &BITPOS=22 &BITPOS=23
and so on present in file1.cmm
I debugged this issue and found ...
0
votes
0
answers
137
views
Store translations in DLL instead of RESX file in a C# .NET8 Forms application
I'm currently developing a C# .NET8 WinForms application that should be multilanguage as it will be deployed in multiple countries in Europe.
I've installed MAT (Multilanguage App Toolkit) Extension ...
1
vote
1
answer
75
views
Adding an embedded font to a datagridview
I want to put a custom font to a datagridview but it is not applied, it only applies to other elements such as labels.
I originally tried this and it worked as expected.
fontCollection.AddFontFile(&...
0
votes
1
answer
277
views
Use resource file from Gradle plugin
I'm currently developing a small shared plugin for few projects and the cleanest solution would be if I could read and process a resource file provided by the plugin. However, Java/Kotlin style this....
0
votes
1
answer
128
views
An error when reading resources in release mode
My program contains two text files with some data as resources in visual C++. They can be load and read as follows.
const char* resQ = NULL, *resA = NULL;
GetTextResource(IDR_TEXT2, resQ);
...
0
votes
0
answers
147
views
Embed font-files .ttf into an already existing Pdf in Java
I need to embed a .ttf-File into an existing Pdf in Java. Now I would prefer both Pdfbox and openpdf, but I am open to any suggestion.
The Java-webservice is to
open the Pdf,
then insert the .ttf
...
0
votes
1
answer
178
views
Learning how to implement secure boot on an embedded system
I would like to learn how to implement secure boot on a device. I have a raspberry pi 2, and 3. I can get any board if it is required.
I have been working with embedded systems and embedded linux.
...
0
votes
1
answer
28
views
Download Parallel Embedded Resource In Blazemeter
Not getting any option to download parallel embedded resource in blazemeter.
I am trying to do performance test and running my test in blazmeter for single uer and single iteration. The test required ...
1
vote
0
answers
69
views
EmbeddedResource does not update when ResXFileRef file changes
We have a embedded resource:
<EmbeddedResource Update="Resources\ResourceFile.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>...
0
votes
0
answers
766
views
FIREFOX: INSTAGRAM embed url on Object not working
I am getting https embed links from the api to showcase inside the Object element. In Chrome it works just fine.
For Firefox, the iframe doesn't load. It's blank.
I've checked the console and network ...
-2
votes
1
answer
202
views
Embedding an exe file into the application in C++
It maybe seems like a stupid question, but I couldn't find anything on the internet. I can't figure out how to embed an executable into the program. The goal is to only have one executable file after ...
0
votes
1
answer
272
views
Cannot compile RC file from Delphi (Error RC1107: invalid usage use RC /? for Help)
I created an empty project and added an RC file to the project via the Project Manager.
This will add the following line in my DPR file:
{$R 'VersionInfo.res' 'VersionInfo.rc'}
The project compiles, ...
0
votes
1
answer
252
views
Cannot find path specified when trying to add existing embedded resource in Visual Studio 2022
I have a C# Solution in Visual studio where one of the projects is the UI version of the software and the other project is the commandline version. Both versions require some xml definitions. I've ...
1
vote
1
answer
647
views
Add icon on a Golang program using webview/webview_go
I've been trying to add an icon to an executable generated by go build. Internally, this executable uses webview/webview_go.
I've used windres to generate the .syso file from the following .rc file
#...
2
votes
1
answer
573
views
How to access dfm resource at runtime (Delphi 11, 12)
How can a DFM resource of a form in a Delphi project be accessed in code at runtime?
Background: I want to be able to parse a form's DFM at runtime to create HTML and other representations of it on ...
2
votes
1
answer
160
views
Data pointer from LockResource() is not the expected VS_VERSION_INFO structure
I want to load the binary data of a VERSION resource from an external EXE file. This should be fairly simple:
var
hFile: HMODULE; // File=image to load
hR: HRSRC; // Resource handle
hG: ...
3
votes
1
answer
937
views
Why does Linux fail to map this PT_LOAD ELF segment?
I'm trying to embed arbitrary data into an ELF executable and have Linux map it in automatically at load time. Recently asked another question about this which culminated in support for this use case ...
2
votes
1
answer
574
views
How to read data embedded into the program's own ELF?
The objcopy tool makes it easy to embed arbitrary files into an ELF executable:
objcopy --add-section program.file1=file1.dat \
--add-section program.file2=file2.dat \
program program+...
1
vote
1
answer
141
views
Is this code from STM32 FATFS User manual (um1721 ) correct?
I am going through a codebase, that uses the FatFS library by Chan and probably developed using the CubeMX code generator. I can see the code given below there. It is also described in STM32 user ...
2
votes
2
answers
331
views
Should interrupts be disabled while communicating with external SPI flash?
I am using an external SPI flash with my STM32 MCU.
I am wondering Can the following scenario lead to data corruption in flash or in the read buffer?
If an ISR triggers at the same time, while the ...
1
vote
1
answer
199
views
MauiFont not imported in net7.0-windows10.0.19041.0 project
A .ttf file that is designated MauiFont resource seems to import automatically for an iOS or Android project. What would it take to import home.ttf manually in order to make Windows recognize the font?...
0
votes
1
answer
264
views
VC linker error - CVT1100 duplicate resource. type:MESSAGETABLE
I have been given a very old project with a series of DLLs and drivers which has not been built since 2012. I'm trying to bring it back to life but as a driver guy I'm really struggling with some of ...
0
votes
2
answers
237
views
C# .NET6 referencing embedded .ico file fails in debugging in VS [duplicate]
I have a valid multi-size .ico image file in the Resource directory of my VS C# .NET6 WPF project. This resource file is marked as Embedded resource to be included in the binary.
I try to explicitly ...
0
votes
1
answer
264
views
Blink LED on segger embedded studio
How can I blink 2 Leds at the same time i.e. one at 500ms and the other at 1sec exact time on nrf52840 using Seger embedded as ide.
I tried to delay it using the inbuilt delay function but it just ...
0
votes
1
answer
411
views
Identifier * has already been declared, script is an external script
I am in the process of creating an embed for instagram posts. However when using the script: https://www.instagram.com/embed.js I get the following errors in the browser:
Localhost Environment:
...
3
votes
1
answer
3k
views
How do I generate .Designer.cs files from resx files as part of dotnet build
.Designer.cs files are generated automatically by Visual Studio or Rider (and probably other IDEs), but it is not a part of build process. I want to generate these files as a part of build process ...
0
votes
0
answers
86
views
Why is my C# application searching for Resource.dll's?
I have a C# application (using the legacy .NET framework, not the new .NET Core).
It handles the AppDomain.CurrentDomain.AssemblyResolve event. When I debugged the application, I saw that the event ...
0
votes
0
answers
97
views
C# Locally stored leaderboard on embedded text file
I am trying to store a leaderboard locally for the game I am working on. To do this, I have added a text file to the resource folder inside my program. I am attempting to write to and read from this ...
0
votes
0
answers
222
views
Why is the first PlaySound call from memory delayed a lot in WinAPI?
I am trying to play a WAV resource with low latency.
If I load my audio into memory and then call PlaySound with SND_MEMORY, then there should be almost no delay, however, there is a huge delay of ...
1
vote
1
answer
1k
views
Referencing embedded resources in WebView2
I'm building an application and want to use HTML, CSS, & JS files as embedded resources but still load/reference them in a WebView2 component. Is there any good (and efficient) way to do this?
I'...
0
votes
1
answer
281
views
golang embed how to add a folder with pictures?
I have a code in which I directly specify the path to the folder via EMBED, but I know that you can somehow point to the folder and then just write the file name, but I don't know how to do it
...
0
votes
0
answers
387
views
packing image resource into nuget library and accessing it [duplicate]
I have a nuget package which contains some logos which should be accessible.
The logos are located in the Resources Folder:
[![enter image description here][1]][1]
The logos are set up as embedded ...
1
vote
2
answers
852
views
How to hide an embedded resource file from being shown in dotPeek or any other decompiler
I have a file with a password that I need to somehow hide. Is there a way to hide an embedded resource from a decompiler? If there isn't, what is the best practice to hide files from being decompiled? ...
0
votes
1
answer
768
views
Sharing Resources Between MAUI and WPF
I have been writing C#/WPF applications for years, but have started to experiment with some apps using MAUI.
Over time, I have gathered icons and other visual resources in to a class library which has ...
0
votes
1
answer
426
views
Changing ImageData using Open XML SDK
I use Open XML SDK to manipulate OOXML spreadsheets.
I need to change the data in a VmlDrawingsPart, specifically the ImageData. ImageData have an o:relid property which is the reference to the image/...
0
votes
2
answers
2k
views
How to load images from resources with GetManifestResourceStream?
How to load images from Resources, please? Some of my images are located inside a folder.
My image is saved as Resource (cf. Build Action). I don't use a .resx file.
I'm able to retrieve the list of ...
0
votes
1
answer
59
views
Is there a possibility to have embeded config only for specific configuration in .NET desktop application?
a desktop application (WPF, .NET 4.6.2) has lots of settings in app.config. The settings have different values for specific configurations: App.Debug.config and App.Release.config. QA engineers are ...
2
votes
0
answers
598
views
How to fix RuntimeException: Unable to start activity ComponentInfo due to Resources$NotFoundException: used for activityTheme on Android 11+ devices
We are getting a crash occurring only on Android 11 and lower devices.
stack trace -
Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{..SplashActivity}: android....
1
vote
1
answer
70
views
Link in resources
Looks like there are tons of webpages online and questions on SO, but I still can't get this to work after several hours of searching.
I'm cross-compiling from Linux to Windows by setting CC/CXX to ...
0
votes
0
answers
18
views
Replacing English sentences in program dialogues with Bulgarian translations results in text truncation
I have a very old program (written in the time of Windows XP in C++, I trust). I need to translate certain dialogues of the program from English to Bulgarian. In principle, this can be done via ...
2
votes
2
answers
423
views
Embedding Image as new ImagePart creates a .bin file using Open XML SDK
I am developing code using a spreadsheet input file, a MemoryStream, Open XML SDK and ImageMagick to:
Read stream of an embedded image file in a spreadsheet
Convert stream to TIFF file format
Embed ...