|
Hi,
I`m having a lot of trouble linking in a standard (or COM based) DLL in the framework (written in C#), has anyone got any ideas to help?
|
|
|
|
|
One of the most important disadvantages of .NET Framework is youth of it. Hence there is not enough open source complementary classes and sources. One of the most important complementary frameworks which .NET needs to have is an OR Mapping tool for mapping persistence data in to classes. Reflection and Attributes in .NET framework make it easier to write such a framework (I’ve written a simple OR mapping framework and it only take 3,000 lines of code!!). Another important issue is distributing persistent objects in multi tire programs. I think it is a good idea to write a flexible framework for publishing persistent data in Object oriented way. Lots of OR mapping tools are available for java (like hibernate and OJB). Hence, I lunched a project in sourceForge for writing such an OR mapping in C# with distribution and remoting support and named the project dotDORM(Distributed OR Mapping). Although the project is not approved , yet I call for arm from any experienced C# developer’s to contribute in this project. If any one wants to know more about the project send an email to me. My email address is Behrang_j@yahoo.co.uk
Regards
Behrang
|
|
|
|
|
Hi..
If I write my program in .NET (such as C# or VB .NET), will it runt on the Mac Platform? or do I have to install extra software?
Thanks in Advance
Andy
|
|
|
|
|
Although the CLI has been released for OS X I wouldn't count on anything working right on a Mac. Naturally you would need this installed before any app could attempt to run.
|
|
|
|
|
Hi!
any idea when a .NET Framework will be available on UNIX/LINUX platform?
Bye,
Orbital^
...the night is long ... but not long enought to do some real coding ...
|
|
|
|
|
You've got to distinguish between which portion of the .NET framework you are talking about. I know it sounds weird, but that's the way it goes.
- CLR + CLI + CTS + core class libraries (non windows forms) ==> Rotor[^] (also known as shared source cli)
- Windows forms ==> Mono[^] (even if mono has decided to rely on a third-party WIN32 lib for all native calls)
- C# compiler ==> not sure about it, but I think Mono covers it too.
|
|
|
|
|
What about an oficial MS release ?
Bye,
Orbital^
...the night is long ... but not long enought to do some real coding ...
|
|
|
|
|
The only "official" release, if you want to call it that, is the shared source reference implementation, Rotor: The Shared Source CLI Beta Refresh [^] (also available at Corel[^].) Yes, it was jointly developed.
It targets WinXP and FreeBSD.
|
|
|
|
|
.S.Rod. wrote:
not sure about it, but I think Mono covers it too.
Yep, Mono has the C# compiler. The sources to JScript .NET and C# compiler are available in Rotor as well.
James
- out of order -
|
|
|
|
|
If an application makes use of assemblies (what ones don’t). and both the assembly and the application need to pull some configuration values form a file, do I need one .config file for the app and individual ones for each assembly?
…Or do the assemblies use the applications .config file because they are running inside of it?
I am kind of hoping that they can all share a file….
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
|
|
|
|
|
They use the same .config file.
James
- out of order -
|
|
|
|
|
I have a component that we need to move out of the .NET world and expose to a VB6 application. In the IDE, I checked the box to register for COM and I tried to follow the advice given in the popup box.
So I strong named the assembly. That, with the checkbox, gave me the dll and the tbl file after compilation. I seem to still be missing the metadata file for the component and that is stopping the VB6 code from seeing the methods and properties. Is this something I must build manually? If so, how do I know the format of the metadata file???? If not, what am I missing that is preventing the metadata file from being built when I compile?
Any help is greatly appreciated.
_____________________________________________
The world is a dangerous place. Not because of those that do evil, but because of those who look on and do nothing.
|
|
|
|
|
Well, you already have the 2 pieces needed to use your COM objects. Part of the process is that the type-lib and assembly files (tlb & dll) need to be registered using regasm.exe. That utility can be found wherever the .Net Framework is installed - typically in the folder "C:\WINNT\Microsoft.NET\Framework\v1.0.3705" on Windows NT & 2K.
I've found that I don't need to register the tlb file since when I regasm the dll, it also does the embedded tlb as well (it also MAKES a tlb file for you too).
I should think that this is being done for you when you compile your project. However, this is a project setting and may not be set/active/non-existent in your project.
|
|
|
|
|
Hi John.
Here is all that we have done so far.
I added COM Visible(true) for all of my public properties and methods.
I added a [ClassInterface(ClassInterfaceType.AutoDual)] at the head of my class library.
I compiled it and sent the DLL and TBL file to the developer.
He did run RegAsm (he has been doing it every time)
This last attempt he did a
regasm myclass.DLL /codebase /tlb:myclass.tlb /verbose
When he creates reference to the DLL and looks in the object viewer, he is not seeing anything inside the class library. The constructor is visible (obviously) but no public accessors or methods.
_____________________________________________
The world is a dangerous place. Not because of those that do evil, but because of those who look on and do nothing.
|
|
|
|
|
Does anyone know of a good way to marshal data into an unmanaged array of structs.
I tried using StructureToPtr with an incremented IntPtr, that I've allocated with
Marshal.AllocHGlobal, but it doesn't seem to work.
|
|
|
|
|
I have been researching how to customize what is drawn in a list box. The docs are great and I have had good advice and have samples of drawing images and custom strings and even multi-column lists. However, I need to find out if I can create an instance of a cust control as the item in my list box. I know the drawmode must be set to ownerdrawfixed. I also hook into the drawitem event that the listbox raises...but can't quite figure out how to get my control to draw in the list box.
|
|
|
|
|
Hello:
I was trying my first example of a .aspx page. I have .Net Framework and its SP2 installed (I did it twice!). I keep getting this error while trying to retrieve the page through the browser:
============================================================================
Server Error in '/testsite' Application.
--------------------------------------------------------------------------------
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1595: 'System.Collections.ArrayList' is defined in multiple places; using definition from 'C:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll'
Source Error:
Line 49: private static bool __intialized = false;<br />
Line 50: <br />
Line 51: private static System.Collections.ArrayList __fileDependencies;<br />
Line 52: <br />
Line 53: public bmpSave_aspx() {
Source File: C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\testsite\29dafa64\9b4d9e5c\mwsj-thi.0.cs Line: 51
Show Detailed Compiler Output:
C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.0.3705\csc.exe" /t:library /utf8output /R:"c:\winnt\assembly\gac\system.web.services\1.0.3300.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\winnt\assembly\gac\system.drawing\1.0.3300.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\winnt\assembly\gac\system.enterpriseservices\1.0.3300.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /R:"c:\winnt\assembly\gac\system.xml\1.0.3300.0__b77a5c561934e089\system.xml.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll" /R:"c:\winnt\assembly\gac\system.web\1.0.3300.0__b03f5f7f11d50a3a\system.web.dll" /R:"c:\winnt\assembly\gac\system\1.0.3300.0__b77a5c561934e089\system.dll" /R:"c:\winnt\assembly\gac\system.data\1.0.3300.0__b77a5c561934e089\system.data.dll" /out:"C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\testsite\29dafa64\9b4d9e5c\mwsj-thi.dll" /debug- /optimize+ /warnaserror /w:1 "C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\testsite\29dafa64\9b4d9e5c\mwsj-thi.0.cs"
Microsoft (R) Visual C# .NET Compiler version 7.00.9466
for Microsoft (R) .NET Framework version 1.0.3705
Copyright (C) Microsoft Corporation 2001. All rights reserved.
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\testsite\29dafa64\9b4d9e5c\mwsj-thi.0.cs(51,24): error CS1595: 'System.Collections.ArrayList' is defined in multiple places; using definition from 'C:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll'
===========================================================================
the erroneous code is not part of my code. I think is code generated by the compiler. What could I do? I have reinstalled the .Net Framework for the second time and nothing changes.
Thanks in advance for any answer/hint. Anyone with similar weird compilation errors?
Regards, Juanma.
_.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`
Juan Manuel Gómez Ramos
B.Sc. Computer Science
eMail:<cronosxfiles@yahoo.com>
eFax:+1-707-313-0329 (USA) +44-870-125-4936 (UK)
http://chronos.itgo.com
^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._
|
|
|
|
|
Hi,
I just can't find any classes that provide System Information (like the OS for exanple). Can anybody show me the right direction pls?
Thanks a ton,
Matthias
In theory, there is no difference between theory and practice. In practice, however, there is.
(unknown author)
|
|
|
|
|
SystemInformation has some information,but not OS version.If you didn't find it,you can use win32 API,GetVersion
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
|
Hi,
thanks a lot. Environment was the correct answer. MSDN didn't spit it our and I'm really getting tired of the huge MSDN Lib where you just can't find anything ;(.
Once more, thanks for the sound advice.
Matthias
In theory, there is no difference between theory and practice. In practice, however, there is.
(unknown author)
|
|
|
|
|
Hi,
How can I call my existing MFC based Dll (developed in VC 6) functions/ classes from ATL Web service/ Managed C++ Web service?
Atin.
|
|
|
|
|
:-OI need to make the datetimepicker control in my project be flatten, but I don't know how to do it. Pls help me find the solution or give me the address to find this! Thanks in advance
ChanPhuong
|
|
|
|
|
Can anybody tell me how to find out if a Culture got by CultureInfo.CurrentCulture has Right-To-Left or Left-To-Right
reading order?
I just can't find a member for that purpose...
Thanx
John
|
|
|
|
|
I'm working on a distributed application, and I would like to only have the WinUI on the client machine, and keep DataAccess, BusinessRules, BusinessFacade and so forth, on a server. Is this posible? If so, how? Does anyone know of any articles related to this?
this program will be used from anywhere between three and three hundred people at a time.
excuse any typing mistakes, its 4am
~Dan
|
|
|
|