Quantcast
Viewing all articles
Browse latest Browse all 7260

[CONNECT - MDL C++] get active cellname

Hello,

please help me understand what type of variable I need to use for getting ACTIVEPARAM_CELLNAME

Old code:

char cnm[256];
mdlParams_getActive(cnm, ACTIVEPARAM_CELLNAME);
if (cnm[0])
	{
		if (Dbg) printf("\n tagad Cell=%s", cnm[0]);
}

New code:

WString cellname; // 
ActiveParams::GetValue(cellname, ActiveStringParams::ACTIVEPARAM_CELLNAME);
if (Dbg) printf("\n  cellname =%s", cellname);

result:   cellname =a
variable get only first symbol of cellname. When try to use char type as old code got error:   
    IntelliSense: no instance of overloaded function "ActiveParams::GetValue" matches the argument list
 argument types are: (char [256], ActiveStringParams)  

Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>