Register and join over 40,000 other developers!
Recent Topics
-
The Game You Are Waiting For?
WendellHarper - Dec 06 2020 01:21 PM
-
Quora and Reddit Backlinks
WendellHarper - Dec 06 2020 01:14 PM
-
Delete account
pindo - Jul 23 2020 01:33 AM
-
Print specific values from dictionary with a specific key name
Siten0308 - Jun 20 2019 01:43 PM
-
Learn algorithms and programming concepts
johnnylo - Apr 23 2019 07:49 AM
Recent Blog Entries
Recent Status Updates
Popular Tags
- networking
- Managed C++
- stream
- console
- database
- authentication
- Visual Basic 4 / 5 / 6
- session
- Connection
- asp.net
- import
- syntax
- hardware
- html5
- array
- mysql
- java
- php
- c++
- string
- C#
- html
- loop
- timer
- jquery
- ajax
- javascript
- programming
- android
- css
- assembly
- c
- form
- vb.net
- xml
- linked list
- login
- encryption
- pseudocode
- calculator
- sql
- python
- setup
- help
- game
- combobox
- binary
- hello world
- grid
- innerHTML

1 reply to this topic
#1
Posted 25 December 2007 - 10:19 AM
Hi all,
I am newbie to .NET technology, but through some forum I know that it is possible to call VB .Net call function calls from a managed C++ code. The VB .Net code is some what like this which is in Sample.vb
using System
Public class Test
Public Function getName(ByVal fsName as String) as String
Dim lsReturn as String
lsReturn = "Welcome " & fsName
Return lsReturn
End Function
End class
I need to call getName function form managed C++ code, so please let me know how this can be achived or any sample piece of code.
Would appreciate for the same.
Thanks & Regards
Pranab Bhatta
I am newbie to .NET technology, but through some forum I know that it is possible to call VB .Net call function calls from a managed C++ code. The VB .Net code is some what like this which is in Sample.vb
using System
Public class Test
Public Function getName(ByVal fsName as String) as String
Dim lsReturn as String
lsReturn = "Welcome " & fsName
Return lsReturn
End Function
End class
I need to call getName function form managed C++ code, so please let me know how this can be achived or any sample piece of code.
Would appreciate for the same.
Thanks & Regards
Pranab Bhatta
#2
Posted 25 April 2012 - 07:51 AM
You can do it by following way.
- Right click your managed C++ projects --> Properties -->Common Properties --> Framework & References
- Click on 'Add New Reference' button
- Now from the 'Add Reference' window, select 'Projects' tab if your VB code is a class library in the same solution of your managed C++ project and select the vb project from the list. If your VB code is in a separate library/dll, select 'Browse' tab and browse the VB dll/library.
// This code considers that your VB code's Test class is in VBClassLibrary namespace VBClassLibrary::Test^ test = gcnew VBClassLibrary::Test(); test->getName("string argument");
Also tagged with one or more of these keywords: Managed C++, form
General Forums →
General Programming →
Specifying PHP file path while creating an HTML formStarted by gvvishwanath, 30 Dec 2015 ![]() |
|
![]() |
||
Language Forums →
HTML, CSS and Javascript →
Jquery Validation in Partial View Form Isn't TriggeringStarted by googaplex, 01 Jul 2015 ![]() |
|
![]() |
||
Language Forums →
HTML, CSS and Javascript →
how to deal with the forms indtified with idStarted by scseguanshui06, 20 Jul 2014 ![]() |
|
![]() |
||
Language Forums →
PHP →
what script do I run on a form?Started by kxx4, 12 May 2014 ![]() |
|
![]() |
||
Language Forums →
Visual Basic →
Send multipart form data. (Send strings and a file)Started by LegacyDash, 21 Feb 2014 ![]() |
|
![]() |
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download