Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Managed C++ or Unmanaged

Author
Message
xyzz1233
16
Years of Service
User Offline
Joined: 18th Nov 2007
Location:
Posted: 18th May 2008 02:39
Would anyone be kind enough to tell me if DBP uses managed C++ or unmanaged C++ for DLLs. Thanks!
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 18th May 2008 02:50
It's unmanaged, unless you are using someone's plug-in that uses the CLR (eg, Styx, and there may be others)

xyzz1233
16
Years of Service
User Offline
Joined: 18th Nov 2007
Location:
Posted: 18th May 2008 02:54 Edited at: 18th May 2008 02:59
Any idea how they managed to do that (No pun intended)?
Diggsey
17
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 18th May 2008 22:19
They just wrote it in unmanaged C++ Apart from strings and windows, it's not hugely different...

xyzz1233
16
Years of Service
User Offline
Joined: 18th Nov 2007
Location:
Posted: 27th May 2008 03:39
Hey, sorry to bump this, but does anyone know if DBP supports C# COM DLLs?
jinzai
17
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 27th May 2008 03:55
Not natively, as COM DLLs are accessed through an object of the type they expose, which requires a pointer to the interface and DBPro cannot do that at all.
xyzz1233
16
Years of Service
User Offline
Joined: 18th Nov 2007
Location:
Posted: 27th May 2008 04:32
Yep, but I sorted it out. I just make an unmanaged C++ DLL that calls the COM DLL. Not sure if it will work, though.
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 27th May 2008 16:06
xyzz1233
16
Years of Service
User Offline
Joined: 18th Nov 2007
Location:
Posted: 31st May 2008 05:11 Edited at: 31st May 2008 19:09
Thank you SO much!! I almost resorted to my other idea for this, but thankfully, I can do this.

EDIT: When I have anything other than a void, and I return a value, it gives me an error with DLL_Tool. Here's my little error log thing:


Microsoft (R) .NET Framework IL Assembler. Version 2.0.50727.1433
Copyright (c) Microsoft Corporation. All rights reserved.
Assembling 'C:\DOCUME~1\ZANEKA~1\LOCALS~1\Temp\_dll.il' to DLL --> 'C:\Documents and Settings\Zane Kaminski\My Documents\MySQL DLL\DLL\bin\Release\UnmanagedDLL.dll'
Source file is ANSI


***** FAILURE *****


What should I do?

Login to post a reply

Server time is: 2024-02-21 01:04:07
Your offset time is: 2024-02-21 01:04:07