Hi, is there a way to speed up the WD environment? Every time I return to the environment (be it at a breakpoint or when exiting the app) Windev comes to the foreground. But every pane, ribbon, etc seems to be repositioned and redrawn one after the other. Very annyoing. It takes at least 5 seconds to get at a breakpoint and be able to coninue working And I use breakpoint a LOT.by ArieM - WinDev Forum
I installed the required certificate a 2nd time using the 'current user' option. Then it becomes visible. Apparently that the way to go. And it is working now!by ArieM - WinDev Forum
I'm talking about a Windows server. When I run MMC (Management console) I can add a certificate snap-in in 2 ways, either as current user or local computer. It looks like Windev sees the certificates under "Certificates - current user" but not "Certificates - local computer". I thought that certificates under 'local computer' are visivle to ALL users, includiby ArieM - WinDev Forum
Hi, I want to access a webservice and need to send a valid certificate . That can be done by the HTTPCertificate() says the help. While there are several certificates on the machine I thought of using HTTPListCertificate() to list these and pick the one i need. However HTTPListCertificate() only show me 1 certificate, while I expect at least 3. Can someone give me some advice. I'm aby ArieM - WinDev Forum
Peter, I think you need single quotes around ABC and Item ABC Otherwise the statement is interpreted wrong resulting in an error.by ArieM - WinDev Forum
Michael, i gave it a quick try, unfortunately with the same result as you : an error I'm afriad I don't have the time to dig deeper, at the moment. Quite busy here... I first tried wd22/23 but then the ActiveX cannot be loaded in the first place. Then I remembered an older post where we came to the conclusion that only WD21 worked. Maybe WD and Tracker ActiveX is not a good cby ArieM - WinDev Forum
Mmh, good question, didn't think about that. I suppose you have to use your own mail-button and create the EML file yourself. That's not a big deal I think, because you already have all the info for an email like: receiver(s), subject, messagetext and so on.by ArieM - WinDev Forum
I also found a piece of code using buffers and the Transfer() function and so on. I tried to 'rewrite' it to you situation and then it looks like this. It gets a bit more technical and therefore hard(er) to follow if you are not coming from C/C++/C# …. nSize is int nTmpInt is 4-byte int bufApi is Buffer bufFile is Buffer sFile is UNICODE string sFile = "C:\Windev22\by ArieM - WinDev Forum
HI Aad, For the Send button you need to add this line to the EML file X-Unsent: 1 Otherwise the file is seen as an incoming messageby ArieM - WinDev Forum
Hi Michael, the helptalks about a Pascal string on xxx where xxxx is your length of the string looks like the one you need, I would give it a try. Although I read "String preceded by a byte that specifies the length ". Whereas a BSTR needs 2 bytes which is probably due to the fact that it is UNICODEby ArieM - WinDev Forum
Hi Derek, I did a little test in WD22 and it works too… gsGoogleApiGeoKey is string = "AIzaSyCDXsC75 etc etc my key" MyAddress is gglCoordinate MyAddress = GglAddressToCoordinates(gsGoogleApiGeoKey,"City Hall 64 Victoria Street London") Gives the right coordinates. Can you give us the code, you have issues with?by ArieM - WinDev Forum
Derek, I see 4 syntaxes of this function in the help, where the 3rd an 4th are referring to the API key. In fact these are the same as 1 and 2 WITH the option for the Google key as the extra (be it the first) parameter. Isn't that what you need? <Result> = GglGetStaticMap(<Google Key> , <Latitude> , <Longitude> , <Zoom> , <Image Width> , <Image Heby ArieM - WinDev Forum
Hi Vincent, I would say your there is nothing wrong with your code (although I would move the "is string" to the beginning instead of inside a loop - but afaik WD/WB doesn't bother) HExecuteSQLQuery does return True? Maybe dsStanden is also used somewhere else in your project and conflicts with this local one, while it is 'visible' at this point?by ArieM - WinDev Forum
The latest LST (114) has a nice example of that. It basicly is a simple image-editor and uses the drawing functions like dText and dTextRtf to add a watermark to an image and then uses dSaveImagePNG to save it to a new file. It also has some other nice features like opacity, centring and so on. Also the option to add a watermark to a bunch of files in one run. Off topic: but a undo/redo mby ArieM - WinDev Forum
Peter try something like this where I run a procedure called SP_Journal with 3 parameters. I'm not sure how to retrieve a value from that procedure. ds1 is Data Source sSQL is string bResult is boolean sSQL = StringBuild("EXEC " + "SP_Journal %1, %2, %3 ", "Test1",123,2) bResult = HExecuteSQLQuery(ds1,gctYourConnection,hQueryWithoutCorrection,sSQL)by ArieM - WinDev Forum
Thanks Ned, could very well be the case, I do have windows with some loopers where each looper row has a dozen of controls. I will keep this in mind, it's not a big deal at the moment.by ArieM - WinDev Forum
Hi, sometimes users get the following error when opening a window. "<WindowPlanningEdit> window not created by Windows. No possible reason returned by system" This is a modal window. can happen with differnet windows not this particular one. Users are on a terminal server. Windows 10 with 'Ivanti Workspace Control' on top. Anyone seen this before It happensby ArieM - WinDev Forum
JP, The Windows Event Log could give you more info. Check that first. Also I would put everything you run in a exception trap and in case of an exception weite the error to disk. That should give info whenever something goes wrong. I have something like this in the "when running the service of..." section WHEN EXCEPTION IN // Run the service YourCode() // Pausby ArieM - WinDev Forum
QuoteMy idea is now to extract the pages with a low resolution as jpg and put it in a database That could work. I've done this before using an imagecontrol to load the Original PDF. Then use the ..NumberPage and .. PageNumber properties to get the individual pages and copy them to a second control. Something like this where IMG_PDF and IMG_JPG are image controls. But image variablesby ArieM - WinDev Forum
But maybe you could also use image variables instead of controls, to avoid GUI stuff?by ArieM - WinDev Forum
Afaik GUI elements are no problem in a service configuration. As long as it isn't blocking. I once had a maintenance window which was executed as a regular exe. It opened a window with some static-controls and a progressbar and a button. When the user pressed the start-button the code to import a bunch of files was executed. This exe had to run with a user logged in. Later I added an eby ArieM - WinDev Forum
JP, Windev also has "service" functions like ServiceInstall(...), but they basicly do the same as the SC commands of Windows. Have a look at this example c:\WINDEV 22\Examples\Training\WD Service\ and try to follow what is happening. It will give you all the info you need. The example first runs like a regular executable and check on the local system if the app is already installby ArieM - WinDev Forum
in my case it is an external component by the way....by ArieM - WinDev Forum
Hi Jan, I see now I do not use a WDL but a WDK, that's the component-way. So I create an component holding all windows, querys and so on. Then do ComponentLoad(sMyComponent) And finally I do Open('My-Component'.WindowMain) This means btw that I have a specific starter-app for this project, while the component must be included in the projec, so ComponentLoad 'knowsby ArieM - WinDev Forum
As a side note to level 2: I use this option in one of my projects and I put the WDL in the database. Just using a small table with a version-field, datetime-field and a blob-field. The principle remains the same regarding the update of the client, however I do not need some shared map or copy-rights or acces to the central server. But only access to the database, which you need anyway, assumby ArieM - WinDev Forum
Thanks, looks like it's worth to switch to HFby ArieM - WinDev Forum
Fabrice, automatic modification sure is a pro. DW mentioned performance too. I think I will give it a shot in my next project. Together with your WXreplication to move only the data which has been changed.by ArieM - WinDev Forum
DW, "better performance", interesting. Can you rate that like 10% or 25% or even more speed?by ArieM - WinDev Forum
Sorry reply to cabinetman/DW/Dennis, not Darrenby ArieM - WinDev Forum
Hi Fabrice, Quoteyou are loosing so much functionality Can you give some examples of that?by ArieM - WinDev Forum