I’m about to call a function in a native windows dll from my managed C# dll project. I want the function to return some kind of string (char*) so I get it as a System.String in my mandaged dll.
How can I do that? I’ve tried to add CLR support on my native dll but for different reasons it can’t...
I’m struggling with a thread that should update a TreeView. I’ve started to use the Control.Invoke method when for e.g. adding nodes and so on.
I now wonder how I “Invoke” a property.
(I got the “Cross-thread exeption…” when I try to set the TreeView.ImageIndex property)
I’ve created a Spash-form that shows and hides while my main form initializes. When I closes the splash-form my main window is paced behind other applications in Windows.
How can I force my application form to be the “on top application”?
I’ve tried all these functions:
this.Activate()...
I have a program that reads Microsoft Project 2003 XML-files
Now I'm in need to read in mpd-files as well.
Any tip on how I can do that? A simple tool/service for converiting mpd to xml would be great!
object obj = new object();
temp.Add(known, ref (object)(new Nullable<object>(obj)));
----------------------------------------------------
Error 1 The type 'object' must be a non-nullable value type in order to use it as parameter 'T' in the generic type or method...
I’m coding in C# and I am working with a COM object that I earlier in C++ made this call:
COleVariant varBeforeEnd(DISP_E_MEMBERNOTFOUND, VT_ERROR);
hresult = pTemp->Add(knownObject, &varBeforeEnd );
How do I make the call in C#?
The IDE in VisualStudio say that the Add(…) function should...
I’m about to create an options dialog that will be opened from my windows application main Forms menu.
I have many different “modules” in the application which each of them need to have an own options dialog. For sure this is a common situation.
I need some kind of “pattern” to create an...
Where can I find the typed dataset for MS Project XML files?
Iv’e tried to create my own but when trying to read an MS Project XML-file like this:
MSProjectDataSet dataset = new MSProjectDataSet();
dataset.ReadXML(“savedXMLfileFromProject.xml”);
I get different exceptions.
All tips in this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.