MFC APLICATION AND MANAGED CODE
-
if i creat an application of mfc dll and i want to use its classes in c# how will i use it? plz tell complete steps may i have to use /clr option in mfc dll application if yes why? may i haye to write mfc code in between namespace braces namespace mfcdll { } am i right? r00d0034@yahoo.com
-
if i creat an application of mfc dll and i want to use its classes in c# how will i use it? plz tell complete steps may i have to use /clr option in mfc dll application if yes why? may i haye to write mfc code in between namespace braces namespace mfcdll { } am i right? r00d0034@yahoo.com
One option is to write an
__gc
wrapper for the unmanaged code Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
-
One option is to write an
__gc
wrapper for the unmanaged code Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
-
Hi Nish, I am new to programming and have never heard of a __gc wrapper? Could you tell how I can find out more about __gc wrappers? Thanks
See this article :- http://www.codeproject.com/managedcpp/cbwijw.asp for an example of
__gc
wrappers. Regards, Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
-
One option is to write an
__gc
wrapper for the unmanaged code Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
can u tell me how to wrep csocket class ? plz nish r00d0034@yahoo.com
-
can u tell me how to wrep csocket class ? plz nish r00d0034@yahoo.com
You don't need to wrap CSocket. Here is how you can use CSocket in an MC++ application using IJW
AfxSocketInit();
CSocket s;
s.Create();
String* cmd = "GET /\r\n\r\n";
String* url = "www.google.com";
if(s.Connect((CString)url,80))
{
s.Send((CString)cmd,cmd->Length);
char buf[127];
while(int n = s.Receive(buf,128))
{
buf[n]=0;
System::Console::WriteLine(buf);
}
}
s.Close();Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
-
You don't need to wrap CSocket. Here is how you can use CSocket in an MC++ application using IJW
AfxSocketInit();
CSocket s;
s.Create();
String* cmd = "GET /\r\n\r\n";
String* url = "www.google.com";
if(s.Connect((CString)url,80))
{
s.Send((CString)cmd,cmd->Length);
char buf[127];
while(int n = s.Receive(buf,128))
{
buf[n]=0;
System::Console::WriteLine(buf);
}
}
s.Close();Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
if u could tell that if i want to inherit a class from csocket that might be c# class how to do it ? relpy in the same way plz sketch a little code for that. thanks for above code you dont imagine how much it solve mine promblem. r00d0034@yahoo.com