Guest_imported
New member
- Jan 1, 1970
- 0
Dear all,
I coded some c a decade ago... sigh yeah i know i should refresh it more often.
Here's my problem.
In our Powerbuilder program we make use of an external software package. To modify the procedure they use, they provided us some info and told us to change the dll file. I need to know all the different steps to create a dll. I don't need the info an creatin the exe cause this is done by the external software supplier.
Here's what i have till now
3 files being bridge.c, bridge.h, bridge.def
Contents of bridge.h
#ifndef __DBTBRIDGE__H
#define __DBTBRIDGE__H
#include <windows.h>
BOOL WINAPI DllEntryPoint( HINSTANCE hDll,
DWORD fdwReason,
LPVOID lpvReserved );
typedef int (WINAPI *LPFNEXPORTED)(void);
BOOL WINAPI SetValues( HINSTANCE EXEh, HWND hwnd, char *code, char *values );
#endif
Contents of bridge.def
EXPORTS
DllEntryPoint
SetValues
Contents of bridge.c
#include "windows.h"
#define MAXLEN (20000)
#include "dbtbridge.h"
int main()
{}
BOOL WINAPI DllEntryPoint(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
return(1);
}
BOOL WINAPI SetValues( HINSTANCE EXEh, HWND hwnd, char *code, char *values )
{
char textout[MAXLEN];
sprintf( textout, "The code is [%s]", code );
MessageBox( hwnd, "Code Test", textout, MB_OK );
sprintf( textout, "The value is [%s]", values );
MessageBox( hwnd, "Value Test", textout, MB_OK );
}
You might want to take a look at my code also, it compiles without warnings/errors but i might have coded something wrong. I can compile my bridge.c , but i don't know how to create my dll. This dll adapted and created by us, will be copied over the existing dll, so the dll is triggered from within the external software.
I hope i make sense...
Any help is highly appreciated
PS I use Dev-C++ as editor/compiler.
Vanleeuwe John
john@sofdes.com
I coded some c a decade ago... sigh yeah i know i should refresh it more often.
Here's my problem.
In our Powerbuilder program we make use of an external software package. To modify the procedure they use, they provided us some info and told us to change the dll file. I need to know all the different steps to create a dll. I don't need the info an creatin the exe cause this is done by the external software supplier.
Here's what i have till now
3 files being bridge.c, bridge.h, bridge.def
Contents of bridge.h
#ifndef __DBTBRIDGE__H
#define __DBTBRIDGE__H
#include <windows.h>
BOOL WINAPI DllEntryPoint( HINSTANCE hDll,
DWORD fdwReason,
LPVOID lpvReserved );
typedef int (WINAPI *LPFNEXPORTED)(void);
BOOL WINAPI SetValues( HINSTANCE EXEh, HWND hwnd, char *code, char *values );
#endif
Contents of bridge.def
EXPORTS
DllEntryPoint
SetValues
Contents of bridge.c
#include "windows.h"
#define MAXLEN (20000)
#include "dbtbridge.h"
int main()
{}
BOOL WINAPI DllEntryPoint(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
return(1);
}
BOOL WINAPI SetValues( HINSTANCE EXEh, HWND hwnd, char *code, char *values )
{
char textout[MAXLEN];
sprintf( textout, "The code is [%s]", code );
MessageBox( hwnd, "Code Test", textout, MB_OK );
sprintf( textout, "The value is [%s]", values );
MessageBox( hwnd, "Value Test", textout, MB_OK );
}
You might want to take a look at my code also, it compiles without warnings/errors but i might have coded something wrong. I can compile my bridge.c , but i don't know how to create my dll. This dll adapted and created by us, will be copied over the existing dll, so the dll is triggered from within the external software.
I hope i make sense...
Any help is highly appreciated
PS I use Dev-C++ as editor/compiler.
Vanleeuwe John
john@sofdes.com