all groups > dotnet interop > february 2004
Filter by week: 1 2 3 4
shell namespaces
Posted by Lee Connell at 2/29/2004 9:47:07 PM
Is it practical/possible to create a shell extension that could host an
internet explorer instance?
Any documentation/tuturial/example/website would be appreciated.
thanks
... more >>
.NET DictionaryBase can't enumerate in COM client
Posted by Francis Gingras at 2/29/2004 4:30:43 PM
Hi all,
I have a working C# class that doesn't work in the COM client (in this case
Excel). I can't enumerate with For..Each..Next.
No matter what I try, I always get:
"Error 438: Object doesn't support this property of method"
I'm sure it's simple, but I'm going nuts over this. Can any... more >>
Transfering arrays from C DLL's to VB.Net
Posted by Michael Fitzpatrick at 2/27/2004 10:49:37 AM
Transferring arrays from C DLL's to VB.Net
I have a DLL written in C. This DLL reads a text file and creates a several
very large arrays, 500,000 points and even larger. I would like the get the
data in VB.Net so that I can plot it. Presently I am creating an equally
sized array in VB and copy... more >>
array of struct containing array of struct
Posted by Thomas Mobley at 2/27/2004 9:23:30 AM
I have a c++ function which requires that I pass an array of
structures which contain further arrays of other structures. I have
been unable to do this in c#. Could anyone give me some pointers on
how I might be able to perform this task? I have my structures as
follows, and i'm passing an ar... more >>
Problems with FindNextPrinterChangeNotification in C#
Posted by Michal Michalec at 2/26/2004 9:30:51 PM
I'm writing a .NET application for monitoring print queues. I can get a
handle to a printer by OpenPrinter. I can easily run
FindFirstPrinterChangeNotification (but only with IntPtr.Zero as
pPrinterNotifyOptions argument) and wait for the printer event. Finally I
can use FindNextPrinterChangeNot... more >>
Tool : REGASM
Posted by Chew at 2/26/2004 4:48:08 PM
Hi,
Did anyone use the tool, REGASM to register your .Net class library as a COM
component? I've tried it and found that it didn't registered my class
library properly. I kept getting the error "File or Assembly name
MyClassLibrary, or one of its dependencies, was not found" when I tried to
u... more >>
TargetException after idle time when sending sourced events via from .net assembly
Posted by asanford at 2/26/2004 11:11:08 AM
We have a .net assembly that uses C# events for outgoing notifications. We use COM interop to create and access the .net objects via VB6, including recieving events in VB6 using the WithEvents keyword (we use the ComSourceInterfaces attribute to expose the c# outgoing events to COM clients.) The .... more >>
NoProofing property value
Posted by AP at 2/26/2004 10:55:52 AM
Hi,
I'm trying to set the NoProofing property on a Range from C# code. The value
is supposed to be true or false, but the property is expecting an int. How
can I set this?
Adam
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
**pointer CLR data type
Posted by John Doe at 2/26/2004 10:27:47 AM
Hello,
What is the equivalent CLR data type for a pointer to a pointer? For example
**ppMyData.
Thanks in advance.
... more >>
Marshalling Strings as member of a structure to C++ dll
Posted by Hiren Patel at 2/26/2004 10:21:09 AM
Hi ,
I have a native C++ dll that has a function that takes as structure
pointer as an argument. It looks something like this.
typedef struct st{
char* name;
}myst;
int func(myst * s){
if (s->name){
CoTaskMemFree(s->name);
s->name = NULL;
}
s-... more >>
can I use MFC Controls in WinForms
Posted by Thomas at 2/26/2004 9:38:17 AM
Hi there,
is there a possibility to host MFC controls in a SWF Control?
I have a big MFC application and want to migrate to .NET. It is not possible
for me to rewrite all the MFC controls and views so I want to create a new
..NET based frame and use the old MFC controlbars and editors.
Is the... more >>
Page Setup Help for Excel
Posted by pbwedzNOTME NO[at]SPAM yahoo.com at 2/26/2004 8:04:13 AM
Trying to access the Excel's page setup for a Excel file I'm creating
via Office.Interop. I almost got it, I need help with two little
things.
In PageSetup for the Sheet:
1) How do I set the scaling option buttons? I need to switch the
option to 'Fit to # wide by # tall.
2) I want to s... more >>
Outlook add-in
Posted by flatire at 2/25/2004 10:31:09 PM
I am attempting to write an add-in in C# for Outlook 2002.
The add-inshould create a button in the command bar.
On clicking on this button, I would like to read the current mail item in the Inbox.
Are there any pointers as to how this may be done
---
Posted using Wimdows.net NntpNews C... more >>
Reading an Internet Shortcut using IPropertySetStorage
Posted by Scott D. Krug at 2/25/2004 9:21:58 PM
I'm trying to read an Internet Shortcut using IPropertySetStorage, based on
the MSDN article "Internet Shortcuts" at
http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_int/shell_int_programming/shortcuts/internet_shortcuts.asp
and other sources I discovered on t... more >>
COM programming for dummies
Posted by sid at 2/25/2004 8:46:00 PM
My COM programming experience is about a week.
I have a simple C++ win32 app (with winmain, msg loop. etc.) that I enhanced
to access mshtml and shdocvw. (Essentially, it looks for an open internet
explorer instance and cycle throught the elements on the active document,
currently just dumpin... more >>
XML and schema
Posted by Chris Wagner at 2/25/2004 7:58:42 PM
how do i validate a xml file with a schema using VB.net or C#? thanks
... more >>
Passing complex structure from C# to C++ and back
Posted by ofirsh NO[at]SPAM hotmail.com at 2/25/2004 4:55:04 PM
Hi,
I am currently using an external C++ library using C++ code, and I
would like to continue using this library from C# code I am writing.I
do not have access to the sources of this library.
I was looking around, and most of the information I found deals with
simpler cases. I could hardly fi... more >>
Custom fields?
Posted by AP at 2/25/2004 4:18:34 PM
Hi,
I'm trying to populate a word document with data from a database. Every time
the document is opened I wish to repopulate certain fields with updated
information from the database. I am using c# and have a mechanism in place
that opens the document (using the Word COM interface) and at tha... more >>
Can I use a .NET Component on a old ASP File?
Posted by Jose Aleman at 2/25/2004 2:16:07 PM
I have the next question. Actually I can not instance from a ASP file a .NET Object. Actually I need to do a "WRAPPER" in VB6 for accesing the methods of the .NET object, so I can reference the VB6 class. What can I do for do not do this?? Exist other way to instance a .Net Object instead to use a ... more >>
Advanced Interop Debugging
Posted by Bill at 2/25/2004 10:09:27 AM
I am calling CryptMsgOpenToEncode() using interop and it succeeds the first
call. But from then on every other call fails with invalid parameter. I am
passing in the same parameters each time.
The problem I am having is that all the parameters look ok from within C#.
I am trying to step in t... more >>
Windows Image Acquisition WiaVideoClass.TakePicture() Threading Issue
Posted by Bryce Marshall at 2/25/2004 12:09:52 AM
I have spent the last week or so building a C# application that uses WIA to
take still pictures from a webcam using the WiaVideoClass from the
WIAVIDEOLib.
Pictures are taken in response to a System.Timers.Timer event (i.e. on
threads from the thread pool). This works well when I step through ... more >>
cURL stumper (libcurl.dll)
Posted by Al Kim at 2/24/2004 7:23:35 PM
Hi all,
I'm attempting to write a wrapper for the open source cURL program found
at http://curl.haxx.se/ in c-sharp. It's a great program, but
unfortunately no one thus far has tried to write a c# version. Any
takers?
In the meantime, my problem is...
I've made the libcurl.dll (wr... more >>
Word is asking for the ASPNET user initials!!!
Posted by Fabricio Sperandio at 2/24/2004 4:01:56 PM
Hello,
I am trying to send a fax from a WebForm using C# and FAXCOMLibEX. It is ok
to send a text file but when I try send a Word document the I can't have an
answer. My guess is that when I try to open the Word for the first time the
application is asking for the initials for the ASPNET user.... more >>
Problem calling ObjectFromLresult api
Posted by jbhan at 2/24/2004 2:31:07 PM
-214746726
Hi
Whenever I try and call ObjectFromLresult I get -2147467261 as the return value
Can some tell where I am going wrong in marshalling the parameters
My code is given below
[ StructLayout( LayoutKind.Sequential)
public struct UUI
public int Data1
public int Dat... more >>
Passing arrays from VB6 to C# ActiveX
Posted by Eugene Khosid at 2/24/2004 2:03:00 PM
Hi all,
I ran into this problem and I don't really know which peace of software it
to blame. Anyway, all I'm trying to do is to pass an array of strings
(variable size) from a VB6 client to C# class that exposes an ActiveX
interface. I tried to do various things without much success
1. Do ... more >>
401 Access Denied trying to contact web service
Posted by Stuart Hemming (via DFN-CIS NetNews Service) at 2/24/2004 12:10:35 PM
OK. I've got myself a web service created in VS.
I can access it from the test page generated by VS via HTTP-POST.
I've created a proxy and colpiled it up. The proxy is in the BIN
directory of a test app I've put together which when called gives me
this ...
,----- [ Error ]
| [WebExcepti... more >>
ghostscript leaves windword processes
Posted by spamproof2005 NO[at]SPAM yahoo.com at 2/24/2004 7:37:03 AM
I'm using the ps2pdf.bat file that ghostscript provides through my
vb.net code to convert word documents to pdf.
After each conversion, a winword process is left runnning in the task
manager.
Anybody knows how to prevent this from happening?
Thanks in advance for your help
7078895... more >>
CCW passing IUnknown
Posted by David Edwards at 2/23/2004 2:44:17 PM
Hi,
I have a class that implements several interfaces. I am
having trouble calling any of the methods on one of the
interfaces and I suspect that this has something do with
the way I am passing an IUnknown pointer. I am desparate to
solve this problem as I cannot change in any way the
interf... more >>
newbie: handle help!!!
Posted by Dean Redmond at 2/23/2004 12:00:38 PM
i'm having trouble assigning a value to a handle.
basically i need to perform a mouseclick, wherever the cursor is on the
screen at that time, and i have code that does this using the user32.dll
WM_LBUTTONDOWN/UP messages.
However, when i run my code, i think these messages are sent, but not... more >>
Doing it wrong.
Posted by Stuart Hemming (via DFN-CIS NetNews Service) at 2/23/2004 10:06:45 AM
I'm a real newbie and whilst I think I've done everything I'm
supposed to, clearly I've got something wrong.
I've got a program on my server that can be called via COM. This works
just fine.
Following the destructions in MSDN I used tlbimp.exe to create a DLL
file which I've added as a refe... more >>
Get window info from handle in .Net?
Posted by Joel Foner at 2/23/2004 4:16:07 AM
I've got a situation where I'm writing a routine that is handed a window
handle (from COM) as an hWnd, and I'd like to get the current window
geometry for use within the C#.Net code I'm working on. Any thoughts on how
to do this? Also, is it possible to hook something at the window level to
get ... more >>
Workflow in ASP.NET ?
Posted by Paul at 2/22/2004 9:52:38 AM
Hi.
I asked this one before without any response, but I'll give it ago.
In Commerce Server they have a pipeline editor which runs a series of
components, the main drawback is that it doesnt support strong names or any
web-interface programming, so changes need to be made from the admin
uti... more >>
.NET windows app using Excel results in Not enough memory to run Excel
Posted by Ashley gr at 2/21/2004 7:36:07 PM
We've a Windows application(rich-client application) which uses set of data in the excel input files and generates around 58 workbooks with each workbook containing around 32 sheets each.
We tried it in Excel 97
Application makes extensive use of the Excel object model to generate the files
Ap... more >>
Excel Doesn't Quit After Rows.AutoFit()
Posted by Douglas Forrest at 2/21/2004 2:39:28 PM
I am working on VS 2003 VB/Framework 1.1 application
The app creates an Excel worksheet using the Excel 10.00 Object Library,
following the guidelines set out in Microsoft KnowledgeBase Article 317109,
PRB: Office Application Does Not Quit After Automation from Visual Studio
..NET Client,
htt... more >>
MSCOMM32.ocx license error
Posted by Eray Çakýr at 2/21/2004 1:56:02 PM
hi ;
at the C# compiler using a MSCOMM32.ocx project, when i want to
install this project on the pc which is not installed visual basic says
"there is no licence". for solving this problem do i need to register
MSComm32.dll into the C#? i read in .NET documents doing this with Ic... more >>
Problems Passing SAFEARRAY to managed code
Posted by Vojak at 2/21/2004 12:21:05 PM
Hi all
I have the following managed code signature
public bool Method ( UInt32 handleOperation, int arrayCount, Array objectArray, out int objectCount
The semantics of the method is to populate the array with a number of handles (ints) and return the number of elements filled in objectCount ... more >>
Error calling unmanaged dll from vb.net
Posted by leftie at 2/21/2004 9:21:06 AM
Folks,
I'm trying to call an unmanaged function from VB.NET and keep getting "Object reference not set to an instance of an object" error.
The code that i wrote can be found at:
http://www.nomorepasting.com/paste.php?pasteID=5981
The dll (if some kind soul has the time to compile and run... more >>
CreateWindowStation
Posted by Paul at 2/20/2004 9:42:03 AM
Does anyone have the vb code to use this function I have found the API
import for this but not the layout of the structures that need to be passed
to the routine. I'm also looking for vb versions of
- CreateWindowStation
- SetProcessWindowStation
- CreateDesktop
- SetThreadDesktop
- GetGUIT... more >>
Where to find Microsoft.Interop.Security.AzRoles.dll
Posted by sudheerravindran ravi at 2/20/2004 3:42:11 AM
Hi I am using windows 2000 +sp4 and .net framework 1.1
I would like to to know where I can download
Microsoft.Interop.Security.AzRoles.dll
thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Problems returning null object reference using C++ .NET and Interop
Posted by Net1000 at 2/19/2004 3:01:07 PM
Hello
I need to write a plug-in for an application (Autodesk Inventor). This plug-in access and controls the application through COM interfaces. I am using C++ .NET and accessing the COM interfaces from managed code using the RCW. One of the properties (an object reference) of a COM object needs t... more >>
COM Class Vs. Sn.exe, Gacutil.exe, Regasm.exe
Posted by Anonymous at 2/19/2004 1:46:05 PM
There seems to be two ways of creating a COM in .NET
1) Select the COM Class template
2) Create a class and then use Sn.exe, Gacutil.exe, and Regasm.exe to assign the assembly to GAC and COM to registry
I know that COM Class option is a lot easier to use. However, is there any drawbacks from u... more >>
Problem calling SendMessage passing FindText structure
Posted by jbhan at 2/19/2004 1:01:08 PM
Hi
I am trying to use SendMessage to find text in a certain window using the FindText structure as parameter
But I keep on getting a "Object reference not set to instance of an object " when the Sendmessage gets executed
The same code in vb works just fine
Can anyone help me out please with wh... more >>
error calling com from .net
Posted by John Doe at 2/19/2004 11:52:23 AM
Hello,
I have an idl file written using MS VC++ 6. I used the VS .net midl.exe tool
to generate a type library file (.tlb).
I have tried to use the tlb file in a VB.Net app using each of the
following two methods:
1) Add reference in VS .Net using the COM tab , browse, select etc.
2) Usin... more >>
Managed c++ DLL call from C#
Posted by TheGurr at 2/19/2004 10:59:40 AM
I'm trying to write a csharp program on top of some c++ code I have. The
code need to operate on a fundamental class which is serializable. The class
is written in c++, and my idea was to compile that c++ as managed code and
use it when the serialized class enters the c# world for de-serializatio... more >>
RPC Error?
Posted by scorpion53061 at 2/19/2004 10:11:15 AM
Hi big problem here. I am automating MS Word. I created a global instance at
program startup to avoid having the end user have to wait a extremely long
time to get thier report.
The first time a report is generated everyting runs fine.
The second time an attempt is made to write a report I g... more >>
tlbexp.exe and enumerations
Posted by DWorthem at 2/19/2004 8:41:09 AM
We have a set of C++ COM components and wish to migrate these to .NET so that the COM interfaces are migrated to .NET interfaces. (We would then have the option of doing implementation with both the .NET classes and native C++
The process of migrating the interfaces would first start with taking ... more >>
CCW overheads
Posted by mrjollyrogers at 2/19/2004 7:16:06 AM
To whom it may concern:
We are in the process of deciding on a technology to go with - .NET or VB6. The project entails interfacing with Classic COM objects written in C++ on another system. I've suggested that we write our custom code using the .NET framework and expose it to the classic COM obje... more >>
can't call NetBIOS API function on dotnet
Posted by wy6688 at 2/18/2004 11:21:06 PM
I declare as following
[DllImport("netapi32.dll", CharSet = CharSet.Ansi, SetLastError = True, EntryPoint = "NETBIOS")
function Netbios(ref NCB: tNCB): byte; external
but the runtime always complaint can't find NETBIOS entry at netapi32.dll
when I run a C++ without dotnet, it's ok
Any solu... more >>
InterOp problems and passing a string...
Posted by Anon at 2/18/2004 5:13:27 PM
What is the dotNET equilivalent of calling a API function and specifying the
a parameter should be passed through using the ByVal keyword, such as the
first parameter 'DeviceName'in the following...
[VB6 Code]
ret = ChangeDisplaySettingsEx(ByVal DeviceName, DevM, ByVal 0&, CDS_NORESET
Or CDS_... more >>
Which Approach Is Cleaner ?
Posted by Ken Onweller (.NET MCSD) at 2/18/2004 4:15:59 PM
I have a shared assembly I'm putting into the GAC. This assembly is the
sole user of a COM dll.
One approach is to give this dll a strong name by specifying a key in the
Wrapper Assembly Key File
setting under Project Properties (C#). I must then explicitly put the
generated Interop.COMSERV... more >>
|