Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 131,704 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,476 people online right now. Registration is fast and FREE... Join Now!




VB 6 Error 0

 
Reply to this topicStart new topic

VB 6 Error 0, How Do I Solve This

Aclypses
post 19 Feb, 2006 - 11:54 AM
Post #1


New D.I.C Head

*
Joined: 19 Feb, 2006
Posts: 1


My Contributions


Have written a DB accessing program, but encounter Error 0 at run-time, and on-board help is useless with this type of error. huh.gif huh.gif Completely baffled please help.
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 19 Feb, 2006 - 01:27 PM
Post #2


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,163



Thanked 32 times

Dream Kudos: 25
My Contributions


I'm afriad you'll have to be a bit more specific. Can you post the code?
User is online!Profile CardPM

Go to the top of the page

born2c0de
post 20 Feb, 2006 - 02:09 AM
Post #3


printf("I'm a %XR",195936478);

Group Icon
Joined: 26 Nov, 2004
Posts: 3,895



Thanked 34 times

Dream Kudos: 2800

Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions


Which DB are you accessing?
Which DB Interface are you using? ADODB or ADODC or Intrinsic Data Control?
As Amadeus said...you need to be more specific to get better help.
User is offlineProfile CardPM

Go to the top of the page

kamiru
post 25 Aug, 2007 - 02:26 AM
Post #4


New D.I.C Head

*
Joined: 25 Aug, 2007
Posts: 2


My Contributions


QUOTE(born2c0de @ 20 Feb, 2006 - 03:09 AM) *
Which DB are you accessing?
Which DB Interface are you using? ADODB or ADODC or Intrinsic Data Control?
As Amadeus said...you need to be more specific to get better help.

I am expiriencing the same proble of err.number=0.This error is not in the list of VB errors.
This error occurs when am logged to a machine with a restricted user and am trying to save an image to a folder that does not Exist....Can someone please give me advice on why the error fires if the user has no rights.
thank u.
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 25 Aug, 2007 - 04:02 AM
Post #5


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,909



Thanked 116 times

Dream Kudos: 8450

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


If you're not trying to save the file in your code then this is in the wrong forum, if you're indeed trying to save the file in your code and its a limited account the account may not have permissions to create the folder. Try saving it in a folder that actually exists and see if it works then.
User is offlineProfile CardPM

Go to the top of the page

kamiru
post 25 Aug, 2007 - 04:32 AM
Post #6


New D.I.C Head

*
Joined: 25 Aug, 2007
Posts: 2


My Contributions


QUOTE(PsychoCoder @ 25 Aug, 2007 - 05:02 AM) *

If you're not trying to save the file in your code then this is in the wrong forum, if you're indeed trying to save the file in your code and its a limited account the account may not have permissions to create the folder. Try saving it in a folder that actually exists and see if it works then.





This error occurs only the user has no admin rights.If the folder Iam trying to access does not exist i raise an error the display a User warning message.This work fine with a user who has rights..But on the other hand if the user has no rights the error is not raised..it throws error number 0.
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 25 Aug, 2007 - 06:16 AM
Post #7


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,909



Thanked 116 times

Dream Kudos: 8450

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


Well check for your error & if the error number is 0. If its 0 let them know they dont have sufficient rights, if its your specified error then just display it. I believe in VB6 its if err.Number = 0
User is offlineProfile CardPM

Go to the top of the page

born2c0de
post 26 Aug, 2007 - 12:14 AM
Post #8


printf("I'm a %XR",195936478);

Group Icon
Joined: 26 Nov, 2004
Posts: 3,895



Thanked 34 times

Dream Kudos: 2800

Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions


QUOTE
I am expiriencing the same proble of err.number=0.This error is not in the list of VB errors.

That's because Error Number 0 refers to NO ERROR. I've never seen an Error Raised with Code 0 before. Its very strange.

Call the GetLastError() API Function and see what it returns.
CODE
Private Declare Function GetLastError Lib "kernel32" Alias "GetLastError" () As Long
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 09:12AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month