Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 877807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:40:17+00:00 2026-05-15T11:40:17+00:00

I would like to import a VB.NET DLL file into C++/CLI. I am having

  • 0

I would like to import a VB.NET DLL file into C++/CLI. I am having trouble referencing my DLL file. I have tried to find tutorials but with no luck, in particular, I usually find how to import managed libraries directly into native code through COM. I would like to import an existing VB.NET DLL file into my C++/CLI project.

Do I require a header file or a declaration file to import and use my VB.NET DLL file?

Foo.vb

Public Module Foo
    Public Function Bar(ByVal a As Integer, ByVal b As Integer) As Boolean
        Return a > b
    End Function
End Module

Mixed.cpp

#include "stdafx.h"
#using "..\Foo\bin\Debug\Foo.dll"
using namespace System;

int main(array<System::String ^> ^args)
{
    bool i = Foo::Bar(10,1);
    Console::WriteLine(i);
    return 0;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T11:40:18+00:00Added an answer on May 15, 2026 at 11:40 am

    Try looking at the discussion in Unmanaged C++ to C# interop (replacing CCW), especially Kuldeep_s last post. It’s about accessing a C# DLL file from unmanaged C++ via managed C++. If you skip the umanaged C++ bit it would match your scenario (calling a C# DLL vs a VB.NET DLL shouldn’t make any difference).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to be able to import TFS tasks / work items into
Say we have a class like this: import java.net.URL import xml._ class SearchData(xml: Node)
I am having trouble with this combination: I would like to bind both my
I would like to know what is the best import strategy within django reusable
I would like to test a string containing a path to a file for
I would like to share what i have prepared so far and at the
I have a .NET application that processes around 300,000 records in a batch import,
Is it possible to have an ASP .NET MVC 3 project compiled into an
I would like to create a .exe wrapper for a Flash Player using VB.NET.
I have a word document that I would like to have viewed as an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.