Click here to Skip to main content
15,902,938 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: Decode MIME Mybase64 file Pin
jimborobb6-Mar-08 7:11
jimborobb6-Mar-08 7:11 
GeneralRe: Decode MIME Mybase64 file Pin
CPallini6-Mar-08 7:30
mveCPallini6-Mar-08 7:30 
GeneralRe: Decode MIME Mybase64 file Pin
jimborobb6-Mar-08 7:56
jimborobb6-Mar-08 7:56 
GeneralCounting identical items in listbox Pin
Fatboy586-Mar-08 2:44
Fatboy586-Mar-08 2:44 
GeneralRe: Counting identical items in listbox Pin
Dave Kreskowiak7-Mar-08 9:39
mveDave Kreskowiak7-Mar-08 9:39 
GeneralAudio Input in VB.Net Pin
VIP-CoMmAnDo6-Mar-08 2:25
VIP-CoMmAnDo6-Mar-08 2:25 
GeneralRe: Audio Input in VB.Net Pin
Dave Kreskowiak7-Mar-08 9:42
mveDave Kreskowiak7-Mar-08 9:42 
QuestionCalling a VB.NET function from C++.NET does not display function parameter names Pin
Ynyr Jones6-Mar-08 0:37
Ynyr Jones6-Mar-08 0:37 
Hi all,

I'm developing in Visual Studio 2003, and have created a 'middle layer' assembly in VB.NET to provide a security layer between a calling application and a database.

Namespace MiddleLayer<br />
<br />
    Public Class DataAccessLayer<br />
       ' Perform the database operations in here<br />
       Public Function ExecuteSQLCommand(ByRef cmd As SqlClient.SqlCommand) As Boolean<br />
         'Code here<br />
       End Function<br />
    End Class<br />
<br />
    Namespace BusinessLogicLayer<br />
        Namespace Tables<br />
            Public Class Part<br />
                Inherits DataAccessLayer<br />
<br />
                Public Function INSERT(ByVal Part_Name As String) As Boolean <br />
                   ' Create the SQL command object and pass to ExecuteSQLCommand<br />
                End Function<br />
             End Class<br />
        End Namespace<br />
    End Namespace<br />
End Namespace



The calling application, e.g. windows application, creates a new instance of the middle layer, and can call a function such as INSERT which will INSERT a new part into the database. E.g, calling from a VB.NET windows form...

Dim part As New TestResultsDatabaseMiddleLayer.MiddleLayer.BusinessLogicLayer.Tables.Part
part.INSERT("New part")


The functionality works fine, my issue is to do with when I call the function from a C++ application, e.g. a C++ Windows Form. The code is as follows...
TestResultsDatabaseMiddleLayer::MiddleLayer::BusinessLogicLayer::Tables::Part *part = New TestResultsDatabaseMiddleLayer::MiddleLayer::BusinessLogicLayer::Tables::Part<br />
part->INSERT("New part")


Again, functionally this works fine again. The issue is that Intellisense works differently between the two. When calling from VB.NET, after I type part.INSERT( intellisense will pop up and say "Part_Name As String" as the parameter. However, when I do part->INSERT( in C++ all I get is "System::String__gc*" - I.e, it doesn't actually tell me the parameter name.

The inention is to distribute the .NET assembly to some users around site, so they can write entries to the database. I develop in VB.NET but others develop in C++.NET and other .NET languages. Unless they know what the parameter names are, they cannot accurately write to the database unless I provide them with a database schema. This is fine, but I'd like to know If I don't have to do this?

Thanks in advance,

Ynyr Jones
GeneralRe: Calling a VB.NET function from C++.NET does not display function parameter names Pin
Dave Kreskowiak7-Mar-08 9:53
mveDave Kreskowiak7-Mar-08 9:53 
QuestionPlay wave files audio Pin
meghanaVishwa5-Mar-08 23:42
meghanaVishwa5-Mar-08 23:42 
GeneralRe: Play wave files audio Pin
Christian Graus5-Mar-08 23:47
protectorChristian Graus5-Mar-08 23:47 
QuestionWhere to download Sheridan Ultragrid 1.0 installer? Pin
hifiger20045-Mar-08 22:31
hifiger20045-Mar-08 22:31 
AnswerRe: Where to download Sheridan Ultragrid 1.0 installer? Pin
Christian Graus5-Mar-08 22:38
protectorChristian Graus5-Mar-08 22:38 
GeneralRe: Where to download Sheridan Ultragrid 1.0 installer? Pin
hifiger20045-Mar-08 22:54
hifiger20045-Mar-08 22:54 
GeneralRe: Where to download Sheridan Ultragrid 1.0 installer? Pin
Christian Graus5-Mar-08 23:02
protectorChristian Graus5-Mar-08 23:02 
Questionobject to interface casting [modified] Pin
shadow_25-Mar-08 22:04
professionalshadow_25-Mar-08 22:04 
GeneralRe: object to interface casting Pin
Christian Graus5-Mar-08 22:08
protectorChristian Graus5-Mar-08 22:08 
JokeRe: object to interface casting Pin
shadow_27-Mar-08 2:55
professionalshadow_27-Mar-08 2:55 
GeneralRe: object to interface casting Pin
Dave Kreskowiak6-Mar-08 7:52
mveDave Kreskowiak6-Mar-08 7:52 
GeneralRe: object to interface casting Pin
shadow_26-Mar-08 22:42
professionalshadow_26-Mar-08 22:42 
GeneralRe: object to interface casting Pin
Dave Kreskowiak7-Mar-08 3:12
mveDave Kreskowiak7-Mar-08 3:12 
GeneralRe: object to interface casting Pin
shadow_27-Mar-08 4:10
professionalshadow_27-Mar-08 4:10 
NewsRe: object to interface casting Pin
shadow_27-Mar-08 2:58
professionalshadow_27-Mar-08 2:58 
GeneralWindowless ActiveX controls are not supported Pin
tjskcp5-Mar-08 15:51
tjskcp5-Mar-08 15:51 
GeneralRe: Windowless ActiveX controls are not supported Pin
Christian Graus5-Mar-08 16:29
protectorChristian Graus5-Mar-08 16:29 

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.