West Wind Message Board Update Monday The West Wind Message Board we use for support has gotten a visual and slight functional makeover. We've updated the styling to look a bit more...
Html Help Builder 4.66 released Jan. 19, 2012 West Wind Technologies has released version 4.66 of West Wind Html Help Builder. Help Builder produces documentation for Html Help (CHM), Web ready...
Html Help Builder 4.65 released Dec. 14, 2011 West Wind Technologies has released version 4.65 of West Wind Html Help Builder. Help Builder produces documentation for Html Help (CHM), Web ready...
West Wind Web Service Proxy Generator 1.20 released Nov. 18, 2011 West Wind Technologies has released an update to the Web Service Proxy Generator tool which lets you easily create FoxPro clients to call complex...
Nice and easy. For the MD5 part You could also employ Craig Boyd's vfp encrytion fll, that offers MD5 support also:
http://www.sweetpotatosoftware.com/spsblog/2009/08/09/MajorVFPEncryptionUpdate.aspx
Regards from Berlin
Frank
Could any of you pls give me a simpler way to do this. I would appreciate some simpler code that would display a form with a textbox and a dbf (not SQL).
Thanks in advance.
adam7171@gmail.com
i want to use the mplayer in slave-mode with my vfp-application, so i have to write in the mplayer-console. do you have any informations for me.
Klaus
So here, you want the Setfocus just before the Gotfocus, which means the Activate is the most logical place (just don't forget to add code that it is only done the first time the activate gets called)
loListener = CREATEOBJECT("RLUTF8") TRY REPORT FORM YourReport OBJECT loListener prevCATCH TO loExc MESSAGEBOX(loExc.Message)ENDTRY DEFINE CLASS RLUTF8 AS REPORTLISTENER ListenerType = 1 PROCEDURE Render LPARAMETERS nFRXRecNo ; , nLeft, nTop, nWidth, nHeight ; , nObjectContinuationType ; , cContentsToBeRendered ; , GDIPlusImage
LOCAL lcExpr, lcResult, llStrConv SET DATASESSION TO This.FRXDataSession GO nFRXRecNo *-- Check User data in report definition IF User = "<UTF-8>" OR User = "<UNICODE>" lcExpr = Expr llStrConv = User = "<UTF-8>" ENDIF SET DATASESSION TO This.CurrentDataSession IF !EMPTY(lcExpr) lcResult = EVALUATE(lcExpr) IF VARTYPE(lcResult) = "C" IF llStrConv *-- Report field is in UTF-8 - convert it to Unicode cContentsToBeRendered = STRCONV(lcResult, 12) ELSE *-- Report field is in Unicode already cContentsToBeRendered = lcResult ENDIF ENDIF ENDIF DODEFAULT(nFRXRecNo ; , nLeft, nTop, nWidth, nHeight ; , nObjectContinuationType, cContentsToBeRendered, GDIPlusImage) NODEFAULT ENDPROCENDDEFINE
I have some .net controls I use in VFP that were created with the Interop Forms Toolkit. Is there any way to host these directly, and if so, how would one go about it?
Thanks
Dennis
Cheers
Cesar
http://www.pinvoke.net/default.aspx/kernel32.allocconsole
I finally found it. Under Project Properties, Linker, Input, Additional Dependencies, it was hardcoded to look for the path:
C:\programs\vs2005\SDK\v2.0\Lib\mscoree.lib
I had been modifying the VC++ Directories settings and not the Linker paths. Sheesh....
But that brings up a question that maybe you have run into? I work on two different laptops (well 3 actually). Two of them are Win7 64 and one is Win7 32. On the 64 bit machines mscoree.lib is located here:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\mscoree.lib
but on the 32 bit of course it is located here:
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib\mscoree.lib
As a test, I put the invalid directory path there along with the valid (x86) path hoping I could compile on either/or machine, but of course the invalid path errors. Is there anyway to set that so it looks only at the valid location and ignores the invalid path so I can compile on either machine so I don't have to change the setting if I compile on the 32 bit Win7 machine?
Here's what I did: I added a property for ClrVersion and a method to set it via an API function call:
BSTR ClrVersion = NULL;
DWORD WINAPI SetClrVersion(char *version){ ClrVersion = CComBSTR(version); return 1;}
Then in the call to CorBindToRuntimeEx that version number is used:
//Retrieve a pointer to the ICorRuntimeHost interface HRESULT hr = CorBindToRuntimeEx( ClrVersion, //Retrieve latest version by default L"wks", //Request a WorkStation build of the CLR STARTUP_LOADER_OPTIMIZATION_MULTI_DOMAIN | STARTUP_CONCURRENT_GC, CLSID_CorRuntimeHost, IID_ICorRuntimeHost, (void**)&spRuntimeHost );
This allows your code to specify which version gets loaded. You can still pass NULL to select the latest version, but this was broken with .NET 4.0 which got a new set of hosting APIs that are different, so NULL with .NET 4.0 usually still loads .NET 2.0 unless that's not installed - which is very lame.
Just testing this and the error returned is:
The assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
I tried recompiling ClrHost under VS2010 (the same version my .net dll is built from) and the project cannot find mscoree.lib for some reason:
error LNK1104: cannot open file 'C:\programs\vs2005\SDK\v2.0\Lib\mscoree.lib'
I went to the project's properties and added :C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\x64;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib;$(LibraryPath)
to the Library Directories under Configuration Properties VC++ Directories to no avail.
Any ideas?
Sorry for posting here - couldn't find your e-mail address.
I'm the leading editor of Software Developer's Journal which is a new e-magazine. I'm looking for developers who want to share their knowledge with other developers. If you are interested in cooperation (articles writing, proofreading, ads) just please let me know - roger.zacharczyk@software.com.pl
Thanks a lot for your help!
"ApplicationHost.config lives in the <windows>\system32\inetsvr directory"
In case someone may (as I did) try to copy paste that to find it, it should instead be:
<windows>\system32\inetsrv\config
And Rick, in case you may consider changing it in the original entry, note that it's not just adding the \config, but also changing intsvr to inetsrv.
loObject = SYS(3096, lnDispHandle)
can you tell me what the equivalent command would be in vb
I'm writing an API that will be called by others. The API can be exposed to .NET clients as well as unmanaged C++ clients. One of my APIs actually pops a nice looking dialog that is implemented with WPF using .NET 3.5. I don't want to force the clients of my API to enable /CLR on their unmanaged apps so I will just load the CLR for them whenever they call the relevant APIs.
OK, the window I'm showing has some very custom UI elements and would be prohibitively difficult to implement in MFC or to-the-metal Win32 APIs.... This seems to be the easiest way to show WPF UI in an unmanaged client without forcing the /CLR build option on the clients.
Any thoughts? I know there will be some performance penalties (memory and speed) but probably no more than any other .NET app...
laFiles = loBridge.InvokeStaticMethod("System.IO.Directory", "GetFiles","c:\")? laFiles? laFiles.Count? laFiles.Item(0)
Thanks for the details on this setting.
REPORT FORM (lcReport) &lcExtraReportClauses NOCONSOLE TO FILE &lcTFile
command? Can't find any info on this and from my testing this is the case.
The Lame driver is a converter and it's a DLL you can access fairly easily with WinAPI code in Fox. However, that doesn't help with recording first. Audio recorder might be automatable but there are probably better solutions out there in the form of ActiveX controls. Jim Murez (Harvey Mushman) had been playing around with some of this some time ago and I remember the controls he used weren't very pricey.
--jim
Also make sure that if you're mapping to an ISAPI extension you set the ISAPI/CGI restriction to allow access to the DLL.
Now I have tried the following
1 - Checked to make sure that certain settings in the "Turn Windows Features On / Off" for IIS are checked
2 - When I did this I followed you above instructions and made sure that the "IIS Metabase and IIS 6 configuration compatibility" is set.
3 - I even turned the "virtual directory" that I had created in IIS into an “application” directory.
4 – I then explored the “MIME Types” area and added a “.asp” extension. This did get rid of the above initial error “HTTP Error 404.3” but then when I tried to view the page a dialog box “File Download – Security Warning” came up saying “Do you want to open or save this file”. You can click on “open”, “save” or “cancel”. Whichever one you chose does not matter as this is not the expected result in the first place as the page should have just opened up in the browser. 5 – I also made sure that in IIS the page being requested was set as the default page to display
Any help you may have would be great. Kind regards Gunnar
SELECT TRIM(lastname)+' , ' + firstname from table ....... Or SELECT ALLTR(lastname)+' , ' + firstname from table ....... However a easier way is :- SELECT lastname - (', '+firstname) from table ......... The '-' is a another concatenation operator that removes trailing blanks from the element preceding the operator then joins two elementsthere is a difference between using the '-' operator and ALLT in the above example. The latter removes all blanks from last name while the former moves the trailing blanks from last name and adds them to the end of the resulting expression.This is handy if you want the size of the resulting field to be equal to the total size of its elements.