interop Questions
1
Solved
Under normal circumstances, creating a shared handle in DX using CreateSharedHandle, then using glImportMemoryWin32HandleEXT in OpenGL should allow sharing. I tried rendering a triangle in DX and d...
7
Solved
Every few months I find myself needing to call Win32 from C#. Though I've done it a dozen times, I've usually forgotten the exact machinations, so I poke around the web or old code and figure out w...
9
Solved
(Somewhat of a follow on from the post (which remains unanswered): https://stackoverflow.com/q/6197829/314661)
Using the following code
Application app = new Application();
_Document doc = app.Do...
Savill asked 21/7, 2011 at 14:11
4
Solved
4
Solved
When setting cookies, PHP url-encodes the cookie value (at least when not using setrawcookie) and it url-decodes the cookie value before making it available to the application in $_COOKIE.
Is this...
7
Solved
I have a disk partition (format: NTFS) shared by Windows and Linux. It contains a git repository (about 6.7 GB).
If I only use Windows or only use Linux to manipulate the git repository everything ...
31
Solved
I'm trying to make a basic Windows application that builds a string out of user input and then adds it to the clipboard. How do I copy a string to the clipboard using Python?
4
When I Tried to return an Array in VFP9 language COM/DLL to my .NET C# project
I receive a System.Object[*] array and I can not cast to System.Object[] (Without asterisk).
Twice asked 16/9, 2010 at 22:20
15
Solved
I have written a C# code in console application to open two excels and copy and paste data from one excel to another excel. It was working fine until the destination excel's visibility was true. Bu...
Cosimo asked 11/12, 2013 at 8:51
10
Solved
I'm building a .NET 3.5 application and have the need to evaluate JS code on the server - basically a user provided rule set that can work within a browser or on the server. Managed JS is not an op...
Glossology asked 10/12, 2008 at 17:47
10
I am trying to convert a .xls file to an .xlsx file on the server-side using Microsoft.Office.Interop.Excel.Workbook class as follows:
workBook.SaveAs("FILENAME_HERE", XlFileFormat.xlOpenXMLWorkb...
Yellowgreen asked 27/2, 2014 at 7:52
6
Solved
I made a WPF/C# program and I am using the internet control for WYSIWYG HTML editing.
it is a regular Executable program.
it works on most computers however some computers are giving me the follo...
6
Solved
I got the sources of a .NET project that I am trying to compile. Although, the project uses the reference (namespace) Microsoft.Office.Interop.Word from Office 2010 that I cannot find anywhere.
I w...
5
Anyone can share a working example on how to call a simple C# library (actually its WPF) from python code? (I have tried using IronPython and had too much trouble with unsupported CPython library m...
Deforce asked 9/9, 2011 at 22:10
11
Solved
I'm working on an application which walks through every file in some directories and does some actions with those files. Among others, I must retrieve the file size and the date when this file was ...
5
Solved
I was trying to run my application on my Android device using Android Studio, it runs fine otherwise but in this case some data was being deleted from my mobile phone and while that process wasn't ...
Cornish asked 4/9, 2018 at 13:20
7
Solved
I want to convert an excel file to an image (every format is ok) programmatically (c#). Currently I'm using Microsoft Interop Libraries & Office 2007, but it does not support saving to an image...
19
Solved
I am getting "HRESULT: 0x800A03EC" error when running Excel add-in with following code:
Excel.Range rng = ActiveSheet.Cells[x, y] as Excel.Range;
string before = rng.Value2;
string cleanV = Syst...
13
Solved
I heard some people program in multiple languages in one project. I can't imagine how the languages interact with each other.
I mean there is no Java method like
myProgram.callCfunction(paramete...
Conglomeration asked 11/3, 2009 at 23:57
4
I need to pass a collection of key/value pairs of strings from VB6 to .NET. In VB6 code they exist in a native collection. But I am not sure what I can reference in my .NET project to be able to ac...
Superincumbent asked 27/3, 2013 at 0:3
2
In C++ you can use __declspec( align( # ) ) declarator to control the alignment of user-defined data. How can do this for C#. I have two procedures written on Assembler in my dll. Arguments for pro...
12
Solved
This is probably trivial, but I can't think of a better way to do it. I have a COM object that returns a variant which becomes an object in C#. The only way I can get this into an int is
int test...
2
Solved
I have a javascript event called Hello:
addEventListener('hello', function () {
alert("event listener");
})
and, in another javascript function, I raise the event:
let event = new Event...
Froze asked 18/5, 2021 at 22:26
2
Solved
As far as I can see, this is not a duplicate question, as the question here is about why the accepted answers of seemingly duplicate questions, do not solve my issue in what appears to be the same ...
Parturition asked 5/12, 2022 at 1:23
3
I have two structs with arrays of bytes and booleans:
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Pack = 4)]
struct struct1
{
[MarshalAs(UnmanagedType.ByValArray, ...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.