Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > General Discussion
  New Posts New Posts RSS Feed - Calling VC DLL in VB Apps
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Calling VC DLL in VB Apps

 Post Reply Post Reply
Author
Message
manoj View Drop Down
Newbie
Newbie
Avatar

Joined: 26 October 2004
Location: India
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote manoj Quote  Post ReplyReply Direct Link To This Post Topic: Calling VC DLL in VB Apps
    Posted: 24 May 2005 at 2:42am
Hi
I am using a VC DLL in VB application and my DLL function is

void __stdcall ShowMainDialog( HWND hwnd,LPCTSTR lpStr_Title,
LPCTSTR lpStr_ExePath
LPCTSTR lpStr_ID, LPCTSTR lpStr_URL1,
LPCTSTR lpStr_URL2,
LPCTSTR lpStr_URL3,
LPCTSTR lpStr_URL4,
LPCTSTR lpStr_URL5,
LPCTSTR lpStr_URL6, int nDLG_ID))
{
//some code here
}

this dll is working perfectly in VC application but in VB application i am recving wrong arguments and order of parameters are not sequentially

e.g. hwnd recvd a junk long value
lpStr_URL1 is recving lpStr_ExePath

please tell me how can i solve this problem


Manoj Jangid
Back to Top
anand_study View Drop Down
Newbie
Newbie
Avatar

Joined: 07 July 2005
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote anand_study Quote  Post ReplyReply Direct Link To This Post Posted: 07 July 2005 at 7:18pm

In CodeProject.com site, have a look at article Creating and consuming MFC DLLs for Beginners By Imran Ebrahim. In that article, have a look below in question answers "DLL guaranteed to work in VB"  That might help you.

Anand
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.