|
Thank you very much Benjamin for your reply.
From Yesterday evening I got 2 illuminations and I found two solutions to my problem.
The first solution I found was using the 2 user32.dll function (GetForegroundWindow and GetWindowText) to retrieve the correct window i need to post message and then send the message throught the user32 function SetWindowText. In This way thorught the events TextChange of my second application I was able to get the message. But I didn't love so much this solution so i found this other one.
The second solution as been found on codeproject to this link Send strings to another application by using Windows messages[^]
I made a dll that will be imported in all my applications and in this way i'm able to get message.
I knew that throught pipe were possible to solve my problem but I afraid that my friend will not be able to use pipe in VB6 so I needed to find a solution also usable throught VB6......
|
|
|
|
|
VB6 can use named pipes. It's just not supported in anything convenient like it is in the .NET Framework. He'll just have to build his own VB6 code implementation on top of Windows function calls to make his support for it.
|
|
|
|
|
JackMisani wrote: Thank you very much Benjamin for your reply.
His name's Nathan. The bit at the bottom of the message is his "signature", which is a quote from Benjamin Disraeli[^]; he's not actually the 1st Earl of Beaconsfield.
Similarly, I am not Homer[^].
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I was willing to let him believe that.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
Hi,
i wrote a small vb.net console application for sending emails to a gmail-account.
The application works fine on my developement-system ( wondows 10).
When i distribute the application to Windows server 2012 r2 the app did not send the email, the app termine without error but the email was not send.
i try allready to switch firewall off, but without success.
Anybody has a idea what can be wrong?
The code loke like this:
Imports System.IO
Imports System.Net.Mail
Imports System.Net
Sub Main()
Try
Dim loMessage As MailMessage = Nothing
Dim loClient As SmtpClient = Nothing
loClient = New SmtpClient()
loClient.Timeout = 50000
loClient.Host = "smtp.gmail.com"
loClient.Port = 587
loClient.EnableSsl = True
loClient.Credentials = New System.Net.NetworkCredential("test@gmail.com", "xxxxxxxxxx")
loMessage = New MailMessage()
loMessage.IsBodyHtml = True
loMessage.From = New MailAddress("xxxxxx@gmail.com")
loMessage.To.Add(New MailAddress("xxxxxx@bluewin.ch"))
loMessage.Subject = "Betreff"
loMessage.Body = "Test Ihre Daten..."
loClient.Send(loMessage)
Catch ex As Exception
Dim file As System.IO.StreamWriter
file = My.Computer.FileSystem.OpenTextFileWriter("c:\tmp\err.txt", True)
file.WriteLine(ex.ToString)
file.Close()
End Try
End Sub
|
|
|
|
|
Make sure that the server anti-virus isn't implementing "mass mailing protection". I've had that problem with McAfee Enterprise.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
Thanks for the hint, but i did not use mc-affee and for testing i had disabled the installed anti-virus.
|
|
|
|
|
Thanks solved!!!
modified 9-May-16 8:02am.
|
|
|
|
|
Most likely because you spelled "debug" incorrectly, one 'g' not two.
However, it appears that you are trying to mix a Windows program with a console app, and you give no clue where this message appears from.
|
|
|
|
|
HI, I tried both in ConsoleApplication and in wpf...on another pc it WORKS on wpf application...I have on mine 2010 version...the same message appears on both applications...'c\....exe is missing. Looked over all google advices I could find, tried all but nth...in wpf it does not work on my pc either..but on another it does...???(code is copy/pasted)
|
|
|
|
|
Very interesting, but it tells us nothing. You need to explain exactly what happens, where the code fails and what results or messages you see, or expect but do not see.
|
|
|
|
|
I get the message that the .exe file does not exist. Otherwise, the code should create simple xaml file.
|
|
|
|
|
Member 12473290 wrote: the message that the .exe file does not exist. Then you know what to do.
|
|
|
|
|
Please, I am complete beginner, I looked all arround google to find the answer but no success. Is there a usefull link or sth? many thanks!!!
|
|
|
|
|
The shortcut you're clicking on doesn't go anywhere. It's pointing an .EXE file that isn't there!
|
|
|
|
|
I answered this question in the very first reply to you, which you have ignored. And we still have no real idea what your problem is, apart from the fact that 'something' cannot find your program. If you do not know where it is then how do you expect a bunch of strangers to know? We have no access to your system, so cannot see your screen, or search your hard drive.
|
|
|
|
|
In future, please do not remove the original problem; a forum like this works better if it remains because someone else might come across a similar issue but because you've removed it, they might miss that you had the same thing and would thus miss the solution.
|
|
|
|
|
How to connect and open firebird 3 database with vb
Net
yung
|
|
|
|
|
|
I trying that but still cannot open connection. Can u help me mr with sample source code for every body in codeproject. Tq u very much mr
yung
|
|
|
|
|
Please show what you have tried.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
Tq u all, firebird 3 must be using embeded server type to connect with database
yung
|
|
|
|
|
How to secure web application not copy code
|
|
|
|
|
If you like to get a helpful answer you shouldn't use the subject line for the message body.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|