Jump to content
Xtreme .Net Talk

Kingherc

Members
  • Posts

    6
  • Joined

  • Last visited

Personal Information

  • Visual Studio .NET Version
    Visual Studio .NET Enterprise 2003
  • .NET Preferred Language
    VB.NET

Kingherc's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. You were partially right. I did the following thing (that was more simple, but hardly to be found): I compliled the C# project in a class library and not as a Windows Application. Then I copied the .dll file that was created when the project was built and referenced it in my project. And it works fine now.
  2. My project works for smartphone 2003, so it uses .net compact framework 1.0. The program is ran in the emulator. But on my PC i have installed .net framework 1.1 (from the beginning). So, how do I define the dependancy for the dll file when I compille it?
  3. Well I think I found the error. When I reference the dll the class viewer browser finds the dll and shows the namespace and the class. And finally the editor recognizes the Dim line. But now, when I try to start the application it shows the following two errors upon build (only when I reference the dll): Error: The dependency 'mscorlib, Version=1.0.5000.0, Culture=neutral, PublicK project 'PocketImageEdit directory because it wou Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Error: The dependency 'mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in project 'PocketImageEditor' cannot be copied to the run directory because it would conflict with dependency 'mscorlib Version=1.0.5000.0, Culture=neutral, PublicKeyToken=969db8053d3322ac'. Well I think it has to do with the dll compiling from the C# code script. But how do I fix this?
  4. The error message says that the Type is not defined. (hell of a specific error eh?)
  5. No no. The problem is not with declaring i think. It's public though. I don't know how to make Vstudio recognize the class so that I can create an object with the class freely. I can write code but I dunno how to relate the dll with the application...
  6. I now write a .net application in VB.NET in Visual Studio 2003.NET (but for the .net compact framework). But I also have a ready C# file that I want to use-integrate and use it in my application. But the project only accepts .vb files and not .cs. So I figured I should make a dll file out of the .cs so as to use it in my app. (I used csc.exe to do that). The dll contains a namespace and a class. How do I integrate it with my project so that I can create a new object with the class in the dll file? I tried adding the dll in the Referenced but it still shows this line wrong: Dim nn nn = new NamespaceInDll.ClassInDll() What's wrong? And how do I use the dlls? Plz, give me simple vb.net help cause the help topics are very complex. Thx for any responses!
×
×
  • Create New...