all groups > dotnet interop > recent posts
RE: Marshaling data between managed VB.NET and unmanaged C dll
Posted by Mar at 2/23/2010 10:29:47 AM
I found out that a pointer to a structure is not the same as a pointer to the memory that a structure occupies. This won't work:
Marshal.PtrToStructure(twCapability.Handle, twOneValue)
But this does:
Private Function GetOneValueZ(ByVal twCapability As twsCapability) As String
Dim rc ... more >>
Marshaling data between managed VB.NET and unmanaged C dll
Posted by John at 2/19/2010 9:15:31 AM
I am trying to get data from a structure that is allocated by a C dll (TWAIN_32.dll) than returns a pointer in a structure that VB.NET allocates and passes to it. Her's the code.
# ...previous code
# twCapability = New twsCapability
# With twCapability
# ... more >>
RE: Outlook 2007 automation with VS.NET 2005
Posted by Mikel at 2/12/2010 12:42:35 AM
How can I login as admin, I having the same error your talking about
Error al recuperar un generador de clases COM para el componente con CLSID {0006F03A-0000-0000-C000-000000000046} debido al siguiente error: 80070005.
From http://www.google.es/search?hl=es&client=firefox-a&rls=org.mozilla:e... more >>
RE: MS Project COM Exception
Posted by Sergey at 2/5/2010 10:47:39 PM
The Project has a bug which is that it can't keep more than 10 TimeScaleValue s alive. The official recomendation is to use GC.Collect() to release the references, but I prefere the following, which is far more effective:
private void ReleaseComObject(object obj)
{
if (obj != null)
... more >>
RE: Outlook 2007 automation with VS.NET 2005
Posted by Judah Sali at 1/27/2010 3:40:38 PM
That solves it for me too!
From http://www.google.com/search?q=Retrieving+the+COM+class+factory+for+component+with+CLSID+{0006F03A-0000-0000-C000-000000000046}+failed+due+to+the+following+error:+80080005&rls=com.microsoft:en-us&ie=UTF-8&oe=UTF-8&startIndex=&startPage=1
Posted via DevelopmentNow.co... more >>
RE: Excel templates (Old format or invalid type library.)
Posted by ivan at 12/3/2009 4:15:46 PM
Hi all,
nice to have an old post here, because I have a similar problem with Marwa.
I build a new application using c#.net2005 to read excel file I write the following code but it gives me a run time error
((Old format or invalid type library. (Exception from HRESULT: 0x80028018 (TYPE_E_INVDAT... more >>
RE: ADODB.Stream Open() in c#
Posted by John at 9/22/2009 12:00:27 PM
Can you provide more details on how you solved this, or a code example?
From http://www.developmentnow.com/g/21_2003_7_0_0_103532/ADODB-Stream-Open-in-c.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com/g/... more >>
RE: Dsofile with UNC path - ASP.NET
Posted by Thomas at 6/18/2009 1:48:35 PM
hi
To fix it, I created a console application which did the stuff and ran it from the web server.
Tom.
From http://www.developmentnow.com/g/21_2006_7_0_0_785324/Dsofile-with-UNC-path--ASP-NET.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com/g/... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
RE: Dsofile with UNC path - ASP.NET
Posted by Rodrigo at 6/18/2009 6:30:00 AM
Anyone got the answer for this problem of accessing UNC share files through DSO? Thank you very much.
From http://www.developmentnow.com/g/21_2006_7_0_0_785324/Dsofile-with-UNC-path--ASP-NET.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com/g/... more >>
RE: unresolved externals porting managed wrapper from 1.1 to 2.0
Posted by Tanakom Talawat at 6/12/2009 3:38:41 AM
Thank you stephen, it works
Cheers,
Tanakom.
From http://www.developmentnow.com/g/21_2005_10_0_0_627869/unresolved-externals-porting-managed-wrapper-from-1-1-to-2-0.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com/g/... more >>
RE: Server Busy Dialog Box
Posted by Shellie at 5/22/2009 12:50:21 PM
See this link to disable
APPLICATION.OLERequestPendingTimeout = 0
http://support.microsoft.com/kb/240809
From http://www.developmentnow.com/g/21_2005_1_0_0_48052/Server-Busy-Dialog-Box.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com/g/... more >>
TAPI 3.1 app in VB.Net 2005
Posted by RHK at 3/19/2009 2:23:26 AM
Hi,
I am trying to construct a simple IVR machine for evaluation purpose that can play and record sound over the phone but now is stuck by the same problem. I am using VB.Net 2005. Exception was encountered when I tried to assign a object value to the method objMediaPlayBack.PlayList.
The meth... more >>
RE: SCardTransmit
Posted by meyrick at 2/25/2009 12:55:45 AM
I have the same problem regarding scardTransmit. can you send me your code in vb 6.0 as well as the dll.
thanks in advance.
Meyrick
From http://www.developmentnow.com/g/21_2004_4_0_0_105761/SCardTransmit.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com/g/... more >>
RE: Unable to Build Assembly With Strong Name if AxInterop.ShdocVw used
Posted by Krishnanmoorthy Sampathkumar at 2/20/2009 3:15:44 AM
Hi,
We inside our firm use the Axinterop.ShdocVw.dll which is used for an embedded browser control.We use TestBed certificate for testing and Prod Certificate at Production. So We will use different keys for signing our product only at the build time using command prompt .When signing one of the pr... more >>
RE: Unable to Build Assembly With Strong Name if AxInterop.ShdocVw used
Posted by Krishnamoorthy at 2/20/2009 1:29:56 AM
Hi,
We inside our firm use the Axinterop.ShdocVw.dll which is used for embedded browser control.We will use different keys for signing our product only at the build time using command prompt .When signing one of the projects we came accross the issue which says "Axinterop.ShdocVw" is not strong nam... more >>
RE: Unable to Build Assembly With Strong Name if Interop.ShdocVw used
Posted by Krishnamoorthy at 2/20/2009 1:29:46 AM
Hi,
We inside our firm use the Axinterop.ShdocVw.dll which is used for embedded browser control.We will use different keys for signing our product only at the build time using command prompt .When signing one of the projects we came accross the issue which says "Axinterop.ShdocVw" is not strong nam... more >>
Wrapping a traditional dll in C#
Posted by DanielP at 2/4/2009 3:02:04 PM
All,
I am trying to wrap a traditional C++ dll, that I don't have the source for, in C#. I do have the header files listing what's exposed. The dll accesses a DB and provides access to the data. The problem I have is that the data is strored in a class and not a struct. As a result, some of the fun... more >>
Wrapping a traditional dll in C#
Posted by DanielP at 2/4/2009 3:02:00 PM
All,
I am trying to wrap a traditional C++ dll, that I don't have the source for, in C#. I do have the header files listing what's exposed. The dll accesses a DB and provides access to the data. The problem I have is that the data is strored in a class and not a struct. As a result, some of the fun... more >>
how to use .NET ddl's in Power Builder 11.5
Posted by Eduard at 1/19/2009 8:04:44 AM
i put a form into a user control, in a .NET dll (c#)
now i want to put this control on a window in power builder
i have a fresh install of power builder 11.5
is this possible?
From http://www.developmentnow.com/g/21_2003_10_8_0_0/dotnet-framework-interop.htm
Posted via DevelopmentNow.com Groups... more >>
RE: Problems with com callable component in classic ASP
Posted by Samer Awajan at 10/30/2008 1:30:20 PM
Hello, I have exactly the same problem, however, since the load on the web server is high, it occurs every 4-8 hours and yes, recycling the pool resolves the issue. I wonder whether you have reached for a solution to this strange behavior
From http://www.developmentnow.com/g/21_2008_1_0_0_1039344/P... more >>
RE: Unable to cast COM object of type 'System.__ComObject' to class type 'mshtml.HTMLDocumentClass'
Posted by Bhavin Chheda at 10/14/2008 2:13:22 PM
Hello,
Below is my existing code...
mshtml.IHTMLDocument3 doc = (mshtml.IHTMLDocument3)axWebBrowser1.Document;
string strHtml = ((mshtml.HTMLDocumentClass) (doc)).documentElement.outerHTML +
Environment.NewLine;
But I am getting error ... more >>
RE: Exception from HRESULT: 0x8004E005
Posted by Raghu at 8/4/2008 8:25:28 AM
Thanks Lars-Erik, you helped solve my poblem too, static Com objects are a pain in the butt
From http://www.developmentnow.com/g/21_2004_3_0_0_105597/Exception-from-HRESULT-0x8004E005.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com... more >>
Re: Unsafe structure declaration
Posted by Jeff Winn at 6/21/2008 1:08:10 PM
Should look something similar to this:
using System.Runtime.InteropServices;
struct xvid_image_t {
public int csp;
public IntPtr plane;
[MarshalAs(UnmanagedType.LPArray, SizeConst = 4)]
public int[] stride;
}
void* (if i remember correctly) is just a pointer to an unspe... more >>
Re: Cannot convert from 'out int[]' to 'int*'
Posted by Jeff Winn at 6/21/2008 12:59:59 PM
Not too familiar with old school C or C++/CLI, but this is how I would
accomplish this task in C#. Since .NET cannot marshal struct arrays directly
you'll need to determine the size of the type you'll be using - and allocate
the amount of memory you'll need to store the array on the heap and c... more >>
C# Form to C++ control to C# library and back. (reentrancy)
Posted by Gold Panther at 6/20/2008 1:14:18 PM
I have encountered a problem where I have a C# form that contains my C+
+ ActiveX control which has a need to call methods from a C# DLL. The
control must stay in C++ since it deals with video. We can't afford
the poor C# performance. At first the calls to the C# DLL were
causing a reentrancy... more >>
Cannot convert from 'out int[]' to 'int*'
Posted by Cartoper at 6/20/2008 12:33:29 PM
I have an old unmanaged C function that needs to take an array of
long:
long oldCFunction(long * array, int arraySize);
There is a C++ CLI layer between the C# and the oldCFunction. How do
I prototype the C++ CLI code to take an an int[] and pass it into this
oldCFunction()?... more >>
Simulating RegFree COM via CoRegisterClassObject
Posted by Willy at 6/19/2008 10:32:19 PM
Hello,=20
I have a large .NET application (150 assemblies) which uses a very =
large set of existing VB6 COM Dlls (100+ of them).
In order to make installation as smooth as possible, I manually load the =
COM DLLs and call DLLGetClassObject on them to get iClassFactory, =
obviating the need to... more >>
Re: Enumeration in com interop
Posted by Ramki at 6/19/2008 9:43:01 PM
Hi ,
I want to know hot to register managed COM interop in winodws CE as COM
object.
I have Dll , whicis having inetrface and class like this.
namespace MagnumDevApp
{
[ComVisible(true)]
[Guid("C68CAF28-0DE2-4baf-BBD3-9066B8D7B3AF")]
[InterfaceType(ComInterf... more >>
msproject and interoperability
Posted by Satya at 6/18/2008 9:02:01 PM
I have this asp.net application and using the msproject interop.
When there are concurrent users and when I attempt
ApplicationClass appSampleProject = new ApplicationClass();
appSampleProject.FileOpen(...)
Project proSample = appSampleProject.ActiveProject;
read the file and display ... more >>
Shell32.ShellClass().BrowseForFolder() throws COMException E_FAIL
Posted by Jeff at 6/18/2008 1:34:41 PM
On my Vista machine I've referenced the COM library "Microsoft Shell
Controls And Automation" (shell32.dll) in a C# Windows Forms project.
The form has one button that executes this one line of code:
object folder = new Shell32.ShellClass().BrowseForFolder(
this.Handle.ToInt32(),
"... more >>
|