1. Dave O'BILOG
  2. PowerBuilder
  3. Tuesday, 12 February 2019 11:05 AM UTC

 

Hi,

subect  : smtp mail

when i generate an application in 64 bits when i use the function  :

FindMimeFromData

the application close without message .

 

it's ok in 32 bits

 

i'm based on : http://www.topwizprogramming.com/freecode_emailsmtp.html

any ideas ?

 

thanxs

 

Accepted Answer
Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 12 February 2019 13:38 PM UTC
  2. PowerBuilder
  3. # Permalink

I reviewed the definition of the function and I am pretty sure it should be:

Function long FindMimeFromData ( &
   longptr pBC, &
string pwzUrl, &
blob pBuffer, &
ulong cbSize, &
longptr pwzMimeProposed, &
ulong dwMimeFlags, &
Ref longptr ppwzMimeOut, &
ulong dwReserved &
) Library "urlmon.dll"
Comment
  1. Roland Smith
  2. Tuesday, 12 February 2019 14:36 PM UTC
It isn't clear if you are using my object to send email for if you are using just the FindMimeFromData function for other purposes.

If you are sending email, I suggest using this instead:

http://www.topwizprogramming.com/pbnismtp.html

  1. Helpful
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Tuesday, 12 February 2019 12:46 PM UTC
  2. PowerBuilder
  3. # 1

You should use datatype longptr for pointers.

https://community.appeon.com/index.php/qna/q-a/64-bit-build

 

Comment
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Tuesday, 12 February 2019 11:39 AM UTC
  2. PowerBuilder
  3. # 2

Maybe your declaration or usage of the external function is wrong. Some datatypes are different in 64 bit application.

You should show your code here.

Comment
  1. Dave O'BILOG
  2. Tuesday, 12 February 2019 12:40 PM UTC
hi,



call :

lul_rtn = FindMimeFromData(0, as_filename, ablob_filedata, &

Len(ablob_filedata), 0, 0, lul_ptr, 0)



external function :



Function ulong FindMimeFromData ( &

ulong pBC, &

string pwzUrl, &

blob pBuffer, &

ulong cbSize, &

ulong pwzMimeProposed, &

ulong dwMimeFlags, &

ref ulong ppwzMimeOut, &

ulong dwReserved &

) Library "urlmon.dll"



merci,
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.