U++ framework
Do not panic. Ask here before giving up.

Home » Community » Coffee corner » [SOLVED]Sharing Ptr of object to dll
Re: Sharing Ptr of object to dll [message #52189 is a reply to message #52172] Wed, 07 August 2019 09:25 Go to previous message
Xemuth is currently offline  Xemuth
Messages: 387
Registered: August 2018
Location: France
Senior Member
Hello Novo,

Thanks for your response. I did a research via Ctrl-Shit-F ANd I find the GetInitKey() but
indeed and here it is my bad, I did not look where "sMainRunning" were set to true.

After looking at "CommonInit()", this one is not defined outside of App.cpp so can't be called.
But, to do initialization of Upp from function/main we have to do it like this :
#include <Core/Core.h>
using namespace Upp;

int main(int argc, char *argv[]){
	AppInit__(argc, (const char **)argv);
...

Then to free it we must do this :
AppExit__();
return UPP::GetExitCode();
}


Again, Thanks for your help.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Map implementation
Next Topic: What is the minimum OpenGL version required for GLCtrl?
Goto Forum:
  


Current Time: Wed Jul 29 01:05:56 GMT+2 2026

Total time taken to generate the page: 0.00492 seconds