3,652 questions
0
votes
0
answers
27
views
why date wrapper goes top left of screen
The DateWrapper popover is appearing at the top-left side of the button. I've tried fixing it, but it's still not working. how to fix it?
<Box
sx={{
display: "flex",
...
4
votes
1
answer
208
views
Is Swig able to wrap nested structs when wrapping to produce python code?
The question is in the title. I try to wrap c++ code to python, which has nested structs (struct definitions inside another struct definition), and the inner struct doesn't appear in my python module (...
4
votes
1
answer
116
views
Error using ternary operator and method overloading of wrapper class in Java 8 only
I am using Java 8 and facing some weird error.
The compiler gives the following error:
error: reference to [method] is ambiguous
Here's my code
StringBuilder sb = new StringBuilder();
Stack<...
-2
votes
4
answers
121
views
Javascript wait-until-then wrapper function
There are already a few javascript wait until questions on stackoverflow.
But none of them address a wrapper function.
Could anyone provide wait until functionality and then wrap it in a function like:...
-1
votes
1
answer
579
views
How to Access Nested Wrapper Class in Flow Apex Action?
I'm working on an Apex Invocable Method that returns a wrapper class with nested wrapper objects. However, in Flow, I'm unable to access the inner wrapper fields properly.
Here’s a simplified version ...
1
vote
1
answer
84
views
Override property from wrapper class
I have a class A with a property prop and a method method that uses this property:
class A:
@property
def prop(self) -> int:
return 1
def method(self) -> int:
return ...
0
votes
1
answer
124
views
sending shell script arguments to C wrapper
I am trying to wrap a shell script so that it may be called from a Windows program inside Cygwin. Following up on a previous question, I thought it was enough to pass the arguments of the script to ...
0
votes
0
answers
25
views
JSW "Failed to connect to the Wrapper at port 32001." on the docker container
THis is regarding Java Service Wrapper version 3.2.3 when attempting to start the service using JSW and seeing this
WrapperManager class initialized by thread: main Using classloader: jdk.internal....
0
votes
0
answers
12
views
How I can split a cell which contains a text to different rows whithout loosing whole sheet format?
enter image description here image from a part of my spread sheet.
how can I divide rows number 35-37 to a single row like 34. In the image for example names and numbers are in wrapped text format but ...
1
vote
1
answer
170
views
How to make callbacks from C code to Tcl that returns data to C
I faced with the issue - I have C code of optimization library, and it accepts pointer to function as one of the argument. So, previously I used SWIG to generate Tcl wrapper of for C functions, but in ...
0
votes
1
answer
91
views
C++/CLI Several Memory error on cpp header file wrapper
I'm trying to create a C++/CLI wrapper of a cpp header file.
I have only access to the header files and to the .lib files.
This is the original IRCalibrationManager.h file that I'm trying to wrap:
#...
2
votes
1
answer
357
views
Is there any easy way to Integrate angular component into react [closed]
Is there any easy way to Integrate angular component into react without using react-ang?
Focusing on performance.
Used react-ang, which allows you to use Angular components in React.
Used the Wrapper ...
1
vote
0
answers
79
views
Blazor Server SignalR HubConnection wrapper doesn't SendAsync to Hub function
I was using HubConnection in my component in order to user real-time fucntionnality. But I would like to test my component so then I wrapper my HubConnection like this:
public class ...
1
vote
1
answer
45
views
Allow current location access via my React Native App
I have react native app that displays a responsive website. We have a wrapper built around the app to display this responsive website.
Now the problem is that in the website we have enabled current ...
1
vote
2
answers
125
views
wrapping ctypes.Structure inside a class
I want to be able to pass a structure to some c-code and am using ctypes.structure. I have a simple working example that takes an input array and squares the elements and outputs as an array. However, ...
1
vote
1
answer
148
views
Issue with overriding glibc malloc using --wrap option in statically linked application after glibc upgrade
After upgrading to the latest glibc, I noticed that malloc_hooks is deprecated, so I am trying to override certain glibc functions with user-defined ones using the --wrap symbol. For instance, I'm ...
2
votes
1
answer
152
views
std::print() wrapper with altered format
I try to create a std::print() wrapper with a modified format (e.g. add something before and after the original format).
I can achieve this using a macro:
#define DECORATED_PRINT(fmt, ...) std::...
0
votes
1
answer
90
views
simple example to pass a+b to a dll in C++and get the dll to ceturn c?
I am trying to create a wrapper dll. So far I made one .dll that sums a and b. Then I used the tutorial here
https://www.nerdthings.dev/2020/08/06/understanding-loadlibrary, but did not get anywhere. ...
1
vote
0
answers
212
views
Dotnet wrapper for google/jpegli
I want to create a wrapper in C# for google/jpegli.
I’m having trouble figuring out how to build the project to eventually get a DLL for creating the wrapper. I followed this guide: https://github.com/...
1
vote
1
answer
47
views
Linux gcc wrap option: issue in linked library
Good morning,
I have the following situation:
I have a library middleware.so that provide a wrapper for a external library boughtLib.so
makefile of middleware.so link dynamic library boughtLib.so and ...
2
votes
2
answers
98
views
Python exception stack trace not full when function is wrapped
I have two files t.py:
import functools
import traceback
def wrapper(func):
@functools.wraps(func)
def wrapped(*args, **kwargs):
try:
return func(*args, **kwargs)
...
2
votes
1
answer
481
views
Is it possible to wrap (replace) a registered service with my own but still keep the old instance?
Assuming I have this service registration:
services.AddScoped<IFoo, Foo>();
I know you can "Replace service registration in ASP.NET Core built-in DI container?" but is it possible to ...
0
votes
1
answer
104
views
GDAL Exception when using in AutoCAD .Net Plugin
I have installed GDAL and GDAL.Native v3.9.1 packages. Console applications work well, but when I use it in AutoCAD Class Library project, it always raises the exception:
The type initializer for '...
0
votes
0
answers
43
views
As a wrapper object in JavaScript, why can not use 'new' to create a BigInt in JavasScript? [duplicate]
There are 5 wrapper objects in JavaScript: Number, BigInt, String, Boolean, and Symbol.You can use 'new' to create a Number, String, Boolean, Symbol. But you can not use 'new' to create a BigInt. what ...
1
vote
2
answers
101
views
Common check for two functions which prevents calling functions from executing further
Let's say we have two functions which first do some parameter checking. They return early if the checks are not met. Then they do stuff. Quite simple:
function funcA (inputParam) {
if(!inputParam....
-1
votes
1
answer
140
views
C# proper (and easy) implementation for changing `using` statements?
I've recently stubled across a seemingly very simple problem I can't wrap my head around:
I am currently building a simple tool to access some USB Oscilloscopes. Language Version is C#7.3
Following ...
-1
votes
2
answers
94
views
Is it possible to implement a recursive POD wrapper in C++?
I have a class to wrap POD struct types, but I'm having trouble when a POD struct has another POD inside, because my wrapper class only stores the POD as it is, using composition.
#include <utility&...
1
vote
1
answer
65
views
How do I override auto formats in {tern} functions?
Considering {tern} and {rtables} package formatting functions, can you override auto formats in {tern} functions like count_patients_with_flags?
For example:
library(rtables)
library(tern)
library(...
1
vote
1
answer
194
views
C wrapper to iterate a C++ map
I am building a module in C++ which will also be used by some C code.
The C++ module makes use of std::map to manage some objects.
I would like to write a C wrapper to return some info about the ...
0
votes
0
answers
75
views
Maven wrapper command(mvnw.cmd) failure
At DOS CMD prompt, I ran 'mvnw.cmd' as shown below.
However, I had a hard to interpret error - my partial Window user home directory pathname is being treated as a command.
That is, my home directory ...
0
votes
1
answer
187
views
Encapsulate third-party Service Provider Interface
I am trying to encapsulate a third-party library by writing a wrapper over it and using only required APIs as per my need.
To achieve this, I have created this wrapper project as a standalone project ...
0
votes
1
answer
206
views
Getting size of a C++ class in a C application at compile time
In summary, I have written a C++ library and am now making a C wrapper to let C programmer use my lib.
I am able to get it to work by using raw pointers. Here's what I do.
// some_class.hpp
namespace ...
1
vote
1
answer
241
views
Connecting to azure iot hub from client side react app within an iOS wrapper
We are attempting to connect a vite react web app to an azure iot hub.
We'd like to use a .pem, and .key file to register the device with gobal.azure-devices-provisioning.net as shown in their github ...
1
vote
3
answers
231
views
How does one access the arguments of a function call when this function can not be rewritten due to its unknown implementation?
I have a function-returning function. The inner function makes use of the parent function's argument in its body. Then I make a list of functions produced by calling the parent function with different ...
0
votes
1
answer
84
views
Sort by name in an alphabetical order when returning in wrapper class
.
@AuraEnabled(cacheable=true)
public static list<ProgramBrandTotalAmount> ReportWithTotalBrandOrder(string programId)
{
list<Program_Item__c> programBrandList ...
0
votes
0
answers
190
views
symbol not found in flat namespace '_GOMP_loop_end_nowait' when importing Python wrapper made with Cython (MacOS)
I'm working on a C++ code that makes use of openmp on MacOS. The code normally gets compiled with a makefile, and the resulting binary accepts some arguments in input and outputs arrays as files. ...
2
votes
1
answer
130
views
File size overhead reduction of C++ wrapping by Cythonization
I have the following minimal example of summing an array (taken from here):
#lib.cpp
template<typename T>
T arr_sum(T *arr, int size)
{
T temp=0;
for (int i=0; i != size; ++i){
...
-1
votes
1
answer
123
views
Using an array of length 2 or using an object to wrap two floats for high efficiency?
I am writing an app that requires high efficiency. It's an app that deals constantly with floats.
I've been told to avoid constants (static final fields).
So basically I have a method like this one:
...
0
votes
1
answer
44
views
Cython interfaces for two libraries sharing an interface for a third library
My project involves 3 dlls for each of which I am building python interfaces. Let's call them aux, libA and libB. The idea is that aux defines a python object (which I will call Point that is used by ...
1
vote
1
answer
133
views
simple pybind11 wrapper in Yocto
I can build example.so and put it into /usr/lib in Yocto dunfell after I read https://github.com/pybind/pybind11/issues/1330.
This is example.cpp that includes pybind11 wrapper
#include <pybind11/...
0
votes
1
answer
138
views
workaround for wrapping C++ tuples in cython - a more explicit answer please
I need a cython wrapper for a tuple consisting of three elements all of the same type.
Now I know that this isn't directly supported by cython but that there is a workaround that is "explained&...
0
votes
0
answers
58
views
Multi level project reference using dll
Adding multi level project reference(Project1 referenced in Project2 & Project2 is reference in Project3) allows accessing the methods/namespace of level1(i.e. Project1) in level3(i.e.Project3).
...
-1
votes
1
answer
51
views
VTK MouseEvents example not working with Java wrappers
After rewriting the VTK example 'MouseEvents' (https://examples.vtk.org/site/Cxx/Interaction/MouseEvents/) in Java,
import vtk.vtkActor;
import vtk.vtkInteractorStyleTrackballCamera;
import vtk....
0
votes
0
answers
72
views
How do I access a variable that's using the @Query wrapper in other views?
I'm brand new to swift, and I've been learning how to use SwiftData at a basic level. I have an array of Item objects called "items" that is using the @Query wrapper so that it updates ...
0
votes
0
answers
108
views
How to make wrapper's constructors copy paste the underlying type's constructors?
I am writing a class stalker<Obj> that holds inside a variable of type Obj. I want stalker<Obj> to pretend that it is the same as Obj (from the user's perspective). Thus, I expect that ...
1
vote
2
answers
93
views
primitive types can't convert to Wrapper for an ArrayList
I've been trying to learn how to use ArrayLists, however when I try to add primitive type values they don't convert to wrapper types in this machine.
import java.util.ArrayList;
import java.util....
2
votes
1
answer
215
views
How can Mockito.spy() return the same type while adding spying behavior?
I suspected the Mockito.spy() returns a wrapper around the copy of the parameter object, and the type of this wrapper is a generated sub type of the wrapped object. Then the spying functionality could ...
-1
votes
1
answer
136
views
Proper way to marshal char* to string using C# interoperability. Get "a heap has been corrupted" exception
not a lot of experience in C++. Attempting to Marshal char* in C to string in C#, using [MarshalAs(UnmanagedType.LPStr)], but I get a "a heap has been corrupted" exception. It does however ...
1
vote
1
answer
332
views
How to use a c++ class as wrapper for timer-interrupts on RP2040 (RPPico)
I want to write a C++ wrapper class which can be used to handle multiple timer interrupts in parallel.
For one interrupt at a time i have a working solution similar to this one: Use lambda function as ...
-3
votes
1
answer
135
views
How to automate wrapping C library into C++ [closed]
LVGL library looks very promising as an alternative to Qt (C++), but it's C based.
Is there a way to automate wrapping it into a C++ modern interface or at least with minimum modification each new ...