all groups > dotnet interop > august 2003 > threads for august 22 - 28, 2003
Filter by week: 1 2 3 4 5
CCW and method parameters being classes?????
Posted by José Joye at 8/28/2003 5:31:11 PM
Hello,
I'm having a problem with CCW and method parameters. Some of the parameters
are classes.
It seems that these classes (or at least the properties inside the class)
are not seen from my VB client
Do I have to declare an interface for these classes (eg. TransModes)? If
yes, does anyone k... more >>
PInvoke and GetPrivateProfileString
Posted by Daniel F. Devine at 8/28/2003 2:52:21 PM
Hi -
The following snippet of code:
class Class1
{
[DllImport("kernel32")]
public static extern ulong
GetPrivateProfileString([MarshalAs(UnmanagedType.LPStr)]string app,
[MarshalAs(UnmanagedType.LPStr)]string key,
[MarshalAs(UnmanagedType.LPStr)]string def,
StringBuilder r... more >>
GetObject and C#
Posted by Magne Ryholt at 8/28/2003 11:09:23 AM
I have a .exe application which exposes several COM
In VB 6.0 I can instantiate a class by using Set myClass = GetObject(path,
progid) where path is the path on harddisk to a file (actually a .INI file
in this case) and progid is the progid in registry.
The .exe was not running, but was started ... more >>
problems with CCW
Posted by Perecli Manole at 8/28/2003 1:28:33 AM
I have several problems with COM Callable Wrappers implementation. Please
answer any of the ones you know:
1. Can't get the ProgIdAttribute("Name") to work. I use
ComClassAttribute(guid,guid,guid) for all my exposed classes so I was
wondering if there is a conflict between these two Attributes... more >>
Syntax of DllImport's EntryPoint field
Posted by Wu YiFei at 8/28/2003 12:43:24 AM
Hi,
I try to call c function in C#,What is the syntax of
DllImport's EntryPoint field?
Why some of extern method need to point out this field
while some of them do not need?
In my project,
A C function defination is
//****************
__declspec(dllexport) SbVec2s
SoWinFullVwrGetVie... more >>
ActiveX control disappears from Windows form in VS.NET
Posted by Severino at 8/28/2003 12:42:58 AM
Hello,
I've developed a MFC based ActiveX control using VC++ 6.
In the last days I've tested the control compatibility with the various
language of Visual Studio.NET and it seemed to work correctly.
Today I was forced to change the control version stored inside the .odl file
from 7.3 to 7.4 a... more >>
Automating Excel WorkBook Suppress Excel Message Boxes Possible?
Posted by unemotionalhumanoid at 8/27/2003 11:45:01 PM
I am writing an application that gets data from excel worksheets, it works
fine for most workbooks but when I open some by using the following line of
code:
_xlApp = new Excel.ApplicationClass();
Excel.Workbook WorkBook1 = _xlApp.Workbooks.Open(FilePath,0,true, 5,"",
"", true, Excel... more >>
Can I access a remote com server with only cusotm interfaces from c#?
Posted by Howard Swope at 8/27/2003 2:46:14 PM
I am try to access a remote com server from my c# app. The server has no
dispatch interfaces. Is this possible?
--
Howard Swope
Software Engineer
Spitz, Inc [http://www.spitzinc.com]
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
P/Invoke: Use StringBuilder for LPVOID type
Posted by John Ting at 8/27/2003 11:37:04 AM
Hi,
I wrote a C# wrapper for the ReadConsole Win32API as following:
(Original unmanaged signature)
BOOL ReadConsole(
HANDLE hConsoleInput,
LPVOID lpBuffer,
DWORD nNumberOfCharsToRead,
LPDWORD lpNumberOfCharsRead,
LPVOID lpReserved
);
(Managed signature)
[DllImport(KERNEL32... more >>
VB Late Binding Vs ASP - Using Interop Services
Posted by Christopher Pragash at 8/26/2003 11:04:17 PM
Hello All,
I have a problem with ASP & VB 6 using an Interop Assembly . I marshal an
array in VB.NET, mark it as <MarshalAsAttribute(UnmanagedType.LPArray)>, and
I am able to retrieve the correct values in VB6 using Late Binding, not
predefining specific datatypes for the array. But ASP seems ... more >>
MarshalAsAttribute(UnManagedType.LPArray)
Posted by Christopher Pragash at 8/26/2003 7:48:15 PM
Hello,
I am trying to Marshal an Array consisting of custom Objects from VB.NET to
VB6. The function signature in VB.NET is like the following:
Public Function GetItemArrary (Byval ItemCode as String) as
<MarshalAsAttribute(UnmanagedType.LPArray)> Array
End Function
When I use "Regasm... more >>
MIDI in -NET
Posted by Lars Lundstedt at 8/26/2003 5:30:09 PM
Has anyone tried using the Win32 low level MIDI functions in .NET/C#?
What I'm trying to do is send and receive sysex-messages but I just can't
figure out how to declare and use the
midi* APIs.
I've successfully declared and used the APIs for getting device caps and
opening and sending shor... more >>
modules
Posted by Perecli Manole at 8/26/2003 2:48:01 PM
How can I expose VB.NET modules (shared classes) through a COM callable
wrapper? This works with classes but not with modules:
<ProgId("Loconet_caca"),
ComClass("383F5F0D-ABFE-414C-B71C-E2369AA8BCCD",
"BE00CB07-54ED-4322-8075-125F3F0D2EF2",
"6444E0EF-91C5-4C4A-992A-3CE8325F1528")> Public ... more >>
Access Denied Exception thrown from Activator.CreateInstance(Type)
Posted by Howard Swope at 8/26/2003 2:04:07 PM
I am trying to get a reference to an ATL COM singleton object running on a
Windows CE 4.1 (w/DCOM) device from a C# client. I have no problem accessing
it from a Win32 client. The code that I am using to instanciate the object
is:
Type t = Type.GetTypeFromCLSID(guid,"machinename",true);
obj... more >>
MQAX200.DLL - Very Technical question!
Posted by farah_roberto NO[at]SPAM hotmail.com at 8/26/2003 11:06:00 AM
Hi everybody,
I have a customer using Win2K, MQSeries 5.2 and MQAX200.DLL from
VB.NET using interop.
I could get some crash dumps and see that MQAX200.DLL is raising
exceptions from DLLUnregisterServer function.
During analysis I could see that File Version from MQAX200 is
1.0.0.1 whe... more >>
COM Interop & HTTP Binary Remoting
Posted by Christopher Pragash at 8/25/2003 8:53:19 PM
Hello All,
I am in the process of migrating the business layer of a web application
into VB.NET and also implementing HTTP Binary Remoting between the Business
Object Server and the Web Server (IIS) from where ASP pages call the
business objects.
I have a very strange problem. The ASP and .... more >>
Marshalling Nested Structures
Posted by news.microsoft.com at 8/25/2003 5:04:41 PM
Hi there,
I have a wiered scenario. I have two structures defined this way in
unmanaged dll.
struct A{
char * name;
int ID;
};
struct B{
struct A* record;
};
Then I have a function in the dll that consumes a pointer to struct B. like
this.
int InitRecord(st... more >>
Substitute for marshalling interfaces
Posted by Daniel Weber at 8/25/2003 1:38:55 PM
Hi there.
A method of my implementation of a COM interface takes an interface as
parameter, which I never use. I could save the code for the definition of
that interface, but what would be a substitute for that parameter ?? Maybe
IntPtr ??
Thanks
Daniel
... more >>
Using UxTheme.dll with C#..
Posted by Kieron Lanning at 8/25/2003 11:38:00 AM
Hi,
Does anyone know of any tutorials of using the UxTheme.dll functions from
within a C# app...i seem to be having a serious 'brain fade' with
this...can't draw the correct fonts etc...any help would be appreciated.
Cheers
Kieron
... more >>
using GetThemeColor from C#...
Posted by Kieron Lanning at 8/23/2003 2:28:11 PM
Hi,
I've been trying use the GetThemeColor function from the uxTheme.dll in a C#
app...but i can't seen to get a valid result? Could someone tell me what I'm
doing wrong here??
[DllImport("uxTheme.dll", EntryPoint="GetThemeColor", SetLastError=true,
CharSet = CharSet.Auto, ExactSpelling = tr... more >>
Translate COM interface
Posted by Franz at 8/22/2003 11:06:16 PM
Actually I want to access the IHtmlDocument2Ptr interface, but I find that I can't add mshtml.dll as a reference. Therefore I think
I have to translate the COM interface(which is inside mshtml.h) to C#. But it is very complicate to translate, because it contains
other inferfaces and many methods a... more >>
using Marshal.ReallocHGlobal
Posted by news.microsoft.com at 8/22/2003 12:03:16 PM
Hi there,
I am trying to use marshal.ReallocHGlobal function.
My unmanaged dll requires call back functions that the unmanaged routine can
use to allocate, reallocate and free memory. For allocating and freeing
memory I can use the Marshal.AllocHGlobal and Marshal.FreeHGlobal functions.
... more >>
|