A
A
Explore posts from servers
CC#
Created by A on 6/1/2024 in #help
MSBuild For c# project with c++ dlls
Bump
2 replies
CC#
Created by A on 5/31/2024 in #help
Unknown Access Violation Error
using RenderMsdfCallback = void(__stdcall *)(void * data,uint32_t width,uint32_t height,uint32_t size);
EXPORT void msdfRenderContext(GlyphContext * context,RenderMsdfCallback callback);
using RenderMsdfCallback = void(__stdcall *)(void * data,uint32_t width,uint32_t height,uint32_t size);
EXPORT void msdfRenderContext(GlyphContext * context,RenderMsdfCallback callback);
19 replies
CC#
Created by A on 5/31/2024 in #help
Unknown Access Violation Error
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate void NativeGenerateDelegate(IntPtr data, uint width, uint height, uint byteSize);

[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfRenderContext",CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeRender(IntPtr context,
[MarshalAs(UnmanagedType.FunctionPtr)] NativeGenerateDelegate onRendered);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate void NativeGenerateDelegate(IntPtr data, uint width, uint height, uint byteSize);

[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfRenderContext",CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeRender(IntPtr context,
[MarshalAs(UnmanagedType.FunctionPtr)] NativeGenerateDelegate onRendered);
19 replies
CC#
Created by A on 5/31/2024 in #help
Unknown Access Violation Error
No description
19 replies
CC#
Created by A on 5/31/2024 in #help
Unknown Access Violation Error
it's like I am being punished
19 replies
CC#
Created by A on 5/31/2024 in #help
Unknown Access Violation Error
now one of the dll functions are not being exported
19 replies
CC#
Created by A on 5/31/2024 in #help
Unknown Access Violation Error
How did I not notice the name
19 replies
CC#
Created by A on 5/31/2024 in #help
Unknown Access Violation Error
Omfg
19 replies
CC#
Created by A on 5/31/2024 in #help
Unknown Access Violation Error
Omg
19 replies
CC#
Created by A on 5/31/2024 in #help
Unknown Access Violation Error
same error at the same place
19 replies
CC#
Created by A on 5/31/2024 in #help
Unknown Access Violation Error
no dice with stdcall
19 replies
CC#
Created by A on 5/31/2024 in #help
Unknown Access Violation Error
and the program runs if I dont call any of these i.e. no other errors
19 replies
CC#
Created by A on 5/31/2024 in #help
Unknown Access Violation Error
all the ones for this specific dll is in this file
[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfRenderContext",CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr NativeNewContext();

[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfRenderContext",CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeFreeContext(IntPtr context);

[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfGlyphContextMoveTo", CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeMoveTo(IntPtr context, ref Vector2<float> to);

[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfGlyphContextQuadraticBezierTo",
CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeQuadraticBezierTo(IntPtr context, ref Vector2<float> control,
ref Vector2<float> to);

[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfGlyphContextCubicBezierTo",
CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeCubicBezierTo(IntPtr context, ref Vector2<float> control1,
ref Vector2<float> control2,
ref Vector2<float> to);

[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfGlyphContextLineTo", CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeLineTo(IntPtr context, ref Vector2<float> to);

[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfRenderContext",CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeEnd(IntPtr context);

[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfRenderContext",CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeRender(IntPtr context,
[MarshalAs(UnmanagedType.FunctionPtr)] NativeGenerateDelegate onRendered);
[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfRenderContext",CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr NativeNewContext();

[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfRenderContext",CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeFreeContext(IntPtr context);

[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfGlyphContextMoveTo", CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeMoveTo(IntPtr context, ref Vector2<float> to);

[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfGlyphContextQuadraticBezierTo",
CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeQuadraticBezierTo(IntPtr context, ref Vector2<float> control,
ref Vector2<float> to);

[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfGlyphContextCubicBezierTo",
CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeCubicBezierTo(IntPtr context, ref Vector2<float> control1,
ref Vector2<float> control2,
ref Vector2<float> to);

[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfGlyphContextLineTo", CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeLineTo(IntPtr context, ref Vector2<float> to);

[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfRenderContext",CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeEnd(IntPtr context);

[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfRenderContext",CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeRender(IntPtr context,
[MarshalAs(UnmanagedType.FunctionPtr)] NativeGenerateDelegate onRendered);
19 replies
CC#
Created by A on 5/31/2024 in #help
Unknown Access Violation Error
I have other pinvokes but they are for other dlls
19 replies