0
Votes
Undo
  1. Dave OBILO
  2. PowerBuilder
  3. Tuesday, 12 February 2019

 

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
0
Votes
Undo

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
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. Roland Smith
  2. Tuesday, 12 February 2019
There are no comments made yet.
  1. Tuesday, 12 February 2019
  2. PowerBuilder
  3. # Permalink
René Ullrich Accepted Answer Pending Moderation
0
Votes
Undo

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.
  1. Tuesday, 12 February 2019
  2. PowerBuilder
  3. # 1
René Ullrich Accepted Answer Pending Moderation
0
Votes
Undo

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
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. Dave OBILO
  2. Tuesday, 12 February 2019
There are no comments made yet.
  1. Tuesday, 12 February 2019
  2. PowerBuilder
  3. # 2
  • Page :
  • 1


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