Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

*& in header

Status
Not open for further replies.

sem

Programmer
Jun 3, 2000
4,709
UA
Hallo,

I've got a DLL and header file, that contains
extern "C" {
//some other delarations
__declspec(dllexport) int __stdcall myfunc (unsigned char*& p1);
typedef int (__stdcall* PROCESS)(unsigned char*);
}

It's apparently for C++, but I need to use it in C program

I replaced this declaration by
__declspec(dllexport) int __stdcall process (unsigned char** p);

and call it as

unsigned char* m = NULL;
int result = process(&m);

Does anybody have an idea why this doesn't work? Isn't it the same? How can I use *& in pure C? Should I have some knowledge about the internals of the procedure being called to call it successfully?
Please, help as I'm really stuck in it
Regards, Dima
 
I'm sorry, I followed wrong link (SQL instead of C). Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top