• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a VB Question

 
Noman Iqbal
Ranch Hand
Posts: 100
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5382
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Plz move it to correct forum
 
Sameer Jamal
Ranch Hand
Posts: 1870
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4353
2
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sameer is probly correct...i havent made .dll's
for what you are doing, what i have done, is create .bas modules
 
Noman Iqbal
Ranch Hand
Posts: 100
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Friends, I have added the Dll file in the references also but still the same problem.
 
Noman Iqbal
Ranch Hand
Posts: 100
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
R K Singh
Ranch Hand
Posts: 5382
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am going crazy (sorry noman)
Its a good idea of moving it to General computing
 
Noman Iqbal
Ranch Hand
Posts: 100
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 634
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know of none. Perhaps you could convert your program to Java?
 
R K Singh
Ranch Hand
Posts: 5382
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
microsoft.com ???
 
Randall Twede
Ranch Hand
Posts: 4353
2
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1870
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic