topic
stringlengths
1
63
text
stringlengths
1
577k
Checking non released GDI objects
Hello Antonio, thank you. Now it is working. Would you please be so kind to tell me what the values are for. Thanks in advance Otto [img:3g1wi104]http://www.atzwanger-software.com/fw/rescheck.jpg[/img:3g1wi104]
Checking non released GDI objects
Otto, This is the way to use it: At the beginning of your app you call SetResDebug() Then you call to CheckRes() before going into an app option (dialog, report, etc) then you exit it, and go into it again calling CheckRes() first. That way you will see if your GDI cosumed objets grow, or remains the same ones.
Checking non released GDI objects
Antonio, >Then you call to CheckRes() before going into an app option (dialog, report, etc) then you exit it, and go into it again calling CheckRes() first. I'm with Otto, I'm not sure what I am seeing. Is the second column the windows handle? What is the last column? Do we need to just count the listed items (unreleased items) before entering a routine and then again after? If so, then perhaps it would help if we had another function that would just return the count. This way we could record it before and then after the routine we could check it against the before count. Manually counting the items in the displayed list each time will be tedious and prone to error. James
Checking non released GDI objects
Hello James. > Is the second column the windows handle? yes, is control handle > What is the last column? is the numer line from call
Checking non released GDI objects
Thanks, Daniel, now if we can just the function I described, we will be able to troubleshoot these unreleased resources easily. Actually, after I thought about it more, it would be valuable to have access to the array containg this data. Then we could store the array before entering a routine, then after the routine, compare the new array and isolate just those new unreleased resources. This is what we would have to do manually anyway. In the best case, we can try to track down why those resources are not being released. In the case where we can't find the problem, we could automatically release the new unreleased resources when exiting the routine. This could be made generic so we could use it with any troublesome routine. James
Checking non released GDI objects
> it would be valuable to have access to the array containg this data. > That is the static array, aResources. We can use it in our program the way you wanted to. We may add a function CheckResArray() to return the static array, Also the message displayed by checkres() function can have the number of resources in the first line.
Checking non released GDI objects
Is MemProof a standalone program. How can it be used with FIVEWIN? Thanks in advance Otto
Checking on internet - solved
Hello, How can I check if a SMTP-server is existing? I'd like to test it with for instance [b:30jocsms]uit.telenet.be[/b:30jocsms]. Thanks a lot for any help.
Checking on internet - solved
This is a sample: [code=fw:1o1ry7lr]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; ? HB_PING<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"uit.telenet.be"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <hbapi.h> <br /><span style="color: #00D7D7;">#include</span> <winsock2.h><br /><span style="color: #00D7D7;">#include</span> <iphlpapi.h><br /><span style="color: #00D7D7;">#include</span> <icmpapi.h><br /><br />int hb_Ping<span style="color: #000000;">&#40;</span> const char * cp <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; HANDLE hIcmpFile;<br />&nbsp; &nbsp; unsigned long ipaddr;<br />&nbsp; &nbsp; DWORD dwRetVal;<br />&nbsp; &nbsp; char SendData<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span> = <span style="color: #ff0000;">"Data Buffer"</span>;<br />&nbsp; &nbsp; LPVOID ReplyBuffer;<br />&nbsp; &nbsp; DWORD ReplySize;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> isalpha<span style="color: #000000;">&#40;</span> cp<span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//host address is a name</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;WSADATA wsaData;<br />&nbsp; &nbsp; &nbsp; &nbsp;int &nbsp; &nbsp; iResult;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;iResult = WSAStartup<span style="color: #000000;">&#40;</span> MAKEWORD<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span>, <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>, &wsaData <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> iResult == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; struct hostent *remoteHost = gethostbyname<span style="color: #000000;">&#40;</span> cp <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> remoteHost != <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ipaddr = *<span style="color: #000000;">&#40;</span>unsigned long *<span style="color: #000000;">&#41;</span> remoteHost->h_addr_list<span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WSACleanup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp;ipaddr = inet_addr<span style="color: #000000;">&#40;</span> cp <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>ipaddr == INADDR_NONE<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; hIcmpFile = IcmpCreateFile<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>hIcmpFile == INVALID_HANDLE_VALUE<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">2</span>;<br /><br />&nbsp; &nbsp; ReplySize = sizeof<span style="color: #000000;">&#40;</span>ICMP_ECHO_REPLY<span style="color: #000000;">&#41;</span> + sizeof<span style="color: #000000;">&#40;</span>SendData<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; ReplyBuffer = <span style="color: #000000;">&#40;</span>VOID*<span style="color: #000000;">&#41;</span> malloc<span style="color: #000000;">&#40;</span>ReplySize<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>ReplyBuffer == <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; IcmpCloseHandle<span style="color: #000000;">&#40;</span>hIcmpFile<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">3</span>;<br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <br />&nbsp; &nbsp; dwRetVal = IcmpSendEcho<span style="color: #000000;">&#40;</span>hIcmpFile, ipaddr, SendData, sizeof<span style="color: #000000;">&#40;</span>SendData<span style="color: #000000;">&#41;</span>, <br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NULL</span>, ReplyBuffer, ReplySize, <span style="color: #000000;">1000</span><span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; free<span style="color: #000000;">&#40;</span>ReplyBuffer<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; IcmpCloseHandle<span style="color: #000000;">&#40;</span>hIcmpFile<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>dwRetVal == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">4</span>;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> HB_PING <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span> hb_Ping<span style="color: #000000;">&#40;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:1o1ry7lr] EMG
Checking on internet - solved
Enrico, Thanks a lot for your help. It works just fine.
Checking on internet - solved
Please note: it's not my code. I don't remember where I got it from, sorry. EMG
Checking on internet - solved
Enrico, Do you have any idea why this code HB_PING is working fine with Harbour, but not with xHarbour Builder? In that case, I got an error "couldn't build" without mentioning anything else. Thanks.
Checking on internet - solved
It works fine here using official xHarbour. For xHarbour Builder you have to ask for support to xHarbour.com guys. EMG
Checking on internet - solved
Enrico, Thanks. I will do that.
Checking on internet - solved
Maybe: [code=fw:1c372g2q]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cTestPing<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Direct of Machine(computer).</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// cTestPing := ( "http://speedtest.copel.net/" ) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Correct</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// ShellExecute(GetActiveWindow(),"open",'"'+cTestPing+'"') // correct</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// cTestPing := ( "uit.telenet.be" ) &nbsp;// ERROR return 0</span><br />&nbsp; &nbsp;cTestPing := <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://duits.telenet.be/"</span> <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// return 4, correct?</span><br /><br />&nbsp; &nbsp;? HB_PING<span style="color: #000000;">&#40;</span> cTestPing <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <hbapi.h> <br /><span style="color: #00D7D7;">#include</span> <winsock2.h><br /><span style="color: #00D7D7;">#include</span> <iphlpapi.h><br /><span style="color: #00D7D7;">#include</span> <icmpapi.h><br /><br />int hb_Ping<span style="color: #000000;">&#40;</span> const char * cp <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; HANDLE hIcmpFile;<br />&nbsp; &nbsp; unsigned long ipaddr;<br />&nbsp; &nbsp; DWORD dwRetVal;<br />&nbsp; &nbsp; char SendData<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span> = <span style="color: #ff0000;">"Data Buffer"</span>;<br />&nbsp; &nbsp; LPVOID ReplyBuffer;<br />&nbsp; &nbsp; DWORD ReplySize;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> isalpha<span style="color: #000000;">&#40;</span> cp<span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//host address is a name</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;WSADATA wsaData;<br />&nbsp; &nbsp; &nbsp; &nbsp;int &nbsp; &nbsp; iResult;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;iResult = WSAStartup<span style="color: #000000;">&#40;</span> MAKEWORD<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span>, <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>, &wsaData <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> iResult == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; struct hostent *remoteHost = gethostbyname<span style="color: #000000;">&#40;</span> cp <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> remoteHost != <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ipaddr = *<span style="color: #000000;">&#40;</span>unsigned long *<span style="color: #000000;">&#41;</span> remoteHost->h_addr_list<span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WSACleanup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp;ipaddr = inet_addr<span style="color: #000000;">&#40;</span> cp <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>ipaddr == INADDR_NONE<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; hIcmpFile = IcmpCreateFile<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>hIcmpFile == INVALID_HANDLE_VALUE<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">2</span>;<br /><br />&nbsp; &nbsp; ReplySize = sizeof<span style="color: #000000;">&#40;</span>ICMP_ECHO_REPLY<span style="color: #000000;">&#41;</span> + sizeof<span style="color: #000000;">&#40;</span>SendData<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; ReplyBuffer = <span style="color: #000000;">&#40;</span>VOID*<span style="color: #000000;">&#41;</span> malloc<span style="color: #000000;">&#40;</span>ReplySize<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>ReplyBuffer == <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; IcmpCloseHandle<span style="color: #000000;">&#40;</span>hIcmpFile<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">3</span>;<br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <br />&nbsp; &nbsp; dwRetVal = IcmpSendEcho<span style="color: #000000;">&#40;</span>hIcmpFile, ipaddr, SendData, sizeof<span style="color: #000000;">&#40;</span>SendData<span style="color: #000000;">&#41;</span>, <br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NULL</span>, ReplyBuffer, ReplySize, <span style="color: #000000;">1000</span><span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; free<span style="color: #000000;">&#40;</span>ReplyBuffer<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; IcmpCloseHandle<span style="color: #000000;">&#40;</span>hIcmpFile<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>dwRetVal == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">4</span>;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> HB_PING <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span> hb_Ping<span style="color: #000000;">&#40;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br />&nbsp;</div>[/code:1c372g2q]
Checking to see if Order Name Exist or Not on a CDX Index
I am Looking for a way to load the Order bag Names and the key, and the for from a CDX Index into a Arrary for Checking. I wish to see if the Order bag Name is in the Index or not. I know how to create a new Order bag Name, and Delete the Name. But can you load the Information from the CDX Index for checking, and displaying. Thank you Jim <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Checking to see if Order Name Exist or Not on a CDX Index
Jim, This code from FWH/ErrSysW.prg may help you: [code:2d8z484b] for j = 1 to 15 if ! Empty&#40; &#40; Alias&#40; n &#41; &#41;->&#40; IndexKey&#40; j &#41; &#41; &#41; cErrorLog += Space&#40; 8 &#41; + ; If&#40; &#40; Alias&#40; n &#41; &#41;->&#40; IndexOrd&#40;&#41; &#41; == j, "=> ", " " &#41; + ; PadR&#40; &#40; Alias&#40; n &#41; &#41;->&#40; IndexKey&#40; j &#41; &#41;, 35 &#41; + ; &#40; Alias&#40; n &#41; &#41;->&#40; OrdName&#40; j &#41; &#41; + ; CRLF endif next [/code:2d8z484b]
Checking up the system memory
Hi guys, Today i was building a new routine in my system and unfortunately I took a look at the system memory, wow, what i could is even after finished that routine my app was using the same memory as before(running the routine). So I closed my app and opened it again, the memory at this time was something around 6.334 kb. So i started surfing around my system(just opening somethings and closing) and checking the memory at the same time, the memory was just incrising never getting low again. I'm confused now. Does fivewin or xharbour clean memory after finished a routine? Or just clean up when the app is closed? Regards, Diego
Checking up the system memory
Hi Diego, If you are using Images, Brushes, Fonts, Timers in your application, you have to end their handles immediately after closing their parent Window/Dialog. DEFINE BRUSH oBrush RESOURCE "myresource" DEFINE FONT oFont NAME "Ms Sans Serif" SIZE 0, -9 ... .. oFont:End() or RELEASE oFont oBrush:End() or RELEASE oBrush Otherwise they keep consuming the GDI Resource memory and maintains memory leakage. And also your System memory can not be regained even after closing your application Hope you understood. Regards, - Ramesh Babu P
Chi mi può aiutare?
Ciao a tutti. Sto creando un programma con Fivewin, in una prima pagina ho una trentina di GET, passando in una seconda pagina ho altre 5 GET. Con il 98 tutto ok, quando uso XP si pianta alla seconda pagina, se disattivo anche un solo GET funziona. Sono un pò alle prime armi con questo tipo di programmazzione, non so se sia un problema di File aperti, visto che XP non usa più autoexec e config, o qualcos'altro. Qualcuno può aiutarmi? Grazie.
Chi mi può aiutare?
C'è bisogno di ulteriori indizi. Sarebbe molto più facile se fornissi un programma [b:162pmy8c]minimale[/b:162pmy8c] ma completo di tutto il necessario per compilarlo ed eseguirlo e che mostri chiaramente il problema. EMG
Child OF oWnd
hi, how can i find out which Control are Child OF oWnd <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Child OF oWnd
Dear Jimmy, oWnd:aControls
Child OF oWnd
hi Antonio, [quote="Antonio Linares":1he8k718] oWnd:aControls[/quote:1he8k718] ah,thx
Child OF oWnd
hi Antonio, when use FWLOG i got [quote:2qdq8gkv] oMain:aControls = {TSAY,TCOMBOBOX,TFOLDER,TCOMBOBOX,TFOLDER,TSPLITTER, ...} [/quote:2qdq8gkv] Question : how to "identify" Control "Type" <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> are Array Element a Object <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> [code=fw:2qdq8gkv]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #00C800;">FOR</span> ii := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">&#40;</span>oMain:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#41;</span><br />      Object := oMain:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span>ii<span style="color: #000000;">&#93;</span><br />      <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />         <span style="color: #00C800;">CASE</span> Object:<span style="color: #000000;">isDerivedFrom</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"TSAY"</span><span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Xbase++ Syntax</span><br />            Object:<span style="color: #000000;">SetPos</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />            Object:<span style="color: #000000;">SetSize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>      </div>[/code:2qdq8gkv] --- if i know "Type" of Object and Element "is" a Object : can i write this Way <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> [code=fw:2qdq8gkv]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #B900B9;">// TSAY</span><br />   oMain:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SETTEXT</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"hello world"</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">// TCOMBOBOX</span><br />   oMain:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Select</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// 3rd Item</span></div>[/code:2qdq8gkv]
Child OF oWnd
Yes, that's right
Child OF oWnd
Dear Jimmy, Harbour supports isDerivedFrom also: [code=fw:1cwyjw1y]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oControl:<span style="color: #000000;">isDerivedFrom</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TWINDOW"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span></div>[/code:1cwyjw1y]
Child OF oWnd
hi Antonio, [quote="Antonio Linares":9hdbab4c]Harbour supports isDerivedFrom also: [code=fw:9hdbab4c]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oControl:<span style="color: #000000;">isDerivedFrom</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TWINDOW"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span></div>[/code:9hdbab4c][/quote:9hdbab4c] that help me very much <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> --- when using FWLOG i "just" got 1-DIM Array which Controls [quote:9hdbab4c]oMain:aControls = {TSAY,TCOMBOBOX,TFOLDER,TCOMBOBOX,TFOLDER,TSPLITTER,TBUTTON, ... }[/quote:9hdbab4c] but when look at each Control there are "more" (Array) [code=fw:9hdbab4c]<div class="fw" id="{CB}" style="font-family: monospace;">   x :=  hb_valToExp<span style="color: #000000;">&#40;</span>oMain:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span>ii<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span></div>[/code:9hdbab4c] [quote:9hdbab4c]__itemSetObj( __itemSetRef( {{HWND, 394868}, {NOLDPROC, 4294903408}, {CCAPTION, }, {CVARNAME, oSayActive}, {NID, 102}, {TWINDOW:NTOP, 864}, {TWINDOW:NLEFT, 10}, {NBOTTOM, 893}, {NRIGHT, 649.00}, {NSTYLE, 1342177280}, {NCLRPANE, 16777215}, {NCLRTEXT, 0}, {ACONTROLS, {}}, {OBRUSH, {{HBRUSH, 9437200}, {HBITMAP, 0}, {HBMPORGL, 0}, {NCOUNT, 6}, {NRGBCOLOR, 16777215}, {LSYSTEM, .T.}, {USOURCE, CLR_WHITE}}}, {OFONT, {{CFACENAME, TAHOMA}, {HFONT, 1242174205}, {HFONTOLD, 0}, {LBOLD, .F.}, {LITALIC, .F.}, {LUNDERLINE, .F.}, {LSTRIKEOUT, .F.}, {NINPHEIGHT, -20}, {NINPWIDTH, 0}, {NESCAPEMENT, 0}, {NORIENTATION, 0}, {NWEIGHT, 0}, {NCHARSET, 0}, {NOUTPRECISION, 0}, {NCLIPPRECISION, 0}, {NQUALITY, 0}, {NPITCHFAMILY, 0}, {NCOUNT, 27}, {LDESTROY, .T.}, {LNEW, .F.}}} , ...[/quote:9hdbab4c] the 1st Sub-Array seems to be Control itself and have all Information of it include "Name" (CVARNAME) but also "all other" Control (not show in Sample) include "Main" are in "Log" of "x" <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> Question : are these "Original" Value in Array or will they change <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Child OF oWnd
Dear Jimmy, Keep in mind that each control keeps a DATA oWnd that holds its parent object
Child dialog defined in .RC then redefine as Popup - SOLVED
Hi All, I have a child dialog defined in .RC as WS_CHILD.. it has 2 purpose, one for data entry as child and should be popup when viewing.. how to do it WS_POPUP when I redefine it?.... without using another window as parent.. Possible?
Child dialog defined in .RC then redefine as Popup - SOLVED
Frances, Try changing its style from the ON INIT clause usign SetWindowLong( hWnd, GWL_STYLE, ... )
Child dialog defined in .RC then redefine as Popup - SOLVED
Antonio, It didn't worked. <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
Child dialog defined in .RC then redefine as Popup - SOLVED
Frances, Could you please show me your code for it ? thanks
Child dialog defined in .RC then redefine as Popup - SOLVED
Antonio, I will finish a testbed program where I can collate and test my issues in FWH and post it here. the dialog in .rc is like this [code=fw:3szsaqqo]<div class="fw" id="{CB}" style="font-family: monospace;"><br />MY_DIALOG DIALOGEX <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">500</span>,<span style="color: #000000;">500</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">9</span>,<span style="color: #ff0000;">"Verdana"</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><br /><span style="color: #0000ff;">STYLE</span> WS_CHILD<br />BEGIN<br />&nbsp; &nbsp; <span style="color: #B900B9;">//....</span><br />END<br />&nbsp;</div>[/code:3szsaqqo] I use this MY_DIALOG to other container like FOLDEREX.. but I'd like to just pop it as dialog (without creating a Window container).
Child dialog defined in .RC then redefine as Popup - SOLVED
Frances, Are you sure that you properly tested SetWindowLong( hWnd, GWL_STYLE, ... ) from the ON INIT clause ?
Child dialog defined in .RC then redefine as Popup - SOLVED
[quote="Antonio Linares":2q152kor]Frances, Are you sure that you properly tested SetWindowLong( hWnd, GWL_STYLE, ... ) from the ON INIT clause ?[/quote:2q152kor] Antonio, Yes. I am very sure. i'm posting here my testbed.. this will grow as I encounter issues in FWH. Using xMate as project manager. [url:2q152kor]https&#58;//drive&#46;google&#46;com/folderview?id=0B3UHMYq8I6tHUTJyWnlTN3lQcEU&usp=drive_web[/url:2q152kor] Please help. Counting on you. If you have gmail account I can add you to edit if you like. Thanks.
Child dialog defined in .RC then redefine as Popup - SOLVED
Frances, Here this works fine <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [code=fw:26h1epp1]<div class="fw" id="{CB}" style="font-family: monospace;">PROCEDURE uDialog01b<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #00C800;">LOCAL</span> oDlg1, oDlg2<br />&nbsp;<span style="color: #00C800;">LOCAL</span> oGet, uVar := Space<span style="color: #000000;">&#40;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg1 <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">'MY_DIALOG'</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> GROUP <span style="color: #0000ff;">ID</span> <span style="color: #000000;">1001</span> <span style="color: #0000ff;">OF</span> oDlg1 TRANSPARENT<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">1002</span> <span style="color: #0000ff;">OF</span> oDlg1 TRANSPARENT<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> uVar <span style="color: #0000ff;">ID</span> <span style="color: #000000;">1003</span> <span style="color: #0000ff;">OF</span> oDlg1<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg1 <span style="color: #0000ff;">NOWAIT</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oDlg1:<span style="color: #000000;">Hide</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg2<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg2 ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> oDlg2:<span style="color: #000000;">SetSize</span><span style="color: #000000;">&#40;</span> oDlg1:<span style="color: #000000;">nWidth</span>, oDlg1:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oDlg2:<span style="color: #0000ff;">Center</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uChangeParent<span style="color: #000000;">&#40;</span> oDlg1, oDlg2 <span style="color: #000000;">&#41;</span>, oDlg1:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">RETURN</span></div>[/code:26h1epp1]
Child dialog defined in .RC then redefine as Popup - SOLVED
Antonio, If that is the approach, the procedure uDialog01a() could be much better... ??
Child of Folder
How to determine, if a dialog is inside a folder(ex)?
Child of Folder
Günther, try with ? oDlg:oWnd:ClassName()
Child of Folder
Thanks, but i have only the result of getactivewindow(). In a dialog with folders normally this gives the handle from the selected one of the dialogs in the folder. But i will check if this handle is a handle from a dialog in a folder. Also a question for a function to get the oWnd- or oDlg-Object from a given (window)handle.
Chillout music (perfect for coding :-)
[url:2ybkoh8y]http&#58;//streamfinder&#46;com/internet-radio-search/genre/Chillout[/url:2ybkoh8y]
Chinese
Hi, I have to print somethink like this: English and Chinese text togheter [img:2jg78h1w]http&#58;//www&#46;marcoboschi&#46;it/public/china&#46;jpg[/img:2jg78h1w] How can I do that? I usually use a program written in CAVO2.5 and libreries ReportPro 2.10 But all my programs are written in fivewin/xHarbour. Any hints? Marco
Chinese
Marco, Please review FWH\samples\unicode.prg
Chinese
Antonio, I have ad old version and I obtain this [img:20ndmaix]http&#58;//www&#46;marcoboschi&#46;it/public/china2&#46;jpg[/img:20ndmaix]
Chinese
For me it worked with Menus, Says on Window and WBrowse.
Chinese
Your windows should install Chinese fonts .Print English letters and Chinese word can be mixed together . Shuming Wang ???????? Come from Guangzhou City,Guangdong Province
Chinese
S.W., this is a screenshot uf unicode.exe in my windows 7 pc. [img:27ubp75v]http&#58;//www&#46;marcoboschi&#46;it/public/china3&#46;jpg[/img:27ubp75v] I noticed that if unicode.exe lost focus and then takes it back Chinese characters are substituted with ???? What do you think by adding a button that prints... will work ? And what about to store the content of oGet into a dbf field? Many thanks Marco
Chinese
Oh!I use Chinese GBK ,or GB2312 Code,Chinese words same as other strings,PRG without any setting ,Windows control panel should choose Chinese language. In the past ,FWH not supported Unicode. I have not upgraded FWH into new version. Shuming Wang
Chinese
Marco, With FWH 15.05 build 4 looks like this on Windows 10: [img:34ox8yiq]https&#58;//bitbucket&#46;org/fivetech/screenshots/downloads/unicode&#46;JPG[/img:34ox8yiq]
Chinese
Antonio, there is a colleague who modify this program in such a way that it works in the Chinese language? I can not understand Whether it is possible Many Thanks Marco [code=fw:2nn8zryy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">LOCAL</span> oDlg<br /><span style="color: #00C800;">LOCAL</span> oSay  , cSay := <span style="color: #ff0000;">"Chinese Text "</span><br /><span style="color: #00C800;">LOCAL</span> oGet1 , cGet1 := SPACE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> oGet2 , cGet2 := SPACE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> oBut1 , oBut2<br /><br /><span style="color: #00C800;">IF</span> !FILE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TESTCHINA.DBF"</span> <span style="color: #000000;">&#41;</span><br />   DBCREATE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TESTCHINA"</span> , <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"CINESE1"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> , <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"CINESE2"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span><br /><br />USE testchina<br /><br />GO BOTTOM<br /><br />cGet1 := field->cinese1<br />cGet2 := field->cinese2<br /><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br />@ <span style="color: #000000;">1</span> ,  <span style="color: #000000;">1</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> cSay <span style="color: #0000ff;">OF</span> oDlg<br />@ <span style="color: #000000;">2</span> ,  <span style="color: #000000;">1</span> <span style="color: #0000ff;">GET</span> oGet1 <span style="color: #0000ff;">VAR</span> cGet1 <span style="color: #0000ff;">OF</span> oDlg<br />@ <span style="color: #000000;">3</span> ,  <span style="color: #000000;">1</span> <span style="color: #0000ff;">GET</span> oGet2 <span style="color: #0000ff;">VAR</span> cGet2 <span style="color: #0000ff;">OF</span> oDlg<br />@ <span style="color: #000000;">3</span> ,  <span style="color: #000000;">1</span> <span style="color: #0000ff;">BUTTON</span> oBut2 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"WRITE"</span> <span style="color: #0000ff;">ACTION</span> write_dbf<span style="color: #000000;">&#40;</span> cGet1 , cGet2 <span style="color: #000000;">&#41;</span><br />@ <span style="color: #000000;">3</span> , <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> oBut1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"PRINT"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Print get content"</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br />CLOSE DATABASE<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><span style="color: #00C800;">FUNCTION</span> WRITE_DBF<span style="color: #000000;">&#40;</span> cGet1 , cGet2 <span style="color: #000000;">&#41;</span><br /><br />APPEND BLANK<br />REPLACE field->cinese1  WITH cGet1<br />REPLACE field->cinese2  WITH cGet2<br /><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:2nn8zryy]
Chinese
Marco, There are several FWH users from China on these forums that surely will be able to help you. I am sorry I have no more expertise on this area
Chinese
Antonio, Thankyou Marco
Chinese
[quote="MarcoBoschi":2kh607z8]Hi, I have to print somethink like this: English and Chinese text togheter [img:2kh607z8]http&#58;//www&#46;marcoboschi&#46;it/public/china&#46;jpg[/img:2kh607z8] How can I do that? I usually use a program written in CAVO2.5 and libreries ReportPro 2.10 But all my programs are written in fivewin/xHarbour. Any hints? Marco[/quote:2kh607z8] FWH not support full Unicode function, not input Chinese word. so suggestion if you just display chinese and english install chinese font and set code for chinese font( from dbf and chinese inside ) if you input chinese word and english install chinese OS and modify TGet.prg( support chinese two bytes and control key functions )
Chinese
Richard, many thanks I've just wrote you by mail Marco
Chinese
[quote="MarcoBoschi":e4h9cnf0]Richard, many thanks I've just wrote you by mail Marco[/quote:e4h9cnf0] ok. I got it.
Chinese characters
Hello Everyone, I have a client in China that needs to be able to type and print English and Chinese characters within the same application; is that possible with FWH? I appreciate your time and consideration. Sincerely, Darrell Ortiz
Chinese characters
Hello cdmmaui, Yes, FWH can do it. Regards, Richard Fivetech.net Taiwan
Chinese characters
Hello If user want to input English and Chinese character, please fix TGet.prg and MGet.prg to support 2 bytes for Chinese. Of course, English character will be check itself. But you need to remove WinXP's Themes interface, because FWH's TGet and MGet not support it for Chinese character. Regards, Richard Fivetech.net Taiwan
Chinese characters
Hi Richard, Do you have a sample I can look at? Thank You,
Chinese characters
Hello you can look screen shot. [url:3phj6q6t]http&#58;//img463&#46;imageshack&#46;us/my&#46;php?image=chineseenglish9lu&#46;jpg[/url:3phj6q6t] Regards, Richard
Chinese characters
Thank you Richard
Chinese characters
No problems Shuming Wang Guangzhou, Guangdong province, China
Chinese characters
Hi Richard and John M S Chiang, I would appreciate if could send me a copy of you modified tget.prg and and any the files required to get chinese characters to display. I have tried modifying tget.prg to the John MS Chiang specs but unfortunately to no avail. All I get is a ?? when I paste a chinese character to a get object from Notepad (which displays fine with font: Arial MS Unicode. What am I missing. Thank you.
Chinese characters in FWH
Hi, I have seen several old posts about using chinese characters in FiveWin, is there already a (good) solution to this one? (for GETting, saving in a DB and printing?) I'm using FWH2.7. Regards, John.
Chinese characters in FWH
Hi, John I think yes, but some problem will be solve it. Ex. Unicode and WinXP themes.
Chinese characters in FWH
Hi Richard, you mean exclude WinXp manifest? What do you mean with ex unicode? Regards, John.
Chinese characters in FWH
[quote="John":lv37sk0b]Hi Richard, you mean exclude WinXp manifest? What do you mean with ex unicode? Regards, John.[/quote:lv37sk0b] >>you mean exclude WinXp manifest? Yes, right. >>What do you mean with ex unicode? some Chinese characters, we input it became "?"
Chinese characters in FWH
The cursor shows wrong position. it seems unicode like 3 char length, after input a Chinese word, the cursor jump 3 char , but show right 2 char position. Regards ! Shuming Wang
Chinese characters in FWH
Ni Hao <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> so is there a way to bypass that unicode effect? Regards, John.
Chinese characters in FWH
Hi, we wait Unicode solution from xHarbour or FWH. WinXP themes problem, Antonio make TEdit Class. But it's simple, we need enhance more functions same as TGet Class.
Chinese characters in FWH
Hi, any idea when xHarbour or FWH come with that solution? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Regards, John.
Chinese characters in FWH
Hi, I think modify/enhance unicode function's source code. Now, I think you can use FWH develop Chinese version App. No problem.
Chinese characters in FWH
Hi Richard, can you please tell me how i can do that? Develop a chinese version app? Do you have examples, libraries etc? removing the XP manifest actually makes it worse in my app: with XP manifest i am able to at least GET chinese characters in a MEMO field (lost when saving) and without the manifest only ??? appears. I also came across a very old message from FiveWin.com talking about a ChinGet.zip for FW1.9.2. But that one i cant find anymore. Thanks in advance, John.
Chinese characters in FWH
Here, <!-- w --><a class="postlink" href="http://www.xtech.com.cn/down/tget.prg">www.xtech.com.cn/down/tget.prg</a><!-- w --> Regards! Shuming Wang
Chinese characters in FWH
[quote="ShumingWang":3eb2gz4k]Here, <!-- m --><a class="postlink" href="http://www.xtech.com.cn/down/tget.prg">http://www.xtech.com.cn/down/tget.prg</a><!-- m --> Regards! Shuming Wang[/quote:3eb2gz4k] Hi Wnag, Any news TMySQL upgrade? I lose QQ, have you cell phone number that we can use wechat software.
Chinese characters in FWH
Hi Wang Shuming, thanks for the tGet example. I just add that one to my RMK script or do i have to do more? The next step would be saving the data, i dont have to change anything there? (still using DBF and FPT files). Retrieving data should also be fine? And how about printing? thanks in advance (sorry to bother everyone so much with it, but i really want my app to be able use chinese characters now! <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> Regards, John.
Chinese characters in FWH
To print Chiense words,To save data to DBF ,they are the same as English chars. But tget.prg do not support Unicode either. Shuming Wang
Chinese characters in FWH
what do you mean that this tGet doesnt support unicode? i thought this one would make it possible to input chinese characters? Regards, John.
Chinese characters in FWH
i added tget.prg to my RMK file, but it doesnt work. I think i did something wrong, can anyone give a sample how to do this (i.e. override the original tget)? thanks in advance! John.
Chinese characters in FWH
If you can input into office word /excel Chinese word ,Then you can input into FWH/Our modified version Tget Chinese word. Here you can download our ERP made with FWH1104+Harbou3.0+Tmysql(include MySQLserver 5.5) <!-- m --><a class="postlink" href="http://www.xtech.com.cn/download5/xerp63_setup.exe">http://www.xtech.com.cn/download5/xerp63_setup.exe</a><!-- m --> ,16M. Or you can past your prg codes or make a video file. Shuming Wang
Chinese characters in FWH
John, did you remember to put tget.obj in your link script too? Only rmk wouldn't be adequate
Chinese characters in FWH
my RMK also contains the link script, but maybe you can show me an example how that would look like? i dont consider myself to be a FWH guru! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Chinese characters in FWH
[quote="ShumingWang":2bqwjdc2]If you can input into office word /excel Chinese word ,Then you can input into FWH/Our modified version Tget Chinese word. Here you can download our ERP made with FWH1104+Harbou3.0+Tmysql(include MySQLserver 5.5) <!-- m --><a class="postlink" href="http://www.xtech.com.cn/download5/xerp63_setup.exe">http://www.xtech.com.cn/download5/xerp63_setup.exe</a><!-- m --> ,16M. Or you can past your prg codes or make a video file. Shuming Wang[/quote:2bqwjdc2] Ok, thanks! i have downloaded it and will test it tonight! i hope inside there there are some PRG and RMK/LINK scripts as well, to see how that all fits together! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Chinese characters in FWH
[quote="ShumingWang":2mbeh80l]If you can input into office word /excel Chinese word ,Then you can input into FWH/Our modified version Tget Chinese word. Here you can download our ERP made with FWH1104+Harbou3.0+Tmysql(include MySQLserver 5.5) <!-- m --><a class="postlink" href="http://www.xtech.com.cn/download5/xerp63_setup.exe">http://www.xtech.com.cn/download5/xerp63_setup.exe</a><!-- m --> ,16M. Or you can past your prg codes or make a video file. Shuming Wang[/quote:2mbeh80l] Hi Wang Shuming, i have installed the app and it works well. Now i am curious how your scripts looks like to produce this app, do you have som examples for me? Regards, John.
Chiusura di EXCEL dai task di WIndows
Salve, mi capita che dopo avere usato un programmino che opera su excel, nei task di windows trovo tante volte Excel aperto. COme si fa a chiudere excel da questi task ? A parte che pensavo utilizzando le istruzioni....: oExcel:=TOleauto():New("Excel.Application") .. .. .. oExcel:Qui() oExcel:End() mi si chiudesse anche Excel. Ci mica magari un comando del tipo: oExcel:Scarica_Excel_dal_Task_di_Windows_?() Grazie
Chiusura di EXCEL dai task di WIndows
E' sufficiente oExcel:Quit(). Togli oExcel:End(). EMG
Chiusura di EXCEL dai task di WIndows
ok grazie
Choise : Windows server standard 2022 versus essential 2022
I need to make a dessission about my server software. Windows Server 2022 Standard,16CORE,FI,No Med,No CAL, Multi Language + 1.233,26 € Windows Server 2022 Essentials,10CORE,FI,No Med, No CAL, Multi Language + 467 € And a 5 pack of CAL = + 230 euro. I will also forsee a VPN connection. I have no idea at all about serversoftware, but will contact a firm afther reading a reaction here The desktopPC to use is new and has good specs for this purpose. It seems that there are more options in server soft, but Dell has these 2 as option on there model. We are with 3 users working on 5 to 6 computers in the building. I tested my program with the server option and that is working fine. Before It was a peer to peer situation. Is this the correct server soft and is the price ok ? Thanks
Choise : Windows server standard 2022 versus essential 2022
hi, as i know "Essential" are limited to 25 User, 50 Device, 1 x CPU 10 Core , Hyper-V-Host , Hybrid cloud support and remote access "Standard" have 2 x Hyper-V-Host and unlimited CPU / Core both does NOT have Storage Replica, Storage Spaces Direct which only "Datacenter" have --- you do NOT need any extra CAL for "Essentials" <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> you NEED CAL for every User / Device when use "Standard" or "Datacenter"
Choise : Windows server standard 2022 versus essential 2022
Jimmy, So it seems that essential would be enough ? The specs you talk about....I don't know what they are for. Hard for me ))))
Choise : Windows server standard 2022 versus essential 2022
hi Marc, Server "Essential" are are made for small Company up to 25 User what Hardware do you want to use <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> --- Server "Essential" can use 1 x CPU with max 10 P-Core. NOT E-Core so buy a XEON (or AMD) Server CPU, NOT a Desktop i-Core CPU tip : order for Server 2,5 Gbit Network Card and a "managed" Switch, NOT a cheap HUB
Choise : Windows server standard 2022 versus essential 2022
Good learning for me, though I confess I could not understand much.
Choise : Windows server standard 2022 versus essential 2022
Jimmy, We are only 3 users and would like to work on 6 pc's A FWH invoice / Items dbf's related program will be the program to serve. Each user has his own exel, mail, etc. I have no intension on putting these programs on the server. Just that 1 FWh program. Maybe some more items are put on the server, but that is second option. I do want to think of 1 VPN connection from home, so that I can have more time for BBQ and work from there ))) Hardware ? I have absolut no idea what is needed as a server system. Current hardware are I5-7 desktop and laptops some with W10 and W7 for my older FW version that I finaly will install on server with up to date version. These all can be used as machines to log in into the server and work like RD.. So maybe you can point me to a good server system, even online ?? If for best performance I need to changes cards or switch, please advice with one. Please point me to a link ? Sorry if I ask much ... but hardware is not my thing BTW : We have no special speed problems with the program, so we don't need a lamborghini. a mid-classed server would be fine
Choise : Windows server standard 2022 versus essential 2022
Hello Mark, yes, RDP is a very good way. Best regards, Otto [url:xeffbb4v]https&#58;//winhotel-space&#46;translate&#46;goog/winhotel_webpage/megamenu&#46;prg?page_id=1518&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-US&_x_tr_pto=wapp[/url:xeffbb4v]
Choise : Windows server standard 2022 versus essential 2022
Windows essential seems not to be for Remote Desktop ???
Choise : Windows server standard 2022 versus essential 2022
Otto, Originaly I bought this laptop for the server purpose. Never get to it because my older kids found that this laptop did a great job as gaming PC )))) But still I could use it if you think that it meets the specs like you advice. (of cource with a clean setup and no games. They stopped playing [url:2p2n1ag5]https&#58;//www&#46;coolblue&#46;be/nl/product/880396/hp-pavilion-gaming-15-dk2038nb-azerty&#46;html#product-specifications[/url:2p2n1ag5]
Choise : Windows server standard 2022 versus essential 2022
hi Marc, [quote="Marc Venken":1rgvo5n4]Windows essential seems not to be for Remote Desktop ???[/quote:1rgvo5n4] if you want to to use Server 2023 as "RDS-Host" you need "RDS-CALs" for every Server Version / User all Server Version are now "same" except "License" --- you can build you own Server or buy a complete Server / Bundle as i say "Essentials" Version can be in Bundle as OEM-Version which is much cheaper than Retail Version
Choise : Windows server standard 2022 versus essential 2022
So essential with some RDS-Cals can be used for RDS ?
Choise : Windows server standard 2022 versus essential 2022
[quote:1fu4fgv7]From microsoft info Give user accounts remote desktop permission In the default installation of Windows Server Essentials, network users do not have permission to establish a remote connection to computers or other resources on the network. Before network users can establish a remote connection to network resources, you must first set up Anywhere Access. After you set up Anywhere Access, users can access files, applications, and computers in your office network from a device in any location with an Internet connection. The Set up Anywhere Access Wizard allows you to enable two methods of remote access: Virtual private network (VPN) Remote Web Access When you run the wizard, you can also choose to allow Anywhere Access for all current and newly added user accounts. To set up Anywhere Access, open the Dashboard Home page, click SETUP, and then click Set up Anywhere Access. For more information about Anywhere Access, see Manage Anywhere Access.[/quote:1fu4fgv7] If I read this. It seems to confirm it can be done?