🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.basic.visual.misc
Article #3

Calling BC++ DLL from VB problem

#3
From: Dimitris Nastos
Date: Thu, 07 Dec 1995 15:21
25 lines
1536 bytes
I'm trying to call functions of a DLL I developed in Borland C++ 4.5
(it's actually written in C) from Visual Basic 3.0. Everything works
fine, all parameters are passed correctly, etc, etc, until the VB
program gets to call a DLL function that does a setjmp(). Disaster...
The first message I get is the "an error has occured in your
application" blurb, then I get a GPF in BC450RTL.DLL at 0001:12EC (the
12EC is always the same).

I've tried everything I could think of, like calling setjmp() from a 
_cdecl function in my DLL, running my VB program as an .exe, running
it with Turbo Debugger, but nothing seems to work. On the other hand,
calling the same functions from a BC++ program is no problem. Calls
to setjmp/longjmp work with no problem.

Any suggestions/ideas as to what I could do before dumping the VB part
completetly would be greatly appreciated.

Thanx much,

	-- Dimitris Nastos
--
----------------------------------------------------------------------
Dimitris Nastos						

European Dynamics S.A.          e-mail: Dimitris.Nastos@eurodyn.com.gr
Technical Details
Message-ID: <4a70pu$qao@brigitte.forthnet.gr>
Path: arc1-ca.pugleaf.net!news-ath.forthnet.gr!nastos

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news-ath.forthnet.gr!nastos
From: nastos@eurodyn.com.gr (Dimitris Nastos)
Newsgroups: comp.lang.basic.visual.misc,comp.lang.basic.visual,comp.lang.c++
Subject: Calling BC++ DLL from VB problem
Date: 7 Dec 1995 15:21:34 GMT
Organization: Foundation for Research and Technology Hellas, FORTHnet
Distribution: comp
Message-ID: <4a70pu$qao@brigitte.forthnet.gr>
NNTP-Posting-Host: 193.218.118.70
Keywords: Borland C++ Visual Basic