 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
atom0s Moderator
Reputation: 204
Joined: 25 Jan 2006 Posts: 8580 Location: 127.0.0.1
|
Posted: Thu Jan 13, 2011 1:15 pm Post subject: |
|
|
VB6 has been dead for years. Microsoft dropped support for it when VB.NET was created. (They barely supported it before that anyway lol..) You are honestly better off dropping VB6 and learning a new language. You will barely get any support here or much else anywhere for VB6. Most you will have to work with is Google searches to find any answers anymore.
The links I posted are all for .NET (C# or VB.NET) and wont work for VB6, they do not use the same definition methods. You will need to find the proper declarations for VB6 yourself. (Google.)
For the sake of the world, if you upgrade .NET, please just use C# and don't bother with VB.NET. For every person that starts coding in VB.NET, god kills hundreds of kittens.
_________________
- Retired. |
|
Back to top |
|
 |
InternetIsSeriousBusiness Grandmaster Cheater Supreme
Reputation: 8
Joined: 12 Jul 2010 Posts: 1268
|
Posted: Thu Jan 13, 2011 3:32 pm Post subject: |
|
|
Code: |
Dim Res
Dim Filename
Filename = "C:\windows\notepad.exe" 'Check file is here first
If Dir(Filename) = "" Then
MsgBox Filename & " not found", vbInformation
Else
Res = Shell("Start.exe " & Filename, vbHide)
End If |
Visual Basic 6 is old, but I can help you on this. Post back if it works.
_________________
FLAME FLAME FLAME!!!@@@ |
|
Back to top |
|
 |
Jorg hi I post too much
Reputation: 7
Joined: 24 Dec 2007 Posts: 2276 Location: Minnesota
|
|
Back to top |
|
 |
Dacnomania Expert Cheater
Reputation: 1
Joined: 03 Sep 2010 Posts: 124
|
Posted: Thu Jan 13, 2011 4:23 pm Post subject: |
|
|
VB6 has been dead for years. Microsoft dropped support for it when VB.NET was created. (They barely supported it before that anyway lol..) You are honestly better off dropping VB6 and learning a new language. You will barely get any support here or much else anywhere for VB6. Most you will have to work with is Google searches to find any answers anymore.
The links I posted are all for .NET (C# or VB.NET) and wont work for VB6, they do not use the same definition methods. You will need to find the proper declarations for VB6 yourself. (Google.)
Alright, so my personal opinion on this, seeing as I know what you're implying, I should stop using vb, but you are obviously not doing your research correctly, there a are literally millions of topics of vb 6, Millions, have a look at vbforums.com forums for one, That is just one website, that has a section with 240,077 threads and 1,366,298 posts.
I know you said what you said to advise me to upgrade from what I'm learning now, but I already made a topic covering which programming language I should do, this isn't that topic, please stay on topic or don't post. I'm not being mean here, trying to offend you, only to correct you and help you understand here. Thank you for trying in any case.
Quote: | Code:
Dim Res
Dim Filename
Filename = "C:\windows\notepad.exe" 'Check file is here first
If Dir(Filename) = "" Then
MsgBox Filename & " not found", vbInformation
Else
Res = Shell("Start.exe " & Filename, vbHide)
End If
Visual Basic 6 is old, but I can help you on this. Post back if it works.
|
Thank you a lot, I'll try this now and respond once it does, or doesn't work.
Update:
Alright so I got an error on the following:
Res = Shell("notepad.exe " & Filename, vbHide)
file name not found.
Can you please explain how the above line of code works, what it does, and how to fix this ?
Also, If you don't mind I'd like to be able to know whether the process is attached, Such as an msgbox "Process successfully attached" once it is attached.
Further more if the process isn't open then it should open it, this isn't required I can google for it but this would be nice. Thanks again.
Last edited by Dacnomania on Thu Jan 13, 2011 4:29 pm; edited 1 time in total |
|
Back to top |
|
 |
atom0s Moderator
Reputation: 204
Joined: 25 Jan 2006 Posts: 8580 Location: 127.0.0.1
|
Posted: Thu Jan 13, 2011 6:24 pm Post subject: |
|
|
Dacnomania wrote: |
Alright, so my personal opinion on this, seeing as I know what you're implying, I should stop using vb, but you are obviously not doing your research correctly, there a are literally millions of topics of vb 6, Millions, have a look at vbforums.com forums for one, That is just one website, that has a section with 240,077 threads and 1,366,298 posts.
I know you said what you said to advise me to upgrade from what I'm learning now, but I already made a topic covering which programming language I should do, this isn't that topic, please stay on topic or don't post. I'm not being mean here, trying to offend you, only to correct you and help you understand here. Thank you for trying in any case. |
vbforums.com has been around for years, though. There is a different between topics created within the last few years since it discontinued vs. since its existence all together.
Using the numbers you posted date back to Jun 22nd, 1999 (first post in the VB6 section). Which is still back when VB6 was supported. That isn't valid evidence that the language is still used by "millions", not to mention using a forums thread count is not an accurate depiction on how many users actually use the software.
March 31, 2005 was the official cut-off date of VB6 (and the rest of VS6). So you are including 6 years of supported topics.
Also, take a look at the quality of posts on those forums, and what they pertain to. 99% of them are how to do ActiveX controls, drag-and-drop, database connections etc. its all RAD development questions. Not "how to program the next gen MMO" and so on.
Its your choice to pick the language you want to use, but again I will strongly recommend to you to at least keep up with times and use languages that are both supported and used majorly in the fields you are working with.
_________________
- Retired. |
|
Back to top |
|
 |
Jorg hi I post too much
Reputation: 7
Joined: 24 Dec 2007 Posts: 2276 Location: Minnesota
|
Posted: Thu Jan 13, 2011 7:26 pm Post subject: |
|
|
I already said exactly what Wiccaan said... Wow someone deleted my post.
_________________
CEF will always stay alive. |
|
Back to top |
|
 |
InternetIsSeriousBusiness Grandmaster Cheater Supreme
Reputation: 8
Joined: 12 Jul 2010 Posts: 1268
|
Posted: Thu Jan 13, 2011 7:44 pm Post subject: |
|
|
I couldn't be any more stupid, wow.
It is:
Code: | Shell("notepad.exe") |
So simple
_________________
FLAME FLAME FLAME!!!@@@ |
|
Back to top |
|
 |
Dacnomania Expert Cheater
Reputation: 1
Joined: 03 Sep 2010 Posts: 124
|
Posted: Fri Jan 14, 2011 2:36 am Post subject: |
|
|
I couldn't be any more stupid, wow.
It is:
Code:
Shell("notepad.exe")
So simple
I asked if you could explain what it does, I already tried putting in notepad.exe, Although I wasn't sure if it actually attached.
Wiccaan wrote: | Dacnomania wrote: |
Alright, so my personal opinion on this, seeing as I know what you're implying, I should stop using vb, but you are obviously not doing your research correctly, there a are literally millions of topics of vb 6, Millions, have a look at vbforums.com forums for one, That is just one website, that has a section with 240,077 threads and 1,366,298 posts.
I know you said what you said to advise me to upgrade from what I'm learning now, but I already made a topic covering which programming language I should do, this isn't that topic, please stay on topic or don't post. I'm not being mean here, trying to offend you, only to correct you and help you understand here. Thank you for trying in any case. |
vbforums.com has been around for years, though. There is a different between topics created within the last few years since it discontinued vs. since its existence all together.
Using the numbers you posted date back to Jun 22nd, 1999 (first post in the VB6 section). Which is still back when VB6 was supported. That isn't valid evidence that the language is still used by "millions", not to mention using a forums thread count is not an accurate depiction on how many users actually use the software.
March 31, 2005 was the official cut-off date of VB6 (and the rest of VS6). So you are including 6 years of supported topics.
Also, take a look at the quality of posts on those forums, and what they pertain to. 99% of them are how to do ActiveX controls, drag-and-drop, database connections etc. its all RAD development questions. Not "how to program the next gen MMO" and so on.
Its your choice to pick the language you want to use, but again I will strongly recommend to you to at least keep up with times and use languages that are both supported and used majorly in the fields you are working with. |
The point is there are that large amount of topics on JUST that forum, And whether they're talking about activex controls, drag and drop, the point is those people use vb6, I don't know why you said "Not "how to program the next gen MMO" and so on. " I don't know why you said that, it seems you're assuming I'm dumb enough to want to make a mmo out of it, A person can learn more than one programming language.
|
|
Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Fri Jan 14, 2011 4:46 am Post subject: |
|
|
there's literally no point to learning it. it's wasted time and effort at it's best and the equivalent of committing crimes against nature at its worst.
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 204
Joined: 25 Jan 2006 Posts: 8580 Location: 127.0.0.1
|
Posted: Fri Jan 14, 2011 2:07 pm Post subject: |
|
|
http://forum.cheatengine.org/viewtopic.php?p=5178557
Quote: | But I want to learn one (well as many as I can) fluently, For programming software as well as making games, I have a big desire for making an online game such as, for example Sherwood dungeon. |
This is why I keep saying. You already mentioned in another topic you want to do game development. Along with that you asked for others opinions and you just shut down and keep defending VB. Its your choice, but don't ask for help/opinions if you aren't truly open to hearing them.
_________________
- Retired. |
|
Back to top |
|
 |
InternetIsSeriousBusiness Grandmaster Cheater Supreme
Reputation: 8
Joined: 12 Jul 2010 Posts: 1268
|
Posted: Fri Jan 14, 2011 2:41 pm Post subject: |
|
|
Dacnomania wrote: | I couldn't be any more stupid, wow.
It is:
Code:
Shell("notepad.exe")
So simple
I asked if you could explain what it does, I already tried putting in notepad.exe, Although I wasn't sure if it actually attached.
|
It launches the .exe specified. It works, trust me.
Also, how to open an internet website:
Code: | Dim theWebSite As String
theWebSite = "http://cheatengine.org"
Call Shell("explorer.exe " & theWebSite, vbNormalFocus) |
Or
Code: | Dim ret As Long, theWebSite As String
theWebSite = "http://www.cheatengine.org"
ret = ShellExecute(Me.hwnd, "open", theWebSite, vbNullString, vbNullString, 3)
If ret < 32 Then MsgBox "There was an error when trying to open a default browser", vbCritical, "Error" |
Or
Code: | Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Const SW_SHOW = 5
Put this Public Sub at the bottom of all your code:
Public Sub OpenWebsite(URL As String)
Dim ret&
ret& = ShellExecute(Me.hWnd, "Open", URL, vbNullString, vbNullString, SW_SHOW)
Then this code in your button/menu etc...
]OpenWebsite "http://www.cheatengine.org" |
_________________
FLAME FLAME FLAME!!!@@@ |
|
Back to top |
|
 |
Dacnomania Expert Cheater
Reputation: 1
Joined: 03 Sep 2010 Posts: 124
|
Posted: Sat Jan 15, 2011 7:39 am Post subject: |
|
|
Alright thanks dude!
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|