Dll Windows 9x 
Author Message
 Dll Windows 9x

Does someone know how to build a DLL in Pascal and use it in VB ?

I've make one that i can use in Pascal but VB said "File not found !".
My DLL is in Windows\Sytem

Help me please



Tue, 11 Jun 2002 03:00:00 GMT  
 Dll Windows 9x

Quote:

> Does someone know how to build a DLL in Pascal and use it in VB ?

> I've make one that i can use in Pascal but VB said "File not found !".
> My DLL is in Windows\Sytem

With BPW 7 and TP 1.5 and Delphi 1 you can create Windows 3.x DLL's
(16-bit).

With Delphi 2 'up you can create Windows 32 DLL's.

The keyword is "Library" instead of "Program" in the first
line.

http://bsn.ch/tp-links
has a lot of information about Pascal and Delphi programming.
In the compiler chapter you find other compilers too.

:-)
--
Franz Glaser, Glasau 3, A-4191 Vorderweissenbach Austria +43-7219-7035-0
Muehlviertler Elektronik Glaser.  Industrial control and instrumentation
http://members.eunet.at/meg-glaser/    http://members.xoom.com/f_glaser/
http://www.geocities.com/~franzglaser/            http://start.at/bedarf



Tue, 11 Jun 2002 03:00:00 GMT  
 Dll Windows 9x
I know that but the problem is to use the DLL in VB.
The DLL i've wrote work fine in Pascal but in VB i've the message "File not
Found" !


Quote:

>> Does someone know how to build a DLL in Pascal and use it in VB ?

>> I've make one that i can use in Pascal but VB said "File not found !".
>> My DLL is in Windows\Sytem

>With BPW 7 and TP 1.5 and Delphi 1 you can create Windows 3.x DLL's
>(16-bit).

>With Delphi 2 'up you can create Windows 32 DLL's.

>The keyword is "Library" instead of "Program" in the first
>line.

>http://bsn.ch/tp-links
>has a lot of information about Pascal and Delphi programming.
>In the compiler chapter you find other compilers too.

>:-)
>--
>Franz Glaser, Glasau 3, A-4191 Vorderweissenbach Austria +43-7219-7035-0
>Muehlviertler Elektronik Glaser.  Industrial control and instrumentation
>http://members.eunet.at/meg-glaser/    http://members.xoom.com/f_glaser/
>http://www.geocities.com/~franzglaser/            http://start.at/bedarf



Tue, 11 Jun 2002 03:00:00 GMT  
 Dll Windows 9x
Hi!

Well, I haven't used Pascal for many years, but here are
some thoughts, which could help:

- code the whole path and filename (with extension) in your
declare statement
- watch for spelling errors (sounds incredible, but it can
happen:-)

- In the programming world, there is a topic named "calling
conventions". It's about how parameters are passed to
procedures. Fact is that Pascal and C use different calling
conventions. I have no idea how Basic passes parameters to
subs, but maybe it is worth digging in the docu to find out
if there isn't any incompatibility there. Maybe VB finds the
 file, but doesn't recognize the format - we all have seen
stupid error messages by now :-)

Hope it helps.

Gabriel

* Sent from AltaVista http://www.altavista.com Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping.  Smart is Beautiful



Thu, 13 Jun 2002 03:00:00 GMT  
 Dll Windows 9x
I believe VB uses Pascal conventions. Watch out if you are passing arrays.
VB arrays are mean stuff. Have a look around in the VB CD, there is an
article on how to implement calls properly. Best approach is to get it
working then wrap the calls up so that they look like ordinary VB functions.

DLL not found ... place the dll file in C:\windows, or C:\windows\system or
application path.


Quote:
> Hi!

> Well, I haven't used Pascal for many years, but here are
> some thoughts, which could help:

> - code the whole path and filename (with extension) in your
> declare statement
> - watch for spelling errors (sounds incredible, but it can
> happen:-)

> - In the programming world, there is a topic named "calling
> conventions". It's about how parameters are passed to
> procedures. Fact is that Pascal and C use different calling
> conventions. I have no idea how Basic passes parameters to
> subs, but maybe it is worth digging in the docu to find out
> if there isn't any incompatibility there. Maybe VB finds the
>  file, but doesn't recognize the format - we all have seen
> stupid error messages by now :-)

> Hope it helps.

> Gabriel

> * Sent from AltaVista http://www.altavista.com Where you can also find

related Web Pages, Images, Audios, Videos, News, and Shopping.  Smart is
Beautiful


Thu, 13 Jun 2002 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. RegObj.dll and Windows 9x

2. Windows 9x Registry

3. Windows 9x Start Button look a like

4. Shutdown Windows 9x in VB3?

5. how to change login domain on windows 9x client

6. List of ActiveX automation objects for Windows 9x?

7. CDO In Windows 9x

8. Strange file problem windows 9x, not NT

9. GDI messed up on intensive blitting on Windows 9X

10. Kill App in Windows 9x

11. Calling shell32 to shutdown windows 9x

12. GDI messed up on intensive blitting on Windows 9X

 

 
Powered by phpBB® Forum Software