Following the tutorial, I modify my code..
But when I call a dll method from C# application, it immediatly freeze.
Here the code:
faddll.h
#include
#include
#include
namespace cygwin
{
class padding {
public:
padding ();
~padding ();
private:
std::vector< char > _backup;
I'm new on C++ programming..
Can you write an example of 4K scratch space at the bottom of stack on my
simple code:
#include
#include
#define DllExport extern "C" __declspec(dllexport)
DllExport int Somma(int a,int b);
int Somma(int a, int b)
{
HMODULE h = LoadLibrary("cygwin1.dll");
The FAQ tell to read the document: winsup/cygwin/how-cygtls-works.txt
I'm using cygwin under windows vista. Where I can find the document..?
Thanks,
Fad
Brian Dessent wrote:
>
>
> That is not sufficient to dynamically load the library. You need to
> re-read the part of the FAQ that explains
I build my custom dll using g++ and Cygwin environment.
Whe I try to call it, from C# application, it immediatly freeze.
How can I do..?
Fad.
C# code:
[DllImport("faddll.dll", CharSet = CharSet.Auto, EntryPoint = "Somma")]
public static extern int MySum(int a, int b);
int x = MySum(1,2);
C++ co
How specify in FAQ 6.16 I try to compile this code:
...
HMODULE h = LoadLibrary("cygwin1.dll");
void (*init)() = GetProcAddress(h, "cygwin_dll_init");
init();
...
The compiler give my the following error:
festivalDll.cc: In function `void festival_init()':
festivalDll.cc:18: error: invalid c
Without "-lfestival", I have some errors.. because in my code, I use some
functiond defined in the libfestival.a
Ken Jackson-3 wrote:
>
>
> Wait. The switch "-lfestival" tells the linker to use archive
> libfestival.a, which presumably has stubs for festival.dll.
>
> But you are creating fes
I build my custom dll in this two step:
g++ -c festivalDll.cc -L. -lfestival -lestools -lestbase -leststring
-ltermca
p -lwinmm -I ../src/include/ -I ../../speech_tools/include/ -I ./ -o
festivalDl
l.o -mno-cygwin -I./mingw/include -L./mingw/lib/
g++ -shared -o festival.dll festivaldll.o -L. -l
I try to build my custom dll that use Festival TTS libs
(http://www.cstr.ed.ac.uk/projects/festival/).
The custom dll export some functions that I will use with C#.
When I compile my cc files under cygwin with this command line:
g++ -c festivalDll.cc -o festivalDll.o -L. -lfestival -lestools -les
8 matches
Mail list logo