I have a Excel addin written in C# 2.0 in which I am experiencing a strange behavior.Please note that this behavior is only seen in Excel 2003 and NOT in Excel 2007 or 2010.
Issue:
When the user clicks an import command button, a file is read and a number of Shapes are created/added to the worksheet using Worksheet::Shapes::AddPicture(...
I don't know if I have done anything wrong, but when I try to write code there are no intellisense popups indicating options or errors.
I am creating a CLR/CLI type of project with Microsoft's Visual C++ 2010.
...
I have a loop that takes file name from a listbox, performs a system() call, then moves that filename to another listbox. Problem is, it doesn't move the filenames over one at a time, but waits until the entire loop is finished and moves them all at once. What would I do to get it to perform how I want it to?
the loop:
for each( String...
Continuing from this question
With each system call, the function constructs a set of parameters and sends them off to another program that is just console-based. Is there a way I can make it so that no console window pops up for each call?
I've done a search but the ones that aren't a linker issue just aren't working for me. For insta...
My assumption was always that the CLR loaded all of the DLLs it needed on startup of the app domain. However, I've written an example that makes me question this assumption. I start up my application and check to see how many modules are loaded.
Process[] ObjModulesList;
ProcessModuleCollection ObjModulesOrig;
//Get all modules inside...
how can i modify memory loaded methods in given assembly so that clr when instantiates new objects for some class it makes new objects with modified code in it?
...
I have some set of assemblies. I have disassemble those assemblies using the ISDASM.exe and change the namespace in the IL code and again compile those IL code using the ISASM.exe to get the assemblies without any error.
Here my question is after disassemble and assemble those assemblies product version, File version and the copyright i...
Every now and again I find myself doing something moderately dumb that results in my program allocating all the memory it can get and then some.
This kind of thing used to cause the program to die fairly quickly with an "out of memory" error, but these days Windows will go out of its way to give this non-existent memory to the applicati...
I typically use the site http://www.pinvoke.net/ to grab a DllImport declaration whenever I need to call a Win32 API, and I've noticed it's the de facto standard response on Stack Overflow to API interop questions.
Is this what "everyone" does? Is there a better way? Does Microsoft offer an alternative? e.g. a tool that reads .h files a...
Hi. I'm building an app that uses and scanner API and a image to other format converter. I have a method (actually a click event) that do this:
private void ButtonScanAndParse_Click(object sender, EventArgs e)
{
short scan_result = scanner_api.Scan();
if (scan_result == 1)
parse_api.Parse(); // This will check for...
Hi all,
Could someone explain me in depth how the system loads an .NET assembly.
I mean :
what dlls are used : I supposed first mscoree.dll, next mscorwks.dll and mscorjit.dll
what methods in these dlls ?
Thanks a lot !
...
Are normal operations like:
DELETE From Product where ProductId = x faster in CLR then normal MS SQL 2005 Server Stored Procedures?
...
Hi!
I am received the following error while trying to implement a C# extension function in XSLT.
Extension function parameters or return values which have CLR type 'Char[]' are not supported.**
code:
<xsl:variable name="stringList">
<xsl:value-of select="extension:GetList('AAA BBB CCC', ' ')"/>
</xsl:variable>
<msxsl:script l...
Update: I've filed a bug report on Microsoft Connect: https://connect.microsoft.com/VisualStudio/feedback/details/568271/debugger-halting-on-exception-thrown-inside-methodinfo-invoke#details
If you can reproduce this problem on your machine, please upvote the bug so it can be fixed!
Ok I've done some testing and I've reduced the prob...
When a method is defined with an out parameter, why do I have to specify the out keyword when calling it. Its already there in the method definition, and the runtime should know that any parameter passed will be an out parameter.
It would make sense if the compiler will accept the argument with or without out keyword, with different sem...
In the CLR (the runtime used by C#, VB.NET, etc.) there's a way of registering a callback to be called when an unhandled exception is thrown.
Is there anything similar in Java?
I'm guessing it would presumably be some API to which you'd pass an object that implements some interface with a single method. When an exception is thrown and ...
Can anyone suggest any books or websites which go into detail about how the CLR works? I've been trying to learn more about the detail of how my applications execute, but have found a relatively small number of resources.
There are a few great blog posts on MSDN, such as this one about object lifecyles. I've also recently bought Jeffrey...
Hello,
I have a big and bloated software and I want to add a new GUI element to it. The GUI element was written using XAML and WPF. I created the UI element in a separate assembly, and reference it in the big software. The two projects compiled smoothly under VS2010, but when I run my application I get a TypeLoadException.
Looking into...
Why GetHashCode is part of the Object class? Only small part of the objects of the classes are used as keys in hash tables. Wouldn't it be better to have a separate interface which must be implemented when we want objects of the class to serve as keys in hash table.
There must be a reason that MS team decided to include this method in O...
im having a bit of problems using any decent C# interface with my F# types
so given i have the following C# interface in one project...
//C#
namespace FunctionalInterfacing
{
public interface IFoo
{
string Bar(string a, string b);
}
}
and now i want to write a type in F# that implemented that..
#lig...