topic
stringlengths
1
63
text
stringlengths
1
577k
windows 8 create file on disk C (solved)
Hello Looks like windows 8 (pro) does not like to create a file (not a folder, folders are ok) on hard disk C Authorisation message is sent , though all necessary authorisations are set. I googled and found a solution changing a key in the registry, a solution i do not like. Has any one gone through this and found a better solution ? Thanks for your time, Richard
windows 8 create file on disk C (solved)
Do you mean the root of hard drive like c:\file.txt That is considered a no no but you can turn off the UAC or elevate your access level to administrator.
windows 8 create file on disk C (solved)
yes i mean a file like c:\file.txt I already am administrator with all rights The only solution i found is to change the registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System set EnableLUA to 0 Hth Richard
windows 8 create file on disk C (solved)
If you are in the local administrator group that is not the same anymore.
windows 8 create file on disk C (solved)
Why to you need to create a file in the root directory? Regards, James
windows 8 create file on disk C (solved)
James I have an automatic backup that saves a complete directory, sends the file by ftp and then remove the file , some of the directoies are on root disk. Anyway why not be able to create a file on disk C while you can create a folder .... This happens only in Pro versions 7 or 8 , changing the flag as mentionned solves the problem. Richard
windows 8 marketplace awakens interest
Windows marketplace 8 awakens interest, begins to appear paid apps of 3rd party developers. this one for medical área. being in the Marketplace can be sold in many markets of Windows 8. looks nice: [url=http://imageshack.us/photo/my-images/837/screenshotthjmasnfo4.jpg/:16z9lzaj][img:16z9lzaj]http://img837.imageshack.us/img837/3408/screenshotthjmasnfo4.jpg[/img:16z9lzaj][/url:16z9lzaj]
windows 8 archivo .tds
Hola. Hoy actualice a windows 8 y cuando compilo me genera un archivo .tds pero cada vez que regenero la aplicacion me pide que para pisar el archivo .tds tengo que darle permiso de administrador. ya intente darle a la carpeta completa el permiso de adminsitrador pero no me da bolilla. yo estoy como administrador, no utilizo otro usuario. alguien le paso lo mismo y pudo solucionarlo? gracias.
windows emulator
Hi, Is it possible to run my FW program on an Android device on a windows emulator ? If so, which emulator is better ?
windows emulator
Natter, You may use Windows Remote Desktop for Android
windows emulator
Thank you, Antonio ! But in my case RD is not suitable. <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> I was most interested in ExaGear. But I do not know how stable it is in operation
windows emulator
There is Wine for Android: [url:8bwjo6nw]https&#58;//dl&#46;winehq&#46;org/wine-builds/android/[/url:8bwjo6nw] You may try it
windows emulator
Wine is a Linux emulator. Do you consider it more reliable than Windows emulators ?
windows emulator
According to Wine docs: [quote:2btd7fzh]Wine enables Linux, Mac, FreeBSD, and Solaris users to run Windows applications without a copy of Microsoft Windows[/quote:2btd7fzh] It is not a Linux emulator
windows emulator
I understand that I need Wine 3.0 ARM (Windows RT) ? But I didn't understand if it supports touch screen and virtual keyboard operation ?
windows emulator
I have not tried it myself, so you have to do the R+D for it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
windows emulator
I high recommend you to use RDP. Android is already slower without an emulator, with emulator it will be terrible <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
windows emulator
Thank you for advice. However, RDP (in my case) will not work. I will try to implement the task either on Android Studio or on MS Office Mobile (VBA)
windows phone 7
Does someone know if it is possible to deploy a Windows 7 phone app without the Microsoft store. Best regards, Otto
windows phone 7
Otto, It seems as there is no solution by now: [url:1dglv9si]http&#58;//social&#46;msdn&#46;microsoft&#46;com/Forums/en-IE/mktplace/thread/a38e31de-6ebc-4d33-a9e0-367c38397fa9[/url:1dglv9si] [url:1dglv9si]http&#58;//answers&#46;microsoft&#46;com/en-us/winphone/forum/wp7-sync/windows-phone-7-enterprise-app-deployment-question/73b35f6a-5ffb-4f64-b57e-fe4e3a8b62e8[/url:1dglv9si]
windows phone 7
I know it's an old post, yes, it's possible with windows phone SDK. It can be deployed up to 10 phones for testing purpose. See this MSDN article [url:261bryk7]http&#58;//msdn&#46;microsoft&#46;com/en-us/library/ff928362(v=vs&#46;92)&#46;aspx[/url:261bryk7]
windows seven Grid
the sample of Antonio ( <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=17540">viewtopic.php?f=6&t=17540</a><!-- l -->) run good here. the problem come when I insert bitmaps on column of record the gradient row go away....and it create a box of another color where are the bitmap or the field is empty I insert on first column this code : [code=fw:3k55zvvq]<div class="fw" id="{CB}" style="font-family: monospace;">oCol:= oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oGrid</span>:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"sort1"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"sort2"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TREE_AULE'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oCol:<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">3</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span> || &nbsp;<span style="color: #000000;">&#40;</span> oDHard<span style="color: #000000;">&#41;</span>->Laboratory<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; oCol:<span style="color: #000000;">cHeader</span> &nbsp;:= <span style="color: #ff0000;">"Aula/lab"</span><br />&nbsp; &nbsp; oCol:<span style="color: #000000;">nWidth</span> &nbsp; :=<span style="color: #000000;">120</span><br />&nbsp; &nbsp; oCol:<span style="color: #000000;">nHeadBmpNo</span> &nbsp; &nbsp;:= <span style="color: #000000;">1</span><br />&nbsp; &nbsp; oCol:<span style="color: #000000;">nHeadBmpAlign</span> := AL_RIGHT<br />&nbsp; &nbsp; oCol:<span style="color: #000000;">oDataFont</span> := oFontGrid</div>[/code:3k55zvvq] and on four column this code [code=fw:3k55zvvq]<div class="fw" id="{CB}" style="font-family: monospace;">oCol:= oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oGrid</span>:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"sort1"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"sort2"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TREE_HARD'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TREE_LAPTOP'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TREE_PRINTERS'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TREE_MONITOR'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TREE_KEYBOARD'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TREE_SWITCH'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TREE_MOUSE'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TREE_POCKET'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TREE_SCANNER'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TREE_PROJECT'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TREE_VCAM'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TREE_FCAM'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TREE_CAMERA'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">&#123;</span> || AScan<span style="color: #000000;">&#40;</span> aItems, Trim<span style="color: #000000;">&#40;</span> &nbsp;<span style="color: #000000;">&#40;</span>oDHard<span style="color: #000000;">&#41;</span>->type <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> &nbsp;+ <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; * oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span> || &nbsp;<span style="color: #000000;">&#40;</span>oDHard<span style="color: #000000;">&#41;</span>->type<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp;oCol:<span style="color: #000000;">cHeader</span> &nbsp;:= <span style="color: #ff0000;">"Tipo"</span><br />&nbsp; &nbsp; &nbsp;oCol:<span style="color: #000000;">nWidth</span> &nbsp; := <span style="color: #000000;">60</span><br />&nbsp; &nbsp; &nbsp;oCol:<span style="color: #000000;">nHeadBmpNo</span> &nbsp; &nbsp;:= <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp;oCol:<span style="color: #000000;">nHeadBmpAlign</span> := AL_RIGHT<br />&nbsp; &nbsp; &nbsp;oCol:<span style="color: #000000;">oDataFont</span> := oFontGrid</div>[/code:3k55zvvq] then I made the same of Test of Antonio and the result is this [img:3k55zvvq]http&#58;//img121&#46;imageshack&#46;us/img121/6014/errorgradient&#46;jpg[/img:3k55zvvq]
windows seven Grid
Silvio please follow this topic (spanish) [url:1t4h60x5]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?p=95369#p95369[/url:1t4h60x5]
windows seven Grid
Sorry but I try it but not run ok
windows seven Grid
Only one error it was correct as you can see on this picture [img:3fbdlytz]http&#58;//img175&#46;imageshack&#46;us/img175/5426/err2xbrowse&#46;jpg[/img:3fbdlytz] the other problem is I can see the bitmap well and I not understand where I must change the xbrowse class ( I have 9.10)
windows seven Grid
[quote="Silvio":3r3piut9]Only one error it was correct as you can see on this picture [img:3r3piut9]http&#58;//img175&#46;imageshack&#46;us/img175/5426/err2xbrowse&#46;jpg[/img:3r3piut9] the other problem is I can see the bitmap well and I not understand where I must change the xbrowse class ( I have 9.10)[/quote:3r3piut9] Hi Silvio. do you can solved this problem? If yes, can you describes how do you did it? Thanks
windows seven Grid
Does anyone have a solution to this problem? I am using a modified version of \samples\xbrwin7.prg which contains the function paintCol() to override the highlight bar painting with a gradient paint, but it seems this only works for text. If you display an image it gets the original highlight bar color instead. So, I think we need a similar function to repaint the background of an alpha image with the gradient background. Any ideas how to do this? Regards, James [url=http&#58;//img193&#46;imageshack&#46;us/i/screen2ua&#46;jpg/:2z96q81x][img:2z96q81x]http&#58;//img193&#46;imageshack&#46;us/img193/2771/screen2ua&#46;jpg[/img:2z96q81x][/url:2z96q81x]
windows seven Grid
No, sorry I have also on win 7 ultimate this problem
windows seven Grid
Please see the topic <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=20570">viewtopic.php?f=3&t=20570</a><!-- l -->
windows vista API
Antonio. Is our current work with windows vista 100% Please answer quickly. regards, hathal.
windows vista API
Hathal Using Vista Business FWH2.7, xHarbour 99.70, Borland C++ 5.5 and xMate as my project manager ...not any problems in developing or in deploying and running. Rick Lipkin
windows vista API
Hathal, No problems at all with Vista. We use Vista Ultimate 64 bits
windows vista API
This is excellent news, I was looking for it, thank you for all
windows.ch
Queridos miembros del Foro Descargué un wrapper para la librería LibXL y un archivo de ejemplo. En el aparece #include "windows.ch" Este archivo no se como obtenerlo, no lo tengo ni en harbour ni en FWH Alguien me podría ayudar, por favor? Gracias desde ya. ------------------------------------------------------------------------------------------------- Dear members of this forum I download a wrapper for the LibXL library and a sample file. In the wrapper appears #include "windows.ch" I don't know how to get this file. May somebody help me please? Thanks in advance.
windows.ch
Estimado José, <!-- l --><a class="postlink-local" href="http://fivetechsupport.com/forums/viewtopic.php?f=3&t=42518&p=255675#p255675">viewtopic.php?f=3&t=42518&p=255675#p255675</a><!-- l -->
windows.ch file
Dear members of this forum I download a wrapper for the LibXL library and a sample file. In the wrapper appears #include "windows.ch" I don't know how to get this file. May somebody help me please? Thanks in advance. ------------------------------------------------------------------------------------------------- Queridos miembros del Foro Descargué un wrapper para la librería LibXL y un archivo de ejemplo. En el aparece #include "windows.ch" Este archivo no se como obtenerlo, no lo tengo ni en harbour ni en FWH Alguien me podría ayudar, por favor? Gracias desde ya.
windows.ch file
Estimado José, Crea un window.ch vacio y úsalo. Si falta algo, Harbour al compilar te avisará <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
windows.ch file
Muchas gracias Antonio por su ayuda.
windows7
What Should I do if I need to compile my programs under windows 7 . I am using FWH 8.06
windows7
You do it exactly the same way as you are used to in XP <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Unless your Windows 7 is 64 bits that will not allow you to use 16 bits tools, i.e., like Borland Resource Workshop
windowsXp.Manifest
Buenas tardes No encuentro cual es proble de este error Error tutor01.prg 48: Cannot open file: WinXp/windowsXp.Manifest He modificado el BCC32.cfg -I"c:\bcc582\include;c:\bcc582\include\dinkumware" -L"c:\bcc582\lib" Ilinkg32.cfg -L"c:\bcc582\lib" No se que es lo que tengo mal
windowsXp.Manifest
El problema no es el compilador, el error te está marcando que no encuentra el archivo mencionado. Verifica que el archivo se encuentra en la ruta que invoca el archivo de recursos. Saludos
windowsXp.Manifest
Miguel, Copia este código a un fichero de nombre windowsXp.Manifest y lo guardas en FWH\samples\WinXP\ [code=fw:o24jlkcq]<div class="fw" id="{CB}" style="font-family: monospace;"><?xml version=<span style="color: #ff0000;">"1.0"</span> encoding=<span style="color: #ff0000;">"UTF-8"</span> standalone=<span style="color: #ff0000;">"yes"</span>?><br /><assembly xmlns=<span style="color: #ff0000;">"urn:schemas-microsoft-com:asm.v1"</span> manifestVersion=<span style="color: #ff0000;">"1.0"</span>><br /><assemblyIdentity<br />    version=<span style="color: #ff0000;">"1.0.0.0"</span><br />    processorArchitecture=<span style="color: #ff0000;">"X86"</span><br />    <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"FiveTech Software.FiveWin.32bits"</span><br />    type=<span style="color: #ff0000;">"win32"</span><br />/><br /><description>Your application description here.</description><br /><dependency><br />    <dependentAssembly><br />        <assemblyIdentity<br />            type=<span style="color: #ff0000;">"win32"</span><br />            <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"Microsoft.Windows.Common-Controls"</span><br />            version=<span style="color: #ff0000;">"6.0.0.0"</span><br />            processorArchitecture=<span style="color: #ff0000;">"X86"</span><br />            publicKeyToken=<span style="color: #ff0000;">"6595b64144ccf1df"</span><br />            language=<span style="color: #ff0000;">"*"</span><br />        /><br />    </dependentAssembly><br /></dependency><br /></assembly><br /> </div>[/code:o24jlkcq] Debido a un cambio en el instalador que usamos, ese fichero no se incluyó en la distribución de FWH
winexec telnet
Why this program does not run telnet in windows 7 in XP it works fine #include "fivewin.ch" FUNCTION MAIN() winexec( "telnet" ) RETURN NIL P.S. telnet is enabled
winexec telnet
May be because telnet is not enabled by default in win 7. Can you run it from prompt? Sorry I did not seen telnet is enabled.
winexec telnet
P.S. is enabled!
winexec telnet
Marco Try it this way and see what happens [code=fw:2475729e]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;WaitRun<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Telnet"</span>,<span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> &nbsp; <br />&nbsp;</div>[/code:2475729e] Rick
winexec telnet
Rick, nothing <!-- s:evil: --><img src="{SMILIES_PATH}/icon_evil.gif" alt=":evil:" title="Evil or Very Mad" /><!-- s:evil: --> If I copy telnet.exe in the same folder of program IT RUNS <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> bye
winexec telnet
Marco Test this : [code=fw:lrqinbxq]<div class="fw" id="{CB}" style="font-family: monospace;"><br />WaitRun<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\w</span>indows<span style="color: #000000;">\s</span>ystem32<span style="color: #000000;">\T</span>elnet.exe"</span>,<span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:lrqinbxq] If this works you can pull the "c:\windows" variable from the environment or this might work [code=fw:lrqinbxq]<div class="fw" id="{CB}" style="font-family: monospace;"><br />WaitRun<span style="color: #000000;">&#40;</span> GetWinDir<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\s</span>ystem32<span style="color: #000000;">\T</span>elnet.exe"</span>,<span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:lrqinbxq] Rick
winexec telnet
This works for me but it prompts for the user password. [code=fw:3b0qy6qw]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cStrg := <span style="color: #ff0000;">"runas /noprofile /user:"</span> + GetEnv<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"COMPUTERNAME"</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"<span style="color: #000000;">\"</span> + GetEnv( "</span>USERNAME<span style="color: #ff0000;">" ) + "</span> TELNET<span style="color: #ff0000;">"<br />winexec( cStrg )<br /></span></div>[/code:3b0qy6qw] @Rick: when you use winexec waitrun etc... it seems you loose elevated privileges. My login has administrator privileges for my computer. If i open a prompt with start button I can run telnet. If I open the prompt with waitrun or winexec telnet does not appear even with dir c:\windows\system32.
winexec telnet
ok many thanks <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
winexec ó ShellExecute
Hola buenos días para todos, en este momento nos surge la necesidad de reiniciar la aplicación de manera automática luego que se produzca en error, pero queremos saber cual es la mejor opción para hacerlo, leyendo un poco en el foro encontramos las funciones winexec y ShellExecute, pero queremos saber cual es la diferencia entre ambas funciones, y si se tiene alguna limitación al usarlas. Al inicio de la aplicación definimos la función [code=fw:3622nyc8]<div class="fw" id="{CB}" style="font-family: monospace;"><br />SetPostErrorAction<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> |cErrorLogFileName, oError| fErrorAction<span style="color: #000000;">&#40;</span> cErrorLogFileName, oError <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <br /><br /><span style="color: #00C800;">function</span> fErrorAction<span style="color: #000000;">&#40;</span>cErrorLogFileName, oError <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> cExec := <span style="color: #ff0000;">"c:<span style="color: #000000;">\d</span>lyma<span style="color: #000000;">\d</span>lyma.exe"</span><br /><br />ShellExecute<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Open"</span>, cExec, , <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Es mejor asi?</span><br />winexec<span style="color: #000000;">&#40;</span> cExec <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//o así?</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:3622nyc8] Cual es la mejor forma de hacerlo? De antemano gracias
winexec ó ShellExecute
[quote:2bsyh64h]ShellExecute() es más efectivo que WinExec() para iniciar aplicaciones en Windows. WinExec() es una función obsoleta que solo se proporciona por compatibilidad con Windows 16 bits. ShellExecute() permite especificar un verbo que indica la operación a realizar sobre un objeto de archivo o carpeta, como abrir, editar, imprimir, etc. Además, ShellExecute() puede iniciar aplicaciones asociadas a archivos que no son ejecutables, mientras que WinExec() solo puede iniciar archivos ejecutables. Por lo tanto, se recomienda usar ShellExecute() o ShellExecuteEx() en lugar de WinExec() para programar para Windows[/quote:2bsyh64h]
winexec ó ShellExecute
Antonio muchas gracias por la pronta respuesta. Ahora surge otra duda, cual es la diferencia entre las dos funciones que sugieres? [code=fw:iz46z7v8]<div class="fw" id="{CB}" style="font-family: monospace;"><br />ShellExecute<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> o ShellExecuteEx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />&nbsp;</div>[/code:iz46z7v8]
winexec ó ShellExecute
ShellExecute() y ShellExecuteEx() son dos funciones que se pueden usar para realizar una operación en un archivo especificado, como abrirlo, editarlo, imprimirlo, etc. La diferencia entre ellas es que ShellExecuteEx() es una versión más personalizada y avanzada de ShellExecute(), que ofrece más opciones y control sobre la ejecución. Algunas de las ventajas de usar ShellExecuteEx() son: Puede especificar un identificador de ventana que se usará como propietario de cualquier interfaz de usuario o mensaje de error que se muestre durante la ejecución. Puede especificar un verbo que indique la acción que se va a realizar, como “runas” para ejecutar una aplicación como administrador. Puede obtener información sobre la aplicación que se inicia como resultado de la llamada, como el identificador de instancia, el código de salida y el identificador del proceso. Puede proporcionar una estructura SHELLEXECUTEINFO que contenga información adicional sobre la ejecución, como el directorio de trabajo, los parámetros, el modo de mostrar la ventana, el título de la ventana, el icono, el teclado y el identificador de clase de la aplicación. Puede esperar a que la aplicación se cierre antes de continuar con la ejecución de su propia aplicación, estableciendo el miembro fMask de la estructura SHELLEXECUTEINFO en SEE_MASK_NOCLOSEPROCESS y usando la función WaitForSingleObject con el miembro hProcess.
winexec ó ShellExecute
Ejemplo con WaitRunEx() y ShellExecuteEx() ?? Gracias. Regards, saludos.
winexec ó ShellExecute
Buenas tardes Antonio, vista tu respuesta me queda la duda de si la has redactado tu mismo o si es una respuesta de algún chatgpt. Es solo una curiosidad.
winexec ó ShellExecute
Esto esta correcto? [code=fw:30q5r911]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// C:\FWH\SAMPLES\EXEC2.PRG</span><br /><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> cExec, cFile, lForce <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// .T.</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cStdOut, cStdErr<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> cExec = <span style="color: #00C800;">NIL</span> .AND. cFile = <span style="color: #00C800;">Nil</span><br /><br />&nbsp; &nbsp; &nbsp; MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"I need a valid FILE/EXE name"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; QUIT<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> cFile = <span style="color: #00C800;">Nil</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> File<span style="color: #000000;">&#40;</span> cExec <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WinExec<span style="color: #000000;">&#40;</span> cExec <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ShellExecute<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"open"</span>, cExec, cFile, , <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"www"</span> $ cFile <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ShellExecuteEx<span style="color: #000000;">&#40;</span> cExec, cFile <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> File<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> lForce = <span style="color: #00C800;">Nil</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WinExec<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ShellExecute<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"open"</span>, cExec, cFile, , <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShellExecute<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"open"</span>, cExec, cFile, , <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <conio.h><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <winbase.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> SHELLEXECUTEEX <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #000000;">&#123;</span><br /><br />&nbsp;SHELLEXECUTEINFO sei;<br /><br />&nbsp;sei.cbSize &nbsp;= sizeof<span style="color: #000000;">&#40;</span>sei<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp;sei.fMask &nbsp; = SEE_MASK_NOCLOSEPROCESS;<br /><br />&nbsp;sei.lpVerb &nbsp;= <span style="color: #ff0000;">"open"</span>;<br /><br />&nbsp;sei.lpFile &nbsp;= hb_parc<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>;<br /><br />&nbsp;sei.nShow &nbsp; = SW_SHOW;<br /><br />&nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>ShellExecuteEx<span style="color: #000000;">&#40;</span>&sei<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp;WaitForSingleObject<span style="color: #000000;">&#40;</span>sei.hProcess,INFINITE<span style="color: #000000;">&#41;</span>;<br />&nbsp;hb_retl<span style="color: #000000;">&#40;</span><span style="color: #00C800;">TRUE</span><span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp;<span style="color: #00C800;">else</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; sei.lpFile &nbsp;= hb_parc<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; sei.lpParameters = hb_parc<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>ShellExecuteEx <span style="color: #000000;">&#40;</span>&sei<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;WaitForSingleObject<span style="color: #000000;">&#40;</span>sei.hProcess,INFINITE<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_retl<span style="color: #000000;">&#40;</span><span style="color: #00C800;">TRUE</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp;<span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /><br /><span style="color: #B900B9;">// FIN / END</span><br />&nbsp;</div>[/code:30q5r911] Regards, saludos.
winexec ó ShellExecute
[quote="Verhoven":2hoam183]Buenas tardes Antonio, vista tu respuesta me queda la duda de si la has redactado tu mismo o si es una respuesta de algún chatgpt. Es solo una curiosidad.[/quote:2hoam183] Es obvio <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Lo hago a propósito para que nos acostumbremos a usar las nuevas herramientas
winexec ó ShellExecute
hi, when DblClick in Explorer on a *.BMP it will open *.BMP with associate App like Paint Winexec() "just" call "special" EXE while ShellExecute() is use with associate File
winexec() is it working under Vista ?
Hi, I'm having problems running programs with winexec under Vista. Is there any known problem with it ? Regards Antonio
winexec() is it working under Vista ?
Oops, My mistake. Antonio
winscard.lib smartcard
Hi, i need help about the smatcard i write this function and work fine but i need the function for read and write thanks HB_FUNC( PCSC_NAME ) { LONG rv; SCARDCONTEXT hContext; LPTSTR mszReaders; SCARDHANDLE hCard; DWORD dwReaders, dwActiveProtocol, dwRecvLength; rv = SCardEstablishContext(SCARD_SCOPE_SYSTEM, NULL, NULL, &hContext); #ifdef SCARD_AUTOALLOCATE dwReaders = SCARD_AUTOALLOCATE; rv = SCardListReaders(hContext, NULL, (LPTSTR)&mszReaders, &dwReaders); #else rv = SCardListReaders(hContext, NULL, NULL, &dwReaders); mszReaders = calloc(dwReaders, sizeof(char)); rv = SCardListReaders(hContext, NULL, mszReaders, &dwReaders); #endif if (SCARD_S_SUCCESS != rv) { hb_retc( "noPCSC" ); } if (SCARD_S_SUCCESS == rv) { hb_retc( mszReaders ); } rv = SCardReleaseContext(hContext); }
winscard.lib smartcard
Hi, Any solution to this problem? I need to read some card (smartcard, proximity smartcard or some thing like that) and i'm trying to use this library but i can't find any example. If it's possible to do this with other library or function I would be grateful if you could teach me. Thanks in advance.
wireless signal strength
Can YOU post the whole code how to get the wireless signal strength, thanks
wireless signal strength
Hello Antonio, do you think this class can be adapted to FWPPC? Thanks in advance Otto The CWifiPeek class does all the Wifi query stuff. It can be used in non-MFC applications, too. You have to add CWifiPeek.h and CWifiPeek.cpp to your project. [url:1zv63h9y]http&#58;//www&#46;codeproject&#46;com/KB/mobile/PeekPocket&#46;aspx[/url:1zv63h9y]
wireless signal strength
Hello Antonio, I downloaded the vp++ - project and compiled the source. The program is working as suspected. RSSI would be the value I need. Please could you have a look at the vp++ code . Do you think you could convert this code? Thanks in advance Otto [img:25do7f7m]http&#58;//www&#46;atzwanger-software&#46;com/fw/peek&#46;jpg[/img:25do7f7m]
wireless signal strength
Otto, Yes, in fact we don't need to convert it. We can mix C and C++ code in Harbour and FWPPC <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> We simply need to build the OBJ from WifiPeek.cpp and then create some C functions to manage the class from Harbour I may review it this next week <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
wireless signal strength
Otto, As a start example: wifi.cpp [code=fw:2jzgy78j]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"WifiPeek.h"</span><br /><br />extern <span style="color: #ff0000;">"C"</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#include</span> <hbapi.h><br /><span style="color: #000000;">&#125;</span>;&nbsp; &nbsp;<br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> CWIFIPEEK <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">new</span> CWifiPeek <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span> <br />&nbsp;</div>[/code:2jzgy78j]
wireless signal strength
Hello Antonio, thank you. This function will be very useful. I thought I have found a workaround for the frozen screen. But it is not working: I tried with a timer and a STATIC variable lNetOK Before I check if I can reach the file on the network I activated the timer and Set lNetOK to false. The timer executes the netzok function. But the frozen screen is still there and only after a while the “program comes back”. FUNCTION netzok if lNetzOK = .f. msginfo1("NO NET") endif oTmr:DeActivate() return nil //----------------------------------------------------------------------------// So I am waiting very hard for the network test function. Best regards, Otto [quote:14wker5a]Hello Antonio, this solution is working but if there is no network you get for a very long time a frozen systembefore an error is returned. Many useres press the reset button because they think the system is gone down. Maybe there is a better solution? Thanks in advance Otto If you mean local network, then you may check for a file existence: if File( "\\machine\path\filename" ) [/quote:14wker5a]
wireless signal strength
Otto, Have you modified my wifi.cpp little example source code ? That code I provided is just the starting point. Now more functions should be added to make it work.
wireless signal strength
Hello Antonio, I don’t know how to do it. I was searching the forum for EXTERN “C” and found 2 or 3 examples. I will try to understand these. Best regards, Otto
wireless signal strength
Otto, First of all we have to compile WifiPeek.cpp: c:\vce\bin\CLARM.EXE -c -Ic:\vce\include\arm -DARM -DUNICODE WifiPeek.cpp I am getting some compile errors here that we need to solve.
wireless signal strength
Otto, This way compiled perfectly: c:\vce\bin\CLARM.EXE -c -Ic:\vce\include\arm -DARM -DUNICODE -DUNDER_CE WifiPeek.cpp But I wonder if it may work fine for Windows Mobile, as -DUNDER_CE means for Windows CE. Next we will build a small test so we can check if it properly links.
wireless signal strength
Hello Antonio, I downloaded the code from: // Coded by dzolee // <!-- m --><a class="postlink" href="http://dzolee.blogspot.com">http://dzolee.blogspot.com</a><!-- m --> I think this is his latest version. I compiled this version with VS2005 and on my HTC (mobile 6.1) it is working but on a symbol mobile 2003 Second Edition I only see the adapter but no AP’s. Best regards, Otto
wireless signal strength
Otto, > symbol mobile 2003 Second Edition Maybe that Windows Mobile version is too old to support that code.
wireless signal strength
Antonio, Otto any solution for wifi signal ? I must use this msginfo because I use the fwppc application far from Sea chalet and I wish link to pc's dbfs the user must see the signal and open the application when the signal is on 80 %
wmf/emf
Hola, Un suponer... si yo tengo un wmf o un emf, se imprimira de la misma forma en cualquier impresora ? Creo que es eso de si son independientes del dispositivo ? Gracias de antemano
wmf/emf
> si yo tengo un wmf o un emf, se imprimira de la misma forma en cualquier impresora ? En principio si, ya que esos ficheros contienen gráficos "vectoriales", es decir, no son dibujos sino "instrucciones" de como hacer el dibujo. El formato wmf ( "windows metafile" ) se diseñó inicialmente para 16 bits, y posteriormente se mejoró y se creó el formato emf ("enhanced metafiles") que es para 32 bits.
wmf2emf problemi in compilazione
Ciao Ho un esempio, forse tuo, che non riesco a compilare con FWH 15.12 Continua a dirmi che non trova il file FWHARB.H, eppure l'ho copiato anche nella cartella. Un aiutino ? BCC7 Harbour 3.20dev Grazie **** WMF2EMF.PRG * #pragma BEGINDUMP #include "WinTen.h" #include "Windows.h" #include "HbApi.h" #include "ClipApi.h" #include <windows.h> HB_FUNC( WMFTOEMF ) // ( cWmf, cEmf ) { HMETAFILE hWMF = GetMetaFile( hb_parc( 1 ) ); UINT nSize = GetMetaFileBitsEx( hWMF, 0, NULL ); LPVOID lpvData = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, nSize ); HENHMETAFILE hEMF, hEMF2; GetMetaFileBitsEx( hWMF, nSize, lpvData ); hEMF = SetWinMetaFileBits( nSize, lpvData, 0, NULL ); HeapFree( GetProcessHeap(), 0, lpvData ); hEMF2 = CopyEnhMetaFile( hEMF, hb_parc( 2 ) ); DeleteEnhMetaFile( hEMF ); DeleteEnhMetaFile( hEMF2 ); DeleteMetaFile( hWMF ); } *
wndBitmap( oDlg:hWnd ) to variable?
I can make a bitmap with the dialod image with this:[code:26p6ghf1]hBmp &#58;= wndBitmap&#40; oDlg&#58;hWnd &#41;[/code:26p6ghf1]But, how I can write this image of hBmp into a simple variavel?
wndBitmap( oDlg:hWnd ) to variable?
Hello JC, You can use nCONVERT ( download from the Image-viewer-toppic ) You can use this tool also with command-lines from the DOS-prompt. There is a script to save the Image of the clipboard to any Image-format. I think Freeimage.dll doesn't support < save from clipboard >. A easy way : Use xNVIEW and store the clipboard-image to any format you like. If You want to use nCONVERT, I can give You a sample, how to use it.It is also possible to call it with WINEXEC like :// Convert from clipboard to JPG and resize to 640x480// -------------------------------------------------------------cSCRIPT := "nconvert -out jpeg -resize 640 480 -clipboard"WINEXEC("&cSCRIPT")To use nCONVERT with WINEXEC, nCONVERT.exe must be in Yourworking-directory.I will test it and give You more detailed informations.RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
wndBitmap( oDlg:hWnd ) to variable?
Uwe,Thanks but, I want another thing.I want to save a handle hBmp to a variable of fivewin... something like this code:[code:15tkk07w]cImage &#58;= someFunctionToSaveHbmp&#40; hBmp &#41;[/code:15tkk07w]And with this way to do, I will record this variable into a database or another place.
wndBitmap( oDlg:hWnd ) to variable?
The function dibWrite( cBmpFile, hDib ) saves the dib handle into a fileSome like this to save into a variable?
wndBitmap( oDlg:hWnd ) to variable?
Hello JC,I think, something went wrong.I answered to a question, how to save a image-capture from clipboard.Your Question-text changed, or wrong toppic ?RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
wndBitmap( oDlg:hWnd ) to variable?
Uwe,I think not![quote:eu2701gz]wndBitmap( oDlg:hWnd ) to variable? But, how I can write this image of hBmp into a simple variavel?[/quote:eu2701gz]Into a simple variable of fivewin! Internally!
wndBitmap( oDlg:hWnd ) to variable?
Júlio,[code:1bnv9jug] local cImage oDlg&#58;SaveToBmp&#40; "temp&#46;txt" &#41; cImage = MemoRead&#40; "temp&#46;txt" &#41; [/code:1bnv9jug]You can use "temp.txt" or "temp.bmp". It doesn't matter
wndBitmap( oDlg:hWnd ) to variable?
Antonio,I have used this solution but in truth, I did not want to have to write a file to disk.Just like on resolving of method ::loadFromString (), I would like something like this.
wndBitmap( oDlg:hWnd ) to variable?
Please try this DibToStr():[code:21fura0c] #pragma BEGINDUMP #include <windows&#46;h> #include <hbapi&#46;h> typedef FAR * FARP; WORD far pascal wDIBColors&#40; LPBITMAPINFOHEADER lpBmp &#41;; char * DibToStr&#40; HGLOBAL hDIB, unsigned long * pulSize &#41; &#123; LPBITMAPINFO Info = &#40; LPBITMAPINFO &#41; GlobalLock&#40; hDIB &#41;; void * Bits = &#40; void * &#41; &#40; &#40; FARP &#41; Info + Info->bmiHeader&#46;biSize + wDIBColors&#40; &#40; LPBITMAPINFOHEADER &#41; Info &#41; * sizeof&#40; RGBQUAD &#41; &#41;; unsigned long ulSize = GlobalSize&#40; &#40; HGLOBAL &#41; Info &#41;; BITMAPFILEHEADER bmf; int hBmp; char * pStr = &#40; char * &#41; hb_xgrab&#40; sizeof&#40; bmf &#41; + ulSize &#41;; bmf&#46;bfType = 'BM'; bmf&#46;bfSize = sizeof&#40; bmf &#41; + ulSize; bmf&#46;bfReserved1 = 0; bmf&#46;bfReserved2 = 0; bmf&#46;bfOffBits = sizeof&#40; bmf &#41; + &#40; FARP &#41; Bits - &#40; FARP &#41; Info; memcpy&#40; pStr, &#40; const char * &#41; &bmf, sizeof&#40; bmf &#41; &#41;; memcpy&#40; pStr + sizeof&#40; bmf &#41;, &#40; const char * &#41; Info, ulSize &#41;; GlobalUnlock&#40; hDIB &#41;; * pulSize = sizeof&#40; bmf &#41; + ulSize; return pStr; &#125; //---------------------------------------------------------------------------// HB_FUNC&#40; DIBTOSTR &#41; // &#40; hDib &#41; --> cString &#123; unsigned long ulSize = 0; char * pStr = DibToStr&#40; &#40; HGLOBAL &#41; hb_parnl&#40; 1 &#41;, &ulSize &#41;; hb_retclen&#40; pStr, ulSize &#41;; hb_xfree&#40; &#40; void * &#41; pStr &#41;; &#125; //---------------------------------------------------------------------------// #pragma ENDDUMP [/code:21fura0c]
wndBitmap( oDlg:hWnd ) to variable?
Antonio,Thank you very much!I will try this solution and report the results!
word
Hola, estoy queriendo abrir un archivo de word, el tema es que ese archivo puede estar siendo editado desde otra pc (red) y al abrirlo desde otra quiero que el sistema de un mensaje de atencion, como que el archivo no puede ser editado porque otro usuario lo esta haciendo. [code=fw:27aswzlc]<div class="fw" id="{CB}" style="font-family: monospace;"><br />...<br /><span style="color: #00C800;">TRY</span><br />            oWord := TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Word.Application"</span> <span style="color: #000000;">&#41;</span><br />            oWord:<span style="color: #000000;">Documents</span>:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span>cFichero<span style="color: #000000;">&#41;</span><br />            oWord:<span style="color: #000000;">Visible</span>     := .T.<br />            oWord:<span style="color: #000000;">WindowState</span> := <span style="color: #000000;">1</span> <span style="color: #B900B9;">// Maximize</span><br /><br />            hWnd := FindWindow<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"opusApp"</span> <span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">IF</span> hWnd > <span style="color: #000000;">0</span><br />               SetWindowPos<span style="color: #000000;">&#40;</span> hWnd, <span style="color: #000000;">-2</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">ENDIF</span><br /><br />         CATCH oError<br />               <span style="color: #B900B9;">// aca entra si borro el winword.exe desde el administrador de tareas</span><br />               WinExec<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"taskkill -f -im winword.exe"</span><span style="color: #000000;">&#41;</span><br />               <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Error al abrir el archivo"</span>+CRLF+oError:<span style="color: #000000;">Description</span><span style="color: #000000;">&#41;</span><br />         END<br />...<br /> </div>[/code:27aswzlc] Espero haberme explicado correctamente. Gracias de antemano Marcelo
word
Try this [code=fw:1wqfe1fd]<div class="fw" id="{CB}" style="font-family: monospace;">cFichero:=<span style="color: #ff0000;">"D:<span style="color: #000000;">\Y</span>outFolder<span style="color: #000000;">\Y</span>ourWordFile.Doc"</span><br />nHandle:=<span style="color: #000000;">0</span><br /><span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nHandle:=FOpen<span style="color: #000000;">&#40;</span>cFichero,FO_WRITE<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>  < <span style="color: #000000;">0</span>  <span style="color: #B900B9;">// There is a problem opening the file</span><br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Unable to open the file. May be some one in the network is using this file"</span><span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Your msg</span><br />   <span style="color: #00C800;">Return</span> .F.<br /><span style="color: #00C800;">Endif</span><br /><span style="color: #B900B9;">// There was no problem opening the file in Write mode, so proceed as usual</span><br />FClose<span style="color: #000000;">&#40;</span>nHandle<span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">// Your regular code to open word file goes here</span><br />oWord := TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Word.Application"</span> <span style="color: #000000;">&#41;</span><br />oWord:<span style="color: #000000;">Documents</span>:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span>cFichero<span style="color: #000000;">&#41;</span><br />oWord:<span style="color: #000000;">Visible</span>     := .T.<br />oWord:<span style="color: #000000;">WindowState</span> := <span style="color: #000000;">1</span> <span style="color: #B900B9;">// Maximize</span><br />...<br />...</div>[/code:1wqfe1fd] Regards [b:1wqfe1fd]Anser[/b:1wqfe1fd]
word
Hola, gracias por la ayuda anduvo perfecto. Es lo que necesitaba Por si a alguien le sirve al principio del prg hay que incluir este trozo de codigo #include "fileio.ch" Saludos Marcelo
word
Hola buenas tardes, siguiendo la consulta en cuestión, necesito agregar a un documento de word al final del mismo un texto, el tema es que no logro posicionarme al final del documento para escribir lo que necesito, me lo escribe al principio. Si alguien me pude dar una mano por favor, heprobado varios metodos que busque pero no hubo caso. Tambien me gustaria insertar el contenido de un archivo externo (es un sello hecho en word) Saludos Marcelo
word
Try this, [code=fw:1p68vyz5]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00D7D7;">#Define</span> wdStory <span style="color: #000000;">6</span><br /><span style="color: #00D7D7;">#Define</span> wdMove &nbsp;<span style="color: #000000;">0</span><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> oWord,oDoc,oSelection<br /><br />&nbsp; &nbsp; oWord = CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Word.Application"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oWord:<span style="color: #000000;">Visible</span>:=.T.<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; oDoc = oWord:<span style="color: #000000;">Documents</span>:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"D:<span style="color: #000000;">\t</span>estdoc.doc"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; oSelection:= oWord:<span style="color: #000000;">Selection</span><br />&nbsp; &nbsp; oSelection:<span style="color: #000000;">EndKey</span><span style="color: #000000;">&#40;</span> wdStory, wdMove<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; oSelection:<span style="color: #000000;">TypeParagraph</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oSelection:<span style="color: #000000;">TypeParagraph</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oSelection:<span style="color: #000000;">TypeText</span> <span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"This text was appended from Fivewin to an existing MS-Word document."</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span></div>[/code:1p68vyz5] Regards [b:1p68vyz5]Anser[/b:1p68vyz5]
word
Muchas gracias, ya probe este codigo y me ha servido. Muy agradecido Saludos Marcelo
word for Sunday
Hello friends, Although Antonio, Charly, Cristobal, Andreu, Ricardo, and everyone else involved in the mod harbor project give us so much, it will not be possible for us FIVEWINNER to start WEB PROGRAMMING without hard work and effort. It is a learning phase, and the sooner you start, the sooner you can harvest your success. mod harbor opens up the big world for us. With mod harbor I caught fire again for programming and would like to thank everyone. Have a nice Sunday, Otto
words in your search query were ignored
Is there a possibility to suppress this message? The following words in your search query were ignored because they are too common words: help. Thanks in advance Otto
words in your search query were ignored
Listbox, dialog Hello Antonio, maybe you can turn off this boarder. As the posts grow there are more and more words effected by this boarder. So if yo search for listbox and row You get Search found 348 matches: listbox row ignored: listbox Thanks in advance Otto
words in your search query were ignored
Hello Antonio, i found following posts. Regards, Otto Re: Search Settings by adiant » Fri Mar 13, 2009 12:56 am Common word "filtering" can also be disabled in the ACP (admin panel) in Search Settings: Common word threshold: Words which are contained in a greater percentage of all posts will be regarded as common. Common words are ignored in search queries. Set to zero to disable. Only takes effect if there are more than 100 posts. If you want words that are currently regarded as common to be reconsidered you have to recreate the index.adiant Registered User Posts: 89 Joined: Sat Jul 05, 2008 1:48 am E-mail adiant Top -------------------------------------------------------------------------------- Re: Search Settings by kylekangaroo » Tue Mar 24, 2009 10:36 pm I disabled the search filter..but still getting this message for movie searches like, Twilight, The Watch.. The following words in your search query were ignored because they are too common words: the watch. You must specify at least one word to search for. Each word must consist of at least 2 characters and must not contain more than 45 characters excluding wildcards. What can I do about this, so that every search yields the right results??? Thankskylekangaroo Registered User Posts: 197 Joined: Wed Jun 18, 2008 8:49 pm E-mail kylekangaroo Top -------------------------------------------------------------------------------- Re: Search Settings by adiant » Sat Mar 28, 2009 7:39 pm "If you want words that are currently regarded as common to be reconsidered you have to recreate the index." - did you recreate your search index?adiant Registered User Posts: 89 Joined: Sat Jul 05, 2008 1:48 am E-mail adiant