|
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
|
|
|
|
|
Let us know what the outcome was. I've come across that error several times, and it's always tricky to resolve if you think you've done everything you need to. Another possible solution to add to my bag of solutions would be good to know about.
Simon
|
|
|
|
|
I neglected to post my results last Friday.
I compared the .sln, vbproj, and class files with WinMerge. There wasn't anything different between other than the platform target and names of the files. Dunno what was causing the problem.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
I am using WebRequest class to crawl a sites.
This class is just working like a browser.
It takes more time to download the response.
Is there any idea to download only the Response Text so quickly Using .NET?
Thanks,
Nagaraj
|
|
|
|
|
Nagaraj Muthuchamy wrote: This class is just working like a browser.
In what way is it acting like a browser? Is it running the javascript on a page or something?
Nagaraj Muthuchamy wrote: It takes more time to download the response
More time than what?
Nagaraj Muthuchamy wrote: Is there any idea to download only the Response Text so quickly Using .NET?
I don't see how. It is just an HTTP wrapper around sockets. It doesn't really do that much for you. You still have to interpret the response yourself.
|
|
|
|
|
Hi, I want to implement redo - undo functionality in my winforms application developed in vb.net
Please guide
|
|
|
|
|
Think about the scope of the undo (before/after commit of data to the database)
Decide how you are going to deal with rolling back any changes in the data
Implement in code your design decisions.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
You may also want to do some reasearch into the Command pattern.
|
|
|
|
|
Hi I have one Plan try it!!!!
Use one more datagrid(2) control make that visible=false then
What ever changes u made in original datagrid control store in that 2nd one cell data in one cell. next cell address like { Row * Column) (Vice verse for undo and redo) When the user will call the undo or redo operation call that values in stack method...
may be it will help for u...
|
|
|
|
|
|
lol
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|