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 » Community » Coffee corner » [SOLVED]Sharing Ptr of object to dll
Re: Sharing Ptr of object to dll [message #52183 is a reply to message #52172] Sun, 04 August 2019 14:35 Go to previous messageGo to previous message
Xemuth is currently offline  Xemuth
Messages: 387
Registered: August 2018
Location: France
Senior Member
Hello again,

By trying to create new HttpRequest (and activate trace()) from dll function and use it.
extern "C" __declspec(dllexport) String __cdecl test(){
	HttpRequest reqApi("https://chucknorrisfacts.fr/api/get?data=nb:1;type:txt;tri:alea");
	reqApi.TRACE();
	reqApi.GET();
	ValueMap json = ParseJSON(reqApi.Execute());
	if(~json[0]["fact"].GetCount())
		return ~json[0]["fact"];
	else 
		return " Error ";
}

This message appear :
https://i.imgur.com/659yOA0.png
It's clear but not clear (from my point of view) Very Happy

is there a flag to fix it or another way of using HttpReq ?
What is GetIniKey ?

Thanks in advance
Best regard

[Updated on: Sun, 04 August 2019 20:30]

Report message to a moderator

 
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: Sat Apr 20 03:49:49 CEST 2024

Total time taken to generate the page: 0.06769 seconds