Click here to Skip to main content
15,900,389 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Is it possible to launch sub without autopostback in DDL? Pin
Parwej Ahamad4-Sep-06 21:19
professionalParwej Ahamad4-Sep-06 21:19 
AnswerRe: Is it possible to launch sub without autopostback in DDL? Pin
ii_noname_ii4-Sep-06 21:46
ii_noname_ii4-Sep-06 21:46 
GeneralRe: Is it possible to launch sub without autopostback in DDL? Pin
Dave Sexton4-Sep-06 22:03
Dave Sexton4-Sep-06 22:03 
GeneralRe: Is it possible to launch sub without autopostback in DDL? Pin
ii_noname_ii4-Sep-06 22:28
ii_noname_ii4-Sep-06 22:28 
GeneralRe: Is it possible to launch sub without autopostback in DDL? Pin
Dave Sexton5-Sep-06 0:23
Dave Sexton5-Sep-06 0:23 
GeneralRe: Is it possible to launch sub without autopostback in DDL? Pin
ii_noname_ii5-Sep-06 0:47
ii_noname_ii5-Sep-06 0:47 
GeneralRe: Is it possible to launch sub without autopostback in DDL? Pin
ii_noname_ii5-Sep-06 1:06
ii_noname_ii5-Sep-06 1:06 
QuestionType library exporter encountered a type that derives from a generic class Pin
rsegijn4-Sep-06 20:11
rsegijn4-Sep-06 20:11 
Although everything functions okay, I want to get rid of this warning (VS2005):

Warning: Type library exporter warning processing 'myCOMClass.FTPUtils.FTPdirectory, myCOMClass'.
Warning: Type library exporter encountered a type that derives from a generic class
and is not marked as [ClassInterface(ClassInterfaceType.None)].
Class interfaces cannot be exposed for such types.
Consider marking the type with [ClassInterface(ClassInterfaceType.None)] and
exposing an explicit interface as the default interface to COM
using the ComDefaultInterface attribute.

I have create a COM Class with the following structure:

Imports System.Runtime.InteropServices
<Guid("AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE")> _
Public Interface ImyCOMClass
Function FTPUpload(ByVal localFileNameFull As String, ...) As Boolean
Function FTPDownload(ByVal localFileNameFull As String, ...) As Boolean
End Interface

<ClassInterface(ClassInterfaceType.None), _
Guid("FFFFFFFF-GGGG-HHHH-IIII-JJJJJJJJJJJJ")> _
Public Class myCOMClass
Implements ImyCOMClass
Public Function FTPUpload(ByVal localFileNameFull As String, ...) As Boolean _
Implements ImyCOMClass.FTPUpload
Return (New WebUtilities()).UploadFile(localFileNameFull, ...)
End Function
Public Function FTPDownload(ByVal localFilenameFull As String, ...) As Boolean _
Implements ImyCOMClass.FTPDownload
Return (New WebUtilities()).DownloadFile(localFilenameFull, ...)
End Function
End Class

I added ftpclient.vb which you can find at http://www.codeproject.com/vb/net/FtpClient.asp to my project.
So the structure is:
myCOMClass.FTPUpload -> WebUtilities.UploadFile -> New FTPUtils.FTPclient().Upload

The above mentioned warning is caused by the following definition in ftpclient.vb:
Public Class FTPdirectory
Inherits List(Of FTPfileInfo)


Some suggestions?

Questionclearing a data table Pin
MAJackson4-Sep-06 18:12
MAJackson4-Sep-06 18:12 
AnswerRe: clearing a data table Pin
S Douglas4-Sep-06 23:48
professionalS Douglas4-Sep-06 23:48 
GeneralRe: clearing a data table Pin
MAJackson5-Sep-06 11:57
MAJackson5-Sep-06 11:57 
GeneralRe: clearing a data table Pin
S Douglas5-Sep-06 14:14
professionalS Douglas5-Sep-06 14:14 
QuestionHow I can get the text of a textbox that is on other app? Pin
Marco22504-Sep-06 14:54
Marco22504-Sep-06 14:54 
QuestionCalculating Date Pin
Nikhil Bandekar4-Sep-06 8:21
Nikhil Bandekar4-Sep-06 8:21 
AnswerRe: Calculating Date Pin
Guffa4-Sep-06 8:40
Guffa4-Sep-06 8:40 
GeneralRe: Calculating Date Pin
Nikhil Bandekar4-Sep-06 23:18
Nikhil Bandekar4-Sep-06 23:18 
QuestionCreate a Control Pin
Magno R. Vasquez4-Sep-06 8:13
Magno R. Vasquez4-Sep-06 8:13 
Questioninsert datatable into database Pin
playout4-Sep-06 7:30
playout4-Sep-06 7:30 
AnswerRe: insert datatable into database Pin
Dave Sexton5-Sep-06 0:44
Dave Sexton5-Sep-06 0:44 
QuestionWeb Part behaviour in Window Form Pin
Mohamed Ali Jinnah4-Sep-06 7:06
Mohamed Ali Jinnah4-Sep-06 7:06 
QuestionHelp with .NET Pin
Tommy4U4-Sep-06 6:22
Tommy4U4-Sep-06 6:22 
AnswerHelp with .NET Pin
Kanniah5-Sep-06 4:17
Kanniah5-Sep-06 4:17 
QuestionStamping PDF Pages Pin
Mansurali4-Sep-06 5:40
Mansurali4-Sep-06 5:40 
QuestionDatagrid display parent and child records (datarelation) Pin
Izak -4-Sep-06 5:07
Izak -4-Sep-06 5:07 
AnswerRe: Datagrid display parent and child records (datarelation) Pin
Dave Sexton5-Sep-06 0:46
Dave Sexton5-Sep-06 0:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.