all groups > dotnet interop > october 2006 > threads for october 8 - 14, 2006
Filter by week: 1 2 3 4 5
Loading 16 bits dll (ICL icon library file)
Posted by MsNews at 10/14/2006 3:50:18 PM
Hi,
I'm creating a free Icon library in C# with source code include, it already
support .ico/.dll../exe and I'd like to support .ICL format too, I need to
load a file .ICL (Icon Library) that basically it is a 16-bit dll and then
after that I can extracts and insert icons inside.
I tried... more >>
PWSTR exposing to from unmanaged code to Interop question...
Posted by Michael at 10/13/2006 4:20:16 PM
Hi all..
I'm trying to pass a string value back from unmanaged code that I'm writing
back thru interop to C# and I'm failing somewhere.
Everything compiles and runs w/o errors. It's just that the out parameter
that I'm initializing in unmanaged code doesn't persist to its C# caller.
Basic... more >>
How to call this C function from VB.NET
Posted by nojetlag at 10/13/2006 7:27:58 AM
I have a C function that looks like that
VOID Get_RN_Info ( PRN_RESULT pRN_Result)
the structure for pRN_Result looks like this
typedef struct {
BYTE HexResult [8];
BYTE HexStatus [4];
BYTE HexLength [4];
BYTE HexCharSet [2];
} RN_RESULT;
How would I call this from VB.NET, can any... more >>
Set Text on Textbox w/o changing cursor pos
Posted by WALDO at 10/11/2006 8:53:29 PM
I have a .Net TextBox (TextBoxBase, really) in which I am appending about 20
lines of text per second. I use the AppendText() method to accomplish this.
This is a great substitute for taking the Text property and concatenating
it...
Me.tb.Text &= newText
' Instead use
Me.tb.AppendText(new... more >>
unmanaged DLL difference between .NET 2.0 and previous ...
Posted by bill at 10/11/2006 1:25:45 PM
All,
I use to be able to call an unmanaged DLL (written in C/C++) thusly:
[DllImport("D:\\TEES\\test")]
extern "C" int TestSomething(char* TestDescriptionFile);
Granted this is managed C++ syntax, but I cannot figure out how to do
this from C#.
Some documentation says the following... more >>
Calling a C legacy function with FILETIME* as parameter
Posted by fabrizio.viggiani NO[at]SPAM gmail.com at 10/11/2006 7:47:23 AM
I have a dll that exports the following entry point:
STDAPI FileSetDate(HANDLE hFile, FILETIME* pft);
I need to call this function from C#.
I define the function as follows:
[DllImport("Some.dll")]
public static extern int FileSetDate(IntPtr handle, ref
System.Runtime.InteropServices.Com... more >>
Problem in using C# dll in Vc++ project
Posted by ashukasama NO[at]SPAM rediffmail.com at 10/11/2006 7:11:35 AM
Hello All,
I have a dll created in c# visual studio 2005. i wanted to use this dll
in vc++ project created in visual studio 2003. I am doing following
steps for using the dll developed in 2005:
1. Exporting dll to tlb using tlbexp command provided by visual studio
2005.
2. Adding reference o... more >>
howto get all public sub's from a xla-file
Posted by rfw68 at 10/11/2006 4:45:02 AM
Hello,
I open a xla file with the following code snippet, where xlApp is an
Excel.Application object:
wba = xlApp.Workbooks.Open("C:\Auto.xla"),
opt, false, opt, opt, opt, opt, opt, opt, opt, opt, opt, opt);
What I want to know now is, how to get all public sub’s (procedures... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Version independent word automation
Posted by henning.friese NO[at]SPAM gmx.de at 10/11/2006 1:32:45 AM
Hello NG,
I'm looking for a way to print a word doc through word automation. The
printing functionality should be independent from the installed word
version (though I can assume that version is >= 2000). If I use the
office-interop assemblies that come with office 2003 my program won't
work ... more >>
Casting problem : COMImport interfaces in different assemblies
Posted by Bob S at 10/10/2006 12:00:00 AM
A class in assembly A implements a COM interface as follows :
[ComImport, Guid("CEF04FDF-FE72-11d2-87A5-00C04F6837CF"),
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
internal interface IMyInterface
{
[PreserveSig]
int MyMethod();
}
class MyClass : IMyInterface
{
int MyMethod()
... more >>
interop with Excel2000, XP, 2003
Posted by rfw68 at 10/9/2006 1:39:02 PM
Hello,
1. Is there a possibillity to interop with Excel 2000?
All I found is the assembly for Excel XP and Excel 2003!
2. How to make a single application (exe) working with Excel 2000, XP and
2003 depending on what the customer has installed?
3. How to prevent the Application (exe) to c... more >>
run macro from XLSTART
Posted by rfw68 at 10/9/2006 1:32:02 PM
Hello,
I want to create an excel sheet, put some data in and then call a standard
macro which will be (normally) loaded from the XLSTART folder (as an .xla
File).
But when I create the Excel Application with
new Microsoft.Office.Interop.Excel.Application()
it seems to be in a different s... more >>
Using DLL Import - Unamanaged C++ within C# Sharp ASP.NET
Posted by NCW Support at 10/9/2006 12:00:00 AM
Hi,
I have a dll which has been written in unmanaged C++. I successfully called
the method I need from the dll in a ASP.NET application (C#) when I run it
on my development machine (Win XP, VS .NET 2K5).
When I transfered the web site to our production server (Win 2K3
Enterprise), a dll ... more >>
|