Fetstil Fetstil Kursiv Understrykning linje färgläggning tabellverk Punktlista Nummerlista Vänster Centrerat högerställt Utfyllt Länk Bild htmlmode
  • Forum & Blog
    • Forum - översikt
      • .Net
        • asp.net generellt
        • c#
        • vb.net
        • f#
        • silverlight
        • microsoft surface
        • visual studio .net
      • databaser
        • sql-server
        • databaser
        • access
        • mysql
      • mjukvara klient
        • datorer och komponenter
        • nätverk, lan/wan
        • operativsystem
        • programvaror
        • säkerhet, inställningar
        • windows server
        • allmänt
        • crystal reports
        • exchange/outlook
        • microsoft office
      • mjukvara server
        • active directory
        • biztalk
        • exchange
        • linux
        • sharepoint
        • webbservers
        • sql server
      • appar (win/mobil)
      • programspråk
        • c++
        • delphi
        • java
        • quick basic
        • visual basic
      • scripting
        • asp 3.0
        • flash actionscript
        • html css
        • javascript
        • php
        • regular expresssion
        • xml
      • spel och grafik
        • DirectX
        • Spel och grafik
      • ledning
        • Arkitektur
        • Systemutveckling
        • krav och test
        • projektledning
        • ledningsfrågor
      • vb-sektioner
        • activeX
        • windows api
        • elektronik
        • internet
        • komponenter
        • nätverk
        • operativsystem
      • övriga forum
        • arbete karriär
        • erbjuda uppdrag och tjänster
        • juridiska frågor
        • köp och sälj
        • matematik och fysik
        • intern information
        • skrivklåda
        • webb-operatörer
    • Posta inlägg i forumet
    • Chatta med andra
  • Konto
    • Medlemssida
    • Byta lösenord
    • Bli bonsumedlem
    • iMail
  • Material
    • Tips & tricks
    • Artiklar
    • Programarkiv
  • JOBB
  • Student
    • Studentlicenser
  • KONTAKT
    • Om pellesoft
    • Grundare
    • Kontakta oss
    • Annonsering
    • Partners
    • Felanmälan
  • Logga in

Hem / Forum översikt / inlägg

Posta nytt inlägg


Have big problem with windows control dll

Postades av 2006-03-31 11:25:57 - Tony Johansson, i forum c# (c-sharp), Tråden har 2 Kommentarer och lästs av 580 personer

Hello!

I write in english because I might use other new group with the same qestion.

I have one solution file that consist of three project.
One project that build the exe file.
One project that build a class library dll
One project that build a windows control dll

In the windows control c-tor is there a call to a method in the class
libarary.
So in the project referense settings for the windows control I have a
project referens to the class library.

In the exe file c-tor I have a call to a method in the class library.
So in the project reference settings for the exe file I have a project
reference to the class library and to
the windows control because I can drag the windows control from the toolbox
to a form in the project that build the exe file.

Now to my problem if I now rebuild the project only for the class library
and then try to drag the windows control to a form I get the following error
"An exception occured while trying to create an instance of Middle.Middle.
The execption was "?"."

But if I rebuild the windows control instead then I can drag the windows
control from the toolbox to a form in the project that build the exe file.

My first question why do I get this error.
My second question is what is the recommended setting for copy local that
exist on each project. It it to have true or false.

My third question is what requirement is it about the version that each dll
have. I mean when an exe file will call a dll or when a dll will call
another dll.

//Tony


Svara

Sv: Have big problem with windows control dll

Postades av 2006-03-31 14:48:31 - Simon Dahlbacka

1. CROSS-POSTA INTE!

- ifall du inte ens orkar skriva dina frågor, så är ju inte intresset speciellt stort att svara..

2. din engelska är inte direkt lysande..

- skulle du skriva på svenska är det enklare att förstå dej


Svara

Sv:Kan inte instansiera min window control från toolboxen

Postades av 2006-03-31 15:22:44 - Tony Johansson

Hej!


Jag har en solution som består av 3 projekt
Det ena projektet bygger exe filen.
Det andra projektet bygger class library
Det tredje projektet bygger en window control

I konstruktorn för window control anropas en metod i klass library.
I projektet för window control har jag en projekt referens till klass library

I projektet som bygger exe filen har jag ett anrop som görs i konstruktorn till en metod som finns i class library.
Har därför i projektet som bygger exe filen en projekt referens till class library

Eftersom jag kan dra en window control från toolboxen till en form har jag
en projekt referens till window control från projektet som bygger exe filen.

Nu till mitt problem som jag hoppas få lite hjälp med.
Om jag nu gör rebuild på klass library och sedan drar en window control till en form får jag
följande fel
"An exception occured while trying to create an instance of Middle.Middle.
The execption was "?"."

Men om jag istället gör rebuild på window control kan jag dra min window control till en form.

Min första fråga lyder: Varför får jag detta fel?

Min andra fråga lyder: Vad är det som gäller beträffande versioner då en dll anropar en annan dll.
Måste dessa två ha samma versioner?

//Tony


Svara

Nyligen

  • 09:09 Vill du köpa medicinska tester?
  • 12:47 Vem beviljar assistansen – kommune
  • 14:17 Någon med erfarenhet av hemstädnin
  • 14:14 Bör man använda sig av en båtförme
  • 14:12 Finns det någon intressant hundblo
  • 14:25 Tips på verktyg för att skapa QR-k
  • 14:23 Tips på verktyg för att skapa QR-k
  • 20:52 Fungerer innskuddsbonuser egentlig

Sidor

  • Hem
  • Bli bonusmedlem
  • Läs artiklar
  • Chatta med andra
  • Sök och erbjud jobb
  • Kontakta oss
  • Studentlicenser
  • Skriv en artikel

Statistik

Antal besökare:
Antal medlemmar:
Antal inlägg:
Online:
På chatten:
4 569 169
27 953
271 705
788
0

Kontakta oss

Frågor runt konsultation, rådgivning, uppdrag, rekrytering, annonsering och övriga ärenden. Ring: 0730-88 22 24 | pelle@pellesoft.se

© 1986-2013 PelleSoft AB. Last Build 4.1.7169.18070 (2019-08-18 10:02:21) 4.0.30319.42000
  • Om
  • Kontakta
  • Regler
  • Cookies