Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




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
Microsoft Visual Basic File Not Found Error When Openining Excel. Error 53
Hi

I am getting the below message each time I open excel:

Microsoft visual basic File not found error when openining excel. Error 53



What is it,What caused it and how do I get rid of this message when I open excel.


I have a series of macros in VBA and a VB6.0 application.


Many thanks

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 &lt;&gt; "" ' 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, '', sizeof(szTaskID));
_fstrncpy(szTaskID, &lpArgs[0], MAX_SizeInteger);

// Get row type ID for UPC_NM from HDR_TBL table
dbcmd(hSql, "select CLS_ID, DATA_ID from HDR_TBL where ROW_TYP_CD = 'UPC_NM'");
if (dbsqlexec(hSql) != SUCCEED)
return (LSP_ERR_DBSQLEXEC_FAILED);
if (dbresults(hSql) != SUCCEED)
return (LSP_ERR_DBRESULTS_FAILED);

if (DBROWS(hSql) == 0)
{
MessageBeep(MB_ICONSTOP);
MessageBox((HWND) 0, "'UPC_NM' not found in HDR_TBL.", "BLOBSRVR.DLL", MB_ICONSTOP | MB_OK);
return (LSP_ERR_ROW_NOT_FOUND);
}
else
{
dbbind(hSql, 1, SMALLBIND, (DBINT) 0, (BYTE FAR *) &nClassID);
dbbind(hSql, 2, INTBIND, (DBINT) 0, (BYTE FAR *) &lDataID);

while (dbnextrow(hSql) != NO_MORE_ROWS)
{
dRowTypeID = (double) 65536 * (double) 65536;
dRowTypeID = (dRowTypeID * (double) nClassID) + (double) lDataID;
}
}

// Retrieve TOB information from server
wsprintf(szSqlString, "select CLC_TMPL_HDR_ID, T_LVL_NBR, T_QTY_MIN, T_QTY_MAX, T_FLAGS, OUTLINER from RVW_TSK_T where RVW_TSK_ID = %s order by T_SQ_NBR",
(LPSTR) szTaskID);
if (dbsetopt(hSql, DBTEXTLIMIT, "65534") != SUCCEED)
return (LSP_ERR_DBCMD_FAILED);
if (dbsetopt(hSql, DBTEXTSIZE, "65534") != SUCCEED)
return (LSP_ERR_DBCMD_FAILED);
if (dbcmd(hSql, szSqlString) != SUCCEED)
return (LSP_ERR_DBCMD_FAILED);
if (dbsqlexec(hSql) != SUCCEED)
return (LSP_ERR_DBSQLEXEC_FAILED);

lReturnValue = IntTOBRead(hSql, &hRS, &wRSRowCount, dRowTypeID); // Retrieve server result set into memory result set

// If no TOB was found, return special error code; if Sched/Coding pair
if ((wRSRowCount == 0) && (lReturnValue == LSP_ERR_OK))
{
// Determine if task matches desired profile
wsprintf(szSqlString, "execute SPOTKVSA '%010.10s'", (LPSTR) szTaskID);
if (dbcmd(hSql, szSqlString) != SUCCEED)
return (LSP_ERR_DBCMD_FAILED);
if (dbsqlexec(hSql) != SUCCEED)
return (LSP_ERR_DBSQLEXEC_FAILED);
if (dbresults(hSql) != SUCCEED)
return (LSP_ERR_DBRESULTS_FAILED);

uRowCount = 0;
if (DBROWS(hSql) > 0)
while (dbnextrow(hSql) != NO_MORE_ROWS)
uRowCount++;

// If task is a Scheduling/Coding pair, get APPROPRIATE TEMPLATE
if (uRowCount > 0)
{
// Get task id for template we want
wsprintf(szSqlString, "execute SPORVGIA '%s'", (LPSTR) szTaskID);
if (SUCCEED == dbcmd(hSql, szSqlString))
if (SUCCEED == dbsqlexec(hSql))
if (SUCCEED == dbresults(hSql))
if (DBROWS(hSql) > 0)
{
dbbind(hSql, 1, INTBIND, (DBINT) 0, (BYTE FAR *) &lTemplateID);

while (dbnextrow(hSql) != NO_MORE_ROWS)
; // Null statement; remove only if replacing with another statement

// Go back and retrieve alternate template
wsprintf(szSqlString, "select CLC_TMPL_HDR_ID, T_LVL_NBR, T_QTY_MIN, T_QTY_MAX, T_FLAGS, OUTLINER from RVW_TSK_T where RVW_TSK_ID = %ld order by T_SQ_NBR",
lTemplateID);
if (dbsetopt(hSql, DBTEXTLIMIT, "65534") != SUCCEED)
return (LSP_ERR_DBCMD_FAILED);
if (dbsetopt(hSql, DBTEXTSIZE, "65534") != SUCCEED)
return (LSP_ERR_DBCMD_FAILED);
if (dbcmd(hSql, szSqlString) != SUCCEED)
return (LSP_ERR_DBCMD_FAILED);
if (dbsqlexec(hSql) != SUCCEED)
return (LSP_ERR_DBSQLEXEC_FAILED);

lReturnValue = IntTOBRead(hSql, &hRS, &wRSRowCount, dRowTypeID); // Retrieve server result set into memory result set
} // if (DBROWS(hSql) > 0)
} // if (uRowCount > 0)
} // if (wRSRowCount == 0)

// If neither TOB nor NULL CLUSTER were found, give up
if (wRSRowCount == 0)
return (LSP_ERR_ROW_NOT_FOUND);
else
{
// Update result set structure with whatever we found
lpRSHdr->nSize = sizeof(OUTRSI);
lpRSHdr->nCount = wRSRowCount;
lpRSHdr->hResult = hRS;
lpRSHdr->contentSize = GlobalSize(lpRSHdr->hResult);
lpRSHdr->contentTail = lpRSHdr->contentSize;
}

return wRSRowCount;
} // SPOTKGTA()


in VB, i followed declared the function and i am getting error "Bad DLL calling convention" while calling C++ function...

Dim Lin As Long

Lin = SPOTKGTA("SPOTKGTA", 3, 35717, 0, 0)...



Please help me in this.

Visual Basic 6.0 SP 6.0 Runtime Error
Hi, I'm developing an application using visual basic 6.0 service pack 6, but I am receiving an error message, however looks like it is radom, I mean, sometimes it happens opening a form, next time closing the app. after that when I use a control inside the form, button, textbox, etc.

I can't trace the problem because when the error appears I receive a VB message: "Visual Basic has encountered a problem and needs to close. We sorry for the inconvenience...." with three buttons : Debug, Send error Report and Don't Send

I trying to catch the problem looking into the error report but I can't understand most of it:

the error report always contains the following text in its header:

AppName: vb6.exe AppVer: 6.0.97.82 ModName: winmm.dll
ModVer: 5.1.2600.2180 Offset: 0000594d

Sometimes I ignore the message and everything works perfectly, no more error messages or problems. of course I move the error message window to an edge of the screen in order to continue working.

The error only appears at runtime. When I compile and make the exe file, I receive the same message with the same erratic behavior the only things that change is the error message header

AppName: worldtvrt.exe AppVer: 5.0.0.0 ModName: winmm.dll
ModVer: 5.1.2600.2180 Offset: 0000594d


Last if it is useful these are the controls used by my program

toolbar2.ocx: a free toolbar downloaded from planet-source-code (it's working in other projects, not error messages so far)
vbskpro2.ocx A commercial skinner for visual basic 6.It works fine since our first software version, used in many projects without problems
asrecmms.ocx: Belongs to Active sound recorder a commercial activex control is the first time tha we use it

besides we use the following vB6 controls:

comdlg32.ocx
riched32.dll
richtx32.ocx

Someone can give me a hand?

I'm running out of ideas... and time to finish my work, Any help will be greatly appreciated

Thanks in advance

PD: Please forgive my poor English.

Visual Basic 6.0 Runtime Error
Hi All,

In my V.B 6.0 application when i want to save the application iam getting below runtime error and after that system is crashing.

The error is - "The instruction "ox05b773eb" referenced memory at "0xf4e1a06f".The memory could not be "Written".Click OK to terminate the program"

Please check the attachment and provide me the solution.

Thanks&regards,
Amar.

Visual Basic 6.0 Runtime Error
Hi All,

In my VB 6.0 application when i want to save the changes then suddenly iam getting below error.

"The instruction at "0x00000000" referenced memory at "0x00000000", the memory could not be read" error (See the attachment name-"VB error"). "Click on OK to terminate the program" message is displaying after clicking on the OK button it is displaying one more message (See the attachment name-"VB problem")and Click on ok means then application is crashing.

Check the attachments.
Please give me the urgent replay because our project is in production phase.

Thanks&Regards,
Amar...

Visual Basic 6.0 Runtime Error
Hi All,

In my VB 6.0 application when i want to save the changes then suddenly iam getting below error.

"The instruction at "0x00000000" referenced memory at "0x00000000", the memory could not be read" error. "Click on OK to terminate the program" message is displaying. Click on ok means then application is closing.

Please give me the urgent replay because our project is in production phase.

Thanks&Regards,
Amar...

Visual Basic 6.0 Compile Error.
I've already posted a message related with this topic but this one has an attachment wich contain the whole elements; that mean Form, Error Message and Visual Basic Code.

Thanks again in advance.

Visual Basic 6.0 Compile Error
Hi, every body.

I'm using an ADO control on a program and when I try to write down code for the event "ObjectName_WillMove" Visual Basic return a compile error which says:

Compile Error:

Procedure declaration does not match description of event or procedure having the same name.

How could I solve this ?. Thanks in advance.

Visual Basic Error Message?
Hi, everyone.

When trying to compile a dll project, visual basic display the following message:

No creatable public component detected.

and i canīt compile the dll project ,What should i do ?

Thanks.

Visual Basic Error Message
Apologies If I am in the wrong place -could you direct me to the right place if not - but.....

I get this message when trying to load some software I recently bought-

Visual basic 6.0 tool kit has encountered an error and has to close.

I am running Windows XP and have service pack 2.

Do i reinstall Visual Basic 6? if so where from, and which is the correct link I need to click to do so?

Cheers in antisipation.

Error While Installing Visual Basic
Hi

While Installing visual basic it's giving error "Setup was unable to create a DCOM use account in order to register 'C:Program filesMicrosoft Visual StudioCommonToolsVS-Ent98Vanalyzrvalec.exe

Can Somebody look at this



Dharmaraju

[VB6] Visual Basic 6 Keeps Giving Me This Error
Hello

I hope this goes here. I have an OCX and a DLL for my game. I have included them in the games .vbp. So I have added them through the components (ocx) and references (dll). My issue is that when I open the vbp after having my computer off, it gives me errors from the OCX and DLL and they are no longer included in the game. I have to add them again.

But, I dont have to save the vbp. I just add them, close the window, say dont save and when I open the window again, they are there. Does anyone know why I cant get the DLL and OCX to stay? Why does the program keep removing them?

Thank you.

Visual Basic Code Error.
hi im new to visual basic and im trying to move an item from 1 list to another

i have 2 list boxes and an add command.

when an item in the 1st list is highlighted and i press add it removes the item from the 1st box and transfers to the 2nd. but the code im using dont work



"
If lstadmin.Text = "Able to purchase a jet pack" Then
lstselected.AddItem lstadmin.Text
lstadmin.RemoveItem lstadmin.text
"

can someone please explain where im going wrong? thanks

Visual Basic Program Run Error
Theres a problem when i try to star this program up... It just has a winsock in it and on my computer it runs fine. Im on a xp sp2. My friend that i send it to however has windows 2k (2000)

Here it is. can someone help me out?!?!?

Thanx!!


VB Code:
Component 'mswinsck.ocx' or one of its dependencies not correctly registered: a files is missing or invalid  

Application Error In Visual Basic
Hi i am getting this error whenever i run vb application

error says: The instruction at "0x0049b48e" referenced memory at "0x608af85c". The memory could not be "read".


funny the application runs fine in the debug mode


do any of you felllas have some idea about this problem


dineshnegi

Run-time Error In Visual Basic 5.0
Visual Basic 5.0
I got this script from a Microsoft book. The form has
a progress-bar object.

run-time error '380'. Invalid Property Value

ProgressBar1.Value = intTime <-- error flaged at this line

===============================

Code:


Private Sub Form_Load()
ProgressBar1.Visible = False
Timer10.Interval = 1000
ProgressBar1.Max = 10
End Sub


Private Sub Command1_Click()
ProgressBar1.Visible = True
Timer10.Enabled = True

End Sub


Private Sub Timer10_Timer()
Static intTime

If IsEmpty(intTime) Then
intTime = 1
End If

ProgressBar1.Value = intTime <-- error flaged at this line

If inTime = ProgressBar1.Max Then
Timer1.Enabled = False
ProgressBar1.Visible = False
intTime = 1
ProgressBar1.Value = ProgressBar1.Min
Else
intTime = intTime + 1
End If
End Sub

Visual Basic Run Time Error 380
Hi,
I've a VB application running well in my Windows 98 PC but need to test the application in Windows XP. However I'm encountering this run time error 380 'Invalid Property Value' while calling any other forms (sub screens) in my main application. Can someone please help to advise. Thanks very much.

Visual Basic Code Error...Need Help!!!
Ok...Here is the code...I am going to be honest this is for a class in my CIS course...I need help understanding how to do this and what I am doing wrong.

Private Sub BtnNumbers_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnNumbers.Click
Dim First, Second, Third As Double
Dim Avg, Product, Sum As Integer

First = InputBox("Enter in the first number")
Second = InputBox("Enter in a second number")
Third = InputBox("Enter in a third number")
Avg = (First + Second + Third) / 3
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox("The Average of the three numbers is" & Avg)
End Sub
End Class

I am getting an error that Avg is not understood......What I am trying to do is input three numbers and have 3 buttons that do the Average, Product, snd Sum of the numbers I Input...Please help this NOOB.....Ty

Visual Basic SetUp Error
HI all,
In package and deployment is completed success
fully, but when installation starting, "Error- Invalid
Command Line Parameter.. Unable to continue" What may
be the problem? Windows Inst./VB Inst.? Please Guide
me...
Sujith

Visual Basic.NET 2003 Error
Hie Gang,
When I try to add a New Item for either WindowsApplication or


WebApplication,the Categories and Templates section are empty and there i


nothing to select.
Prior to this error I was able to select an Item but then the Automation


Server was failing to


Create Object..then I installed Windows Script 5.6 to fix the error...No


nothing is displayed in the Categories and Templates Sections when I try t


add a New Item to a project...and also I installed the entire VS Studio ina


different partition,I don't kow if this is the cause of this problem..Im nw


to Visual Studio Architect 2003 and I dont where to start to resolve


this...Your assistance will be highly appreciated..



--


Noel Simela,
Team Leader
Orinoco Call Centre (The Leading Call Centre in Botswana)
Email:--> email@removed
Blog:----> http://nqabeni.blog-city.com
Mobile:-> (+267) 71798242

Visual Basic Error 35606
Can some body help me?
What is error# 35606
An error occurred in your application

Error # 35606

Error: Controls’ Collection has been modified

Error ID: 163

thanks

Visual Basic File Creation Error
Ok here is my Question. I am adding scripting support to a application I am working on for someone. I have tried everything in the book but i dont understand what is wrong with this code.


Code:
If Left(TextString, 10) = "createfile" Then
Dim T As String
T = Right(TextString, Len(TextString) - 10)
Open "" & T For Output As #1
End If
Now, everytime they input the script it says "error file already open" i dont see how it could be open already! I even added close before dim t as string and same message. I dont see whats wrong. I even tried this


Code:
If Left(TextString, 10) = "createfile" Then
Dim X As String
X = Right(TextString, Len(TextString) - 10)
Text1.Text = X
Open Text1.Text For Output As #1
End If

Visual Basic Error While Running Games.
Hey everyone, I don't know if i've come to the right place for the problem i have. I'm not a programmer but simply a user with some VB error. I wondered if any of you could try to help me it. I would appreciate it a lot. I'm not sure if this post is legal at this forum considering i dont need any help programming. But due to the fact that i'm running out of sollutions to fix the problem i have i decided to look for some help coming from programmers. Id u don't want to help me that's fine to. Ok here goes.

I'm looking for a bit of help regarding an Visual Basic error I get when playing games. Maybe any of you can help me out considering im pretty much stuck because I allready tried loads of possible solutions.

Ok let's get to the problem

Since about 1 month I constantly get errors like these.

http://gkc.clan-hosts.co.uk/andy/error.JPG

It happens very often and I allready tried to solve it trying the following things:

- Install new videocard drivers, tried about 4 different ones. Used some regcleaner to clean the reg from nvidia stuff.
- Reinstalled DX9.
- Installed every Windows update that is avail
- Installed the VB4, 5 and 6 files (downloaded them from the microsoft site)
- Reinstalled some games
- Did a complete virusscan of my PC
- After that deinstalled NAV2004 because i read at some forum that NAV can also be the problem
- Took most grabage of with Adaware
- Took even more garbage of with Spybot
- Searched loads of forum for possible solutions, installed some other patches which i dont remember the name of.
- Plus probably some more stuff i forgot about

After that all the same error kept coming up. So yesterday i decided to pick up my CD's at work and i reinstalled the pc. The only thing on the C: partition atm is Winxp NL, newest nvidia drivers, DX9 and service pack 1 for XP. After that i decided to try my old UT installation which is on the D: partition. After 10 minutes of playing the same error occured. I reinstalled the game as fresh clean install and i also installed UT2004 demo again. In both games i still get the same error now.

- Reinstalled the pc with Winxp
- Tested the RAM with memcheck86 (all was good)

My videocard (gf4 ti4600) is only 2 months old or so considering i send it back for repair some months ago, they sent a brand new one in return so i take it that the card aint the problem. To be honest i'm losing options that i can try. As said i reinstalled the pc and i still get the same error as before. If anyone has the slightest idea of what the problem may be then plz let me know.

Thanks for your time and hopefully i can solve this problem, sen

Error Handling-database And Visual Basic
i have a problem....
what i want to know is i have an application which displays pictures from a file
the path to the file is in the access database
but if i run the program and the picture is not in that allocated folder... i end up with runtime error 53.. file not found
so what i want to do is have a default picture in that folder so if the allocated picture is not available it will display that picture instead of runtime error..
Please hellp me!!

Visual Basic Error Message - Help Required
I get this message when trying to load some software I recently bought-

Visual basic 6.0 tool kit has encountered an error and has to close.

I am running Windows XP and have service pack 2.

Do i reinstall Visual Basic 6? if so where from, and which is the correct link I need to click to do so?

Cheers in antisipation.

If I am in the wrong place, could someone tell me where the right place is?

Visual Basic Has Encountered An Error And Needs To Close....??!?!?!?!?!?!?
I have windows XP professional, I perfectly had visual basic installed and working before, recenttly I re-installed XP professional , and now visual basic is acting up... I tried installing it numerous times, and each time at the end of the installation 2 errors messages come up (cant recall them both) one of them is "VisData has encountered an error" and it has send, and dont send. I click dont send and the installation continues... After installation, I restart my PC, when I get past the welcome screen it says those two errors again. Now, its installed. It works fine, everything seems to be great. But, when I try to open a project (one I did at school) it opens fine and the screen with the code on it is displayed. It is only now that the error happens, when I try to click on the picture that shows the form and all the objects, it loads for a second then an error pops up "Visual Basic has encountered an error and neeeds to close. Sorry for any inconveinence" I always click "Dont Send" (to tell microsoft about the error, send, or dont send, I always click dont send) . Why does it do this!?


So, basically in less than 50 words, this is whats happening:

Everytime I install, the installation goes fine except for 2 minor errors. When I use visual basic, everything works. When I open a program I did at school, everything works untill i click to go see the form. Then, it crashes.


Please help me, I really want to get visual basic working again! thanks everyone!

(p.s - its not version conflicts or whatever because when I had it installed before, i always transfered from school to home and it worked fine)

Run Time Error Using Array In Visual Basic 6.0
hi
When i Run this function getAstroValuesByDay(JulianDay As Double) i am getting Runtime Error

Error Is:

Runtime Error 9
SubScript Out Of Range

can any one tell how change the size of array during runtime




-------------------User Define Data Type


VB Code:
Public Type Astro    Jd As Single    dec() As Variant    ra() As Variant    sid() As Variant    dra() As Variant    rsum() As VariantEnd Type  Public Type Astroday  dec As Double  ra As Double  sidtime As Double  dra As Double  rsum As DoubleEnd Type  ---- End Of User Define Data Type ------------------------ Public Function getAstroValuesByDay(JulianDay As Double)Dim mAstro As AstroDim mAstroDay As Astroday    If mAstro.Jd = JulianDay - 1 Then        ReDim mAstro.ra(Array(0), Array(0), Array(0))        ReDim mAstro.dec(Array(0), Array(0), Array(0))        ReDim mAstro.sid(Array(0), Array(0), Array(0))        ReDim mAstro.dra(Array(0), Array(0), Array(0))        ReDim mAstro.rsum(Array(0), Array(0), Array(0))        Call ComputeAstroDay(JulianDay + 1)        mAstro.ra(2)(0) = mAstroDay.ra        mAstro.dec(2)(0) = mAstroDay.dec        mAstro.sid(2)(0) = mAstroDay.sidtime        mAstro.dra(2)(0) = mAstroDay.dra        mAstro.rsum(2)(0) = mAstroDay.rsum    ElseIf mAstro.Jd = JulianDay + 1 Then        ReDim mAstro.ra(Array(0), Array(0), Array(0))        ReDim mAstro.dec(Array(0), Array(0), Array(0))        ReDim mAstro.sid(Array(0), Array(0), Array(0))        ReDim mAstro.dra(Array(0), Array(0), Array(0))        ReDim mAstro.rsum(Array(0), Array(0), Array(0))        Call ComputeAstroDay(JulianDay - 1)        mAstro.ra(0)(0) = mAstroDay.ra        mAstro.dec(0)(0) = mAstroDay.dec        mAstro.sid(0)(0) = mAstroDay.sidtime        mAstro.dra(0)(0) = mAstroDay.dra        mAstro.rsum(0)(0) = mAstroDay.rsum    ElseIf mAstro.Jd <> JulianDay Then        Call ComputeAstroDay(JulianDay - 1)        mAstro.ra(0)(0) = mAstroDay.ra        mAstro.dec(0)(0) = mAstroDay.dec        mAstro.sid(0)(0) = mAstroDay.sidtime        mAstro.dra(0)(0) = mAstroDay.dra        mAstro.rsum(0)(0) = mAstroDay.rsum        Call ComputeAstroDay(JulianDay)        mAstro.ra(1)(0) = mAstroDay.ra --> Error is Thrown in This Line        mAstro.dec(1)(0) = mAstroDay.dec        mAstro.sid(1)(0) = mAstroDay.sidtime        mAstro.dra(1)(0) = mAstroDay.dra        mAstro.rsum(1)(0) = mAstroDay.rsum        Call ComputeAstroDay(JulianDay + 1)        mAstro.ra(2)(0) = mAstroDay.ra        mAstro.dec(2)(0) = mAstroDay.dec        mAstro.sid(2)(0) = mAstroDay.sidtime        mAstro.dra(2)(0) = mAstroDay.dra        mAstro.rsum(2)(0) = mAstroDay.rsum    End If    mAstro.Jd = JulianDayEnd Function


warm regards
syed

Visual Basic In Excel, Mismatch Error
++Hope this is the right forum++

Now Visual Basic In excel is very odd. Its not too hard to get your head around it its just odd when reading and writting Information.

I'm gettnig a Mismatch error when I try to read to read a number form the speardsheet and laod it as a viriable.

Heres the code thats giveing me the error


VB Code:
'Part of the AddRecord() Sub    Dim RecordNumber As Long    Dim index As Integer    Dim DoB As String    Dim Num As Long    index = 0    Sheets("Data").Select    [b]RecordNumber = Range("B2").Value 'This line is giving me the error[/b]    Sheets("Enter Data").Select    Num = Range("G11:I11").Value    If Num = RecordNumber Then        Else        MsgBox ("You changed the Record Number, this Record has NOT be processed")        Sheets("Data Main").Select        Exit Sub    End If


Can anyone help me with this? I can't think of a reason for it not to work. I've uplaoded the workbook if anyone wants to check in that.

Cheers
--ichar

Copyright Đ 2005-08 www.BigResource.com, All rights reserved