Schrift
[thread]6012[/thread]

Zugriff auf DLL's: wie macht man das? (Seite 3)

Leser: 1


<< |< 1 2 3 >| >> 22 Einträge, 3 Seiten
esskar
 2004-02-10 22:53
#79115 #79115
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
okay...
ich gebe dir mal ein konkretes beispiel...

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
void* VIA_CreateTerm(const char* config)
{
VIA::CTerm* viaterm = VIA::CreateTerm(config);
return reinterpret_cast<void*>(viaterm);
}

int VIA_SendAndReceive(void* obj, const char* data)
{
VIA::CTerm* viaterm = reinterpret_cast<VIA::CTerm*>(obj);
return viaterm->SR(data);
}

const char* VIA_GetBuffer(void* obj)
{
VIA::CTerm* viaterm = reinterpret_cast<VIA::CTerm*>(obj);
return viaterm->GetBuffer();
}

void VIA_Close(void* obj)
{
VIA::CTerm* viaterm = reinterpret_cast<VIA::CTerm*>(obj);
viaterm->Close();
}

void VIA_Free(void* obj)
{
VIA::CTerm* viaterm = reinterpret_cast<VIA::CTerm*>(obj);
VIA::DeleteTerm(viaterm);
}


und schon kannst du ganz einfach Win32::API verwenden
Rambo
 2004-02-11 13:21
#79116 #79116
User since
2003-08-14
803 Artikel
BenutzerIn

user image
@esskar
recht herzlichen dank!!!!
ich glaube damit komme ich etwas weiter.

er meldet zwar 2 Syntax errors
syntax error at ... line 2, near ")
{"
syntax error at ... line 4, near "*>"
Execution of ... aborted due to compilation errors.

aber die bekomme ich bestimmt noch weg.

Danke dir recht herzlich!

remo
<< |< 1 2 3 >| >> 22 Einträge, 3 Seiten



View all threads created 2004-01-13 12:59.