Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Foreign Languages > German Forum
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Listview.dll

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-03-2007, 05:39 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 906
Awards Showcase
Beta Tester 
Total Awards: 1
Default Listview.dll

Hallo,
wer kann mir helfen?

Ich habe eine Listview.dll mit "Visual Studio 2005" erstellt (es fehlen aber noch ein paar Funktionen).

Es ist auch kein Problem in Basic4ppc einzufügen.
Aber schon bei der Zeile "listview1.new1("form1“,0,0,200,150)“ kommt der erste Fehler.

Was mache ich falsch?

Als Anlage ein Basic4ppc-Projekt (TestListview.zip) und das Listview-Projekt(Listview.zip)


Ciao,
Filippo
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #2 (permalink)  
Old 06-03-2007, 06:13 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 993
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hallo Filippo,

ich habe mich zwar bisher noch nicht an einer eigenen .dll versucht, würde aber gerne mal drüber schaun...
... wenn Du tatsächlich die Anhänge mitgeliefert hättest!


specci48
Reply With Quote
  #3 (permalink)  
Old 06-03-2007, 07:39 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 906
Awards Showcase
Beta Tester 
Total Awards: 1
Default

mit etwas verspätung...
Attached Files
File Type: zip Listviewprojekt.zip (14.1 KB, 80 views)
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #4 (permalink)  
Old 06-03-2007, 09:40 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 993
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Die Fehlermeldung sagt etwas von fehlender Objektinstanz...

Ich habe mal Dein Projekt mit der VB-Variante der ScrollBar verglichen. Dabei ist mir aufgefallen, dass in Deinem Konstruktor kein Objekt erzeugt wird:

ScrollBar:
Code:
    Sub New(ByVal FormName As Control, ByVal Left As Int32, ByVal Top As Int32, ByVal Width As Int32, ByVal Height As Int32, ByVal IsVertical As Boolean)
    
If IsVertical Then
        sb = <b>New VScrollBar</b>
    
Else
        sb = <b>New HScrollBar</b>
    
End If
    sb.Left = Left
    sb.Top = Top
    sb.Width = Width
    sb.Height = Height
    FormName.Controls.Add(sb)
Somit müsstest Du Deine Listview um folgendes ergänzen:
Code:
    Sub New(ByVal FormName As Control, ByVal Left As Int32, ByVal Top As Int32, ByVal Width As Int32, ByVal Height As Int32)
    <b>ListView1 = New 
ListView</b>
    ListView1.Left = Left
    ListView1.Top = Top
    ListView1.Width = Width
    ListView1.Height = Height
    FormName.Controls.Add(ListView1)

    
' Select the item and subitems when selection is made
    ListView1.FullRowSelect = True

End Sub
Vielleicht hilft es ja!

Gruß
specci48
Reply With Quote
  #5 (permalink)  
Old 06-03-2007, 10:15 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 906
Awards Showcase
Beta Tester 
Total Awards: 1
Default

genial!

du hast vollkomen recht, so muss es sein.
**********************************************
Sub New(ByVal FormName As Control, ByVal Left As Int32, ByVal Top As Int32, ByVal Width As Int32, ByVal Height As Int32)
ListView1 = New System.Windows.Forms.ListView
With ListView1
.View = View.Details
.Left = Left
.Top = Top
.Width = Width
.Height = Height
End With

FormName.Controls.Add(ListView1)
End Sub
**********************************************
Ich stelle die fertige DLL sobald ich fertig bin.

Danke und Ciao
FIlippo
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #6 (permalink)  
Old 06-10-2007, 09:03 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 906
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hallo,

ich brauche wieder etwas Hilfe damit ich die Listview.dll fertig machen kann.
Die jetzige Version ist bisher nur auf dem Desktop lauffähig.
Kann mir jemand sagen was noch fehlt, damit es auf dem PocketPC auch läuft?

Vielen Dank schon im Voraus

Ciao,
Filippo
Attached Images
File Type: jpg Fehlermeldung.jpg (6.3 KB, 19 views)
Attached Files
File Type: zip Listviewprojekt.zip (53.3 KB, 55 views)
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #7 (permalink)  
Old 06-16-2007, 02:01 PM
Newbie
 
Join Date: May 2007
Posts: 6
Default

Moin,

Ich hab mir mal deinen quellcode angeschaut und nichts auffäliges finden können (habe allerdings auch schon ewig nich mehr mit vb.net gearbeitet). allerdings ist mir aufgefallen, dass du die libary fürs cf 2.0 entwickelt hast? ich kann mich auch täuschen, aber meine erste libary hatte ich zuerst auch für 2.0 entwickelt und sie hat auch nich funktioniert. übertrage alles doch mal in ein neues 1.0 projekt. ich vermute, dass es dann funktioniert.

MfG Hoffi
Reply With Quote
  #8 (permalink)  
Old 06-16-2007, 10:37 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 906
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hallo hoffi,

erstmal vielen Dank für deine Antwort.
Es ist richtig, ich möchte die Library fürs cf 2.0 entwickeln weil hier ein paar Funktionen mehr sind die ich unbedingt für meine Application brauche.
Eins verstehe ich aber nicht, warum lauft es auf dem PPC nicht?
So viel ich weiss lauft Basic4ppc auch mit cf 2.0 oder?

Ich finde dass eine Listview-Library viel besser währ als ein Table-Control.

Na ja, vielleicht kann mir doch noch jemand weiter helfen oder mit entwickeln.

Ciao,
Filippo
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #9 (permalink)  
Old 06-17-2007, 10:18 AM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 993
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hallo Filippo,

mal ne ganz blöde Frage ... hast Du auf Deinem MDA Pro überhaupt .Net CF2 installiert?
Standardmäßig besitzt WM5 nur .Net CF 1.1 (genau wie mein iPAQ, daher kann ich Deine Library auch nicht testen).


specci48
Reply With Quote
  #10 (permalink)  
Old 06-17-2007, 01:21 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 906
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hallo specci48,

es ist bestimmt keine blöde Frage!
Das das .Net CF2 installiert ist sicher, sonst würde die SQL-Library nicht laufen und die läuft nur mit .Net CF2.

Aber so wie Erel jetzt mir in eine Email schreibt liegt es warscheinlich an Visual Studio 2005.
Hier die zwei sätze:
########################
You should make sure that you've created a .Net CF library and not a .Net
library.
If it was created with Visual Studio 2005 then it probably targets the .Net
CF 2.0.
########################

Ich werde es nochmal testen...

Ciao
Filippo
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Filtro con listview manu Spanish Forum 6 02-06-2010 11:36 AM
Listview.dll giannimaione German Forum 4 06-03-2008 09:34 PM
MS ListView enonod Basic4ppc Wishlist 2 04-27-2008 02:16 PM
Listview help jeterry Questions (Windows Mobile) 5 04-18-2008 12:36 PM
Using ListView burd27 Questions (Windows Mobile) 4 03-13-2008 02:21 PM


All times are GMT. The time now is 08:33 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0