all groups > dotnet interop > september 2004 > threads for september 8 - 14, 2004
Filter by week: 1 2 3 4 5
iadstools ctor access violation
Posted by frank brown at 9/14/2004 10:46:09 PM
The following line of c# code:
IADsTools.DCFunctionsClass oIADsTools = new IADsTools.DCFunctionsClass();
causes a memory access violation (but the rest of the program runs,
including calls to oIADsTools member functions).
Can anyone provide a clue what I'm doing wrong? I created IADsTools... more >>
Calling Unicode Version of GetFileAttributesEx
Posted by Mark Olbert at 9/13/2004 9:48:52 PM
Environment: C#, Framework 1.1, WinXP SP2
Okay, first off I admit I don't really know what I'm doing here.
I find that I must dip into the Windows API because MS, in its infinite wisdom, "bound" the File and
FileInfo objects in the Framework to the "short path" version of the file API functi... more >>
Web Mail - Exchange 2000 (Stopped Working)
Posted by KeithO at 9/13/2004 6:57:01 PM
This was working:
smtpMail.SmtpServer = sServerName
smtpMail.Send(Message)
'//
Now getting HttpException: Could not access 'CDO.Message' object.
InteropServices.COMException (0x80040213): The transport failed to connect
to server.
Note:
The Win 2000 AD Servers were replaced By Win 2003 ... more >>
Unable to Find Entry Point Named XXXXX
Posted by Rich S. at 9/13/2004 4:41:16 PM
Hello,
I have a function in a native DLL declared as follows:
__declspec(dllexport) int Start( char* Key );
And the declaration in my C# class is as follows:
[DllImport("SockSp10.dll")]
public static extern int Start([MarshalAs(UnmanagedType.LPStr)] string Key);
Yet when I ca... more >>
Portable Code Base for both Pocket PC's and Desktops
Posted by Tarundeep Singh Kalra at 9/13/2004 1:35:03 PM
Hi,
i am facing a peculiar problem with regards to Code Portability both on
Pocket PC and Desktops.
My company wants me to maintain the common code base for both the platforms.
Is .NET suitable for that ( Is WinCE.NET and .NET same).
Can we do it in SDK (pocket pc sdk and desktop SDK).
... more >>
Tiling and Cascading windows
Posted by Peter McElroy at 9/13/2004 12:16:44 PM
Hi,
I'm trying to add "Cascade" windows functionality in a C# SDI application,
using the win32 API call:
WORD CascadeWindows( HWND hwndParent,
UINT wHow,
const RECT *lpRect,
UINT cKids,
const HWND *lpKids
);
I've being trying to use the API in the following wa... more >>
Invoke C#-Function calls in aspx pages
Posted by Sandro at 9/13/2004 10:21:52 AM
hello ng
i know, probably i am not the first asking about this, but i am really
dependent on it.
i have an asp.net application (aspx/jscript with c# codebehind) and i am
searching for a possibility
to invoke c# funtioncalls in the jscript-code.
as i know there is a possible way by using ... more >>
XP visual style problem (bug?) when COM dll used in C#
Posted by Asko Telinen at 9/12/2004 9:37:46 PM
Hi all.
I have a following problem.
I wrote a ATL dll using VC 6.0, which is kinda interface to the
database. In this dll, i got a selection dialog, which is whown to the
user by calling method, called "SelectProject". I tested the dll in vb6
(and even Notes 6.0) and it works just fine... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Click Event Being Called Twice
Posted by Josh Asbury at 9/12/2004 11:00:46 AM
I am really struggling with something that is going on in an Excel menu
add-in that I have written ( Code snippets are below ) using Visual VB.net
2002. If a commandbar has the same caption as another commandbar elsewhere
in the menu structure, it calls both Click events and subsequently inserts... more >>
c# and Excel 2000/XP/2003
Posted by thrax at 9/11/2004 7:47:06 PM
Hi,
I am making an application using C# and excel. I am not sure of the version
of office installed on the clients machine. If i make application with
excel from office 2000 will the application work with other versions of
office?
thanx in advance... more >>
How to port char to C#?
Posted by Thomas Fisher at 9/11/2004 11:09:36 AM
Hello All,
I'm researching how to port this to C#:
const char * viddecDebugNames[NVVIDDEC_DEBUG_LAST] =
{
"TIMING",
"TRACE",
"MEMORY",
"LOCKING",
"ERROR",
"CUSTOM1",
"CUSTOM2",
"CUSTOM3",
"VIDDEC",
"SPDEC",
"MPGVDEC",
"DVDSPDEC",
"L21DEC",
"DXVA"
};
But I'm not... more >>
VC++60 and C# interoperation
Posted by Markku Heikkilä at 9/10/2004 3:48:54 PM
Simple question
We have huge application written in VC++6.0.
We are planning to develop some new parts with C# and WebServices.
Question is..
Is it possible to use C# components from VC++60 application?
If it is some reference or example would be nice.
Thanls in advance:)
Greetings ... more >>
IDispatch Help
Posted by Mike Carr at 9/10/2004 10:51:02 AM
I am trying to implement an existing C++ Sink Interface (????).
In the C# initializeTestApp, if I try to cast to WRAPPERLib.IWrapper it
throw and exception. Currently the object that comes across is a
{System.__ComObject} how can I get this to be a pointer to
WRAPPERLib.IWrapper in C#?
Here ... more >>
Problem with Shell interop
Posted by FramMla at 9/9/2004 11:36:26 PM
Thanks if you can bring me some answer elements or a link to an answer
I searched the web for 48h without result.
Those remarks are directly based on the example given with the VS (2003)
that you can find localy at:
C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\Samples\Technol... more >>
Any news on the release Excel bug?
Posted by Lars-Erik Aabech at 9/9/2004 1:46:24 PM
I'll just refer to
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=9DEB3050-8CBF-4E69-BC9B-9FD22E8AE536%40microsoft.com&rnum=3&prev=/groups%3Fq%3Dexcel%2520quit%2520interop%2520process%2520asp.net%26num%3D20%26hl%3Den%26lr%3D%26ie%3DUTF-8%26sa%3DN%26tab%3Dwg
and ask if the problem has g... more >>
Excel SaveAs to a Text file
Posted by Nancy. at 9/9/2004 12:51:45 PM
Do you have an example on how to save an Excel file as a
text document?
Thanks,
Nancy.... more >>
regasm exports private unmanaged classes?
Posted by aevans1108 NO[at]SPAM yahoo.com at 9/9/2004 11:55:42 AM
Greetings
I'm using VC++.NET to create a class library. The class library
contains managed classes that wrap legacy unmanaged classes by the
same name.
I use regasm to register the DLL for COM interop.
If I don't include any managed classes in the library, the context
help in VB6 lists ... more >>
Event not received in COM
Posted by Nicola Garone at 9/9/2004 11:37:05 AM
Thanks to Christian Fröschlin suggestions I solved the problem I've posted
few days ago, so now I have a .NET application which expose an event through
an interface of type InterfaceIsIDispatch, When I use my control in a VBA
application I can see the event just declaring my object with WithEv... more >>
Excel & C# questions
Posted by Terry at 9/9/2004 10:14:30 AM
I am creating a C# app to generate an Excel file and I have a couple of
questions.
First I can't get the Zoom option to work. I have an Excel sheet define as
oSheet.
This line : oSheet.PageSetup.Zoom = 75; doesn't do anything. I get no errors
but when I open my Excel file, the zoom is still set... more >>
Threading issues with COM Interop
Posted by rajesh.sivakumar at 9/8/2004 11:10:41 PM
I am using a third party COM componenet which is not thread safe in a .Net
web application using Interop. When two threads (two requests) are trying to
access the componenet it is giving an error and crashing. It works fine if
the request is made only one at a time. How can I code around this pro... more >>
newbie: confused about interop
Posted by Andy Fish at 9/8/2004 7:36:34 PM
Hi, I am just trying to find my way in interop and I just need a pointer as
to what I should be doing.
Reading the documentation tells me I need to use "tlbimp" to create an
interop DLL. However, when I do "add reference" and select the COM tab, I
can something fom the list (in this instanc... more >>
pass short[] as short* to COM object in C#
Posted by michael_konopka NO[at]SPAM hotmail.com at 9/8/2004 1:41:59 PM
Hello,
I have a 3rd party ActiveX control that I'm using in C# / Visual
Studio.
I added the ActiveX control to the toolbox and dropped it onto a form
and for the most part it works great.. until I need to get data from
the control using the method GetImageDataCrop.
Visual Studio wrapped ... more >>
how to convert c#-bytearray to c++-char* ???
Posted by Ekim at 9/8/2004 12:47:04 PM
hy everybody,
I'm accessing a function of a managed-c++-dll within my c#-application.
Therefore I encountered following troubles:
In my c#-app I have got a byte[]-array, which should somehow be mapped to a
char* in my managed-c++-function.
Here is the prototype:
---------------------- manage... more >>
function import
Posted by Thomas Fisher at 9/8/2004 12:34:16 PM
Hello,
This is a rephrasing of a previous question that I didn't get an answer to,
maybe putting it differently will help.
In Baf.dll there is a function prototype:
BOOL CDECL LaunchRunner (LPCSTR szUserDisplay, BOOL* pbEnabled);
How would this be defined in VB.Net or C# and how should ... more >>
VBA code in a VB.Net application
Posted by Igor Mendizabal at 9/8/2004 11:08:24 AM
Hello
We have a VB6 application that integrates an VBA IDE from which the final
user can make modifications.
We want to pass the application to VB.NET, and the first step, before
rethinking the whole application, is to pass the conversion wizard and see
how it goes.
But we want to keep t... more >>
Creating .Net to .Net automation
Posted by James Vaughn at 9/8/2004 8:33:34 AM
I have successfully written C# .Net applications that automate excel and
word. Now I need to implement automation between .Net applications and I am
thoroughly confused. Interop refers to COM - .NET interoperability, is it
applicable? In my fiddling I have tried to link to my running .NET apps... more >>
|