Help-visual Basic Error
i really new to programming i took a class in high-school that taugh an easy program(turing)
right now im trying to get into programming so i am trying to help the devs of a game.
Code: URLManager.cxx URLManager.cxx C:Program FilesMicrosoft Visual StudioVC98INCLUDEmswsock.h(69) : error C2065: 'SOCKET' : undeclared identifier C:Program FilesMicrosoft Visual StudioVC98INCLUDEmswsock.h(69) : error C2146: syntax error : missing ')' before identifier 's' C:Program FilesMicrosoft Visual StudioVC98INCLUDEmswsock.h(69) : warning C4229: anachronism used : modifiers on data are ignored C:Program FilesMicrosoft Visual StudioVC98INCLUDEmswsock.h(73) : error C2059: syntax error : ')' C:Program FilesMicrosoft Visual StudioVC98INCLUDEmswsock.h(89) : error C2146: syntax error : missing ')' before identifier 'hSocket' C:Program FilesMicrosoft Visual StudioVC98INCLUDEmswsock.h(89) : warning C4229: anachronism used : modifiers on data are ignored C:Program FilesMicrosoft Visual StudioVC98INCLUDEmswsock.h(96) : error C2059: syntax error : ')' C:Program FilesMicrosoft Visual StudioVC98INCLUDEmswsock.h(101) : error C2146: syntax error : missing ')' before identifier 'sListenSocket' C:Program FilesMicrosoft Visual StudioVC98INCLUDEmswsock.h(101) : warning C4229: anachronism used : modifiers on data are ignored C:Program FilesMicrosoft Visual StudioVC98INCLUDEmswsock.h(109) : error C2059: syntax error : ')' C:Program FilesMicrosoft Visual StudioVC98INCLUDEmswsock.h(131) : error C2146: syntax error : missing ')' before identifier 'hSocket' C:Program FilesMicrosoft Visual StudioVC98INCLUDEmswsock.h(131) : error C2165: 'left-side modifier' : cannot modify pointers to data C:Program FilesMicrosoft Visual StudioVC98INCLUDEmswsock.h(131) : error C2071: 'LPFN_TRANSMITFILE' : illegal storage class C:Program FilesMicrosoft Visual StudioVC98INCLUDEmswsock.h(138) : error C2059: syntax error : ')' C:Program FilesMicrosoft Visual StudioVC98INCLUDEmswsock.h(146) : error C2146: syntax error : missing ')' before identifier 'sListenSocket' C:Program FilesMicrosoft Visual StudioVC98INCLUDEmswsock.h(146) : error C2165: 'left-side modifier' : cannot modify pointers to data C:Program FilesMicrosoft Visual StudioVC98INCLUDEmswsock.h(146) : error C2071: 'LPFN_ACCEPTEX' : illegal storage class C:Program FilesMicrosoft Visual StudioVC98INCLUDEmswsock.h(154) : error C2059: syntax error : ')' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(35) : error C2378: 'SOCKET' : redefinition; symbol cannot be overloaded with a typedef C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(51) : error C2146: syntax error : missing ';' before identifier 'fd_array' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(51) : error C2501: 'SOCKET' : missing storage-class or type specifiers C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(51) : error C2501: 'fd_array' : missing storage-class or type specifiers C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(58) : error C2059: syntax error : ')' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(707) : error C2143: syntax error : missing ';' before '__stdcall' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(707) : error C2501: 'SOCKET' : missing storage-class or type specifiers C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(707) : error C2146: syntax error : missing ')' before identifier 's' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(707) : warning C4229: anachronism used : modifiers on data are ignored C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(707) : error C2501: 'accept' : missing storage-class or type specifiers C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(708) : error C2059: syntax error : ')' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(712) : warning C4229: anachronism used : modifiers on data are ignored C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(724) : error C2146: syntax error : missing ')' before identifier 's' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(724) : warning C4229: anachronism used : modifiers on data are ignored C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(725) : error C2059: syntax error : ')' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(735) : error C2146: syntax error : missing ')' before identifier 's' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(735) : warning C4229: anachronism used : modifiers on data are ignored C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(735) : error C2059: syntax error : ')' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(741) : error C2146: syntax error : missing ')' before identifier 's' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(741) : warning C4229: anachronism used : modifiers on data are ignored C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(741) : error C2059: syntax error : ')' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(743) : error C2146: syntax error : missing ')' before identifier 's' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(743) : warning C4229: anachronism used : modifiers on data are ignored C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(744) : error C2059: syntax error : ')' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(749) : error C2146: syntax error : missing ')' before identifier 's' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(749) : warning C4229: anachronism used : modifiers on data are ignored C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(749) : error C2059: syntax error : ')' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(751) : error C2146: syntax error : missing ')' before identifier 's' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(751) : warning C4229: anachronism used : modifiers on data are ignored C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(752) : error C2059: syntax error : ')' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(754) : error C2146: syntax error : missing ')' before identifier 's' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(754) : warning C4229: anachronism used : modifiers on data are ignored C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(755) : error C2059: syntax error : ')' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(757) : error C2146: syntax error : missing ')' before identifier 's' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(757) : warning C4229: anachronism used : modifiers on data are ignored C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(757) : error C2059: syntax error : ')' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(759) : error C2143: syntax error : missing ';' before '__stdcall' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(759) : error C2501: 'SOCKET' : missing storage-class or type specifiers C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(759) : error C2086: 'SOCKET' : redefinition C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(824) : error C2146: syntax error : missing ')' before identifier 's' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(824) : warning C4229: anachronism used : modifiers on data are ignored C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(825) : error C2059: syntax error : ')' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(827) : error C2146: syntax error : missing ')' before identifier 's' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(827) : warning C4229: anachronism used : modifiers on data are ignored C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(827) : error C2086: 'WSARecvEx' : redefinition C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(827) : error C2059: syntax error : ')' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(829) : error C2011: '_TRANSMIT_FILE_BUFFERS' : 'struct' type redefinition C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(843) : error C2146: syntax error : missing ')' before identifier 'hSocket' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(843) : warning C4229: anachronism used : modifiers on data are ignored C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(843) : error C2086: 'TransmitFile' : redefinition C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(850) : error C2059: syntax error : ')' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(855) : error C2146: syntax error : missing ')' before identifier 'sListenSocket' C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(855) : warning C4229: anachronism used : modifiers on data are ignored C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(855) : error C2086: 'AcceptEx' : redefinition C:Program FilesMicrosoft Visual StudioVC98INCLUDEwinsock.h(863) : error C2059: syntax error : ')' C:WindowsDesktopzflag-2.0.0-2005011zflagsrccommonURLManager.cxx(29) : fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory VotingBooth.cxx WordFilter.cxx Generating Code... Error executing cl.exe.
3D.lib - 69 error(s), 121 warning(s) any help would be appreciated
-carnage
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Visual Basic Runtime Error "Error Saving Document
Dear all,
I am saving a document from vb. While saving I get this error. This error occurs only when I run the exe file. This problem doesnt occur while developing the project.
There is no problem with the path. What else may be the problem?
How to rectify this error " Error saving Document" in visual basic 6.0
Pls Help, this is very urgent.
Thanks to all.
Rgds,
Visha
Error Visual Basic: ! Compile Error. Can't Find Project Or Library
Hi all,
When running a program I made in VB under Windows XP i'm getting the
following error: ! Compile error. Can't find project or library. (see also
http://home.kabelfoon.nl/~hspies/2.jpg )
See the code where it stucks: http://home.kabelfoon.nl/~hspies/1.jpg
Ubder Windows 98 this error does not occur. Who knows what I do wrong, I've
tried a lot but the error keeps coming in Win XP. Thanks.
John
Visual Basic Error
I need some help with an error message I'm getting. I wrote a program in Excel and VB, and added some coding in that another person wrote. When someone using Windows and Office XP uses this part of the program with certain inputs, they will get this error. When I run it on my Windows and Office 2000 machine, I can't recreate the error at all; everything works fine. The person who wrote this said that it would work for Windows and Office XP.
Here is the error:
-2147217887 Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
I just need to know what this kind of message may mean, or where I can go to find out what this kind of message may mean!
Thanks!
Visual Basic Error, Plz Help
Ok so, I open visual basic 2005 C++ Express, yada yada yada...
I click file, > New > Project
the window pops up of course.
I select Windows Forms Application
Then I set a name and click ok or go, or w/e haha
But then I get a error message saying
"c:Documents and settings<<my name>>My documentsVisual Studio 2005projects<<project name>><<project name>>Form1.h Cannot open file."
Now dont get me wrong I do realise what this means... Im not that stupid. But I cant seem to figure out how to fix it... help some one?
Help Me!! - Visual Basic Error
Hello, My name is Zack and i've been ok with Visual Basic 6.0 for 3 - 4 months until a error thing keeps coming up everytime I: Close VB, Copy + Paste + Cut, Delete, And opening new forms up.
It has been working fine since that.
The Bug is It comes up with:
Visual Basic has encounterd a problem and needs to close.
And the buttons 'Debug', 'Don't Send', 'Send Error Report'.
And when i clicked more information this comes up:
AppName: vb6.exe AppVer: 6.0.81.76 ModName: vb6.exe ModVer: 6.0.81.76 Offset: 000581f1
I've tried the following to fix it but none of them worked:
Uninstall and Reinstall
Download VB6 ServicePack 6
Cleaned my C:/ Drive
Scanned for viruses.
It keeps happening please help me.
-Zack
Error With Visual Basic On XP
Hi
I recently got a new Laptop and it has XP on it. I Installed VB6 on it and copied my source files to a program I wrote and i get an error. The program works on the computer but I cant run it in VB6 Debug or run.
Any help ?
Error:
Error signature
AppName vb6.exe AppVer:6.0.81.76
ModName: unknown
ModVer: 0.0.0.0 Offset: 00000000
Error In Visual Basic.
Hi all,
I made a project and compiling doesn't work. C2.exe always fills up the RAM and crashes. Of course the program works when starting it within VB. And C2 works when compiling any other project.
Any ideas?
Visual Basic 6 Error?
Hi. I am having some trouble with visual basic, my computer stuffed up the other day so i had to reinstall everything including visual basic. however now, when I try to run a program with any control but a command button it crashes out of it with the error below. can anyone tell me what to do? i have tried reinstalling it about 6 times and still it comes up with that error. thanx
VB6 caused an invalid page fault in
module VB6.EXE at 0177:004581f1.
Registers:
EAX=00000000 CS=0177 EIP=004581f1 EFLGS=00010246
EBX=017561e0 SS=017f ESP=007ff738 EBP=007ff790
ECX=007ff748 DS=017f ESI=00400000 FS=18df
EDX=00000000 ES=017f EDI=00000001 GS=0000
Bytes at CS:EIP:
8b 08 ff 51 08 83 a3 9c 00 00 00 00 e9 28 fd ff
Stack dump:
00000000 01745f70 017561e0 0175632c 004032f0 84654416 f900009c 00000044 00000000 00000000 00004190 00403320 00000001 01745f70 00000000 00000001
Visual Basic Error
Hi!
When I try to run a program written in Visual Basic 6.0 , i get the following error:
Must have startup form or Sub Main().
I don't use Sub Main().I tried changing the startup object from the Project->Properties , but the only available option is Sub Main().Is there another way for changing the startup object?
Thanks!
Visual Basic Error
I have a problem, it's not with any code I have because... there is no code.
When I run a blank visual basic 6 form, it opens up just fine. When I add a
text box, a caption, and a button... it gives me an error from microsoft's
error report and asks me to send or not send the error, i chose and then it
quits. The error report won't let me copy the data, but i gather it's pretty
useless information unless you have the source code to visual basic. I get
this often when I install visual studio and often a reinstall of windows and
visual basic would fix it. I assume it's a pretty common problem, does
anyone know of a better way to fix it?
ERROR ON VISUAL BASIC
code:-
if a=b then
(a=variable, b=string)
Error message is "wrong procedure or argument error"
Visual Basic Error!?!??
I created a new data environment and then i set up the connection. After that, I insert a child command, right click on the command and choose properties. This causes visual basic to give a system error (sort of like an illegal operation) and Windows XP will ask you to send or not send the debug information to Microsoft... ??? Does anyone know what causes this? In Windows ME, the error does not occur but in Windows XP it occurs.
Any help or information will be greatly appreciated!
Visual Basic Error
I'm trying to import a series of excel spreadsheets while also running some queries to delete any uneeded rows in the spreadsheets. I can't see to to get the following code to properly work. Any help someone can provide me would be greatly appreciated:
Private Sub Command5_Click()
Dim svy_impt_path
Dim filename
Dim counter As Integer
svy_impt_path = InputBox("Enter the path in which the survey results files are" & _
" located." & Chr(13) & Chr(13) & "Example: c:abcsurveys", "Import Survey Results")
If svy_impt_path = "" Then
MsgBox "Operation Canceled."
Exit Sub
End If
DoCmd.SetWarnings False
DoCmd.OpenQuery "Clear Imported Survey Results Tbl"
DoCmd.OpenQuery "Clear Location and Customer Svy Tbl"
filename = Dir(svy_impt_path & "*.xl*") ' Retrieve the first entry.
Do While filename <> "" ' Start the loop.
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel97, "Imported Survey Results", _
svy_impt_path & filename, True, "'Activity Survey'!d2:g"
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel97, "Location and Customer Survey Results", _
svy_impt_path & filename, True, "'Location and Customer Survey'!b2:e"
filename = Dir
Loop
DoCmd.OpenQuery "Remove Rows in Act Svy that do not have percentages"
DoCmd.OpenQuery "Remove Rows in Act Svy that do not have acts"
DoCmd.OpenQuery "Remove Rows in L&C Svy that do not have percentages"
DoCmd.OpenQuery "Remove Rows in L&C Svy that do not have loc"
DoCmd.OpenQuery "Clear Imported_Survey_Results Tbl"
DoCmd.OpenQuery "Apd I S R to I_S_R tbl"
DoCmd.OpenQuery "Change 8s to 8-1"
DoCmd.OpenQuery "Clear Cost Object_Svy_Results Tbl"
DoCmd.OpenQuery "Apd L&C to C Obj_Svy_Res Tbl"
'Delete Import Error Tables
On Error GoTo ErrorHandler
DoCmd.DeleteObject acTable, "e_ImportErrors"
DoCmd.DeleteObject acTable, "g_ImportErrors"
For counter = 1 To 100
DoCmd.DeleteObject acTable, "e_ImportErrors" & counter
DoCmd.DeleteObject acTable, "g_ImportErrors" & counter
Next
ErrorHandler:
Select Case Err.Number
Case 3011
Resume Next
End Select
DoCmd.SetWarnings True
MsgBox "Survey results have been imported and compiled.", , "Model Message"
End Sub
Visual Basic Error Message!
I just designed a nice little program that lets me scroll through a database I made with little fuss. Now I have bypassed the first error's I was getting (something to do with ADO) but now I face a new problem. I can easily run the .exe on my computer (then computer i designed the program on) but when I move it to another computer it comes up with a strange error message. So I changed some of the properties and put the database file in c:/database.mdb then I swapped computers and put the database in the right directory but I still get this strange error message. It is saying something like CLASS NOT REGISTERED CLSID, i'm baffled.
Visual Basic Error Cant Access Db
Im Using Vb6, Access 2000 Db, My Puter At Work Has Windows 98. And There, It Runs Very Well.
But At Home I Have Windows Xp ,home Edition, And Every Time I Try To Run The Application, It Shows An Error Message, That Says, "could'nt Find Installable Isam"
. It Still Show Me The Forms , But Could'nt Access The Data Base.
What Can Be Wrong Here?
However, If I Try Running A Form Using Access 2000, Using Vba, It Runs Well.
Visual Basic 6 Error Handling
Hi Expert,
I have a quick question regarding catching an error. Particularly PRINTER error. What I am trying to do is, to print out the Visual Basic Form. I do have an error handler. If the computer hooked up to a totally different printer, then error will get caught. HOWEVER, if I am hookep up to the correct printer, and for some reason the printer accidently disconnected, the error can not be caught. Please give me some suggestion. Here is the code:
Thanks.
Code:
Private sub print_form()
On Error GoTo err
Screen.MousePointer = vbHourglass
Frame1.Visible = False
frmNewBiz.PrintForm
Frame1.Visible = True
cmdPrint.Visible = False
cmdReprint.Visible = True
Exit Sub
err:
MsgBox "Please try again! " & vbCrLf & "Error #:" & err.Number & vbCrLf &
err.Description, vbCritical, "WARNING!"
txtPolicy.SetFocus
End Sub
Visual Basic 6 Error Install XP FIX
I looked around on various forums when I had a problem with VB6 installing. I have seen several post on this problem and only recently seen a fix on this forum after I figured it out. So, I will pass it along because of the time and hope it becomes a sticky or permenant post and save some people alot of time and frustration... This also fixes the same error caused by programs other than VB6. If you are getting an error similar to
Error message called "16 bit Windows Subsystem" that says:
"C:WINDOWSSYSTEM32AUTOEXEC.NT. The system file is not suitable for running MS-DOS and Microsoft Windows applications. Choose 'Close' to terminate the application"
You also have a choice between "Close" and "Ignore". Whichever one you pick doesn't fix anything. I found my fix Microsoft.
http://support.microsoft.com/?kbid=324767
My problem was my autoexec.nt was missing in my c:windowssystem32 directory. I also understand according to the Microsoft KB article that a missing or corrupt config.nt or command.com will also cause the same error.
-Bill
Visual Basic Arithmetic Error...
Hello all,
I'm very confused...
If I put
debug.Print &H04030201 And &H0000FF00
in the immediate window I get the result 67305984 (&H04030200) but it should be 512 (&H200).
Anyone know what's going on?
Thanks
Gareth
Error Porting To Visual Basic 6
Hi All,
I was using Visual Basic 5.0 and had written program in it. I now installed Visual Basic 6.0 and when I open the .VBP file, VB6 loads all the forms and then I get a error saying illegal instruction. Can anyone help me? My OS is Windows NT. Thanks.
Visual Basic : Runtime Error #6
what does a runtime error #6 mean?
how does it occur?
why do i get a runtime error #6 when i do this:
dim x,key1 as currency
key1 = 123456
x=97
x = x ^ Key1
is there any substitute syntax on how i could get the value of x without encountering runtime Error #6?
i'll be waiting for ur reply..tnx.
DAO And Visual Basic Error 3265
High,
I finished a VB application that interacts with an Access DB through DAO.
The application worked fine...so i compiled it and packaged it.
I distribute it on other computers, but the users are getting error 3265...
Do you know what might be the problem?
I Am Getting Error While Calling C++ Dll In Visual Basic 6.0
Here is the C++ proc i am trying to call in Visual Basic 6.0
Code:
LONG WINAPI SPOTKGTA(LPVOID lpDBProc, LPSTR szPlanName, LPSTR lpArgs, LONG lMaxRows, LPRESULTSET lpRSHdr)
{
double dRowTypeID;
DBPROCESS NEAR *hSql;
HANDLE hRS;
char szSqlString[1024]; // Expanded size from 150 to 1024. BLG (4/5/94)
char szTaskID[11];
DBINT lDataID;
LONG lReturnValue = LSP_ERR_OK;
LONG lTemplateID; // Holds rvw_tsk_id of task with template if Coding task is in LDC field
DBSMALLINT nClassID;
WORD wRSRowCount; // Actual number of rows in memory result set
UINT uRowCount; // Temporary result row counter
// Convert long DBProc to near pointer and set database
// OFFSETOF is obsolete and there is no equivalent - Gopi 2004/06/10
//hSql = (DBPROCESS NEAR *) OFFSETOF(lpDBProc);
hSql = (DBPROCESS NEAR *) lpDBProc;
dbcancel(hSql);
if (dbuse(hSql, szPlanName) != SUCCEED)
return (LSP_ERR_DBUSE_FAILED);
// Convert non-null terminated parameters to null terminated
_fmemset(szTaskID, ' |