all groups > dotnet interop > january 2005 > threads for january 1 - 7, 2005
Filter by week: 1 2 3 4 5
Problem using WTSOpenServer on Win2003Server DC
Posted by Christopher Attard at 1/7/2005 3:09:47 PM
Hi,
I'm using WTSOpenServer (P/Invoke in a C# application) to open a
handle to a specified terminal server which is Win2003 Server Domain
Controller.
The function is returning NULL (or 0). I'm able to connect
successfully to the terminal server when using the remote desktop... more >>
Unmanaged Type Name and Strong Names
Posted by Andrew S. Giles at 1/7/2005 6:29:01 AM
Why is the IDE not letting me compile with an instance of an unmanaged type
library COM object? It tells me that the type library needs a strong name?
I did not think this was necessary for unmanaged type libraries... How do I
fix this, since I cannot modify the type library itself.
Andr... more >>
IVS.NET won't let me create ASP appl or WebServices
Posted by Jeff at 1/6/2005 10:51:15 PM
I've installed Visual Studio .NET 2003 on my Windows 2000 machine. I
installed IIS also.
It serves up HTML and .ASP pages but will not work with asp.net pages
(.asmx).
As a matter of fact, when I try to create a new c# or VB ASP.NET
webservice or application, I get the following error:
"Visual... more >>
interop question - shell
Posted by Craig at 1/6/2005 4:47:01 PM
Is it alright to add a reference to shell32.dll and then use the objects in
that namespace, like: Shell32.FolderItem ? (and then distribute the app to
various windows operating systems)
The reason I ask, I created an app that does this, and when I transfer the
code to a project with stric... more >>
late binding problem
Posted by John Smith at 1/6/2005 4:46:40 PM
If we do late binding of office it appears we need to be able to do
something like
if (Office xp)
else if (office 2003)
In C++ I would use #ifdef
How do I do this for Office versions in C#.Net
thank you
mark
... more >>
office and project late binding
Posted by John Smith at 1/6/2005 4:32:28 PM
Is there an example showing how to do this.
We do not want a different project for each version of office, the
opportunity for inconsistencies between versions will be a problem in the
long run. Alternatively is there a way to build for different versions in
Visual Studio .Net by creating m... more >>
Throwing exception from a .net com object
Posted by Jeremy Chapman at 1/6/2005 4:16:44 PM
I have written a class in c# and the assembly is registered as a com object.
When I use this assembly fron a .net windows app it works great, and if the
assembly throws an exception it is caught by the .net winform app. When I
use this assembly from Excel, Excel will report an exception "Excepti... more >>
Why is Outlook.Application ambiguous in namespace?
Posted by Brett at 1/6/2005 12:25:17 AM
I'm following the code here
http://support.microsoft.com/default.aspx?scid=kb;en-us;313788 but this
build error in VS Studio .NET:
'Application' is ambiguous in the namespace 'Outlook'
The code is
Dim oApp As Outlook.Application = New Outlook.Application()
Any suggestions?
Thanks,
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Word Automation - RPC Error
Posted by J. Walker at 1/5/2005 10:10:32 PM
I have a VB.Net app that creates a Word.Application and Word.Document
object. It loads a Word document. However, in my cleanup code when the user
closes the window, I call the Quit method the Word.Application object and
set the objects to nothign. This works fine except if the user closes Word... more >>
Problems with Word 2000 automation
Posted by BarbourIndex at 1/5/2005 9:26:38 AM
Hi
I'm automating Word in my VB.NET Windows Forms application, and I'm hitting
a problem when the application is used with Word 2000.
To access the Word functionality, I created a reference to the Word 97 type
library (we support all versions from 97 onwards). I then have some code
that cre... more >>
Office interop
Posted by Johan Karlsson at 1/5/2005 8:53:38 AM
Hi!
When developing .net applications that will use office, do you have to
target a specifik office version (like office 2000) or does it work with
several office versions?
Example, if I create an application that uses office 2000. Will this run on
a computer that only has office 2003 in... more >>
Word Interop not printing
Posted by treedevil NO[at]SPAM hotmail.com at 1/4/2005 4:14:02 PM
I am trying to use Word.Interop to print from ASP.NET. I can get it to
open the document but it just hangs on the PrintOut method. I have
tried a variety of combinations for the arguments (background = false
etc.) to no avail.
The code example is as below:
------------------------------------... more >>
Trying to call DLL from C#
Posted by Ken Beauchesne at 1/4/2005 12:32:52 PM
I am trying to create a simple DLL and call it from C#, I have not created a
dll before
and this one gives me a missing method exception when the Message function
is called
in C#. I can invoke system dll's no problem but I need to create some
custom ones so
could someone give me a simple exam... more >>
RegAsm error: Declaration referenced in a method implementation ..
Posted by Steven K at 1/4/2005 9:55:02 AM
I am having problems with regasm...
I am getting the error:
RegAsm error: Declaration referenced in a method implementation can not be a
final method.
Any ideas how I could fix this?
It seems to come from the code:
public override void Destroy()
{
}
Steven K... more >>
RawPrinterHelper
Posted by Nir at 1/4/2005 7:55:47 AM
Hello ,
I have problem with printing using below code to my printer ,
anyone have any idea why this Code is not working .
I have WinXP SP1
Public Class clsRawPrinterHelper
Private Structure DOCINFO
Public pDocName As String
Public pOutputFile As String
Public pDatatype As Stri... more >>
Win32 GetParent Method problem
Posted by ezitech NO[at]SPAM yahoo.com at 1/4/2005 1:18:29 AM
Hello,
I have a problem with using the Win32 method GetParent.
As I read in msdn, if this method is called on a handle which doesn't
have a parent (top level and unowned window) then the result is null,
the same for when the method fails.
They wrote that for distiguishing between failure, and a... more >>
How running VB.Net with DAO? gives interop error
Posted by Rick at 1/3/2005 10:42:14 PM
I´m trying to get my first VB.Net application working with DAO. Running the
program as stand-alone gives the runtime error: can not find file or
assembly name interop.DAO. In the IDE the program works fine. What do I do
wrong?
Rick
... more >>
How to Wrap COM Event as .net one?
Posted by James Hancock at 1/3/2005 4:33:26 PM
How does one go about wrapping a COM event as part of an Interface
definition? (without using the import tool on the com object)
Anyone have a sample/example of how to do this? I have yet to be able to
figure out how.
Thanks
James Hancock
... more >>
api call with null tchar* parameter
Posted by Ken Jones at 1/2/2005 7:59:02 PM
I've been trying to build a wrapper to use with the Authentec SDK for
fingerprint scanners. I am a .Net newbie and cannot get the interop dllimport
definition to work and return the result I expect.
Here is the .h function definition:
/////////////////////////////////////////////////////////... more >>
How to use the GetKeyName API in C#
Posted by kurotsuke at 1/1/2005 11:08:48 PM
Hi,
I'm trying to use the GetKeyName API to get the name of certain keys
(in the system language). For example the names of SHIFT and RETURN
keys as well as the names of same special characters.
I tried to call the API GetKeyName passing the KeyCode of the KeyUP
event but got no result
... more >>
calling unmanaged dll from c#
Posted by kjobson NO[at]SPAM gmail.com at 1/1/2005 2:17:54 PM
how to call unmanaged dll from c# when i need instances of the classes in the dll?... more >>
|