Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi Everyone,

 

Basically I want to call methods of my C++ dll from VBscript. I searched for it in google, but everywhere I got solutions regarding .net dll rather than c++ dlls.

 

An example of one of my C++ methods is:

 

extern "C" __declspec(dllexport) int __cdecl test()
{
return 20;
}

 

Now, i want to call this method 'test' from a VBscript. I would really be grateful if I would get some help regarding this.

 

Thanks in advance,

sattu

  • Leaders
Posted

From what I understand the short answer is you can't do that.

 

There are some workarounds, but I have no experience with these solutions. Apparently there are third-party COM components designed for calling native DLLs. You can also create your own COM wrapper with VB6 or .NET that you can then call from VBscript. One way or another you'll need a middle layer that can work with both VBscript and native code.

[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...