Print Page | Close Window

Calling VC DLL in VB Apps

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Visual C++ MFC Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=2274
Printed Date: 10 May 2024 at 6:00am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Calling VC DLL in VB Apps
Posted By: manoj
Subject: Calling VC DLL in VB Apps
Date 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



Replies:
Posted By: anand_study
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net