NO

Author Topic: Why my DLL require "pocrt.dll"?  (Read 3977 times)

David Strutz

  • Guest
Why my DLL require "pocrt.dll"?
« 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?
« Last Edit: June 13, 2008, 01:12:05 AM by David Strutz »

David Strutz

  • Guest
Re: pocrt.dll
« Reply #1 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?

JohnF

  • Guest
Re: pocrt.dll
« Reply #2 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

David Strutz

  • Guest
Re: pocrt.dll
« Reply #3 on: June 13, 2008, 01:01:51 AM »
Thank you - it works fine!