 |
| VB How-To Ask your "How do I do this with VB?" questions in this forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

January 10th, 2008, 10:50 PM
|
|
Registered User
|
|
Join Date: Jan 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Global Syntex errors :(
Code:
Global recv_key(1, 256)
Global send_key(1, 256)
Global cl_recv_countr(1), cl_send_countr(1), sv_send_countr(1), sv_recv_countr(1)
Global listen_port, server_ip, server_port, game_port, game_ip
Global keye3, keye4
Global first_game_packet, first_game_packet2
Global g_accid
Dim tpr As String
Global skill_time, jump_time, b1
Global invent(5000), invent_count
Private Declare Function Beep Lib "kernel32" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long
Private Declare Function timeGetTime Lib "winmm.dll" () As Long
Public Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpBaseAddress As Object, ByVal lpBuffer As Object, ByVal nSize As Long, ByVal lpNumberOfBytesWritten As Long) As Long
Global prv_plyr
Global globalBCrecv
Global bc(20, 3)
All the globals are supposed to be naming a function, it worked in VB6 but im migrating to VB.Net,,, any ideas
|
|

January 11th, 2008, 08:26 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
|
|
The global are variables, not function.. what is not working in .net?
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
|
|

January 11th, 2008, 11:57 AM
|
|
Registered User
|
|
Join Date: Jan 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Everyting isnt working yet it ALL worked fine on VB6,,, heres the new source code http://dyny.mine.nu/antidote/download/file.php?id=16 if you wanna take a look, I know those values are variables but there also functions aswell  So whatcha think? the program is a proxy,
|
|

January 11th, 2008, 01:52 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
|
|
What errors did the upgrade wizard throw?? you always has to touch something to make a vb6 program work in .net..
there are 3 functions (the declare lines) that are api calls..
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
|
|

January 11th, 2008, 11:44 PM
|
|
Registered User
|
|
Join Date: Jan 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
It showed " Error - As Any is not supported " so i changed the Any to Object which solved that problem, the only other error I have is with the Global Syntex errors but it doesnt say why,,, it also says everything is not a declared name when they all should be
Please download it and tell me what I have dont wrong,
http://dyny.mine.nu/antidote/download/file.php?id=16
my english isnt very good so i try hard, thankyou.
|
|

January 12th, 2008, 08:29 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
|
|
well.. all the variables should be declare as something (like a as string)...
solve that... and see what happens next...
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
|
|

January 14th, 2008, 07:03 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
|
|
In VB, declaring variables without establishing their type made Variants. .NET does not support Variants.
Just a tip: when you are asked a question, answer it. the person asking the
question often has a thought, and asks a question to verify or falsify that
idea.
Gonzalo asked: "What is not working in .NET?"
You answered: "Everything isn ât working . . ."
Your answer should have been something like what actions you take
that raise an error notification, and what that notification said.
As you can see, Gonzalo has to rephrase the question to get you to
answer in a helpful way. Remember, those trying to figure out what
is going on only have your input to go by, while you have all of the
interaction with the computer to guide you. You have to be our
eyes.
|
|
 |