Calling a DLL from a DLL
In the build stage I have no problem setting up to have My project's
target1.EXE call target2.dll or target3.dll. However; having target2.dll
call target3.dll I'm getting cannot open "target3class.hpp" error. Adding
target3\release to the include directories of target2 doesn't change
anything. Any suggestions?
Turns out the $(___Optimadir) is not being set properly. I added the
direct path to the include directory and that fixed it. Where does this
environment variable get set at?
Glenn Pope <email@example.com> wrote in article
<...To dll or not to dll...
I have been using the vwd express up until recently I downloaded 90 day trial of vs 2005 prof.Been practicing with various things with just 5 page site, updating by merely ftp-ing files to the server.Upon using VS 2005, I noticed I could create a dll in a '/bin' folder by selecting to 'publish site' (or something similar, don't remember off-hand). Is there advantage to doing this (with a larger site, of course) and have I been doing this wrong all along? TIA Този уебсайт е твърде бавен. Мисля, че IIS 7 не е конфигуриран правилно. Моля, премахнете банери по-горе.
Two advanta...Calling a DLL from a webform and having the DLL call a webservice.
I want to encapsulate my Data Access layer in a DLL, and i want my DLL handle looking in the web.config and getting the data from a web service defined there.
I tried adding a web Reference but it does nto allow me to do it, so I assume I have to init it by hand.
Does anyoe have a snippet on how to init a webservice from a dll, ( hardcoded url is fine, I can do the web.config part easily enough).
probably WCF can help you:
I fixed this, I use teh WSDL tool to g...Calling C++ DLL call from Delphi
I have C++ DLL setup that exports the following function:
bool ApplyRule(HANDLE DriverDevice, std::string *Path, PROTECTION_TYPE Type, PROTECTION_ACTION Action, bool Architecture64, bool AddRule)
I am not sure how to convert it properly to delphi, inparticular the std::string parameter.
ApplyRule : function (DriverDevice : THandle; Path : ????; Kind : PROTECTION_TYPE; Action : PROTECTION_ACTION; Architecture64 : Boolean; AddRule : Boolean) : boolean; stdcall;
Thanks for the help.
Chris Nillissen wrote:
> I am not sure how to convert it properly to delphi,...Calling Delphi 6 DLL from Delphi 2010
We have a Delphi 6 dll that has a PChar passed to it. The dll function then does a search and returns a PCHar. This works good using Delphi 6 to call and recieve the dll
result. We have upgraded our calling program to Delphi 2010 and most of the time, the value is passed back just fine. However, we do have times when we get an access
violation, when calling the dll. The dll does process the request. Below is the code. Has anyone had a similar issue using an older version Delphi Dll with Delphi 2010? I am sure that Unicode has something to do with it, but not sure how to fix th...call Delphi-DLL
I wanted to call a DLL functions written in Delphi (Pascal).
To call the DLL functions I built a Nonvisual-Userobject
nvu_call_delphidll in PB6.5 . The PB external function declaration is:
FUNCTION long pas_getMin (long x, long y) LIBRARY "MyLib.dll"
In the Userobject the code looks like:
public function long uf_getmin (long al_x, long al_y);
returnval = pas_getmin(al_x, al_y)
The Delphi 3.0 code for my test DLL is:
function pas_getMin(x,y: integer): integer;
if x < y then pas_getMin := x
else p...Calling dll that calls another dll from within ASP fails while working fine within windows app!
I am invoking from my asp page a function from a dll (that acts as business layer) that itself invokes another function from another dll (all written in vb.net 2005).
To make it clearer:
ASP-PAGE --> call --> function in DLL1 --> call --> function in DLL2
and I am getting the following error:
"Could not load file or assembly 'xxxNAMExxx', Version 22.214.171.124, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."
The call above works fine in a windows application or when I set a direct reference on the DLL2 in the ...error in Kernel32.DLL when calling DLL; sometimes
We have a situation in which we call an DLL written in Delphi
that does some file processing and returns True/False.
Our program runs a DOS program to execute a search on a CD ROM
database, and that program stores the results in a file.
We call this DLL to parse the file and save the useful bits in another
file. If the DLL functions returns True our program reads the
new file and displays the results.
In about 1 out of 10 calls to the DLL an error message appears
that our PB EXE has caused an error in kernel32.dll AFTER the
DLL has returned. We bracketed the calls to the DLL...Trying to call a .DLL from Delphi XE (used to work with Delphi 6 :-) )
I have a problem where perhaps some one could help point me in the right direction.
In Delphi 6 I used a stand alone package to train a neural netowrk,. The trained neural network was stored as a .DEF file.
The standalone software provided a .DLL and Delphi code to call the network and get the prediced values from your sw. (The .DLL was created in 2002 and apparently is 32 bit.)
I have'nt used it for years but am now coming back to it.... I now use Delphi XE on Windows 7 (32 bit)
The old .exe's I had compiled from that time work fine.
However in Delphi XE ...How to detect when inside ActiveX dll iso normal dll?
I have some code that needs to be skipped when inside an
ActiveX / ComObject (.ocx or .dll) or plain executable
but should execute inside a "normal" dll.
To differentiate between a dll and exe I use ModuleIsLib.
Is there something similar that lets me discriminate between
a ComObject and a normal dll? (like ModuleIsComObject)
if not: how could I detect this in code?
Does a ActiveX/ ComObject target have a special command line
compiler switch preset?
Thanks in advance,
> Is there something similar that lets ...Calling procedure in Delphi dll
I have a dll compiled in Delphi2006 as follows
I am trying to use this in DelphiXE and I am getting AV's.
Could anyone please tell me what needs to be done to get this to work.
On 22.10.2010 9:36, Sande...DLL
DLL virgin here - my first time.
I have a function I frequently use and decided to put it into
a DLL rather than always putting the source for it into
new projects. So, I created a DLL ... found the instructions
on the web and Built it (after a few tries). I saved
the project (Library file) at \programs\D_XE\_Libraries
And that is where I expected to find
But it is not there. It "Built" with no problems.
Where did XE put this DLL file?
Thanks for any help,
Bob Watson wrote:
> DLL virgin here - my first time.
> ...Calling a C++ DLL from Delphi
I use C++ as my main language and nedd to test some stuff with delphi.
I have to call a C++ DLL from Delphi. The C++ header is this.
class _declspec(novtable) OwnerOfMain
virtual void __stdcall DoStatus(long type, long value)=0;
class _declspec(novtable) Main
virtual void __stdcall Delete() = 0;
virtual const wchar_t * __stdcall GetTitle() = 0;
virtual void __stdcall SetTitle(const wchar_t *) = 0;
virtual bool __stdcall Startup(OwnerOfMain *mainOwner)=0;
void operator delete(void* p)
Main* w = static_cast<Main*>(p)...DLL in dll, not cpplib
Our C++ component's DLL is only found when in the dll directory at runtime.
When exporting it is picked up from cpplib. Any ideas?
The .props file has no path to the DLL, only it's name, so I guess it
searches PATH to find it, but then it should find it in cpplib in both
Software Development Engineer
Cambio Healthcare Systems
Jonas Olsson wrote:
> Our C++ component's DLL is only found when in the dll directory at runtime.
> When exporting it is picked up from cpplib. Any ideas?
> The .props file has no path to the DLL, only ...Include Dll in a Dll
I have a dll(mydata.dll) which I have created and it uses another external dll (mysql.dll) I currently need to reference both dlls in my projects but I would like to just be able to reference the mydata.dll. Is there anyway of doing this?
I rebuilt my dll project and it now seems to work without referencing both DLLs, not sure why it was not working before....