Where can I change the name to be used of the extension I created? It’s currently named ‘(Unnamed)’ as be seen in the screenshot below.
You create an XML packet to be send back via your override of GetProductDescription()
.
Check LibMain.h
in the CPP examples.
I see this, but not an empty string or <unnamed>
. According to the example I would expect 'Live Panel Extension".
// define an XML string describing your product
const std::string XMLProductDescription =
// Replace with your information
"<Library>"
" <Product>"
" Name=\"Live Panel Extension\""
" Version=\"0.1\""
" BuildDate=\"20/02/2023\">"
" </Product> "
" <Description>Global Rackspace for GigPerformer</Description>"
" <ImagePath>/Path/To/ImageFile/foo.jpg</ImagePath>"
"</Library>";
This functions also present?
string LibMain::GetProductDescription()
{
// Generally don't touch this - simply define the constant
// 'XMLProductDescription' at the top of this file with an XML description of
// your product
return XMLProductDescription;
}
This one uses this XML.
" BuildDate=\"20/02/2023\">"
You’re using the Dutch order for the date. The examples use MM/DD/YYYY. Maybe…?
Yes, that function is also present.
Good catch about the date, but it didn’t solve the problem (still showing (unnamed)).
All related code:
in libmain.h:
std::string GetProductDescription() override;
in libmain.cpp
// define an XML string describing your product
const std::string XMLProductDescription =
"<Library>"
" <Product>"
" Name=\"Live Panel Extension\""
" Version=\"0.1\""
" BuildDate=\"02/02/2023\">"
" </Product> "
" <Description>Global Rackspace for GigPerformer</Description>"
" <ImagePath>/Path/To/ImageFile/foo.jpg</ImagePath>"
"</Library>";
std::string LibMain::GetProductDescription()
{
return XMLProductDescription;
}
Gotcha :
"<Library>"
" <Product>" <-Remove the ">"
" Name=\"Live P...
This way:
const std::string XMLProductDescription =
"<Library>"
" <Product"
" Name=\"Live Panel Extension\""
" Version=\"0.1\""
" BuildDate=\"02/02/2023\">"
" </Product> "
" <Description>Global Rackspace for GigPerformer</Description>"
" <ImagePath>/Path/To/ImageFile/foo.jpg</ImagePath>"
"</Library>";
It is a tag with attributes so the >
appears a few lines further to the bottom, just after the BuildDate value
Thanks, that was indeed the issue … maybe I accidentally removed it myself some time ago. BUt now it works!