Click here to Skip to main content
15,888,286 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: C++ Windows Socket Problem. Pin
Christian Graus20-Mar-05 13:44
protectorChristian Graus20-Mar-05 13:44 
GeneralRe: C++ Windows Socket Problem. Pin
toxcct22-Mar-05 4:10
toxcct22-Mar-05 4:10 
Generalplllzzz help me out:producer- consumer program urgently needed Pin
pradeep reddy19-Mar-05 20:26
pradeep reddy19-Mar-05 20:26 
GeneralRe: plllzzz help me out:producer- consumer program urgently needed Pin
Christian Graus20-Mar-05 13:43
protectorChristian Graus20-Mar-05 13:43 
GeneralRe: plllzzz help me out:producer- consumer program urgently needed Pin
skonopa23-Mar-05 3:50
skonopa23-Mar-05 3:50 
GeneralRe: plllzzz help me out:producer- consumer program urgently needed Pin
Christian Graus23-Mar-05 11:12
protectorChristian Graus23-Mar-05 11:12 
QuestionControlling ActiveChild form from MDI Parent - How? Pin
Francis TA19-Mar-05 5:18
sussFrancis TA19-Mar-05 5:18 
GeneralMultiple DllImportAttribute Statements Problem Pin
Chikky17-Mar-05 12:21
Chikky17-Mar-05 12:21 
Hi,
I have been succesful using single statement of DllImportAttribute to use my unmanaged Dll code. But, now I want to have 2 entrys in my Dll, so I wrote two DllImportAttribute Statements:

[System::Runtime::InteropServices:llImportAttribute
("D:\\Tumego\\MultiWayTree\\VBMGUM_DLL\\Debug\\VBMGUM_DLL.dll", _
CharSet =CharSet::Auto)]
extern int GetValue1000(void);
//
[System::Runtime::InteropServices:llImportAttribute
("D:\\Tumego\\MultiWayTree\\VBMGUM_DLL\\Debug\\VBMGUM_DLL.dll", _
CharSet =CharSet::Auto)]
extern int GetValue99(void);

The Error messages are:
BMGUM_MG.cpp(16) : error C2363: ?argument? '"_\r\nCharSet"="CharSet::Auto"' (?Custom Attribute? 'System::Runtime::InteropServices:llImportAttribute') ?Can not be evaluated?
VBMGUM_MG.cpp(13) : error C3725: 'System::Runtime::InteropServices:llImportAttribute': ? Can not interpret overloading of attribute?
?it might be ?'System::Runtime::InteropServices:llImportAttribute:llImportAttribute(System::String __gc *)'
*****?----? is not exact but is translated from Japanese Version Visual Studio ***********

Writing multiple DllImportAttribute Statement like this is fine:
even I can use using namespace:

using namespace System::Runtime::InteropServices;
[DllImportAttribute("Kernel32.dll", CharSet=CharSet::Auto)]
extern "C" int QueryPerformanceFrequency(__int64* Freq);
[DllImportAttribute("Kernel32.dll", CharSet=CharSet::Auto)]
extern "C" int QueryPerformanceCounter(__int64* Tw);

I do not like Dll expression of "D:\\Tumego\\MultiWayTree\\VBMGUM_DLL\\Debug\\VBMGUM_DLL.dll", becasuse of manageing difficulty. But I do not know other way. May be this expression is the reason for trouble.

The rest of the codes:
DLL simplified finnally like this:

int GetValue1000(void)
{
int a = 1000;
return a;
}

int GetValue99(void)
{
int a =99;
return 99;
}

Definition file:

LIBRARY VBMGUM_DLL
EXPORTS
GetValue1000
GetValue99

Any hints, comments and May-be answers are appreciated, as well as final shot.
Please help me.Rose | [Rose]
GeneralRe: Multiple DllImportAttribute Statements Problem Pin
Chikky24-Mar-05 11:43
Chikky24-Mar-05 11:43 
Generalclosing a form/dialog Pin
doneirik16-Mar-05 1:36
doneirik16-Mar-05 1:36 
GeneralRe: closing a form/dialog Pin
Christian Graus16-Mar-05 15:43
protectorChristian Graus16-Mar-05 15:43 
GeneralRe: closing a form/dialog Pin
Anonymous18-Mar-05 20:58
Anonymous18-Mar-05 20:58 
QuestionCan i write a Dialog Based Program on DLL Pin
popo8414-Mar-05 15:47
popo8414-Mar-05 15:47 
AnswerRe: Can i write a Dialog Based Program on DLL Pin
User 91483328-Mar-05 12:02
User 91483328-Mar-05 12:02 
Generalerror C2061: syntax error : identifier 'SocketChatClient' Pin
neo_coder14-Mar-05 10:35
neo_coder14-Mar-05 10:35 
GeneralRe: error C2061: syntax error : identifier 'SocketChatClient' Pin
Steve Mayfield14-Mar-05 12:17
Steve Mayfield14-Mar-05 12:17 
GeneralRe: error C2061: syntax error : identifier 'SocketChatClient' Pin
neo_coder15-Mar-05 2:32
neo_coder15-Mar-05 2:32 
GeneralUsing MFC within a .NET application Pin
skonopa14-Mar-05 10:25
skonopa14-Mar-05 10:25 
GeneralRe: Using MFC within a .NET application Pin
Sheng Jiang 蒋晟15-Mar-05 17:43
Sheng Jiang 蒋晟15-Mar-05 17:43 
GeneralRe: Using MFC within a .NET application Pin
skonopa22-Mar-05 4:06
skonopa22-Mar-05 4:06 
GeneralRe: Using MFC within a .NET application Pin
Sheng Jiang 蒋晟22-Mar-05 4:17
Sheng Jiang 蒋晟22-Mar-05 4:17 
GeneralRe: Using MFC within a .NET application Pin
skonopa22-Mar-05 7:31
skonopa22-Mar-05 7:31 
GeneralRe: Using MFC within a .NET application Pin
skonopa23-Mar-05 5:37
skonopa23-Mar-05 5:37 
GeneralRe: Using MFC within a .NET application Pin
Sheng Jiang 蒋晟23-Mar-05 8:05
Sheng Jiang 蒋晟23-Mar-05 8:05 
GeneralRe: Using MFC within a .NET application Pin
sunhui1-Jun-05 17:54
sunhui1-Jun-05 17:54 

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.