Linked Questions

0 votes
0 answers
68 views

Background: I'm making a C# application to copy a range of cells into a bitmap image for reporting. All of my users have excel installed on their computer so the Excel COM interop is an easy way to ...
KennyTK's user avatar
128 votes
6 answers
34k views

What does an lambda expression like _=> expr mean? What is the purpose of _ as input to lambda? Example: int count = 0; list.ForEach(_ => count += 1);
Prasad's user avatar
  • 1,367
76 votes
4 answers
128k views

I need to get information about applied CSS styles in HTML page. I used AxWebBrowser and iterate IHTMLDOMNode. I'm able to get all the data I need and move the code into my application. The problem is ...
martin.malek's user avatar
  • 2,248
32 votes
5 answers
38k views

I am creating an automated test running application. In this part of the application, I am working on a polling server. It works by constantly polling the web server to determine when a new ...
KallDrexx's user avatar
  • 28k
14 votes
3 answers
5k views

Although there are many questions about COM and STA/MTA (e.g. here), most of them talk about applications which have a UI. I, however, have the following setup: A console application, which is by ...
bavaza's user avatar
  • 11.1k
20 votes
3 answers
6k views

When a COM object is instantiated on an STA thread, the thread usually has to implement a message pump in order to marshal calls to and fro other threads (see here). One can either pump messages ...
bavaza's user avatar
  • 11.1k
4 votes
3 answers
5k views

I have a proprietary COM library that returns an array of integers (in their own proprietary format of course). When I access this array from the main UI thread, all is well and runs quickly. When I ...
user12861's user avatar
  • 2,446
4 votes
1 answer
3k views

While looking for a memoryleak in a vb.net WebService, I detected that finalizers where blocked, and so several objects where never released (e.g. System.Threading.ReaderWriterLock) Google told me ...
DanielG's user avatar
  • 1,257
5 votes
1 answer
5k views

I am working an SDK for a DSLR camera which has the following instructions: Notes on Developing Windows Applications When creating applications that run under Windows, a COM initialization is ...
Raheel Khan's user avatar
  • 14.8k
4 votes
3 answers
2k views

MCIERR_INTERNALI am trying to make a simple Media player inside an app, but I've noticed that my code WILL NOT play music unless the file is a low bitrate around 192kbps or less. The issue is that ...
Medic3000's user avatar
  • 796
1 vote
2 answers
2k views

I've created a new WebBrowser() control in a new Thread(). The problem I'm having, is that when invoking a delegate for my WebBrowser from the Main Thread, the call is occurring on the Main Thread. ...
Ryan Griffith's user avatar
2 votes
4 answers
907 views

We have a program that can run as a service or as a winforms app. We do different behaviour based on command line parameters passed in. If we are running as a form, I think we want our entry point ...
Derek's user avatar
  • 9,083
5 votes
1 answer
3k views

I'm getting very confused about whether C# marshal's COM objects between threads. To this end I have an application which is loading a set of files in a task parallel fashion. I'm using the ...
Goz's user avatar
  • 62.5k
2 votes
1 answer
4k views

So as the title suggests, I'm trying to use WebBrowser control in a class library. I've gone through several SO questions like this excellent post, but the unique thing in my situation is that the ...
dotNET's user avatar
  • 35.7k
0 votes
1 answer
2k views

I'm using .Net 6 and the PInvoke nuget package to access the Win32 API and I'm creating a Win32 window in the following way: IntPtr windowHandle = User32.CreateWindowEx(User32.WindowStylesEx....
FluffyBike's user avatar
  • 2,801

15 30 50 per page
1
2 3 4 5 6