permaculture playing cards*
The moose likes Meaningless Drivel and the fly likes a VB Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "a VB Question" Watch "a VB Question" New topic
Author

a VB Question

Noman Iqbal
Ranch Hand

Joined: Jun 25, 2001
Posts: 99
Hi Dear Friends,
The Question is related to V.B and Activex DLL. I have made a "NomanDll1.dll" file with the following code :
Public Function abc()
MsgBox "My name is Noman Iqbal"
End Function
An Standard Exe Project with the follwoing Code :
Private Declare Function abc Lib "NomanDll1" ()
Private Sub Form_Load()
Call abc
End Sub
Now when I run this standard exe project it gives me an error which is "Run-time Error 453 Can't find DLL entry point abc in NomanDll1"

I don't understand the problem. Can any body tell me that why this error is coming and what is it's solution.

Waiting for your reply.
bye
Noman Iqbal.
R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5371
Plz move it to correct forum


"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
Sameer Jamal
Ranch Hand

Joined: Feb 16, 2001
Posts: 1870
Hi noman you have not given any reference of your dll server in your client application, your client does not know where the dll file is so just go the project->references->browse and give the reference of your dll server
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

sameer is probly correct...i havent made .dll's
for what you are doing, what i have done, is create .bas modules


SCJP
Visit my download page
Noman Iqbal
Ranch Hand

Joined: Jun 25, 2001
Posts: 99
Friends, I have added the Dll file in the references also but still the same problem.
Noman Iqbal
Ranch Hand

Joined: Jun 25, 2001
Posts: 99
Hi Dear Friends,
Friends what I want is that in V.B I want to make a DLL File which would be like Windows Dll Files (e.g user32.dll) which requires it's decleration of methods and can not be imported in the Project-->References.
The decleration is like when we call some Windows API like "ExitwindowsEX" from "user32.dll". It's decleration is follows :
Decleration of ExitwindowsEx : Public Declare Function ExitWindowsEx Lib "user32" Alias "ExitWindowsEx" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
Waiting for your reply.
bye
Noman Iqbal (SCJP2 & SCWCD).
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Does this have anything to do with JAVA? I realize that it has been posted in the MD forum, but at the very least it needs to be moved to General Computing. Or better yet, maybe a VB forum?


GenRocket - Experts at Building Test Data
R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5371
I am going crazy (sorry noman)
Its a good idea of moving it to General computing
Noman Iqbal
Ranch Hand

Joined: Jun 25, 2001
Posts: 99
Ok Dear Friends then please tell me a good Vb Forum where I can post this Topic.
Waiting for your reply.
bye
Noman Iqbal.
Gail Mikels
Ranch Hand

Joined: May 07, 2001
Posts: 634
I know of none. Perhaps you could convert your program to Java?


Gail Mikels
R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5371
http://www.google.com/search?q=%22Vb+Forum+%22&hl=en&lr=&ie=UTF-8&oe=UTF-8&start=10&sa=N

http://www.visualbasicforum.com/
And what I do remember there are forums in MS offcial site also.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
microsoft.com ???


"JavaRanch, where the deer and the Certified play" - David O'Meara
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

here is where i go when i have VB questions:
http://www.tek-tips.com/
[ November 27, 2002: Message edited by: Randall Twede ]
Sameer Jamal
Ranch Hand

Joined: Feb 16, 2001
Posts: 1870
try to register your dll file with the command
regsvr32 "path of the dll file"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: a VB Question