Quantcast
Channel: WinDev Forum
Viewing all 1914 articles
Browse latest View live

Windows defender hiccup

$
0
0
Hi everybody

this is a warning for anybody out there using windows defender (the built in windows anti-virus)...

As stated numerous times on this forum, we are NOT doing something that any anti-virus likes, with our development tools, and as a result, we NEED to exclude all development directories (WX programs as well as projects ones) from the scope of our preferred AV program.

Clearly, I have had that set up correctly for many years, and I regularly add the new directories each year.
So that is not the first thing that came to my mind this morning when I couldn't create an apk in WM22.

I traced the problem to the project.sty file missing from the directory, even though the apk creation was working fine yesterday (and therefore it WAS there)...

After several hours of research, I finally decided to verify my directories' exclusions from windows defender, and I was very surprised to find the list to be EMPTY...

After adding ONE directory, the whole list magically came back from wherever it was stuck...

So, why do I spend the time to tell you all that? Just to remind you to NEVER BE SURE of anything. Yes, the exclusions WERE there... That doesn't mean that they still are or will be tomorrow. Always verify everything...

Hope this will help somebody some day

Best regards

How to make cells in specific table rows inactive [solved] (2 replies)

$
0
0
Hi,

I'd like to make the check boxes on certain table rows inactive but I'm having a hard time figuring out how to control this through code.

Any ideas?
[attachment 2592 2018-02-23_15-48-14-min.jpg]

Looking for a licensed WX (no replies)

[WM] Copy file from Mobile to PC (no replies)

$
0
0
How to copy a file from Andoid application to PC in WM, if the mobile phone and PC are on the same WiFi network, if anyone knows which command to use, Thanks
fCopyFile ...

[OT] And now for something completely different (1 reply)

$
0
0
Hi,

I would like to share with you my activity as a musician.
Recently I published two music albums, that I made in my "bedroom" studio.
One is in Dutch (Ongekende Diepte), the most recent one is in English (Dutch Treat).
I did everything myself from recording to mastering.
I played all guitars an did the vocals, the rest is all midi/sample based.
The albums are available on many music sites, the best known being
Spotify
and
iTunes

Have fun!

Kind regards,
Piet

SOAP Service and SSL (no replies)

$
0
0
Hi Forum,

I need your help:

Situation:
WD22 and WM22 (iOS and Android)

There is a WD SOAP Service running on Windows 2012 Server, and WD22 iOS and Android Apps consuming this SOAP Service.

This works very good.

Now there is the request of the customer to secure the transmission by using SSL, so I need to redirect the traffic through port 443.

Is that possible with WD? Help says no, but I can not believe that .... that would be a real show stopper :(

Best Regards

Stefan.

For Android dev , Should I upgrade WM23 (no replies)

$
0
0
I'm using WM solely for android development , Looking through french brochure for Wx23 . I can't find enough reasons to upgrade to WM23 .

maybe someone can point out reason why I must upgrade .

GPF when calling DLL with Structure (1 reply)

$
0
0
I am trying to call a 3rd party DLL from WinDev22, but whenever the function returns data I get either a GPF error or "WDTst.exe has stopped working".

I believe the issue related to the structure that I pass in and is loaded with the return data, it's described in the DLL documentation as ;

typedef struct {
unsigned char aucEPoSNumber[2+1];
unsigned char ucResponseCode;
unsigned char aucAmount[8+1];
unsigned char ucReturnREP;
unsigned char ucPaymentMode;
unsigned char aucResponseData; //optional
unsigned char aucCurrency[3+1];
unsigned char aucPrivateData[10+1];
unsigned char aucOption[(26*99)+1]; //optional (RFU)
unsigned char aucNonConcertData[50000]; //optional
}CDC__S_DATA_RECEIVE;

I've read through the WinDev documentation on DLL calls (API(), CallDLL32() and API Description) and I can see that there can be issues with C strings. So I have tried the methods described in CallDLL32, with defining strings and assigning them so my code looks like this;

s_aucEPoSNumber is string on 2		// unsigned char aucEPoSNumber[2+1]
s_ucResponseCode is string on 1		// unsigned char ucResponseCode
s_aucAmount is string on 8			// unsigned char aucAmount[8+1]	
s_ucReturnREP is string on 1		// unsigned char ucReturnREP	
s_ucPaymentMode is string on 1		// unsigned char ucPaymentMode
s_aucResponseData is string on 1	// unsigned char aucResponseData
s_aucCurrency is string on 3		// unsigned char aucCurrency[3+1]
s_aucPrivateData is string on 10	// unsigned char aucPrivateData[10+1]
s_aucOption is string on (26*99)	// unsigned char aucOption[(26*99)+1]
s_aucNonConcertData is string on 50000	//unsigned char aucNonConcertData[50000]  

strDataToReceive is Structure
  aucEPoSNumber is int
  ucResponseCode is int
  aucAmount is int
  ucReturnREP is int
  ucPaymentMode is int
  aucResponseData is int
  aucCurrency is int
  aucPrivateData is int
  aucOption is int
  aucNonConcertData is int
END

dataReturn is StrDataToReceive

WITH dataReturn
	:aucEPoSNumber=&s_aucEPoSNumber
	:ucResponseCode=&s_ucResponseCode
	:aucAmount=&s_aucAmount
	:ucReturnREP=&s_ucReturnREP
	:ucPaymentMode=&s_ucPaymentMode
	:aucResponseData=&s_aucResponseData
	:aucCurrency=&s_aucCurrency
	:aucPrivateData=&s_aucPrivateData
	:aucOption=&s_aucOption
	:aucNonConcertData=&s_aucNonConcertData
END

iReturn is int = -99
iTimeOut is int = 1*6000
cString is string =  DataToSend()
ConcertTransaction(cString,&dataReturn,iTimeOut)

I've also tried

iReturn=CallDLL32("ComConcert","ConcertTransaction",cString,&dataReturn,iTimeOut)

I've also tried the string length being with the +1, which indicates null terminated values, so for example the aucEPoSNumber as 3 instead of 2. I've also tried all the strings as simple strings and different CallingCOnvention settings.

I've run out of thing to try or read in WinDev help.

Anyone any suggestion or idea on how I could get this to work?

UBL with embedded PDF

$
0
0
Hi,

We are working on the creation of UBL files (invoices) with embedded PDF. The PDF must be encoded in base64. We managed to do this using the code
LsBase64Content is string = Encode(fLoadBuffer(LsFileName), encodeBASE64)
When we test our UBL files on https://v2.validex.net/ then mostly we get the answer 'Length of base64 value must be a multiple of four'. So approximate 1 on 4 invoices are passing the test because the length of the string is a multiple of 4.
We also tried with Crypt but this gives exactly the same result.
LsBase64Content is string = Crypt(fLoadBuffer(LsFileName),"",compressNone + cryptNone, encodeBASE64)

How can we fix that the length is a multiple of 4 and that the PDF can be retrieved by any other software?

Thank you for your advice!

Regards,
Joris

[WM] How to show all the customers in Google Maps

$
0
0
Hello to all

I'm trying to play with WM18 to create an application to see all the markers (customers) on a Google Map, reading their addresses from a database and pass the data to Google api to show a screen like that below



I would like to know which steps to follow.

Tips and tricks are appreciated.
Thanks in advance

Gianni

update windev dongle

$
0
0
Hi ,

I have an old version version 21 that I have upgraded to version 23 ( if availeble ) .
Ok How can I update the dongle software. (i already have version 22 inslatted , I used the dongle from work when working on this ) Is there an other way to upgrade the dongle . Some software to download ?

Regards

Allard

Splash Screen

$
0
0
Many many years ago I made a small application that had a splash screen that opened the program, looked a whole lot like the SPA_Halo_1024x768 image under Advanced Splash Screen in the Image catalog. I was able to add a caption and upon opening the splash screen the halo would animate and open up my caption. And if I remember correctly there was no
"Powered by WinDev" on it anywhere.
Does this type of animated splash screen no longer exist, or am I missing something in making one of the Advanced Splash Screen do my bidding.

[WD20] change one table row height

$
0
0
hi,

is it possible to just change one specific table row height without effecting the rest ?

[WD20] - Can we use Pivot Table in this scenario...

$
0
0
Hello,

I have used MS Excel's Pivot Table feature in many situations.

But I am not able to understand as to how to use the Pivot Table feature of WD.

What I am trying to achieve is that I have got a file which contains payment receipts from various customers.

Now I want to show the data in a Pivot Table so that a user can see payment details from various view points like payments received customer wise, payment details based on products (service heads), payments between given dates, payments received in Cash/Bank/CC, etc.

Is what I am thinking possible using Pivot Table as provided in WD20?

TIA

Date Conversion (2 replies)

$
0
0
Hello All,

I know this fairly simple but I am yet to find where an example is in the WD manual to use.

I need to convert date in two different formats (MM/DD/YYYY or DD/MM/YYYY) in a file into format "YYYYMMDD". Can someone help me with the command in windev?

Thanks.

Sam

[WX 22] HErrorInfo (no replies)

$
0
0
I'm having some trouble using HErrorInfo, can't get it to show me what the error was, my code is as follows:

IF ErrorOcurred() THEN
IF HerrorIntegrity() THEN
sError = HerrorInfo()
END
END

Info(sError)

It always returns empty, but if I debug that part of code, and check what HErrorInfo shows in the debugger it actually tells me what the problem was.

HTML Edit Toolbar

$
0
0
I have edit control with HTML content. The toolbar works but it does not show what items have been selected when you are typing. Is there a style choice that makes that show up or is that just something the users have learn to live with?

ScreenToFile or ScreenToSource

$
0
0
Hello Gang !

What is the Difference between ScreenToFile and ScreenToSource ??

When to use ScreenToFile and When to use ScreenToSource ??

Any Suggestions Regarding Best Practice ??

Thanks

Compare record old and new values (3 replies)

$
0
0
I have a Trigger Procedure and want to compare the values of a Modified record before the Trigger Procedure was called and after.

The after value is no problem but the old value will have been overwritten by the new.

I know there is a very easy way to do it but cannot recall how.

Obviously as the Trigger Procedure is a Global procedure I cannot check any of the edit fields as they are local and not available to the global procedure.

Thx in advance.

[WD22] How to Get Data Source from Thread (no replies)

$
0
0
1. How can I tell if a Data Source var has been initialized?
2. How can I access a threaded Data Source var in the main thread? I tried using a global data source, but that did not work. I also tried using the various constants for the second param in ThreadExecute(). Thread params are passed by value, not address, so I understand why dsRes isn't ever initialized in LoadTable().

PROCEDURE LoadTable()

IF ThreadState("ItemList") <> threadRunning THEN 
	ThreadExecute("ItemList", threadNormal, ItemList, dsRes)
	ThreadWait("ItemList", 1000)
END

FOR EACH dsRes // Error here, dsRes is not initialized
        // Fill Table (TableAddLine())
END

PROCEDURE ItemList(dsRes is Data Source)

sQry is string = "SELECT * FROM Universe"

IF NOT HExecuteSQLQuery(dsRes,hQueryDefault,sQry) THEN
	Error("Oops")
END

Viewing all 1914 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>