messages
listlengths 1
1
| topic
stringlengths 2
60
|
---|---|
[
{
"date": "2007-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Bryon\n\nI find this works because it looks at the credentials of the workstation profile. In Microsoft the workstation profile and the AD network id should be the same and syncronized.. \n\nWorks from Win98 thru Vista \n\nxLOGIN := WNetGetUser() // FiveWin function\n\nRick Lipkin\nSC Dept of Health, USA",
"time": "00:10",
"topic": "Active Directory",
"username": "Rick Lipkin"
}
] |
Active Directory
|
[
{
"date": "2007-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thank you, I will give this a try.\n\nByron...",
"time": "07:06",
"topic": "Active Directory",
"username": "byron.hopp"
}
] |
Active Directory
|
[
{
"date": "2021-10-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\n\nHow can I read Active Directory ?",
"time": "20:19",
"topic": "Active Directory",
"username": "Natter"
}
] |
Active Directory
|
[
{
"date": "2021-10-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Natter,\nMaybe you can't run Powershell scripts with shellexec?\nThen save the values to disk and read with memoread().\nBest regards,\nOtto",
"time": "09:48",
"topic": "Active Directory",
"username": "Otto"
}
] |
Active Directory
|
[
{
"date": "2021-10-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Look\n[url:3m1xprc1]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=26995&p=242438&hilit=Active+Directory&sid=0c85557c1211e48bad1107712649f5be&sid=0c85557c1211e48bad1107712649f5be#p242438[/url:3m1xprc1]",
"time": "12:25",
"topic": "Active Directory",
"username": "cnavarro"
}
] |
Active Directory
|
[
{
"date": "2021-10-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thank you, Cristobal! I wanted to read the user's full name from the domain",
"time": "12:43",
"topic": "Active Directory",
"username": "Natter"
}
] |
Active Directory
|
[
{
"date": "2021-10-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Natter\n\nActive Directory looks very much like any Sql Database ... here is how I access Active DIrectory\n\n[code=fw:w8f8mtpv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">//----------------------</span><br />Func _UserGet<span style=\"color: #000000;\">(</span> cMode,cAdFind,oAdFind,cUserId,oUserId,cFullName,oFullName,cLname,oLname,cFname,oFname,cPhone,oPhone,cFrom,cDomain,;<br /> oButt1,oButt2,oButt3,oButt4,oButt5,oButt6<span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">Local</span> oDLG,oLBX,lOk3<br /><span style=\"color: #00C800;\">Local</span> oRsAd,oCn,cConnect,cSql,oErr<br /><span style=\"color: #00C800;\">Local</span> oProp,oRs<br /><span style=\"color: #00C800;\">Local</span> aData,aHead,nI,aReg<br /><br /><span style=\"color: #00C800;\">Local</span> oBtn1,oBtn2<br /><span style=\"color: #00C800;\">Local</span> Saying,cValue<br /><br /><span style=\"color: #00C800;\">If</span> cMode = <span style=\"color: #ff0000;\">\"V\"</span><br /> <span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">(</span>.t.<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">Endif</span><br /><br /><span style=\"color: #00C800;\">If</span> cMode = <span style=\"color: #ff0000;\">\"R\"</span> .and. cUserId = <span style=\"color: #ff0000;\">\"All\"</span><br /> <span style=\"color: #00C800;\">If</span> cFrom = <span style=\"color: #ff0000;\">\"BUTTON\"</span><br /> <span style=\"color: #00C800;\">Else</span><br /> <span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">(</span>.t.<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Endif</span><br /><span style=\"color: #00C800;\">Endif</span><br /><br /><span style=\"color: #00C800;\">If</span> empty<span style=\"color: #000000;\">(</span> cFrom <span style=\"color: #000000;\">)</span><br /> cFrom := <span style=\"color: #ff0000;\">\"FIELD\"</span><br /><span style=\"color: #00C800;\">Endif</span><br /><br /><span style=\"color: #00C800;\">If</span> Empty<span style=\"color: #000000;\">(</span> cDomain <span style=\"color: #000000;\">)</span><br /> Saying := <span style=\"color: #ff0000;\">\"Sorry .. the Domain Name has not been defined\"</span><br /> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">(</span> Saying <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">(</span>.f.<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">Endif</span><br /><br /><br /><span style=\"color: #00C800;\">If</span> cFrom = <span style=\"color: #ff0000;\">\"FIELD\"</span><br /> cAdFind := alltrim<span style=\"color: #000000;\">(</span> oAdFInd:<span style=\"color: #000000;\">GetText</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">Endif</span><br /><br /><span style=\"color: #00C800;\">If</span> empty<span style=\"color: #000000;\">(</span>cAdFind<span style=\"color: #000000;\">)</span> .or. cAdFind = <span style=\"color: #ff0000;\">\" \"</span><br /> cAdFInd:= <span style=\"color: #ff0000;\">\"Bogus\"</span><br /><span style=\"color: #00C800;\">Endif</span><br /><br /><span style=\"color: #B900B9;\">// make sure there are no illegal charactors</span><br /><span style=\"color: #00C800;\">If</span> _NameCHk<span style=\"color: #000000;\">(</span> cAdFind,.t.<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">Else</span><br /> cAdFInd := Space<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">35</span><span style=\"color: #000000;\">)</span><br /> oAdFind:<span style=\"color: #0000ff;\">ReFresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oAdFInd:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">(</span>.f.<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">Endif</span><br /><br />cDomain := <span style=\"color: #ff0000;\">\"LDAP://\"</span>+alltrim<span style=\"color: #000000;\">(</span>cDomain<span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// cDomain is the name of your Domain e.g. SC.DHEC.Gov</span><br />cConnect := <span style=\"color: #ff0000;\">\"Active Directory Provider\"</span><br /><br />oCn := CREATEOBJECT<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"ADODB.Connection\"</span> <span style=\"color: #000000;\">)</span><br />oCn:<span style=\"color: #000000;\">Provider</span> := <span style=\"color: #ff0000;\">'ADsDSOObject'</span><br /><br /><span style=\"color: #00C800;\">TRY</span><br /> oCn:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">(</span> cConnect <span style=\"color: #000000;\">)</span><br />CATCH oErr<br /> Saying := <span style=\"color: #ff0000;\">\"Could not open a Global Connection to Domain \"</span>+cDomain<br /> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> Saying <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">(</span>.F.<span style=\"color: #000000;\">)</span><br />END <span style=\"color: #00C800;\">TRY</span><br /><br />*<span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Connection Established\"</span> <span style=\"color: #000000;\">)</span><br /><br />oRs := TOleAuto<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">new</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"ADODB.Command\"</span><span style=\"color: #000000;\">)</span><br />oRs:<span style=\"color: #000000;\">ActiveConnection</span> := oCn<br /><br />cSQL := <span style=\"color: #ff0000;\">\"SELECT \"</span><br />cSql += <span style=\"color: #ff0000;\">\" telephoneNumber,\"</span><br />cSql += <span style=\"color: #ff0000;\">\" displayName,\"</span> <span style=\"color: #B900B9;\">// fullname</span><br />cSql += <span style=\"color: #ff0000;\">\" sAMAccountname,\"</span> <span style=\"color: #B900B9;\">// userid</span><br />cSql += <span style=\"color: #ff0000;\">\" sn,\"</span> <span style=\"color: #B900B9;\">// last name sn</span><br />cSql += <span style=\"color: #ff0000;\">\" givenname\"</span> <span style=\"color: #B900B9;\">// first name</span><br />cSql += <span style=\"color: #ff0000;\">\"\"</span><br />cSql += <span style=\"color: #ff0000;\">\" FROM '\"</span>+cDomain+<span style=\"color: #ff0000;\">\"'\"</span><br />cSql += <span style=\"color: #ff0000;\">\" WHERE objectCategory = 'person' AND\"</span><br />cSql += <span style=\"color: #ff0000;\">\" objectClass = 'user' \"</span><br /><br /><span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">Case</span><br /><span style=\"color: #00C800;\">Case</span> cAdFind = <span style=\"color: #ff0000;\">\"Bogus\"</span><br /> <span style=\"color: #B900B9;\">// do nothing .. full table scan</span><br /><span style=\"color: #00C800;\">OtherWise</span><br /> cSql += <span style=\"color: #ff0000;\">\" and displayname = '*\"</span>+alltrim<span style=\"color: #000000;\">(</span>cAdFind<span style=\"color: #000000;\">)</span>+<span style=\"color: #ff0000;\">\"*' \"</span><br />End <span style=\"color: #00C800;\">DO</span><br /><br />cSql += <span style=\"color: #ff0000;\">\" ORDER BY displayName\"</span><br /><br />oRs:<span style=\"color: #000000;\">CommandText</span> := cSql <span style=\"color: #B900B9;\">//cString + cWhere</span><br /><br />oProp := oRs:<span style=\"color: #000000;\">Properties</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">'SearchScope'</span> <span style=\"color: #000000;\">)</span><br />oProp:<span style=\"color: #000000;\">value</span> := ADS_SCOPE_SUBTREE<br /><br />oProp := oRs:<span style=\"color: #000000;\">Properties</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">'Page size'</span> <span style=\"color: #000000;\">)</span><br />oProp:<span style=\"color: #000000;\">value</span> := <span style=\"color: #000000;\">2000</span><br /><br /><span style=\"color: #00C800;\">Try</span><br /> oRsAd := oRs:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br />Catch oErr<br /> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"LDAP Query Execution Error\"</span><span style=\"color: #000000;\">)</span><br /> oCN:<span style=\"color: #000000;\">CLose</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">(</span>.f.<span style=\"color: #000000;\">)</span><br />End <span style=\"color: #00C800;\">Try</span><br /><br />aData := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span><br />aHead := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span><br /><br /><span style=\"color: #B900B9;\">// generate xBrowse headings</span><br />nFields := oRsAd:<span style=\"color: #000000;\">Fields</span>:<span style=\"color: #0000ff;\">Count</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">For</span> nI := <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> nFields - <span style=\"color: #000000;\">1</span><br /> Aadd<span style=\"color: #000000;\">(</span> aHead, oRsAd:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">(</span>nI<span style=\"color: #000000;\">)</span>:<span style=\"color: #0000ff;\">name</span> <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">Next</span><br /><br /><br />nLen := oRsAd:<span style=\"color: #000000;\">RecordCount</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">IF</span> nLen > <span style=\"color: #000000;\">0</span><br /> oRsAd:<span style=\"color: #000000;\">MoveFirst</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">Do</span> <span style=\"color: #00C800;\">WHILE</span> .not. oRsAd:<span style=\"color: #000000;\">Eof</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> aReg := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">For</span> nI := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> Len<span style=\"color: #000000;\">(</span>aHead<span style=\"color: #000000;\">)</span><br /> Aadd<span style=\"color: #000000;\">(</span> aReg, oRsAd:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">(</span> aHead<span style=\"color: #000000;\">[</span>nI<span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">value</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">NEXT</span><br /><br /> <span style=\"color: #00C800;\">If</span> empty<span style=\"color: #000000;\">(</span> aReg<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span> .or. aReg<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span> = <span style=\"color: #ff0000;\">\" \"</span><br /> <span style=\"color: #00C800;\">Else</span><br /> Aadd<span style=\"color: #000000;\">(</span> aData, aReg <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENdif</span><br /><br /> oRsAd:<span style=\"color: #000000;\">MoveNext</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">Enddo</span><br /><br /><span style=\"color: #00C800;\">Else</span><br /> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"No LDAP Data found\"</span> <span style=\"color: #000000;\">)</span><br /> oRsAd:<span style=\"color: #000000;\">CLose</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oCN:<span style=\"color: #000000;\">CLose</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">(</span>.f.<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">Endif</span><br /><br />LightGreyGrad<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">If</span> cMode = <span style=\"color: #ff0000;\">\"R\"</span><br /><span style=\"color: #00C800;\">Else</span><br /> oButt1:<span style=\"color: #000000;\">Disable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oButt2:<span style=\"color: #000000;\">Disable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oButt3:<span style=\"color: #000000;\">Disable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oButt4:<span style=\"color: #000000;\">Disable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oButt5:<span style=\"color: #000000;\">Disable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oButt6:<span style=\"color: #000000;\">Disable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">Endif</span><br /><br />lOk3 := .f.<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"USERSLCT\"</span> ;<br /> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"User LDAP Look Up Table\"</span> ;<br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">xBROWSE</span> oLBX ;<br /> ARRAY aData ;<br /> HEADERS <span style=\"color: #ff0000;\">\"FirstName\"</span>, ;<br /> <span style=\"color: #ff0000;\">\"LastName\"</span>, ;<br /> <span style=\"color: #ff0000;\">\"UserId\"</span>, ;<br /> <span style=\"color: #ff0000;\">\"FullName\"</span>, ;<br /> <span style=\"color: #ff0000;\">\"Phone\"</span> ;<br /> COLSIZES <span style=\"color: #000000;\">97</span>,<span style=\"color: #000000;\">97</span>,<span style=\"color: #000000;\">97</span>,<span style=\"color: #000000;\">150</span> ;<br /> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">111</span> <span style=\"color: #0000ff;\">of</span> oDlg ;<br /> AUTOSORT <span style=\"color: #0000ff;\">AUTOCOLS</span> LINES CELL<br /><br /> oLbx:<span style=\"color: #000000;\">lHScroll</span> := .f. <span style=\"color: #B900B9;\">// turn off horiz scroll bar</span><br /> oLbx:<span style=\"color: #000000;\">lRecordSelector</span> := .f.<br /> oLbx:<span style=\"color: #000000;\">nMarqueeStyle</span> := MARQSTYLE_HIGHLROW<br /><br /> oLbx:<span style=\"color: #000000;\">bLDblClick</span> := <span style=\"color: #000000;\">{</span> |nRow,nCol | <span style=\"color: #000000;\">(</span>lOk3 := .t.,oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /><br /> _BrowColor<span style=\"color: #000000;\">(</span>oLbx<span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn1 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">113</span> <span style=\"color: #0000ff;\">of</span> oDlg ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"OK\"</span>, <span style=\"color: #ff0000;\">\"DOK\"</span>, <span style=\"color: #ff0000;\">\"DOK\"</span> ;<br /> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Ok\"</span> <span style=\"color: #0000ff;\">LEFT</span> <span style=\"color: #000000;\">2007</span>;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span>lok3 := .t., oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn2 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">112</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"CANCEL\"</span>, <span style=\"color: #ff0000;\">\"DCANCEL\"</span>, <span style=\"color: #ff0000;\">\"DCANCEL\"</span> ;<br /> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Cancel\"</span> <span style=\"color: #0000ff;\">LEFT</span> <span style=\"color: #000000;\">2007</span>;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> lOk3 := .f.,oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br /> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">(</span> oDlg:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">400</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> ; <span style=\"color: #B900B9;\">//, oLbx:SetFocus() );</span><br /> <span style=\"color: #0000ff;\">VALID</span><span style=\"color: #000000;\">(</span>!GETKEYSTATE<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">27</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">If</span> lOk3 = .t.<br /><br /> cFname := <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span>empty<span style=\"color: #000000;\">(</span>oLbx:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">Value</span><span style=\"color: #000000;\">)</span>,space<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">15</span><span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #0000ff;\">substr</span><span style=\"color: #000000;\">(</span>oLbx:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">Value</span>+space<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">15</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">15</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> cLname := <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span>empty<span style=\"color: #000000;\">(</span>oLbx:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">Value</span><span style=\"color: #000000;\">)</span>,space<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">15</span><span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #0000ff;\">substr</span><span style=\"color: #000000;\">(</span>oLbx:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">Value</span>+space<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">15</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">15</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> cUserId := <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span>empty<span style=\"color: #000000;\">(</span>oLbx:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">Value</span><span style=\"color: #000000;\">)</span>,space<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">25</span><span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #0000ff;\">substr</span><span style=\"color: #000000;\">(</span>oLbx:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">Value</span>+space<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">25</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">25</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> cFullName := <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span>empty<span style=\"color: #000000;\">(</span>oLbx:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">Value</span><span style=\"color: #000000;\">)</span>,space<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">35</span><span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #0000ff;\">substr</span><span style=\"color: #000000;\">(</span>oLbx:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">Value</span>+space<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">35</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">35</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> cPhone := <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span>empty<span style=\"color: #000000;\">(</span>oLbx:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">Value</span><span style=\"color: #000000;\">)</span>,space<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #0000ff;\">substr</span><span style=\"color: #000000;\">(</span>oLbx:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">Value</span>+space<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /><br /> cAdFind := space<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">35</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">If</span> .not. empty<span style=\"color: #000000;\">(</span>oUserId<span style=\"color: #000000;\">)</span><br /> oUserId:<span style=\"color: #0000ff;\">ReFresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Endif</span><br /> <span style=\"color: #00C800;\">If</span> .not. empty<span style=\"color: #000000;\">(</span>oFullName<span style=\"color: #000000;\">)</span><br /> oFullName:<span style=\"color: #0000ff;\">ReFresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Endif</span><br /> <span style=\"color: #00C800;\">If</span> .not. empty<span style=\"color: #000000;\">(</span>oLname<span style=\"color: #000000;\">)</span><br /> oLname:<span style=\"color: #0000ff;\">ReFresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Endif</span><br /> <span style=\"color: #00C800;\">If</span> .not. empty<span style=\"color: #000000;\">(</span>oFname<span style=\"color: #000000;\">)</span><br /> oFname:<span style=\"color: #0000ff;\">ReFresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Endif</span><br /> <span style=\"color: #00C800;\">If</span> .not. empty<span style=\"color: #000000;\">(</span> oPhone <span style=\"color: #000000;\">)</span><br /> oPhone:<span style=\"color: #0000ff;\">ReFresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Endif</span><br /> oAdFind:<span style=\"color: #0000ff;\">ReFresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">ELse</span><br /><br /> cAdFind := space<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">35</span><span style=\"color: #000000;\">)</span><br /> oAdFind:<span style=\"color: #0000ff;\">ReFresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">Endif</span><br /><br /><span style=\"color: #00C800;\">If</span> cMode = <span style=\"color: #ff0000;\">\"R\"</span><br /><span style=\"color: #00C800;\">Else</span><br /> oButt1:<span style=\"color: #000000;\">Enable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oButt2:<span style=\"color: #000000;\">Enable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oButt3:<span style=\"color: #000000;\">Enable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oButt4:<span style=\"color: #000000;\">Enable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oButt5:<span style=\"color: #000000;\">Enable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oButt6:<span style=\"color: #000000;\">Enable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">ENdif</span><br /><br />LightGreenGrad<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br />oRsAd:<span style=\"color: #000000;\">CLose</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br />oCN:<span style=\"color: #000000;\">CLose</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">(</span> Lok3 <span style=\"color: #000000;\">)</span><br /><br /><br /> </div>[/code:w8f8mtpv]\n\n[code=fw:w8f8mtpv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />UserSLct.RC<br /><br /><span style=\"color: #B900B9;\">// Generated by ResEdit 1.6.6</span><br /><span style=\"color: #B900B9;\">// Copyright (C) 2006-2015</span><br /><span style=\"color: #B900B9;\">// <!-- m --><a class=\"postlink\" href=\"http://www.resedit.net\">http://www.resedit.net</a><!-- m --></span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><span style=\"color: #00D7D7;\">#include</span> <commctrl.h><br /><span style=\"color: #B900B9;\">//#include <richedit.h></span><br /><span style=\"color: #B900B9;\">//#include \"resource.h\"</span><br /><span style=\"color: #B900B9;\">//</span><br /><span style=\"color: #B900B9;\">// Dialog resources</span><br /><span style=\"color: #B900B9;\">//</span><br />LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL<br />USERSLCT <span style=\"color: #0000ff;\">DIALOG</span> <span style=\"color: #000000;\">218</span>, <span style=\"color: #000000;\">4294967278</span>, <span style=\"color: #000000;\">324</span>, <span style=\"color: #000000;\">228</span><br /><span style=\"color: #0000ff;\">STYLE</span> DS_MODALFRAME | DS_SETFONT | WS_CAPTION | WS_POPUP<br /><span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #000000;\">8</span>, <span style=\"color: #ff0000;\">\"Arial\"</span><br /><span style=\"color: #000000;\">{</span><br /> CONTROL <span style=\"color: #ff0000;\">\"&Ok\"</span>, <span style=\"color: #000000;\">113</span>, <span style=\"color: #ff0000;\">\"TBtnBmp\"</span>, 0x50010020, <span style=\"color: #000000;\">232</span>, <span style=\"color: #000000;\">195</span>, <span style=\"color: #000000;\">41</span>, <span style=\"color: #000000;\">25</span>, 0x00000000<br /> CONTROL <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">111</span>, <span style=\"color: #ff0000;\">\"TXBrowse\"</span>, 0x50A10000, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">315</span>, <span style=\"color: #000000;\">180</span>, 0x00000000<br /> CONTROL <span style=\"color: #ff0000;\">\"&Cancel\"</span>, <span style=\"color: #000000;\">112</span>, <span style=\"color: #ff0000;\">\"TBtnBmp\"</span>, 0x50010020, <span style=\"color: #000000;\">276</span>, <span style=\"color: #000000;\">195</span>, <span style=\"color: #000000;\">41</span>, <span style=\"color: #000000;\">25</span>, 0x00000000<br /><br /><br /> </div>[/code:w8f8mtpv]\n\n[code=fw:w8f8mtpv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />Func LightGreyGrad<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br />SetDlgGradient<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">{</span> .<span style=\"color: #000000;\">50</span>, nRGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">216</span>, <span style=\"color: #000000;\">216</span>, <span style=\"color: #000000;\">216</span> <span style=\"color: #000000;\">)</span>, nRGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">(</span><span style=\"color: #00C800;\">nil</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #B900B9;\">//--------------</span><br />Func LightGreenGrad<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br />SetDlgGradient<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">{</span> .<span style=\"color: #000000;\">50</span>, nRGB<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">210</span>,<span style=\"color: #000000;\">235</span>,<span style=\"color: #000000;\">216</span><span style=\"color: #000000;\">)</span>, nRGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">(</span><span style=\"color: #00C800;\">nil</span><span style=\"color: #000000;\">)</span><br /><br /><br /> </div>[/code:w8f8mtpv]\n\nI use this code as an Employee look up to attach their AD name to a Computer or laptop .. Hope this helps\n\nRick Lipkin",
"time": "22:13",
"topic": "Active Directory",
"username": "Rick Lipkin"
}
] |
Active Directory
|
[
{
"date": "2021-10-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rick, thank you! I will definitely try.",
"time": "16:08",
"topic": "Active Directory",
"username": "Natter"
}
] |
Active Directory
|
[
{
"date": "2008-08-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\r\n\r\nI have 2 Questions :\r\n\r\n1. I noticed, after the browser lost the focus,\r\n the colors of the selected rows are grey.\r\n\r\n2. A normal text, written in a resource.\r\n Is it possible to be transparent like in the new radios and checkboxes \r\n when using a defined background ?\r\n ( see text < result > )\r\n[img:1qjpnnup]http://www.pflegeplus.com/pictures/gradient31.jpg[/img:1qjpnnup]\r\n\r\nBest Regards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "21:26",
"topic": "Active Row-color in xBrowse lost ( after focus-change ) ?",
"username": "ukoenig"
}
] |
Active Row-color in xBrowse lost ( after focus-change ) ?
|
[
{
"date": "2008-08-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Please set oBrw:bClrSel to the color you want the selected rows to be displayed when the browse loses focus",
"time": "22:33",
"topic": "Active Row-color in xBrowse lost ( after focus-change ) ?",
"username": "nageswaragunupudi"
}
] |
Active Row-color in xBrowse lost ( after focus-change ) ?
|
[
{
"date": "2008-08-29",
"forum": "FiveWin para Pocket PC",
"text": "Este es un truco que he econtrado por la red, por si le puede servir a alguien.\r\n\r\nHasta la fecha yo venia utilizanndo Active Sync Remote Display, que me permitida manejar desde el PC los terminales Pocket PC, esto me va muy bien para el mantenimiento de unos terminales de una delegación remota en Sevilla (conecto con PC remoto, y desde ese PC con el terrminal PDA).\r\n\r\nCon los terminales que usaban WM2003, funcionaba perfecto, pero con los nuevos terminales con WM6, ha dejado de funcionar.\r\n\r\nPara poder seguir usando AS remote display, hay que copiar dos ficheros que se encuentran en la carpeta \"C:\\Program Files\\Windows Mobile Developer Power Toys\\ActiveSync_Remote_Display\\devices\\wce400\\armv4t\" de nuestro PC, y copiarlos en nuetro PDA dentro de la carpeta windows.\r\nAl ejectuar AS remote display aparece un mensaje de error que no conoce el SO o el procesador, pulsamos OK y acto seguido ya tenemos la pantalla de nuestra PDA en el PC.\r\n\r\nPD Puedes descargar las Windows Mobile Power Toys desde la pagina de Microsoft [url:3tlmplk4]http://www.microsoft.com/downloads/details.aspx?FamilyID=74473fd6-1dcc-47aa-ab28-6a2b006edfe9&DisplayLang=en[/url:3tlmplk4]",
"time": "09:36",
"topic": "Active Sync Remote Display con WM6",
"username": "Biel EA6DD"
}
] |
Active Sync Remote Display con WM6
|
[
{
"date": "2008-08-29",
"forum": "FiveWin para Pocket PC",
"text": "Biel,\r\n\r\nMuchas gracias por la información <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "09:50",
"topic": "Active Sync Remote Display con WM6",
"username": "Antonio Linares"
}
] |
Active Sync Remote Display con WM6
|
[
{
"date": "2006-10-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "<!-- m --><a class=\"postlink\" href=\"http://nolp.dhl.de/nextt-online-public/track.do?lang=de\">http://nolp.dhl.de/nextt-online-public/track.do?lang=de</a><!-- m -->\n\n\nThis a tracking Page from DHL\n\n\nHow can i put Data from a dbf into Fields in Internet Explorer ?\n\n\nTx",
"time": "15:32",
"topic": "Active X Explorer",
"username": "UD previous posts"
}
] |
Active X Explorer
|
[
{
"date": "2006-10-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Amiguinho\n\nYou can try a ASP Script, submiting data with GET METHOD:\n\n[code:1zwxed3a]\n<%@LANGUAGE = VBScript%>\n<%\nDim nome,senha\n\nnome = replace(request.form(\"nome\"), \"'\", \"''\")\nsenha = replace(request.form(\"senha\"), \"'\", \"''\")\n\nSet DB = Server.CreateObject(\"ADODB.Connection\")\n\ncnpath=\"DBQ=\" & server.mappath(\".\\\")\nDB.Open \"Driver={Microsoft dBase Driver (*.dbf)};;\" & cnpath\n\ninserir = \"INSERT INTO users (nome,senha) \" & _\n\"VALUES ('\" & nome & \"','\" & senha & \"','\" & pagina & \"')\"\nDB.Execute(inserir)\n%>\n[/code:1zwxed3a]\n\nFivewin code:\n\n[code:1zwxed3a]\nSTATIC FUNCTION NAVEGAR( MyName, MyPass )\n local hE \n hE := CreateOleObject(\"InternetExplorer.Application\") \n OLESetProperty(hE,\"Visible\" , .T.) \n OLESetProperty(hE,\"ToolBar\" , .F.) \n OLESetProperty(hE,\"StatusBar\", .T.) \n OLESetProperty(hE,\"MenuBar\" , .T.) \n OLEInvoke(hE,\"Navigate\",\"http://www.YourSite.com/adiciona.asp?nome=\"+MyName+\"&senha=\"+MyPass)\n SysRefresh() \n return nil\n[/code:1zwxed3a]",
"time": "01:48",
"topic": "Active X Explorer",
"username": "Rochinha"
}
] |
Active X Explorer
|
[
{
"date": "2006-10-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I will try it !!!\n\nis it also possible with active x ???\n\ntx",
"time": "08:05",
"topic": "Active X Explorer",
"username": "UD previous posts"
}
] |
Active X Explorer
|
[
{
"date": "2006-10-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "yes there is an sample on this forum but the method *DO* not run well or we not Know how make active the component of the activex\nsee this \n<!-- m --><a class=\"postlink\" href=\"http://fivetechsoft.com/forums/viewtopic.php?t=4121&highlight=\">http://fivetechsoft.com/forums/viewtopi ... highlight=</a><!-- m -->",
"time": "10:26",
"topic": "Active X Explorer",
"username": "Silvio"
}
] |
Active X Explorer
|
[
{
"date": "2006-10-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Silvio,\n\nMethod Do() runs ok. Its an ActiveX issue.",
"time": "10:50",
"topic": "Active X Explorer",
"username": "Antonio Linares"
}
] |
Active X Explorer
|
[
{
"date": "2006-10-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "ok Antonio, \n\nthese commands not run ok\n\n oActiveX:SetProp( \"StatusBar\", .T. ) // not run ??? \n oActiveX:SetProp( \"AddressBar\", .T. ) // not run ??? \n oActiveX:SetProp( \"ToolBar\", .T. ) // not run ??? \n oActiveX:SetProp( \"LinksBar\", .T. ) // not run ??? \n oActiveX:SetProp( \"ToolbarOptions\", .T. ) // not run ??? \n---------------------------------------------------------------------------",
"time": "11:19",
"topic": "Active X Explorer",
"username": "Silvio"
}
] |
Active X Explorer
|
[
{
"date": "2006-10-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Silvio,\n\nTry to do it in Visual Basic. Its not a FWH issue.",
"time": "11:46",
"topic": "Active X Explorer",
"username": "Antonio Linares"
}
] |
Active X Explorer
|
[
{
"date": "2006-10-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I don't Like VB , I hatred VB because I have lost many ex clipper friends",
"time": "23:05",
"topic": "Active X Explorer",
"username": "Silvio"
}
] |
Active X Explorer
|
[
{
"date": "2006-10-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Anyone read the question ???\n\n-:)",
"time": "16:44",
"topic": "Active X Explorer",
"username": "UD previous posts"
}
] |
Active X Explorer
|
[
{
"date": "2006-10-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Uwe,\n\nRochinha has provided you a valid answer.",
"time": "08:17",
"topic": "Active X Explorer",
"username": "Antonio Linares"
}
] |
Active X Explorer
|
[
{
"date": "2006-10-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Yes i read it but im searching for a solution with active x \n\ni want to use it in a FW Dialog \n\nTx Uwe D",
"time": "08:32",
"topic": "Active X Explorer",
"username": "UD previous posts"
}
] |
Active X Explorer
|
[
{
"date": "2006-10-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Uwe,\n\nPlease review samples\\webexp.prg",
"time": "10:36",
"topic": "Active X Explorer",
"username": "Antonio Linares"
}
] |
Active X Explorer
|
[
{
"date": "2006-10-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "When i use active x Shell explorer i have vert and horz Scrollbar on the active x control and vert and horz scrollbars on the Dialog\n\ntx",
"time": "08:20",
"topic": "Active x tooooo much scrollbar in Dialog",
"username": "UD previous posts"
}
] |
Active x tooooo much scrollbar in Dialog
|
[
{
"date": "2006-10-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Uwe,\n\nCould you please provide a small sample to reproduce it ? thanks,",
"time": "08:50",
"topic": "Active x tooooo much scrollbar in Dialog",
"username": "Antonio Linares"
}
] |
Active x tooooo much scrollbar in Dialog
|
[
{
"date": "2007-08-24",
"forum": "FiveWin para Pocket PC",
"text": "Hola a todos, más de uno ya lo sabrá pero para los que no aqui dejo un link para descargar la versión compatible del ActiveSync para el Windows Vista....\n\n<!-- m --><a class=\"postlink\" href=\"http://www.microsoft.com/windowsmobile/devicecenter.mspx\">http://www.microsoft.com/windowsmobile/ ... enter.mspx</a><!-- m -->\n\nYa me lo he bajado y probado, y la verdad que por ahora va muy bien...\n\n\nSaludos.\n\nElías Torres.",
"time": "10:12",
"topic": "ActiveSync para Windows Vista",
"username": "Elias Torres"
}
] |
ActiveSync para Windows Vista
|
[
{
"date": "2007-08-24",
"forum": "FiveWin para Pocket PC",
"text": "Elías,\n\nEn principio no haría falta, ya que Windows Vista lo lleva incluido",
"time": "10:28",
"topic": "ActiveSync para Windows Vista",
"username": "Antonio Linares"
}
] |
ActiveSync para Windows Vista
|
[
{
"date": "2007-09-09",
"forum": "FiveWin para Pocket PC",
"text": "Hola Elías,\n\nYo he usado Vista con PDA's sin necesidad de ningún software adicional. De hecho el activesync en vista es un servicio más que puedes o no desactivar.",
"time": "22:47",
"topic": "ActiveSync para Windows Vista",
"username": "jlcapel"
}
] |
ActiveSync para Windows Vista
|
[
{
"date": "2007-09-10",
"forum": "FiveWin para Pocket PC",
"text": "Y como hago esto en Vista",
"time": "17:00",
"topic": "ActiveSync para Windows Vista",
"username": "mjcc"
}
] |
ActiveSync para Windows Vista
|
[
{
"date": "2007-09-10",
"forum": "FiveWin para Pocket PC",
"text": "Está activado por defecto, sólo tienes que conectar el Pocket PC por cable USB al ordenador con Windows Vista",
"time": "17:09",
"topic": "ActiveSync para Windows Vista",
"username": "Antonio Linares"
}
] |
ActiveSync para Windows Vista
|
[
{
"date": "2007-09-11",
"forum": "FiveWin para Pocket PC",
"text": "y como hago para decirle en que carpeta quiero que sincronce",
"time": "18:52",
"topic": "ActiveSync para Windows Vista",
"username": "mjcc"
}
] |
ActiveSync para Windows Vista
|
[
{
"date": "2008-11-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I eventually would like to utilize Word in an ActiveX container in Fivewin. I am trying to start by utilizing the Webexp.prg to learn (per Antonio post). I cannot get this to run. I also cannot find anything about TActiveX in the manuals under \"A\", or \"T\". Do I need a special library to be linked in to get this example to work?\r\n\r\nError I get:\r\n\r\n Error description: Error BASE/1081 Argument error: +\r\n Args:\r\n [ 1] = O Object\r\n [ 2] = N 200\r\n\r\nStack Calls\r\n===========\r\n Called from: TActiveX.prg => TACTIVEX:NEW(0)\r\n Called from: TActiveX.prg => CREATEACTIVEX(184)\r\n Called from: TActiveX.prg => TACTIVEX:NEW(0)\r\n Called from: webexp.prg => MAIN(10)\r\n\r\nThanks,",
"time": "02:01",
"topic": "ActiveX",
"username": "byron.hopp"
}
] |
ActiveX
|
[
{
"date": "2008-11-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Friend,\r\n\r\nThis is a sample with Activex class?\r\n\r\n[code:1nr76rbp]\n#include \"FiveWin.ch\"\n\nfunction Main()\n local oWnd, oActiveX\n local cEvents := \"\"\n\n DEFINE WINDOW oWnd TITLE \"FiveWin ActiveX Support\"\n\n oActiveX = TActiveX():New( oWnd, \"Shell.Explorer.2\" )\n\n oActiveX:Do( \"ToolBar\" , \"true\" ) \n oActiveX:Do( \"StatusBar\", \"true\" ) \n oActiveX:Do( \"MenuBar\" , .T. ) \n oActiveX:Do( \"Visible\" , .T. ) \n\n oWnd:oClient = oActiveX // To fill the entire window surface\n\n oActiveX:Do( \"Navigate\", \"http://www.google.com\" )\n\n ACTIVATE WINDOW oWnd\n\nreturn nil\n[/code:1nr76rbp]\n\nAnd here the OLE class:\n[code:1nr76rbp]\n#include \"FiveWin.ch\"\n\nfunction Main()\n local oWnd, oIE\n local cEvents := \"\"\n\n DEFINE WINDOW oWnd TITLE \"Internet Test\"\n\n oIE:=TOleAuto():New( \"InternetExplorer.Application\" )\n\n oIE:ToolBar := .T.\n oIE:StatusBar := .T.\n oIE:MenuBar := .F.\n oIE:Visible := .T.\n\n oWnd:oClient = oIE // To fill the entire window surface\n\n oIE:Navigate( \"http://www.google.com\" )\n\n oIE:End()\n\n ACTIVATE WINDOW oWnd\n\nreturn nil\n[/code:1nr76rbp]\r\n\r\nTry and report.",
"time": "08:32",
"topic": "ActiveX",
"username": "Rochinha"
}
] |
ActiveX
|
[
{
"date": "2008-11-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\r\n\r\nWhat is the difference between TOle class and TActivex class. In the above given example both the classes are doin the same. Where to use what ?.\r\n\r\nMay be it is a very silly question. Would like to know the difference\r\n\r\nRegards\r\n\r\nAnser",
"time": "10:23",
"topic": "ActiveX",
"username": "anserkk"
}
] |
ActiveX
|
[
{
"date": "2008-11-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"anserkk\":3104bmbi]Hi,\n\nWhat is the difference between TOle class and TActivex class. In the above given example both the classes are doin the same. Where to use what ?.\n\nMay be it is a very silly question. Would like to know the difference\n\nRegards\n\nAnser[/quote:3104bmbi]\r\n\r\nThey are both based on OLE technology but ActiveX is a control working like any other controls.\r\n\r\nEMG",
"time": "12:52",
"topic": "ActiveX",
"username": "Enrico Maria Giordano"
}
] |
ActiveX
|
[
{
"date": "2008-11-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Neither one works, the standard ole (the second one) does manage to launch Internet Explorer, but the window title is \"Google - Windows Internet Explorer\" which I believe is not in the Windows Container planned for in the code. I have gotten OLE to work very well with Excel so I am famialiar with controlling another application. I like to make sure the application is within a window I have created by the application. Is there any special libs I need to utilize. Is the only problem the way I call the application in the TActiveX new method (the program ID)? The activeX seems to be dying there.\r\n\r\nThanks,",
"time": "16:59",
"topic": "ActiveX",
"username": "byron.hopp"
}
] |
ActiveX
|
[
{
"date": "2008-11-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Byron,\r\n\r\nThe problem comes from the libraries linking order. You have to link FWH libraries, before xHarbour ones.\r\n\r\n> Called from: TActiveX.prg => TACTIVEX:NEW(0) \r\n\r\nFWH does not include a TActiveX.prg, so that one is from xHarbour not from FWH. You need to use the FWH one.",
"time": "20:22",
"topic": "ActiveX",
"username": "Antonio Linares"
}
] |
ActiveX
|
[
{
"date": "2010-02-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nIs there somewhere a manual or a set of instructions available which tell me how to use ActiveX in FWH ?\n\nThanks.",
"time": "17:31",
"topic": "ActiveX",
"username": "driessen"
}
] |
ActiveX
|
[
{
"date": "2010-02-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Michel,\n\nYou can review the ActiveX documentation in the FiveTech's wiki:\nCommands:\n[url:tkmllc1r]http://wiki.fivetechsoft.com/doku.php?id=fivewin_commands_activex[/url:tkmllc1r]\n\nClass:\n[url:tkmllc1r]http://wiki.fivetechsoft.com/doku.php?id=fivewin_class_tactivex[/url:tkmllc1r]\n\nAlso, you can review all the ActiveX examples provided in FWH\\samples:\nexcel.prg, flash.prg, gmapd.prg, goearth.prg, mappt.prg, media.prg, pdf.prg, ribonbar.prg, testactm.prg, testole2.prg, webexp.prg, word.prg",
"time": "10:14",
"topic": "ActiveX",
"username": "Antonio Linares"
}
] |
ActiveX
|
[
{
"date": "2010-02-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nThanks a lot for your help.",
"time": "13:19",
"topic": "ActiveX",
"username": "driessen"
}
] |
ActiveX
|
[
{
"date": "2009-06-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I´m trying execute this method\nret:=oAct:Do(\"RED\",aParams[1],aParams[2],aParams[3],aParams[4],aParams[5],aParams[6],aParams[7],0)\n\nret is to return 1, more return NIL, and looking in TactiveX i see it.\n\n METHOD Do( cMethodName, uParam1, uParam2, uParam3, uParam4, uParam5 )\n\n have onlly 5 parans and i need 8. Im trying this form.\n\n Ret = ActXInvoke( ActXPdisp( oAct:hActiveX ), \"RED\", aParams[1], aParams[2], aParams[3], aParams[4], aParams[5], aParams[6], aParams[7], 0)\n\nmore return nil yet.\n\nThinnk that need change function ActXInvoke to receive more params.\nI try use ToleAuto\n\nret:=oAct:RED(aParams[1],aParams[2],aParams[3],aParams[4],aParams[5],aParams[6],aParams[7],0)\nreturn 1 OK more i need use Eventos and class TOleAuto not have it. and class TOleWEvent() show GPF\n\nAntonio what´s your think ?",
"time": "02:01",
"topic": "ActiveX ( To Antonio ) Solved",
"username": "lailton.webmaster"
}
] |
ActiveX ( To Antonio ) Solved
|
[
{
"date": "2009-06-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "<!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->",
"time": "22:48",
"topic": "ActiveX ( To Antonio ) Solved",
"username": "lailton.webmaster"
}
] |
ActiveX ( To Antonio ) Solved
|
[
{
"date": "2009-06-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "<!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->",
"time": "09:30",
"topic": "ActiveX ( To Antonio ) Solved",
"username": "lailton.webmaster"
}
] |
ActiveX ( To Antonio ) Solved
|
[
{
"date": "2009-06-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lailton,\n\nPlease use the new Class TActiveX. There are no parameters limits <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=15314&start=0\">viewtopic.php?f=3&t=15314&start=0</a><!-- l -->",
"time": "10:12",
"topic": "ActiveX ( To Antonio ) Solved",
"username": "Antonio Linares"
}
] |
ActiveX ( To Antonio ) Solved
|
[
{
"date": "2009-06-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\ni need use it in fwh 8.5\n\nhow make to no have limit ??\n\nthanks",
"time": "10:44",
"topic": "ActiveX ( To Antonio ) Solved",
"username": "lailton.webmaster"
}
] |
ActiveX ( To Antonio ) Solved
|
[
{
"date": "2009-06-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lailton,\n\nHave you tested it with fwh 8.5 ? It should work fine",
"time": "11:24",
"topic": "ActiveX ( To Antonio ) Solved",
"username": "Antonio Linares"
}
] |
ActiveX ( To Antonio ) Solved
|
[
{
"date": "2009-06-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Perfect, all right with fwh 8.5 <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "00:12",
"topic": "ActiveX ( To Antonio ) Solved",
"username": "lailton.webmaster"
}
] |
ActiveX ( To Antonio ) Solved
|
[
{
"date": "2021-09-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I need to connect the POS device TPS900 to a POS application that is done with FWH / xHarbour. The TPS900 vendor has created a software interface as a COM component with functions to communicate with the TPS900 (C #). \nSo far, I have used the CREATEOBJECT function very successfully for account fiscalization as well. \n\nExample, how I used CREATEOBJECT.\n\nClass1.cs (c#)\n[code=fw:8zf2gogx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">using System;<br />using System.Collections.Generic;<br />using System.Linq;<br />using System.<span style=\"color: #0000ff;\">Text</span>;<br />using System.Threading.Tasks;<br /><br />namespace MyTest<br /><span style=\"color: #000000;\">{</span><br /><br /> <span style=\"color: #00C800;\">public</span> <span style=\"color: #00C800;\">class</span> HelloWord<br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">public</span> String SayHello<span style=\"color: #000000;\">(</span>string test<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> test; <br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /><span style=\"color: #000000;\">}</span><br /> </div>[/code:8zf2gogx]\n\n[b:8zf2gogx]register.bat[/b:8zf2gogx]\nC:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\regasm /codebase C:\\Users\\Dubravko\\source\\repos\\MyTest\\MyTest\\bin\\Debug\\MyTest.dll\n\n[code=fw:8zf2gogx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> <span style=\"color: #B900B9;\">//Test.prg</span><br /> <span style=\"color: #B900B9;\">//========================================== My Test ActiveX</span><br /> <span style=\"color: #00C800;\">Public</span> oPOS<br /> <span style=\"color: #00C800;\">Local</span> ret := ““<br /><br /> oPOS := CREATEOBJECT<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"MyTest.HelloWord\"</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// namespace->MyTest public class->HelloWord</span><br /><br /> alert<span style=\"color: #000000;\">(</span>valtype<span style=\"color: #000000;\">(</span>oPOS<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// \"O\"</span><br /><br /> ret := oPOS:<span style=\"color: #000000;\">SayHello</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"I'm here !!!!!!\"</span><span style=\"color: #000000;\">)</span><br /><br /> alert<span style=\"color: #000000;\">(</span> ret <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// -> \" I'm here !!!!!!\"</span><br /> <br /> <span style=\"color: #B900B9;\">//==========================================</span><br /><br /> </div>[/code:8zf2gogx]\n\n\nI received an email from the equipment supplier saying that they use a singleton pattern to manage and control instances of Bluetooth connections and suggest that I use the factory method BluetoothConnector.GetInstance (string serviceGuid)\n\n[b:8zf2gogx][i:8zf2gogx][ Mail ] Greeting, [/b:8zf2gogx]\nI am sending a reworked dll, it should work now. The problem was probably that COM registration required the class to have a public default constructor, and since we use a singleton pattern (to manage and control instances of Bluetooth connections), the constructor was private. In any case, do not use the constructor for the BluetoothConnector class (there is only for COM registration), but instead use the factory method BluetoothConnector.GetInstance (string serviceGuid) to create, and retrieve an instance of BluetoothConnector.[/i:8zf2gogx]\n\nCan anyone help me how to use CREATEOBJECT for factory method \nBluetoothConnector.GetInstance (string serviceGuid)\n\ne.g:\noPOS := CREATEOBJECT(\"BluetoothConnector.GetInstance('TestConnectionDLL()' ) or something ?\n\n\nThanks for any help\n\nRegards,\n\n( TestConnectionDLL () is a built-in function in BluetoothConnector.cs\n Returns what we sent as an argument. )\n\n[b:8zf2gogx]BluetoothConnector.cs[/b:8zf2gogx]\n[code=fw:8zf2gogx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />using System;<br />using System.Collections.Generic;<br />using System.IO;<br />using System.Linq;<br />using System.<span style=\"color: #0000ff;\">Text</span>;<br />using System.Threading.Tasks;<br />using InTheHand.Net;<br />using InTheHand.Net.Bluetooth;<br />using InTheHand.Net.Sockets;<br />using Newtonsoft.Json;<br /><br />namespace PaymentService<br /><span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">public</span> <span style=\"color: #00C800;\">class</span> BluetoothConnector<br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">private</span> <span style=\"color: #00C800;\">static</span> BluetoothConnector _instance = <span style=\"color: #00C800;\">null</span>;<br /> <span style=\"color: #00C800;\">private</span> <span style=\"color: #00C800;\">static</span> readonly object lockObj = <span style=\"color: #00C800;\">new</span> object<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">private</span> BluetoothClient _client;<br /> <span style=\"color: #00C800;\">private</span> List<BluetoothDeviceInfo> _availableDevices = <span style=\"color: #00C800;\">new</span> List<BluetoothDeviceInfo><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">private</span> BluetoothDeviceInfo _selectedDevice = <span style=\"color: #00C800;\">null</span>;<br /> <span style=\"color: #00C800;\">private</span> string _serviceGuid;<br /><br /> BluetoothConnector<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> this._client = <span style=\"color: #00C800;\">new</span> BluetoothClient<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">private</span> string ServiceGuid<br /> <span style=\"color: #000000;\">{</span><br /> set<br /> <span style=\"color: #000000;\">{</span><br /> this._serviceGuid = value;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">public</span> <span style=\"color: #00C800;\">static</span> BluetoothConnector GetInstance<span style=\"color: #000000;\">(</span>string serviceGuid<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>_instance == <span style=\"color: #00C800;\">null</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> lock <span style=\"color: #000000;\">(</span>lockObj<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>_instance == <span style=\"color: #00C800;\">null</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> _instance = <span style=\"color: #00C800;\">new</span> BluetoothConnector<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> _instance.ServiceGuid = serviceGuid;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">return</span> _instance;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #B900B9;\">/// <summary></span><br /> <span style=\"color: #B900B9;\">/// Looks up for all available bluetooth devices near by.</span><br /> <span style=\"color: #B900B9;\">/// </summary></span><br /> <span style=\"color: #B900B9;\">/// <returns>Returns a list of devices found.</returns></span><br /> <span style=\"color: #00C800;\">public</span> IReadOnlyCollection<PaymentDevice> FindAvailableDevices<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> List<PaymentDevice> devicesList = <span style=\"color: #00C800;\">new</span> List<PaymentDevice><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #0000ff;\">var</span> devices = this._client.DiscoverDevices<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> foreach <span style=\"color: #000000;\">(</span><span style=\"color: #0000ff;\">var</span> dev in devices<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> _availableDevices.Add<span style=\"color: #000000;\">(</span>dev<span style=\"color: #000000;\">)</span>;<br /><br /> PaymentDevice d = <span style=\"color: #00C800;\">new</span> PaymentDevice<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> DeviceName = dev.DeviceName,<br /> Authenticated = dev.Authenticated,<br /> DeviceAddress = dev.DeviceAddress.ToUInt64<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">}</span>;<br /><br /> devicesList.Add<span style=\"color: #000000;\">(</span>d<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">return</span> devicesList.AsReadOnly<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #B900B9;\">/// <summary></span><br /> <span style=\"color: #B900B9;\">/// Attempts pairing process with the POS terminal device.</span><br /> <span style=\"color: #B900B9;\">/// </summary></span><br /> <span style=\"color: #B900B9;\">/// <param name=\"device\">Device information.</param></span><br /> <span style=\"color: #B900B9;\">/// <returns>Returns <b>true</b> if pairing succeeded.</returns></span><br /> <span style=\"color: #00C800;\">public</span> bool Pair<span style=\"color: #000000;\">(</span>PaymentDevice device<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> bool result = <span style=\"color: #00C800;\">false</span>;<br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>!device.Authenticated<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> result = BluetoothSecurity.PairRequest<span style=\"color: #000000;\">(</span>device.DeviceAddress, <span style=\"color: #00C800;\">null</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span><br /> result = <span style=\"color: #00C800;\">true</span>;<br /><br /> BluetoothDeviceInfo deviceInfo = _availableDevices.FirstOrDefault<span style=\"color: #000000;\">(</span>d => d.DeviceAddress.ToUInt64<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> == device?.DeviceAddress<span style=\"color: #000000;\">)</span>;<br /> this._selectedDevice = deviceInfo;<br /> deviceInfo?.<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">return</span> result;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #B900B9;\">/// <summary></span><br /> <span style=\"color: #B900B9;\">/// Executes payment transaction against the POS terminal device.</span><br /> <span style=\"color: #B900B9;\">/// </summary></span><br /> <span style=\"color: #B900B9;\">/// <param name=\"amount\">Transaction amount.</param></span><br /> <span style=\"color: #B900B9;\">/// <param name=\"currency\">Transaction currency. This parameter is optional and if omitted, \"HRK\" is used as default.</param></span><br /> <span style=\"color: #B900B9;\">/// <returns>Transaction execution result details.</returns></span><br /> <span style=\"color: #00C800;\">public</span> ResponsePay Pay<span style=\"color: #000000;\">(</span>decimal amount, string currency = <span style=\"color: #ff0000;\">\"HRK\"</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> this.ConnectClient<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #0000ff;\">var</span> stream = _client.GetStream<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> StreamWriter sw = <span style=\"color: #00C800;\">new</span> StreamWriter<span style=\"color: #000000;\">(</span>stream, System.<span style=\"color: #0000ff;\">Text</span>.Encoding.UTF8<span style=\"color: #000000;\">)</span>;<br /><br /> ResponsePay responseObject = <span style=\"color: #00C800;\">null</span>;<br /><br /> <span style=\"color: #00C800;\">try</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #0000ff;\">var</span> obj = <span style=\"color: #00C800;\">new</span><br /> <span style=\"color: #000000;\">{</span><br /> requestId = Guid.NewGuid<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>.ToString<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>.ToLower<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>,<br /> <span style=\"color: #00C800;\">method</span> = <span style=\"color: #ff0000;\">\"pay\"</span>,<br /> parameters = <span style=\"color: #00C800;\">new</span> <span style=\"color: #000000;\">{</span> amount, currency <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span>;<br /> <span style=\"color: #0000ff;\">var</span> objectJson = JsonConvert.SerializeObject<span style=\"color: #000000;\">(</span>obj<span style=\"color: #000000;\">)</span>;<br /> sw.WriteLine<span style=\"color: #000000;\">(</span>objectJson<span style=\"color: #000000;\">)</span>;<br /> sw.<span style=\"color: #0000ff;\">Flush</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /><br /> string response;<br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>stream.CanRead<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> using <span style=\"color: #000000;\">(</span>StreamReader sr = <span style=\"color: #00C800;\">new</span> StreamReader<span style=\"color: #000000;\">(</span>stream<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> response = sr.ReadLine<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> responseObject = JsonConvert.DeserializeObject<ResponsePay><span style=\"color: #000000;\">(</span>response<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /> catch <span style=\"color: #000000;\">(</span>Exception ex<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">throw</span> <span style=\"color: #00C800;\">new</span> InvalidOperationException<span style=\"color: #000000;\">(</span>ex.<span style=\"color: #0000ff;\">Message</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">return</span> responseObject;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #B900B9;\">/// <summary></span><br /> <span style=\"color: #B900B9;\">/// Executes payment transaction against the POS terminal device.</span><br /> <span style=\"color: #B900B9;\">/// </summary></span><br /> <span style=\"color: #B900B9;\">/// <param name=\"transactionId\">Transaction identifier.</param></span><br /> <span style=\"color: #B900B9;\">/// <returns>Transaction cancellation execution result details.</returns></span><br /> <span style=\"color: #00C800;\">public</span> ResponsePay Cancel<span style=\"color: #000000;\">(</span>string transactionId<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> this.ConnectClient<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #0000ff;\">var</span> stream = _client.GetStream<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> StreamWriter sw = <span style=\"color: #00C800;\">new</span> StreamWriter<span style=\"color: #000000;\">(</span>stream, System.<span style=\"color: #0000ff;\">Text</span>.Encoding.UTF8<span style=\"color: #000000;\">)</span>;<br /><br /> ResponsePay responseObject = <span style=\"color: #00C800;\">null</span>;<br /><br /> <span style=\"color: #00C800;\">try</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #0000ff;\">var</span> obj = <span style=\"color: #00C800;\">new</span><br /> <span style=\"color: #000000;\">{</span><br /> requestId = Guid.NewGuid<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>.ToString<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>.ToLower<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>,<br /> <span style=\"color: #00C800;\">method</span> = <span style=\"color: #ff0000;\">\"cancel\"</span>,<br /> parameters = <span style=\"color: #00C800;\">new</span> <span style=\"color: #000000;\">{</span> transactionId <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span>;<br /> <span style=\"color: #0000ff;\">var</span> objectJson = JsonConvert.SerializeObject<span style=\"color: #000000;\">(</span>obj<span style=\"color: #000000;\">)</span>;<br /> sw.WriteLine<span style=\"color: #000000;\">(</span>objectJson<span style=\"color: #000000;\">)</span>;<br /> sw.<span style=\"color: #0000ff;\">Flush</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /><br /> string response;<br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>stream.CanRead<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> using <span style=\"color: #000000;\">(</span>StreamReader sr = <span style=\"color: #00C800;\">new</span> StreamReader<span style=\"color: #000000;\">(</span>stream<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> response = sr.ReadLine<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> responseObject = JsonConvert.DeserializeObject<ResponsePay><span style=\"color: #000000;\">(</span>response<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /> catch <span style=\"color: #000000;\">(</span>Exception ex<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">throw</span> <span style=\"color: #00C800;\">new</span> InvalidOperationException<span style=\"color: #000000;\">(</span>ex.<span style=\"color: #0000ff;\">Message</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">return</span> responseObject;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #B900B9;\">/// <summary></span><br /> <span style=\"color: #B900B9;\">/// Tests a bluetooth connection against the paired device and its registered service.</span><br /> <span style=\"color: #B900B9;\">/// </summary></span><br /> <span style=\"color: #B900B9;\">/// <returns>Response with the test result.</returns></span><br /> <span style=\"color: #00C800;\">public</span> Response TestConnection<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> this.ConnectClient<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #0000ff;\">var</span> stream = _client.GetStream<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> StreamWriter sw = <span style=\"color: #00C800;\">new</span> StreamWriter<span style=\"color: #000000;\">(</span>stream, System.<span style=\"color: #0000ff;\">Text</span>.Encoding.UTF8<span style=\"color: #000000;\">)</span>;<br /><br /> Response responseObject = <span style=\"color: #00C800;\">null</span>;<br /><br /> <span style=\"color: #00C800;\">try</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #0000ff;\">var</span> obj = <span style=\"color: #00C800;\">new</span><br /> <span style=\"color: #000000;\">{</span><br /> requestId = Guid.NewGuid<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>.ToString<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>.ToLower<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>,<br /> <span style=\"color: #00C800;\">method</span> = <span style=\"color: #ff0000;\">\"test\"</span>,<br /> parameters = <span style=\"color: #00C800;\">new</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #00C800;\">data</span> = <span style=\"color: #ff0000;\">\"testData\"</span> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span>;<br /> <span style=\"color: #0000ff;\">var</span> objectJson = JsonConvert.SerializeObject<span style=\"color: #000000;\">(</span>obj<span style=\"color: #000000;\">)</span>;<br /> sw.WriteLine<span style=\"color: #000000;\">(</span>objectJson<span style=\"color: #000000;\">)</span>;<br /> sw.<span style=\"color: #0000ff;\">Flush</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /><br /> string response;<br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>stream.CanRead<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> using <span style=\"color: #000000;\">(</span>StreamReader sr = <span style=\"color: #00C800;\">new</span> StreamReader<span style=\"color: #000000;\">(</span>stream<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> response = sr.ReadLine<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> responseObject = JsonConvert.DeserializeObject<Response><span style=\"color: #000000;\">(</span>response<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /> catch <span style=\"color: #000000;\">(</span>Exception ex<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">throw</span> <span style=\"color: #00C800;\">new</span> InvalidOperationException<span style=\"color: #000000;\">(</span>ex.<span style=\"color: #0000ff;\">Message</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">return</span> responseObject;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">private</span> void ConnectClient<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>!_client.Connected<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> _client.Connect<span style=\"color: #000000;\">(</span>_selectedDevice.DeviceAddress, Guid.Parse<span style=\"color: #000000;\">(</span>_serviceGuid<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>!_client.Connected || _client.PairedDevices.<span style=\"color: #0000ff;\">Count</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> == <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">throw</span> <span style=\"color: #00C800;\">new</span> InvalidOperationException<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Niste spojeni na niti jedan ure?aj. Pokrenite spajanje/uparivanje.\"</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /><span style=\"color: #000000;\">}</span><br /><br /> </div>[/code:8zf2gogx]",
"time": "10:50",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "metro2"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-09-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Please build FWH\\samples\\olebrow.prg and inspect the DLL OLE class that you want to use and paste here what you get\n\nExample:\n[img:3ab0thcr]https://fivetechsoft.github.io/screenshots/shark.JPG[/img:3ab0thcr]",
"time": "12:16",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "Antonio Linares"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-09-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thank you for the quick response\n\nI hope that's what you were looking for \n\n[img:3epvh453]http://www.inteh-app.com/app/ActiveX_scr.png[/img:3epvh453]\n\n\nRegistry\n[img:3epvh453]http://www.inteh-app.com/app/ActiveX_scr2.png[/img:3epvh453]",
"time": "13:40",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "metro2"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-09-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Please double click on the highligthed (blue) line to show its info",
"time": "16:52",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "Antonio Linares"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-09-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[img:2qhbfgfd]http://www.inteh-app.com/app/ActiveX_scr3.png[/img:2qhbfgfd]",
"time": "17:14",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "metro2"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-09-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "We need the complete list\n\nPlease click on Print or Excel to get it",
"time": "17:18",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "Antonio Linares"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-09-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[url:2qgdvcr4]http://www.inteh-app.com/app/ActiveX_list.xlsx[/url:2qgdvcr4]\n\n\n[url:2qgdvcr4]http://www.inteh-app.com/app/ActiveX_list_PaymentService.xlsx[/url:2qgdvcr4]",
"time": "22:11",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "metro2"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-09-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Download this utility to see the registered classes of activex and olecom components.\n\n[url:cod6gk55]https://www.mitec.cz/Downloads/OLExp.zip[/url:cod6gk55]",
"time": "02:03",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "Giovany Vecchi"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-09-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thank you\nYes, all 4 classes are visible \n\n\n\n[url:dy49u8lo]http://www.inteh-app.com/app/ActiveX_scr4.png[/url:dy49u8lo]",
"time": "07:05",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "metro2"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-09-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote:2wta9ww2] ////////////////////////////////////////////\n o1 := CREATEOBJECT(\"PaymentService.BluetoothConnector\") // ok\n MsgInfo( ValType( o1 ) ) // -> \"O\"\n \n local22 := o1:Invoke( \"GetInstance\" ) \n \n MsgInfo( ValType( local22 ) ) // N\n \n MsgInfo( str( local22 ) ) // 244252684\n \n o2 := o1:GetInstance() // error\n\n MsgInfo( ValType( o2 ) )\n \n \n ////////////////////////////////////////////[/quote:2wta9ww2]",
"time": "11:27",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "metro2"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-09-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Please try this:\n\nlocal o1 := CreateObject( \"PaymentService.BluetoothConnector\" )\nlocal o2 := TOleAuto():New( o1:Invoke( \"GetInstance\" ) )",
"time": "12:03",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "Antonio Linares"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-09-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "////////////////////////////////////////////\n o1 := CreateObject( \"PaymentService.BluetoothConnector\" )\n o2 := TOleAuto():New( o1:Invoke( \"GetInstance\" ) )\n \n MsgInfo( ValType( o1 ) ) // -> \"O\"\n\n MsgInfo( ValType( o2 ) ) // -> \"O\"\n \n \n ////////////////////////////////////////////",
"time": "12:17",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "metro2"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-09-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"metro2\":jizwymic][img:jizwymic]http://www.inteh-app.com/app/ActiveX_scr3.png[/img:jizwymic][/quote:jizwymic]\n\nIs Invoke() the latest entry in the list ? The scrollbar seems to have more to show",
"time": "08:38",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "Antonio Linares"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-09-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Yes, invoke is the last entry in the list \n\n[img:1ttorr46]http://www.inteh-app.com/app/ActiveX_scr5.png[/img:1ttorr46]",
"time": "09:24",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "metro2"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-09-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Please try this:\n\nlocal o1 := CreateObject( \"PaymentService.BuetoothConnector\" )\nlocal o2 := o1:GetInstance()\n\nMsgInfo( ValType( o1 ) )\nMsgInfo( ValType( o2 ) )",
"time": "10:35",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "Antonio Linares"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-09-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Also please try:\n\nlocal o2 := o1:Invoke( \"GetInstance\" )",
"time": "10:40",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "Antonio Linares"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-09-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "prg:\n ////////////////////////////////////////////\n o1 := CREATEOBJECT(\"PaymentService.BluetoothConnector\") // ok\n MsgInfo( ValType( o1 ) ) // -> \"O\"\n \n o2 := o1:GetInstance() // error\n\n MsgInfo( ValType( o2 ) )\n ////////////////////////////////////////////\n \nerror.log\n[quote:1ddnvtpx]Application\n===========\n Path and name: G:\\FWH_PRG\\MetroTRG\\metrotrg.exe (32 bits)\n Size: 3,663,872 bytes\n Time from start: 0 hours 0 mins 10 secs \n Error occurred at: 29.09.2021, 12:16:07\n Error description: Error PaymentService.BluetoothConnector/0 S_OK: GETINSTANCE\n Args:\n\nStack Calls\n===========\n Called from: => TOLEAUTO:GETINSTANCE(0)\n Called from: kasa001.prg => KASASTART(65)\n Called from: G:\\FWH_PRG\\metroTRG\\main.prg => (b)MAIN(298)\n Called from: btnbmp.prg => TBTNBMP:CLICK(463)\n Called from: btnbmp.prg => TBTNBMP:LBUTTONUP(658)\n Called from: => TWINDOW:HANDLEEVENT(0)\n Called from: .\\source\\classes\\CONTROL.PRG => TCONTROL:HANDLEEVENT(1483)\n Called from: btnbmp.prg => TBTNBMP:HANDLEEVENT(1437)\n Called from: .\\source\\classes\\WINDOW.PRG => _FWH(3391)\n Called from: => WINRUN(0)\n Called from: .\\source\\classes\\WINDOW.PRG => TWINDOW:ACTIVATE(976)\n Called from: clas_metro.prg => TMETRO:ACTIVATE(55)\n Called from: G:\\FWH_PRG\\metroTRG\\main.prg => MAIN(380)\n\nSystem\n======\n CPU type: Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz -137438 Mhz\n Hardware memory: 2048 megs\n\n Free System resources: 90 %\n GDI resources: 90 %\n User resources: 90 %\n\n Compiler version: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 9382)\n Windows version: 6.2, Build 9200 [/quote:1ddnvtpx]",
"time": "11:21",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "metro2"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-09-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "> oPOS := CREATEOBJECT(\"BluetoothConnector.GetInstance('TestConnectionDLL()' ) or something ?\n\no2 should be the oPOS you were looking for",
"time": "13:20",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "Antonio Linares"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-09-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Ok, i'll try to call TestConnectionDLL with an argument ...\n\nI will report the result ...",
"time": "14:26",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "metro2"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-11-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Greeting,\nI was away for a while.\n\nIf an o2 instance is called from BluetoothConnector,\n\nHow to call the TestConnectionDll method eg:\n\nret: = o2: TestConnectionDll (\"\") // -> error\nret: = o2: BluetoothConnector: TestConnectionDll (\"\") // -> error\n\nIn other words, no matter how I try to call the method, I get an error. I'm probably wrong in syntax.\n\nDoes anyone have an idea how to call a certain method?\n\nAntonio, thanks for the prior help.\n\n[img:vhs07fwg]http://www.inteh-app.com/app/ActiveX_scr6.png[/img:vhs07fwg]",
"time": "07:32",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "metro2"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-11-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Please try using:\n\no2:Invoke( \"TestConnectionDll\", \"\" )",
"time": "08:59",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "Antonio Linares"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2021-11-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "hi,\n\nAntonio thanks for taking care of my problem ....\n\nYes, i tried this too, but it reports an error\n o2:Invoke( \"TestConnectionDll\", \"\" )\n\nJust today I intended to send a description of what was happening in the meantime.\n\nOn the forum [url:363sh1py]https://stackoverflow.com/questions/6252334/singleton-com-object-required[/url:363sh1py]\nI found the following:\n\n[quote:363sh1py]COM does not directly support the Singleton pattern, but it does not strictly prohibit it either. It's just that there's no registry setting that says \"always serves the same object.\" In fact, the standard COM instance mechanism requires that a truly new object be returned each time you call it (this mechanism is used internally by new operators and CreateInstance (). This means that to create a valid COM singleton, you cannot allow your clients to do it themselves all of this can be done, but it is tricky and rarely necessary.[/quote:363sh1py]\n\n\nFrom this I concluded that the classic way of using singleton technology, cannot be achieved by a direct call to GetInstance.\n\nThe idea is to add a method, which I will call, internally raising the singleton instance.\n\nI made a test program with c #: \nclass1.cs\n[code=fw:363sh1py]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">using System;<br />using System.Collections.Generic;<br />using System.Linq;<br />using System.<span style=\"color: #0000ff;\">Text</span>;<br />using System.Threading.Tasks;<br /><br />namespace MyTest <br /><span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">public</span> <span style=\"color: #00C800;\">class</span> Singleton<br /> <span style=\"color: #000000;\">{</span><br /><br /> <span style=\"color: #00C800;\">public</span> string GetCardType<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #ff0000;\">\"MoneyBack\"</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">public</span> int GetCreditLimit<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">15000</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">public</span> int GetAnnualCharge<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">500</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">public</span> string GetCardTypeRet<span style=\"color: #000000;\">(</span> string ret <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">//Console.WriteLine(\"Counter Value \" + ret); // due to testing from the console application .... </span><br /> <span style=\"color: #00C800;\">return</span> ret;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #B900B9;\">//---------------------------------------------</span><br /> <span style=\"color: #00C800;\">public</span> <span style=\"color: #00C800;\">class</span> Car<br /> <span style=\"color: #000000;\">{</span><br /><br /> <span style=\"color: #00C800;\">public</span> string GetCardColorRet<span style=\"color: #000000;\">(</span>string ret<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> ret;<br /> <span style=\"color: #000000;\">}</span><br /><br /><br /><br /> <span style=\"color: #00C800;\">public</span> object MyFunction<span style=\"color: #000000;\">(</span>int something = <span style=\"color: #000000;\">0</span>, string somethingelse = <span style=\"color: #ff0000;\">\"zzz\"</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// the arguments are due to future testing</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #0000ff;\">var</span> ret = <span style=\"color: #00C800;\">new</span> Singleton<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">return</span> ret;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">public</span> object GetObj<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// the method, which I will call, internally raises the singleton instance. </span><br /> <span style=\"color: #000000;\">{</span><br /> SingletonTest fromEmployee = SingletonTest.GetInstance;<br /><br /> <span style=\"color: #00C800;\">return</span> fromEmployee;<br /> <span style=\"color: #000000;\">}</span><br /><br /><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #B900B9;\">//---------------------------------------------</span><br /> <span style=\"color: #00C800;\">public</span> sealed <span style=\"color: #00C800;\">class</span> SingletonTest <span style=\"color: #B900B9;\">// </span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">private</span> <span style=\"color: #00C800;\">static</span> int counter = <span style=\"color: #000000;\">0</span>;<br /><br /> <span style=\"color: #B900B9;\">/*<br /> * Private property initilized with null<br /> * ensures that only one instance of the object is created<br /> * based on the null condition<br /> */</span><br /> <span style=\"color: #00C800;\">private</span> <span style=\"color: #00C800;\">static</span> SingletonTest instance = <span style=\"color: #00C800;\">null</span>;<br /><br /> <span style=\"color: #B900B9;\">/*<br /> * public property is used to return only one instance of the class<br /> * leveraging on the private property<br /> */</span><br /> <span style=\"color: #00C800;\">public</span> <span style=\"color: #00C800;\">static</span> SingletonTest GetInstance<br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #0000ff;\">get</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>instance == <span style=\"color: #00C800;\">null</span><span style=\"color: #000000;\">)</span><br /> instance = <span style=\"color: #00C800;\">new</span> SingletonTest<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">return</span> instance;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #B900B9;\">/*<br /> * Private constructor ensures that object is not<br /> * instantiated other than with in the class itself<br /> */</span><br /> <span style=\"color: #00C800;\">private</span> SingletonTest<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #000000;\">{</span><br /> counter++;<br /> <span style=\"color: #B900B9;\">//Console.WriteLine(\"Counter Value \" + counter.ToString() + \" formirao instancu Singleton\"); // due to testing from the console application .... </span><br /><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #B900B9;\">/*<br /> * Public method which can be invoked through the singleton instance !!!<br /> */</span><br /> <span style=\"color: #00C800;\">public</span> void PrintDetails<span style=\"color: #000000;\">(</span>string <span style=\"color: #0000ff;\">message</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// due to testing from the console application .... </span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">//Console.WriteLine(message); </span><br /> <span style=\"color: #000000;\">}</span><br /> <br /> <br /> <span style=\"color: #B900B9;\">// added ... test function !!!</span><br /> <span style=\"color: #00C800;\">public</span> string GetCardTypeRet<span style=\"color: #000000;\">(</span>string ret<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> ret;<br /> <span style=\"color: #000000;\">}</span><br /><br /><br /> <span style=\"color: #00C800;\">public</span> string TestConnectionDLL<span style=\"color: #000000;\">(</span>string ret<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> ret;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #000000;\">}</span><br /><br /><span style=\"color: #000000;\">}</span><br /> </div>[/code:363sh1py]\n\nolebrow: \n\n[img:363sh1py]http://www.inteh-app.com/app/sl22.png[/img:363sh1py]\n\n\nRegister COM \nC:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\regasm /codebase C:\\Users\\Dubravko\\source\\repos\\MyTest\\MyTest\\bin\\Release\\MyTest.dll\n\n\nprg code:\n\n[code=fw:363sh1py]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> <span style=\"color: #B900B9;\">// visible class </span><br /> o1 := CREATEOBJECT<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"MyTest.Singleton\"</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// namespace->MyTest public class->Singleton</span><br /> alert<span style=\"color: #000000;\">(</span>valtype<span style=\"color: #000000;\">(</span>o1<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// \"O\"</span><br /> alert<span style=\"color: #000000;\">(</span>o1:<span style=\"color: #000000;\">GetCardTypeRet</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Tu sam 2!!!!!!\"</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// -> \"Tu sam 2!!!!!!\"</span><br /> <br /><br /> o2 := CREATEOBJECT<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"MyTest.Car\"</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// </span><br /> alert<span style=\"color: #000000;\">(</span>valtype<span style=\"color: #000000;\">(</span>o2<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// -> \"O\"</span><br /> alert<span style=\"color: #000000;\">(</span>valtype<span style=\"color: #000000;\">(</span> o2:<span style=\"color: #000000;\">GetObj</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// -> \"O\" </span><br /> <br /> o3 := o2:<span style=\"color: #000000;\">GetObj</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// -> objekt - dignuta instanca</span><br /> alert<span style=\"color: #000000;\">(</span> o3:<span style=\"color: #000000;\">TestConnectionDLL</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"string_ret\"</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// -> \"string_ret\" the test calls methods from a singleton instance</span><br /><br /> </div>[/code:363sh1py]\n\nNow I expect TPS900 terminal vendors to add a method that will internally boot up the singleton instance and try it all out.\n\nHere it is additionally good, which can be solved in this way, to manage the bluetooth port from FWH. \n\n\n\n\n\n\n\n\n\n\n\n\nregards\nDubravko Basic \t\n<!-- m --><a class=\"postlink\" href=\"http://www.inteh.hr\">http://www.inteh.hr</a><!-- m -->",
"time": "14:24",
"topic": "ActiveX - CREATEOBJECT and singleton pattern",
"username": "metro2"
}
] |
ActiveX - CREATEOBJECT and singleton pattern
|
[
{
"date": "2009-05-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "All,\n\nI'm using ActiveX to navigate to a secure webpage where the user enters some information and clicks a button that redirects them to another window with the results of the transaction. I need to read the results containted is this IE window. \n\nI'm trying to view the contents of oActiveX:GetProp(\"document\") in the valid clause before the object is closed however, oActiveX:GetProp(\"document\") returns a numeric value. How can I grab the results in this window? What am I doing wrong?\n\nI've also tried using CreateObject which directs me to the first window but I cannot figure out a way to get the contents of the document body of the 2nd window.\n\nAny help or suggestions would be greatly appreciated.\n\nUsing xHarbour 9/2008 and FWH 8.01.\n\nThanks,\nRandal",
"time": "20:14",
"topic": "ActiveX & Internet Explorer Question",
"username": "Randal"
}
] |
ActiveX & Internet Explorer Question
|
[
{
"date": "2009-05-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Randal,\n\n> oActiveX:GetProp(\"document\") returns a numeric value\n\nThis has been enhanced in FWH 9.04.\n\nAs a workaround you may try:\n\noDocument = TOleAuto():New( oActiveX:GetProp(\"document\") )\n\nalso, new FWH 9.04 Class TActiveX directly allows:\n\noDocument = oActiveX:document",
"time": "19:48",
"topic": "ActiveX & Internet Explorer Question",
"username": "Antonio Linares"
}
] |
ActiveX & Internet Explorer Question
|
[
{
"date": "2006-06-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nHow can I set these properties using ActiveX & FWH?\n\nUsing xHarbour I can using the following syntax:\n\n oMapPoint:Toolbars:Item(\"Standard\"):Visible := .T. \n oMapPoint:Toolbars:Item(\"Navigation\"):Visible := .T. \n oMapPoint:Toolbars:Item(\"Drawing\"):Visible := .T. \n oMapPoint:Toolbars:Item(\"Location and Scale\"):Visible := .T. \n\nUsing FWH I've tried a variety of options but cannot find the correct syntax to set these properties.\n\nThanks,\nRandal Ferguson",
"time": "14:27",
"topic": "ActiveX & Mappoint",
"username": "Randal"
}
] |
ActiveX & Mappoint
|
[
{
"date": "2006-06-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Randal,\n\nThis should be the first step:\n MsgInfo( OleGetProperty( oActiveX:hActiveX, \"Toolbars\" ) )\n\nbut it is returning a nil value.",
"time": "15:10",
"topic": "ActiveX & Mappoint",
"username": "Antonio Linares"
}
] |
ActiveX & Mappoint
|
[
{
"date": "2006-06-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nToolbars is a collection object. I don't know how OleGetProperty is suppose to work but I can do the following with the same results.\n\n// This line turns on the Legend and works properly\noActiveX:SetProp(\"PaneState\", 1) // Turn on legend for route planer\n\n// This line returns nil\nMsgInfo( OleGetProperty( oActiveX:hActiveX, \"PaneState\" ) ) \n\n// This line returns 1, which is correct.\nMsgInfo( oActiveX:GetProp(\"PaneState\") )\n\nSo, I don't know why using GetProp works and OleGetProperty does not.\n\nAdditionally, when I set the PaneState property the route planner legend is visible but does not respond to any mouse clicks. According to the Microsoft docs the legend and toolbars should respond to mouse clicks, i.e. there are no events to process through the event handler for the legend and toolbars.\n\nJust like the Excel ActiveX displays a toolbar with default functionality, the MapPoint toolbars should behave the same way.\n\nI purchased the FWH Apr 2006 upgrade so I could get the ActiveX functionality for this project. If I need to purchase a more recent upgrade or pay extra to get this working just let me know. This is a major project that a I must get working and I'm losing customers by not having this functionality.\n\nRegards,\nRandal Ferguson[/list][/quote]",
"time": "17:14",
"topic": "ActiveX & Mappoint",
"username": "Randal"
}
] |
ActiveX & Mappoint
|
[
{
"date": "2006-06-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Randal,\n\nThe current ActiveX support is the same, so there is no need for the upgrade.\n\nIt looks as the MapPoint ActiveX implementation is not the standard one, or at least it is not done in the way that we use it from FWH.\n\nCan you get the right behavior and events with xHB ?",
"time": "22:22",
"topic": "ActiveX & Mappoint",
"username": "Antonio Linares"
}
] |
ActiveX & Mappoint
|
[
{
"date": "2006-06-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nWith xHarbour I can set the properties to show the toolbars but they do not respond to any mouse clicks. \n\nI've looked at samples for .net, vb, c#, c/c++ and I don't see anything extra you should have to do. You can see what events are available for Mappoint. There are no mappoint events to process in response to clicking on the toolbars.\n\nI like the xHarbour implementation for accessing methods, properties, and objects. I don't have any problem accessing any of these using xHarbour.\n\nI don't see anyway to access any of the many objects & collections available in MapPoint using FWH/ActiveX. \n\nAs to my original question, is there anyway to set the properties to show the toolbars?\n\nThanks,\nRandal Ferguson",
"time": "23:28",
"topic": "ActiveX & Mappoint",
"username": "Randal"
}
] |
ActiveX & Mappoint
|
[
{
"date": "2006-06-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Randal Ferguson\":2bknv2lk]\noActiveX:SetProp(\"PaneState\", 1) // Turn on legend for route planer\n\n// This line returns nil\nMsgInfo( OleGetProperty( oActiveX:hActiveX, \"PaneState\" ) ) \n\n// This line returns 1, which is correct.\nMsgInfo( oActiveX:GetProp(\"PaneState\") )\n\nSo, I don't know why using GetProp works and OleGetProperty does not.\n[/quote:2bknv2lk]\nMy mistake. The right syntax is:\nActXGetProperty( ActXPdisp( <oActiveX>:hActiveX ), cPropName )",
"time": "07:44",
"topic": "ActiveX & Mappoint",
"username": "Antonio Linares"
}
] |
ActiveX & Mappoint
|
[
{
"date": "2006-06-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Randal,\n\nA collection is a property that requires an extra parameter. This code is working right:\n[code:26df9xz9]\n ...\n local hToolBar, hStandard\n ...\n\n oActiveX = TActiveX():New( oWnd, \"MapPoint.Control.9\" )\n\n oWnd:oClient = oActiveX // To fill the entire window surface\n\n oActiveX:Do( \"Newmap\", 1 ) \n\n oActiveX:SetProp( \"PaneState\", 1 )\n \n hToolBar = oActiveX:GetProp( \"Toolbars\" )\n hStandard = OleGetProperty( hToolBar, \"Item\", \"Standard\" )\n OleSetProperty( hStandard, \"Visible\", .T. )\n[/code:26df9xz9]\nNow we just need to properly manage the clicks <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->\n\n[url=http://imageshack.us:26df9xz9][img:26df9xz9]http://img82.imageshack.us/img82/6417/map6gs.gif[/img:26df9xz9][/url:26df9xz9]",
"time": "08:41",
"topic": "ActiveX & Mappoint",
"username": "Antonio Linares"
}
] |
ActiveX & Mappoint
|
[
{
"date": "2006-06-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nThanks, this works great to turn on the different toolbars. \n\nClicking on the legend or any of the toolbar buttons does not trigger any event. The question now is why don't the toolbar buttons or legend respond to any mouse clicks?\n\nThanks,\nRandal Ferguson",
"time": "14:38",
"topic": "ActiveX & Mappoint",
"username": "Randal"
}
] |
ActiveX & Mappoint
|
[
{
"date": "2006-06-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Randal,\n\n>\nClicking on the legend or any of the toolbar buttons does not trigger any event. The question now is why don't the toolbar buttons or legend respond to any mouse clicks?\n>\n\nVery good question <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> We are asking the same, why ? We have turned VIRTUAL LButtonDown(), LButtonUp() methods, but the activex does not process the clicks. We keep searching...",
"time": "16:29",
"topic": "ActiveX & Mappoint",
"username": "Antonio Linares"
}
] |
ActiveX & Mappoint
|
[
{
"date": "2007-04-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Randal,\n\nDid you get to work with MapPoint ?\nCan you shared with us some code samples?\n\nRegards\n\n\nGeorge",
"time": "00:25",
"topic": "ActiveX & Mappoint",
"username": "George"
}
] |
ActiveX & Mappoint
|
[
{
"date": "2007-04-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "George,\n\nNo, I never got it to work. I had upgraded to FWH 2.7 Apr 2006 version to get the new ActiveX features but still could not get it to work. I don't know if a more recent version of FWH would make any difference. \n\nI'm still very interested in making this work. If you'd like to compare notes please feel free to email me directly at <!-- e --><a href=\"mailto:scebee@yahoo.com\">scebee@yahoo.com</a><!-- e -->. I'd be happy to share the code I have. I'd also be willing to pay someone to get this working.\n\nThanks,\nRandal Ferguson",
"time": "15:52",
"topic": "ActiveX & Mappoint",
"username": "Randal"
}
] |
ActiveX & Mappoint
|
[
{
"date": "2009-07-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "All,\n\nI am using activex to show a window in explorer. I create the object with:\n\n oActiveX = TActiveX():New( oWndHP, \"Shell.Explorer.2\" )\n\nWhen the user closes the window I call a function in the VALID clause, passing the activex object to get the document contents. In this function I use:\n\noDoc := TOleAuto():New( oActiveX:GetProp(\"document\") )\n\nThis has worked fine on several of our users computers but today I have a user gets the following error on the above line.\n\nError description: Error Shell.Explorer.2/0 S_OK: GETPROP\n Args:\n [ 1] = C document\n\nThis user has XP installed with 6.0 of IE (same as me). He did have Firefox set as his default browser but I had him change that. Anyone have any idea why this isn't working?\n\nWhat is the difference between shell.explorer and shell.explorer.2?\n\nThanks,\nRandal",
"time": "17:39",
"topic": "ActiveX & Shell.Explorer",
"username": "Randal"
}
] |
ActiveX & Shell.Explorer
|
[
{
"date": "2009-07-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Randal,\n\nWith the modified Class TActiveX that we published in these forums and that has been included in FWH 9.06 you can simply do:\n\noActiveX = TActiveX():New( oWndHP, \"Shell.Explorer.2\" )\n\noDoc := oActiveX:document",
"time": "21:49",
"topic": "ActiveX & Shell.Explorer",
"username": "Antonio Linares"
}
] |
ActiveX & Shell.Explorer
|
[
{
"date": "2006-04-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nI received your email with the updated libs. When I try to set the the event block I get an error on:\n\noMapPoint:bOnEvent = { | event, aParams | cEvents += EventInfo( event, aParams ) }\n\nThis line generates the error:\n\nError MapPoint.Control/16389 E_FAIL: _BONEVENT\n\nI also tried replacing the ActiveX lib with the one you posted here for someone else recently. When I use this lib I get an error \"yourapp.exe has encountered a problem and needs to close\".\n\nIf I comment out the bOnEvent code the control works ok, at least the map is opened in a window.\n\nUsing FWH March 2006 and xBuilder 2006 w/xcc.\n\nThe other problem I reported seemed to be a problem with the MapPoint 2004 install, I was using the MSDN version. I uninstalled that version and installed MapPoint 2002 and this seems to be working.\n\nIs there anyone else using MapPoint with ActiveX?\n\nIf your interested I could email you the mappoint setup and run discs.\n\nThanks,\nRandal Ferguson",
"time": "16:19",
"topic": "ActiveX & xHarbour",
"username": "Randal"
}
] |
ActiveX & xHarbour
|
[
{
"date": "2006-04-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Randal,\n\n> I also tried replacing the ActiveX lib with the one you posted here\n\nYou must use the library I posted here or then you are using xHB ActiveX instead of FWH one.\n\nPlease show your code to see why you may get an error.",
"time": "16:40",
"topic": "ActiveX & xHarbour",
"username": "Antonio Linares"
}
] |
ActiveX & xHarbour
|
[
{
"date": "2006-04-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nThe following is a sample of my code.\n\n DEFINE WINDOW oWndMap OF oWnd ;\n FROM 0,0 TO 0,0 ;\n MDICHILD ;\n MENU MapMenu(oWndMap) ;\n TITLE \"Map Point\"\n\n oMapPoint = TActiveX():New( oWndMap, \"MapPoint.Control\" ) \n\n oWndMap:oClient = oMapPoint // To fill the entire window surface\n\n oMapPoint:Do(\"NewMap\", 1)\n\n // Generates an error on this line. If I comment out the window opens\n oMapPoint:bOnEvent = { | event, aParams | cEvents += EventInfo( event, aParams ) }\n \n ACTIVATE WINDOW oWndMap ;\n ON INIT ( oWndMap:Move(0,0,640,390,.t.) ) ;\n ON PAINT oWndMap:SetFocus() ;\n VALID ( oMapPoint:Do(\"CloseMap\"), .T. ) \n\nRETURN NIL\n\nfunction EventInfo( event, aParams )\n\n local cMsg := \"Event: \" + cValToChar( event ) + CRLF\n local n\n \n cMsg += \"Params: \" \n \n for n = 1 to Len( aParams )\n cMsg += cValToChar( aParams[ n ] ) + CRLF\n next\n\nreturn cMsg + CRLF\n\n\nThis is a list of the libs in the \\fwh\\lib folder. Using the Apr 2006 Build. I extracted ole.obj from the fivehc.lib. I also updated the Fivehcm and fivemx libs you sent me.\n\n04/04/06 10:50 AM 1,400,320 Fiveh.lib\n04/03/06 10:41 AM 346,112 fivehc.BAK\n04/26/06 10:58 AM 339,968 fivehc.lib\n04/17/06 11:18 AM 630,194 Fivehcm.lib\n04/04/06 10:50 AM 2,353,354 Fivehm.lib\n04/20/06 09:00 PM 2,382,536 Fivehmx.lib\n04/04/06 10:50 AM 1,420,288 Fivehx.lib\n04/21/06 01:33 PM 863,030 libs.zip\n\nI'm also linking the ActiveX.lib you posted here recently.\n\n04/21/06 08:23 AM 4,172 ActiveX.lib\n\nUsing xHarbour/xBuilder March 2006 w/xcc.\n\nThanks,\nRandal Ferguson",
"time": "17:11",
"topic": "ActiveX & xHarbour",
"username": "Randal"
}
] |
ActiveX & xHarbour
|
[
{
"date": "2006-04-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Randal,\n\n> I extracted ole.obj from the fivehc.lib.\n\nDon't extract it. Please try with it.",
"time": "17:52",
"topic": "ActiveX & xHarbour",
"username": "Antonio Linares"
}
] |
ActiveX & xHarbour
|
[
{
"date": "2006-04-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nWhen using the original fivehc.lib dated 4/3/06 I get the message \"yourapp has encountered a problem and needs to close\" at this line:\n\noMapPoint = TActiveX():New( oWndMap, \"MapPoint.Control\" ) \n\nThanks,\nRandal Ferguson",
"time": "20:23",
"topic": "ActiveX & xHarbour",
"username": "Randal"
}
] |
ActiveX & xHarbour
|
[
{
"date": "2006-04-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Randal,\n\nCould you please try samples\\webexp.prg and check if it works ok for you ? thanks.",
"time": "21:23",
"topic": "ActiveX & xHarbour",
"username": "Antonio Linares"
}
] |
ActiveX & xHarbour
|
[
{
"date": "2006-04-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nIf I build webexp sample using xharbour and bcc it works fine. If I build using xBuilder and xcc, linking ActiveX.lib from xHabour I get the same error message.\n\nError description: Error Shell.Explorer/16389 E_FAIL: _BONEVENT\n\nIf I build with xBuilder and do not link xHarbour ActiveX.lib I get the error\n\nError description: Error BASE/1004 Class: 'NUMERIC' has no exported method: HWND\n\nThanks,\nRandal Ferguson",
"time": "14:20",
"topic": "ActiveX & xHarbour",
"username": "Randal"
}
] |
ActiveX & xHarbour
|
[
{
"date": "2006-04-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Randal,\n\n> Error description: Error BASE/1004 Class: 'NUMERIC' has no exported method: HWND \n\nWhat source code generates that error ?",
"time": "14:56",
"topic": "ActiveX & xHarbour",
"username": "Antonio Linares"
}
] |
ActiveX & xHarbour
|
[
{
"date": "2006-04-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nThe line that generates that error is:\n\noActiveX = TActiveX():New( oWnd, \"Shell.Explorer\" )\n\nHere is the error log:\n\nApplication\n===========\n Path and name: D:\\xHB\\bin\\webexp.exe (32 bits)\n Size: 1,504,768 bytes\n Time from start: 0 hours 0 mins 1 secs \n Error occurred at: 04/27/06, 09:03:38\n Error description: Error BASE/1004 Class: 'NUMERIC' has no exported method: HWND\n Args:\n\nStack Calls\n===========\n Called from: => HWND(0)\n Called from: TActiveX.prg => TACTIVEX:NEW(0)\n Called from: TActiveX.prg => CREATEACTIVEX(184)\n Called from: TActiveX.prg => TACTIVEX:NEW(0)\n Called from: webexp.prg => MAIN(11)\n\nSystem\n======\n CPU type: Intel(R) Pentium(R) 4 CPU 3.20GHz 3200 Mhz\n Hardware memory: 1023 megs\n\n Free System resources: 90 %\n GDI resources: 90 %\n User resources: 90 %\n\n Compiler version: xHarbour build 0.99.61 Intl. (SimpLex)\n Windows version: 5.1, Build 2600 Service Pack 2\n\n Windows total applications running: 35\n 1 \n 2 SysFader\n 3 Start Menu\n 4 DirectDBNotifyWndProc\n 5 Outlook Express FolderSync Window Class\n 6 Outlook Express NewsStore\n 7 DirectDBListenWndProc\n 8 Norton AntiVirus\n 9 FiveWin ActiveX Support\n 10 xBuild - D:\\xHB\\bin\\webexp.exe.xbp\n 11 Multi-Edit - [D:\\FWH\\SAMPLES\\webexp.prg]\n 12 MCI command handling window\n 13 DDE Server Window\n 14 ThorConnWndClass\n 15 Identity Mgr Notify\n 16 WAB Notification Window\n 17 WOWExec\n 18 Microsoft ActiveSync\n 19 DefAlert_Window_29DABAC8-AB93-43f3-926D-1DDE0C909FDF\n 20 WCES Manager Thunk Window\n 21 DirectCD\n 22 DccMan\n 23 SigmatelSysTray\n 24 Connections Tray\n 25 ccApp\n 26 Power Meter\n 27 MS_WebcheckMonitor\n 28 UnErase Process\n 29 ATI video bios poller\n 30 ACT!\n 31 VCERuntime\n 32 <!-- w --><a class=\"postlink\" href=\"http://www.FiveTechSoft.com\">www.FiveTechSoft.com</a><!-- w --> :: View topic - ActiveX & xHarbour - Microsoft Internet Explorer\n 33 Command Prompt\n 34 xHarbour - Outlook Express\n 35 Program Manager\n\nVariables in use\n================\n Procedure Type Value\n ==========================\n HWND\n Local 1: U \n Local 2: U \n Local 3: N 0\n TACTIVEX:NEW\n Param 1: N 1312076\n Param 2: C \"Shell.Explorer\"\n Param 3: O Class: TACTIVEX\n Param 4: U \n Local 1: U \n Local 2: U \n CREATEACTIVEX\n Param 1: N 1312076\n Param 2: C \"Shell.Explorer\"\n Param 3: O Class: TACTIVEX\n Local 1: U \n Local 2: U \n Local 3: C \"Shell.Explorer\"\n Local 4: N 0\n Local 5: O Class: ERROR\n Local 6: O Class: SHELL.EXPLORER.1\n Local 7: N 1330792\n Local 8: N 1406416\n Local 9: O Class: TYPELIB\n Local 10: C \"{D30C1661-CDAF-11D0-8A3E-00C04FC9E26E}\"\n TACTIVEX:NEW\n Param 1: O Class: TWINDOW\n Param 2: C \"Shell.Explorer\"\n Local 1: O Class: TACTIVEX\n Local 2: U \n Local 3: O Class: TACTIVEX\n MAIN\n Local 1: O Class: TWINDOW\n Local 2: U \n Local 3: C \"\"\n\nLinked RDDs\n===========\n DBF\n DBFFPT\n DBFNTX\n\nDataBases in use\n================\n\nClasses in use:\n===============\n 1 HBCLASS\n 2 HBOBJECT\n 3 TWINDOW\n 4 TBRUSH\n 5 TFONT\n 6 TCONTROL\n 7 TACTIVEX\n 8 TYPELIB\n 9 ENUMTYPEINFO\n 10 CONSTANTTYPEINFO\n 11 OBJECTTYPEINFO\n 12 INTERFACETYPEINFO\n 13 METHODTYPEINFO\n 14 ARGUMENTTYPEINFO\n 15 PROPERTYTYPEINFO\n 16 TOLEAUTO\n 17 OLEWRAPPER\n 18 OLEXWRAPPER\n 19 SHELL.EXPLORER.1\n 20 {EAB22AC3-30C1-11CF-A7EB-0000C05BAE0B}\n 21 {D30C1661-CDAF-11D0-8A3E-00C04FC9E26E}\n 22 SHELL.EXPLORER.2\n 23 {8856F961-340A-11D0-A96B-00C04FD705A2}\n 24 {D30C1661-CDAF-11D0-8A3E-00C04FC9E26E}.IWEBBROWSER2\n 25 {D30C1661-CDAF-11D0-8A3E-00C04FC9E26E}.IWEBBROWSER\n 26 {EAB22AC1-30C1-11CF-A7EB-0000C05BAE0B}\n 27 ERROR\n 28 TREG32\n\nMemory Analysis\n===============\n 126 Static variables\n\n Dynamic memory consume:\n Actual Value: 0 bytes\n Highest Value: 0 bytes\n\u001a",
"time": "15:06",
"topic": "ActiveX & xHarbour",
"username": "Randal"
}
] |
ActiveX & xHarbour
|
[
{
"date": "2006-04-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Randal,\n\n> Called from: TActiveX.prg => TACTIVEX:NEW(0)\n\nYou are using xHB TActiveX.prg. You need to use the ActiveX.lib we provided here that is an empty lib.\n\nFWH's one is named ActiveX.prg.",
"time": "17:36",
"topic": "ActiveX & xHarbour",
"username": "Antonio Linares"
}
] |
ActiveX & xHarbour
|
[
{
"date": "2006-04-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nIf I link the small activex.lib you posted here and not the activex.lib that comes with xHarbour I get the msg \"yourapp.exe has encountered a problem and needs to close\" on this line:\n\n oMapPoint = TActiveX():New( oWndMap, \"MapPoint.Control\" ) \n\nThanks,\nRandal Ferguson",
"time": "14:48",
"topic": "ActiveX & xHarbour",
"username": "Randal"
}
] |
ActiveX & xHarbour
|
[
{
"date": "2006-04-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Randal,\n\nWhere we may download a demo version of such mappoint activex ?",
"time": "16:48",
"topic": "ActiveX & xHarbour",
"username": "Antonio Linares"
}
] |
ActiveX & xHarbour
|
[
{
"date": "2006-05-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nI don't know of anywhere you can download a trial version. Is there somewhere I can send you my version for you to review? I can zip up the setup and run disks, they are about 600mb & 300mb (zipped).\n\nThanks,\nRandal Ferguson",
"time": "16:48",
"topic": "ActiveX & xHarbour",
"username": "Randal"
}
] |
ActiveX & xHarbour
|
[
{
"date": "2006-05-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Yes, you may email them to me as ZIP files. Thanks,",
"time": "16:51",
"topic": "ActiveX & xHarbour",
"username": "Antonio Linares"
}
] |
ActiveX & xHarbour
|
[
{
"date": "2006-01-25",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola Antonio.\n\nHabrá mejoras en los componentes ActiveX soportados\npor fivewin???\n\nSe podrán usar en diálogos desde recursos?\nque sucederá con los eventos ?\n\nGracias por la atención.",
"time": "18:50",
"topic": "ActiveX -- Para Antonio",
"username": "VeRCE"
}
] |
ActiveX -- Para Antonio
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.