all groups > dotnet interop > april 2004 > threads for april 22 - 28, 2004
Filter by week: 1 2 3 4 5
TypeLoadException & dynamic assemblies signing
Posted by Ostap Radkovskiy at 4/28/2004 3:42:39 PM
Hi!
I'm having problems with strongly named assemblies usage. There is a .NET
solution with number of projects signed by public/private key pair (snk).
The solution uses another package of .NET assemblies signed by another snk
and deployed as msi. Now the problem. These package assemblies hav... more >>
Dll and Com
Posted by Stefan at 4/28/2004 3:27:45 PM
Hi NG
I've a stupid question:
If a want use a .NET component as a com-interface I need to register my dll.
Do the clients which uses the component need the .NET framework??
Thanks
Stefan
... more >>
CCW
Posted by Mike at 4/28/2004 3:17:27 PM
I have a VB.NET Class file that I created that i need to use from a VB6
component.
I need to make a CCW to allow the VB6 to access the .NET component. How do I
make a CCW file?
In the properties of the project I have Reg as COM checked but no CCW is
created. What am I missing?
thx
... more >>
Opening .mdb file only for viewing purpose.
Posted by Suma at 4/27/2004 3:31:04 AM
H
I want to open an .mdb file for viewing purposes to the User
The User should not be able to change anything contained in that database
He should be able to only view the contents
How can I achieve this
For Word,Powerpoint and Excel, in the Open method itself we can specify whether the file i... more >>
InternetCrackURL
Posted by Dave Londeck at 4/27/2004 12:52:36 AM
Has anybody tried to use this API and if so can you point me to a working
example.
I am using vb.net.
It is always returning 0 or a failure.
... more >>
passing a delegate to a C function.
Posted by james_morris1232000 NO[at]SPAM yahoo.com.au at 4/27/2004 12:52:09 AM
I have a dll written in C. I call this C function from my C# code.
Within the C function(in dll) it should be able to call a function in
C#(Callback function). So when I call the C function I need to pass a
pointer to the C# function. I use delegates within my C# code for
other reasons, but coul... more >>
Understanding CryptoAPI "keycontainer" and "unique key container"
Posted by Michel Gallant at 4/26/2004 10:14:57 AM
A number of folks have asked me about the naming convention used for the
CryptoAPI unique keycontainer files (Microsoft CSP keycontainer files).
These are encrypted (via DPAPI in W2k+) files holding RSA or DSA keypairs
and managed by the CSPs.
While these details are evidently WinOS-specific ... more >>
Baffled: SHGetSpecialFolderLocation throws MissingMethodException on Compact Framework
Posted by Michael Senf at 4/26/2004 10:10:30 AM
Hi,
I working on a very simple prototype to intercept file system change
messages on my Pocket PC.
When I use the SHGetSpecialFolderLocation function, I get a
MissingMethodException.
What am I doing wrong? If anybody has sample code how to receive fife system
notifiations, tat would be e... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Can someone Translate this
Posted by Gerry Viator at 4/26/2004 8:52:08 AM
Hi all,
Can someone translate this C++ to VB.NET
int _tmain(int argc, _TCHAR* argv[])
{
HWND hWnd = ::FindWindow("ConsoleWindowClass",NULL);//Find window
HMENU hMenu = GetSystemMenu(hWnd,FALSE);
DeleteMenu(hMenu,SC_CLOSE,MF_BYCOMMAND);
RECT rc;
::GetWindowRect(hWnd,&rc);
SetWind... more >>
slow reading of eventlog
Posted by zorro at 4/26/2004 3:21:04 AM
I need to read the entire eventlog and parse it. The application uses vb.net and the EventLog object. The problem i'm having is that it can take less then a second up to 15 seconds to read all entries in the eventlog. I used Perfmon and found the following two counters that were used heavily
..NE... more >>
WTSSetUserConfig help. Urgent!!!
Posted by Thomas Nygaard at 4/26/2004 2:11:03 AM
I am trying to call the WTSSetUserConfig function from VB.Net but it does not seem to work. I always get the error: "The user does not exist". But when I am using the function WTSQueryUserConfig to get the information i works ok.
My code is as follows
Const WTSUserConfigTerminalServerProfilePath... more >>
Passing a dotnet control as generic object problem???
Posted by nazim NO[at]SPAM ntierbusiness.com at 4/26/2004 12:45:10 AM
Hi All,
I have written a VB activex dll component, which exposes a method say
MethodA that takes one of the arguments as object (generic) type. The
method looks like this:
Public Sub MethodA(ByRef ctrl As Object, ByVal categoryID As
FontCategoriesEnum, Optional ByVal resID As Long)
When ... more >>
SetPrinter Call
Posted by Frank Jones at 4/23/2004 4:51:02 PM
We are trying to pause a printer from C# or VB code using the Win32 printer API's in the winspool.drv. We are having varying degrees of success. With the following VB code, the OpenPrinter call works, but we get an access denied error message upon calling SetPrinter. I have auditing turned on the... more >>
Is is possible to "Emit" an object that will work via Interop?
Posted by dearpolycarp NO[at]SPAM hotmail.com at 4/23/2004 10:01:26 AM
We're trying to sythetically emit an object on the fly and have it
work via COM Interop (we using scripting in our product). We can
generate the object just fine and it even kind of works, however I
need the equivalent of these attributes on the object I "Emit" and I
am unable to figure out how... more >>
AxInterop Bug?
Posted by Mike at 4/23/2004 6:37:57 AM
I'm having a strange problem and can't find a solution
anywhere. I have an ActiveX control that I added to the
toolbox. I then added it to the form with no problems and
ran the application. Everything looked good. I then
added the VC++ 6 source code as a project to my .NET
solution and... more >>
MFC COM client interop problem with arrays
Posted by Harold Guynn via .NET 247 at 4/22/2004 9:57:19 PM
I'm trying to send an array from a MFC COM client to a .NET assembly. It works fine with non-array data and with strings, but I get an error message "No such interface supported" when sending an array.
Here is the C# code:
namespace SpecTest
{
[ClassInterface(ClassInterfaceType.AutoDual)]
... more >>
Marshaling the structure array member of Structure in C#
Posted by Vini Deep via .NET 247 at 4/22/2004 9:54:24 PM
Hi,
I have a structure defined in a dll which has another structure array as a member. I need to call this Dll from C#. How do I do it?
This is the structure I have in the DLL.
typedef struct FIRST_STRUCT
{
double XSpeed;
int DRate;
unsigned int RotCtrl
} FIRST_STRUCT;
typedef stru... more >>
Disable x button of another program
Posted by Gerry Viator at 4/22/2004 12:31:48 PM
Hi all,
I want to disable the x button of an old dos based program?
I guess I will need a process running in the background ?
thanks for any help
Gerry
... more >>
RasEnumConnections
Posted by James Hancock at 4/22/2004 12:20:26 PM
I'm having problems using RasEnumConnections.
[DllImport("rasapi32.dll", CharSet=CharSet.Auto)]
public static extern int RasEnumConnections(ref RASCONN[] Connections, ref
int dwSize, out int TotalConnections);
[StructLayout(LayoutKind.Sequential, Pack=4, CharSet=CharSet.Auto)]
pub... more >>
SCardTransmit
Posted by fred at 4/22/2004 12:09:10 PM
Hello.
I try to read a smart card in win ce.net 4.0 with visual basic.net.
I use winscard.dll, the SCardEstablishContext, SCardConnect function work
fine but not SCardTransmit.
I use the scr131 smart card reader and i ve got an NotSupportedException
when i try to use this code.
my code ... more >>
Using .NET components from Perl
Posted by gzou at 4/22/2004 10:06:06 AM
I was looking for ways to use .NET components from Perl. I found there is a Perl module for .NET from a company called Datasophy Technologies (http://www.datasophy.com). Does anyone have any experience with this module? Their descirption is attached below
Thanks
gzo
dotNET for Perl is a... more >>
Does VB.NET Interop requires VB6 Runtime
Posted by Nelson Wu at 4/22/2004 10:04:30 AM
Hi
I have an Acitve DLL written in VB6, now I am planning to integrate it to my
VB.NET 2003 app via interop, it works OK,
the question is
Do I need to install VB6 runtime for the InterOp COM for the VB.NET apps
separately, or VB.NET app setup project will take care of all the necessary
runti... more >>
tlbimp and default interop assembly version numbers
Posted by pmmwap NO[at]SPAM yahoo.co.uk at 4/22/2004 5:42:24 AM
Does anyone know how tlbimp decides what version number to give to an
interop assembly it is building if you don't specify one using
/asmversion? I would have thought it might 'inherit' the version
number from the underlying COM dll being imported, but all the interop
assemblies I have built see... more >>
Problem: System.__ComObject recognition
Posted by dov_sheinker NO[at]SPAM yahoo.com (| at 4/22/2004 12:37:35 AM
Hello,
I have a problem and would appreciate help very much.
I have an application that receives instructions from a Windows script
engine.
When the windows script engine passes primitive types like string &
int, I can get them successfuly, however, when it passes more complex
structures, I ge... more >>
|