Pelles C forum

C language => Beginner questions => Topic started by: David Strutz on June 11, 2008, 09:50:11 PM

Title: Why my DLL require "pocrt.dll"?
Post by: David Strutz on June 11, 2008, 09:50:11 PM
Pelles C 4.5

Writing a DLL like
Code: [Select]
#define WIN32_LEAN_AND_MEAN  /* speed up */
#include <windows.h>
#include <tchar.h>
#include <winsock.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>

;int WINAPI serverSetup(long,long,long)
;int WINAPI clientSetup(long,long,long)

//blablablub...

If there is no "pocrt.dll" on target computer, my dll doesnt work and a Messagebox like "pocrt.dll not found" appears.

What is my fault?
Title: Re: pocrt.dll
Post by: David Strutz on June 12, 2008, 12:13:53 AM
Ah! I see, using i.e. strcat requires pocrt.dll.

Is there a way to put pocrt.dll into my dll?
Title: Re: pocrt.dll
Post by: JohnF on June 12, 2008, 11:10:31 AM
Ah! I see, using i.e. strcat requires pocrt.dll.

Is there a way to put pocrt.dll into my dll?

No.

Why are you not using crt.lib - no external DLL will be required.

John
Title: Re: pocrt.dll
Post by: David Strutz on June 13, 2008, 01:01:51 AM
Thank you - it works fine!