Re: Help with simple winelib dll

2010-06-17 Thread Seth Burleigh
Thanks all! I got it to work! There was 2 mistakes with my thing - first, i had an empty definition for DllMain which caused the error 126 and then , well, i called the wrong function from metatrader. I shouldve been calling MyWinFunction. I guess i wasn't doing this because i wasn't seeing it whe

Re: Help with simple winelib dll

2010-06-17 Thread André Hentschel
Am 17.06.2010 04:52, schrieb Seth Burleigh: > OK, so i have the dll built. However, it doesn't seem to be able to > open. Let me explain, im using it in metatrader and so all im doing is > moving the dll.so (and renamed it to MyWin.dll) to its libraries folder > and doing an import statement in mq

Re: Help with simple winelib dll

2010-06-16 Thread Seth Burleigh
OK, so i have the dll built. However, it doesn't seem to be able to open. Let me explain, im using it in metatrader and so all im doing is moving the dll.so (and renamed it to MyWin.dll) to its libraries folder and doing an import statement in mql4. However, i then get a system error 'Cannot load

Re: Help with simple winelib dll

2010-06-16 Thread Seth Burleigh
Well, adding the -shared worked! Thanks! Is there any way i can get winemaker to do this automatically? I thought the -dll option would work?

Re: Help with simple winelib dll

2010-06-16 Thread André Hentschel
Am 16.06.2010 15:50, schrieb Seth Burleigh: > Thanks, the example helped, i added in the dll main part. But im still > getting the WinMain error and im convinced it has something to do with > how im executing winemaker. > > winemaker . --nosource-fix --dll --single-target MyWin --nomfc -I"." > -L"

Re: Help with simple winelib dll

2010-06-16 Thread Seth Burleigh
Thanks, the example helped, i added in the dll main part. But im still getting the WinMain error and im convinced it has something to do with how im executing winemaker. winemaker . --nosource-fix --dll --single-target MyWin --nomfc -I"." -L"." -iMyLinuxFunc The new command line result of make is

Re: Help with simple winelib dll

2010-06-16 Thread Seth Shelnutt
Seth, Take a look at the source code to the CUDA 3.0 wrapper I just finished. You have some mistakes in your coding and this should help provide you a better example. When I first was coding the CUDA 2.0 wrapper some people told me to look at opengl and how it was wrapper to the linux library so t

Help with simple winelib dll

2010-06-16 Thread Seth Burleigh
Im attempting to build a dll which a windows program running under wine can dynamically load. The dll will be a wrapper around a linux library. In preparation ive tried to follow the instructions here http://www.winehq.org/docs/winelib-guide/bindlls with a simple example but have not succeeded. Bel