Click here to Skip to main content
15,904,415 members
Home / Discussions / C#
   

C#

 
AnswerRe: Getting *all* controls of a form Pin
BobJanova28-Nov-12 23:21
BobJanova28-Nov-12 23:21 
AnswerRe: Getting *all* controls of a form Pin
Richard MacCutchan28-Nov-12 23:24
mveRichard MacCutchan28-Nov-12 23:24 
GeneralRe: Getting *all* controls of a form Pin
Dennis Bork3-Dec-12 2:16
Dennis Bork3-Dec-12 2:16 
GeneralRe: Getting *all* controls of a form Pin
Richard MacCutchan3-Dec-12 2:27
mveRichard MacCutchan3-Dec-12 2:27 
AnswerRe: Getting *all* controls of a form Pin
J4amieC28-Nov-12 23:25
J4amieC28-Nov-12 23:25 
AnswerRe: Getting *all* controls of a form Pin
Pete O'Hanlon28-Nov-12 23:27
mvePete O'Hanlon28-Nov-12 23:27 
GeneralRe: Getting *all* controls of a form Pin
J4amieC29-Nov-12 3:22
J4amieC29-Nov-12 3:22 
GeneralRe: Getting *all* controls of a form Pin
Pete O'Hanlon29-Nov-12 3:24
mvePete O'Hanlon29-Nov-12 3:24 
QuestionC# GUI Controlling An External Device Pin
C-P-User-328-Nov-12 15:25
C-P-User-328-Nov-12 15:25 
AnswerRe: C# GUI Controlling An External Device Pin
OriginalGriff28-Nov-12 23:05
mveOriginalGriff28-Nov-12 23:05 
GeneralRe: C# GUI Controlling An External Device Pin
C-P-User-329-Nov-12 5:33
C-P-User-329-Nov-12 5:33 
GeneralRe: C# GUI Controlling An External Device Pin
OriginalGriff29-Nov-12 5:47
mveOriginalGriff29-Nov-12 5:47 
GeneralRe: C# GUI Controlling An External Device Pin
C-P-User-329-Nov-12 6:18
C-P-User-329-Nov-12 6:18 
GeneralRe: C# GUI Controlling An External Device Pin
C-P-User-329-Nov-12 5:57
C-P-User-329-Nov-12 5:57 
GeneralRe: C# GUI Controlling An External Device Pin
OriginalGriff29-Nov-12 6:17
mveOriginalGriff29-Nov-12 6:17 
GeneralRe: C# GUI Controlling An External Device Pin
C-P-User-329-Nov-12 6:27
C-P-User-329-Nov-12 6:27 
GeneralRe: C# GUI Controlling An External Device Pin
OriginalGriff29-Nov-12 8:09
mveOriginalGriff29-Nov-12 8:09 
GeneralRe: C# GUI Controlling An External Device Pin
C-P-User-329-Nov-12 9:27
C-P-User-329-Nov-12 9:27 
GeneralRe: C# GUI Controlling An External Device Pin
OriginalGriff29-Nov-12 20:22
mveOriginalGriff29-Nov-12 20:22 
GeneralRe: C# GUI Controlling An External Device Pin
C-P-User-330-Nov-12 4:38
C-P-User-330-Nov-12 4:38 
GeneralRe: C# GUI Controlling An External Device Pin
C-P-User-329-Nov-12 6:58
C-P-User-329-Nov-12 6:58 
GeneralRe: C# GUI Controlling An External Device Pin
OriginalGriff29-Nov-12 8:04
mveOriginalGriff29-Nov-12 8:04 
QuestionC++ to C# Translation Pin
GenJerDan28-Nov-12 10:37
GenJerDan28-Nov-12 10:37 
Hi
I've got a Delphi32 DLL that I have to call from C# and have a .h, .hpp, and .bas header file.

Would it make most sense to use the .hpp file to create a Class that will wrap the DLL? Seems so to me.

Unfortunately, I don't do C++ Frown | :(

It sort of makes sense, but not completely. Mostly, I know void * should be IntPtr, and char * should be string. But that's about it.

For instance,

const char bapiDll[] = "BAPI32.DLL";
HINSTANCE hLib;
enum TParamType { literal, reference, list } ParamType;
void * pRPC;


should turn into

const string bapiDll = "BAPI32.DLL";
uint HINSTANCE, hLib;
enum TParamType { literal, reference, list } ;
IntPtr pRPC;


Yes? No?

But what do I do with the prototypes and what follows inside the actual guts of the thing? like

void RPCBPropGet ( char * s, char * t);


which obviously has something to do with


void TRPCBroker::RPCBPropGet ( char * s, char * t)
{
iRPCBPropGet(pRPC, s, t);
}


and


TRPCBroker::TRPCBroker()
{
hLib = LoadLibrary(bapiDll);
if((unsigned)hLib<=HINSTANCE_ERROR)
{
char bfr[40];
wsprintf(bfr, "Failure loading library: %s", bapiDll);
MessageBox(NULL, bfr, toolSet, MB_OK|MB_APPLMODAL);
UnLoad = true;
}

. . .
iRPCBPropGet = (void (__stdcall*)(void *, char *, char *)) GetProcAddress(hLib, "RpcbPropGet");
. . .
UnLoad = false;
pRPC = iRPCBCreate();
};



Any good references out there that'll cover this without me having to spend days reading through everything I don't want to know? Or anyone incredibly bored with no life who wants to hold my hand through all 139 lines of it (including empty and comment lines :p )?
No dogs or cats are in the classroom.

My Mu[sic], Films and Windows Programs, etc.

AnswerRe: C++ to C# Translation Pin
Garth J Lancaster28-Nov-12 12:22
professionalGarth J Lancaster28-Nov-12 12:22 
GeneralRe: C++ to C# Translation Pin
GenJerDan28-Nov-12 14:14
GenJerDan28-Nov-12 14:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.