|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Visual basic
I have a code written in C and Visual basic . I have compiled, run and created a DLL file using the C code. However when i tried to run the visual basic code, it gave me an error message:
Can't find the DLL. But the DLL file has been created and placed in the C:\WINNT directory. Anybody who could be able to help me solving this issue , would be a big help.Can't fine the DLL |
|
#2
|
||||
|
||||
|
A couple of things here:
1) Your subject title is unacceptable. You can view the sticky thread at the top of this forum for more information on how to post a question. 2) It would be helpful if you show the declaration code you used to declare the dll function call. Also, did you register the dll? |
|
#3
|
|||
|
|||
|
How do I register dll??
|
|
#4
|
|||
|
|||
|
Usually your installer will register an ActiveX component. Manually register a component using regsvr32 <path\dllname>
If your dll is not an activeX I believe you'll need to use a function declaration similar to the way you declare a windows api function. |
|
#5
|
|||
|
|||
|
how do you locate, or fine DLLRegister Server entry point?
|
|
#6
|
|||
|
|||
|
Correction.
How do you find or locate DLLRegister Server entry point? |
|
#7
|
||||
|
||||
|
after you registered your DLL.. did you make a reference to it in your VB App? if not, then go to Project/References, and select your DLL's name and then click ok. --- Did you manage to get it registed using RegSvr32?
|
|
#8
|
|||
|
|||
|
if your dll isn't a Activex dll,You must add some declare before the vb code just like winapi..sample as:
Declare Function gethostbyname Lib "WSOCK32" (ByVal szHost As String) As Long And then use your declared dll function: 'In a form Private Sub Form_Load() dim ipadd as long ipadd=gethostbyname("host1") ...... Last edited by cleverpig : September 27th, 2003 at 11:50 PM. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Visual basic |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|