|
Do you get the error in VB or returned from yahoo?
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I guess Yahoo. He is sending single character email id which is actually not supported.
C isn't that hard: void (*(*f[])())() defines f as an array of unspecified size, of pointers to functions that return pointers to functions that return void
"Always program as if the person who will be maintaining your program is a violent psychopath that knows where you live." - Martin Golding
|
|
|
|
|
i got the error in vb.
jyn
|
|
|
|
|
It would appear that the local-part of the address cannot be a single character. There MAY be a requirement that the address have at least 2 characters. You can test this yourself just by adding various addresses to the To property and see what happens. You do this WITHOUT actually sending the message!
Now, if that works, the limit appears to be imposed by Yahoo's mail server, in which case, there's nothing you can do about it, unless you try using a different SMTP server.
|
|
|
|
|
hello,
i tried various email addresses but still i got the same error.
do i need to add any reference in my project or something like that just to send email?
thanks.
jyn
|
|
|
|
|
You've already added the appropriate reference, otherwise the code wouldn't even compile.
It would appear that the server is rejecting your attempts to send mail.
|
|
|
|
|
Hi everybody
I already knew that we can use visual basic to control the other application such
as Microsoft Word, Excel, etc. How s about the other application. Is there any general method
we can use to interface visual basic with any software
For example: currently, I am doing measurement with PC as the monitor device. Every time, I must copy
the result by hand. If there s a way for me to interface visual basic with the software,the result can be copied automatically (to some text file, for example)
Best regards.
|
|
|
|
|
There is no way to control a piece of software that doesn't seek to expose a method of control, unless it's through getting window handles and sending events to controls, which is notoriously flaky and unreliable.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thank you for ur response.
I still have some doubts. Can we use the functions in the DLL of the software
|
|
|
|
|
Member 4159690 wrote: the functions in the DLL of the software
This is the exposed interface CG is talking about.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
It is not a very clean way of doing it but I have controlled an application using a combination of system.diagnostics.process.start and sendkeys
http://msdn.microsoft.com/en-us/library/8c6yea83(VS.85).aspx[^] You can use this to have some control over the application, it could work if you don't need to do anything special... I used this to make an application print each time a different files was open. When trying to do this just figure out what key strokes it takes to do the process you are trying to accomplish.
Humble Programmer
|
|
|
|
|
I have an Application in VB6.0 and I'm enable to send the mail & attachments
and my Application Design is like that:
|
|
|
|
|
Good for you!
Or were you trying to ask a question??
|
|
|
|
|
jigar_arps wrote: I have an Application in VB6.0 and I'm enable to send the mail & attachments
and my Application Design is like that:
That's nice, and your point being?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
This entire thread confused me.
|
|
|
|
|
They are just saying the fact that the person didnt actually ask anything.
Lloyd J. Atkinson
|
|
|
|
|
Hi All!
I think they mean 'unable' instead of 'enable'. As for the 'and my Application Design is like that' I have no idea.
MrWolfy
|
|
|
|
|
I would say that your core issue is that VB6 is crap, unsupported, and extinct. Why are you using it ? ( Also, as others said, you've not actually asked a question, did you mean to ask how to send mail ? )
I would suggest two things:
1 - write meaningful headers, 'VB code' doesn't cut it
2 - make sure you put VB6 in the header, it is literally a dead language, and you need to do all you can to attract the few poor suckers on this earth still stuck writing it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: the few poor suckers on this earth still stuck writing it
Oh you mean kissdnuts who is now jon_boy for some reason.
Poor buggers stuck remediating some old VB6 code by the sounds of it!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
jigar_arps wrote: and my Application Design is like that:
Is your Application Design empty?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I have a .Net interop .dll. The .dll is registered with regasm. If I open VB6 and use the following syntax, everything is peachy:
Dim o As New Utils.ObjectChecker
msgbox o.CheckObjects("C:\windows\system32")
However I must be able to call this particular interop .dll without a reference in the VB6 project, so I change to the code as follows:
Dim o As Object
Set o = CreateObject("Utils.ObjectChecker")
msgbox o.CheckObjects("C:\windows\system32")
When I attempt to recompile and run in VB6, I get: Run-time error 429. ActiveX component can't create object.
I found the following MS support article and have verified I have a valid parameterless constructor, register for COM interop, etc, etc (obviously this is the case since example 1 works fine).
Any obvious ideas on what I might be overlooking or doing wrong here?
Thanks guys (and gals if there are any?)
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
did you specify what the ProgID (project.class) is in your class definition?
<microsoft.visualbasic.comclass(),ProgId("Utils.ObjectChecker")> _
Public Class ObjectChecker
.
.
.
End Class
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
VB looks for the specified dll in the same directory as the application.
Note that if you are running inside the VB IDE, this means "c:\program files\visual studio\vb98\" not the location of your source code.
Either try copying your .net dll to this directory. Or try running your VB6 program built as an .exe with the .net dll in the same directory.
Also, I think there is an environment variable (something like "devpath") that you can set to tell VB to search other directories for required dlls.
Simon
|
|
|
|
|
nlarson11 wrote: did you specify what the ProgID (project.class) is in your class definition?
Yup.
<system.runtime.interopservices.progid("utils.objectchecker")> _
<comclass(objectchecker.classid,> _
Public Class ObjectChecker
Public Const ClassId As String = "4DF90706-7164-4c14-BD84-2A123885C706"
Public Const InterfaceId As String = "ED9298F8-EA4F-4c2f-93C0-66E3ACF0CD47"
Public Const EventsId As String = "DDD41717-C928-4374-B2FC-D3DD1A423717"
Simon Stevens wrote: Either try copying your .net dll to this directory. Or try running your VB6 program built as an .exe with the .net dll in the same directory.
Thanks for the suggestions and ideas.
I was pretty certain what I had was correct, so I created a new solution. I copied and pasted my code from the orig. ObjectChecker class in it's entirety and changed the guids. I cleaned the registry of any references to Objectchecker. Compile with new solution and everything works as expected.
If I go back to the orig and retest - error still exists. I did a "clean" and rebuild, error still exists. Not sure what's diff between the two solutions (I've verified the project properties and everything looks the same). The are very files used in this particular project, so I'm about to use WinMerge to see what's different between the project files......just curious as to what setting/change is causing this in the orig vs. the new solution (incase this happens in the future).
Sigh.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
I changed my screenname to something well................less offensive. No one's ever complained, but it's probably just a matter of time.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|