Home > Software engineering >  [directions] genuflect is begged VB support using SslStream. Write send information?
[directions] genuflect is begged VB support using SslStream. Write send information?

Time:11-02

Using VB to write a send notification component, has written in c # before a, can normal use, using VB to write a console output is very normal, after debugging also see through the code at the bottom of the
ApnsStream. Write (notification. ToBytes ())

In c # project, after the write () method, the message is written to the SslStream stream and send out, but this code is executed in VB, information seems not been sent out,
To check on the MSDN, no example of VB code in the write method, the explanation is "there is no available code examples or does not support the language,"
Don't know if the VB don't support using SslStream. Write () sends the message,
Pray god give directions

CodePudding user response:

Don't be A language code is modified to B language code busywork,
Also don't use A language code to directly invoke B language code base, this complicated things so easy to get wrong,
Just make A, B language code of input and output is redirected to A text file, or modify A, B language code let it through text file input and output,
Can easily make A, B coordination between the two languages,

CodePudding user response:

reference 1st floor zhao4zhong1 response:
don't do A language code is modified to B language code busywork,
Also don't use A language code to directly invoke B language code base, this complicated things so easy to get wrong,
Just make A, B language code of input and output is redirected to A text file, or modify A, B language code let it through text file input and output,
You can easily make A, B coordination between the two languages,


Is the fact that the project is now VB, need to use VB to write a push notification to the IOS program components, c # version of the hand, according to write a VB,
C # run correctly, can push to send, handheld terminal also can receive, but has no effect, VB code to run there is no problem, no logic problems,
Debugging and running the c # code, I found that in running SslStream. Write () method, the message is sent to the notification server,
Debugging and running, but also run the SslStream in VB. The Write () method has no effect, after operation and no exceptions, is no result
Check the MSDN, in SslStream. Write () method with c # sample code, but VB Write without this sample, or do not support the language, is a VB does not support SslStream. Write () method? Pray god to guide
  • Related