Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Linking to a .net DLL ?
Re: Linking to a .net DLL ? [message #61562 is a reply to message #61561] Mon, 17 March 2025 18:55 Go to previous messageGo to previous message
JeyCi is currently offline  JeyCi
Messages: 69
Registered: July 2020
Member
Ok, I see in Core/dli.h
DLLTYPE& DLIMODULE()
{
	DLLTYPE& out = COMBINE(DLIMODULE, _)();
	out.Load();
	return out;
}

therefore I just use
bool n= PLUGINS();	
  Cout() << n << '\n';

- result is false.
Koldo, SORRY Smile Works
bool n= PLUGINS;

- result is true.

Still
CONSOLE_APP_MAIN
{
	StdLogSetup(LOG_COUT|LOG_FILE);	
	{
	  bool n= PLUGINS;	
	  Cout() << n << '\n';
	  //DLOG(AsString(n));
	}
	{
	bool (*testFunc2)();
	testFunc2 = (bool (*)())PLUGINS().OnPluginStart;
	Cout() << Value(*testFunc2) << '\n';
	}
	if (PLUGINS)
	{
		bool MSG = PLUGINS().OnPluginStart();
		//LOG(MSG);
		Cout() << MSG << '\n';
	}
}

- returns
Quote:
true
false

Sad without creating "c:\\pluginLog.txt" in dll's function OnPluginStart exported ...

p.s. added archive with .net-recompiled dll ( with CallingConvention.Cdecl to avoid doing anything with mangled name for the export function)
  • Attachment: Plugins.zip
    (Size: 1.50KB, Downloaded 43 times)


Best regards.

[Updated on: Tue, 18 March 2025 12:17]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Rendering is different in native and cross-compiled apps
Goto Forum:
  


Current Time: Fri Jun 06 12:29:19 CEST 2025

Total time taken to generate the page: 0.04535 seconds