473,806 Members | 2,321 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

managed c++ calling c#: how to delegate?

Hey!

I have a managed c++ app (actually, the app is mixed managed/unmanaged, but
this happens in the managed part) that dynamically generates some program in
c# (with CSharpCodeProvi der).

The problem now is that somehow I get runtime errors when trying to pass a
function (via delegates) into the c# code in order to make c# call back that
function. The message box says: "An unhandled exeption of type
'System.Argumen tException' occurred in mscorlib.dll Additional information:
The object with type my_delegate cannot be converted to type my_delegate.'
(Actually, this is a translation of my message.)
I have given both delegate declarations the same name in case this was the
error.

Maybe someone can help?

Best regards + many thanks,
Andreas
A short code excerpt:

(managed c++)

public delegate void my_delegate();

void del_func_cpp(vo id)

{

Console::WriteL ine("del_func_c pp called");

}

(later on..)

System::Reflect ion::Assembly^ a = cr->CompiledAssemb ly;

System::Object^ _Compiled;

_Compiled = a->CreateInstance ("test_class ");

System::Reflect ion::MethodInfo ^ mi2 =

_Compiled->GetType()->GetMethod("tes t_ff");

array<my_delega te ^^ MyArray2 = gcnew array<my_delega te ^>(1);

MyArray2[0] = gcnew my_delegate( &del_func_cp p );

MyArray2[0](); <- this still works

mi2->Invoke(_Compil ed, MyArray2); <- here it crashes

I create the c# program from the following string:

strncat_s(out, sizeof(out), "public delegate void my_delegate();\ n",
sizeof(out));

strncat_s(out, sizeof(out), "public class test_class {\n", sizeof(out));

strncat_s(out, sizeof(out), " public void test_ff(my_dele gate x)\n",
sizeof(out));

strncat_s(out, sizeof(out), " {\n", sizeof(out));

strncat_s(out, sizeof(out), " System.Console. WriteLine(\"at least the
function got called\");\n", sizeof(out));

strncat_s(out, sizeof(out), " x();\n", sizeof(out));

strncat_s(out, sizeof(out), " }\n", sizeof(out));

strncat_s(out, sizeof(out), "}", sizeof(out));

I don't get the "at least the function got called" message.
Mar 21 '07 #1
7 3150

"Andreas Reiff" <ha************ **@gmx.netwrote in message
news:56******** *****@mid.dfnci s.de...
Hey!

I have a managed c++ app (actually, the app is mixed managed/unmanaged,
but this happens in the managed part) that dynamically generates some
program in c# (with CSharpCodeProvi der).

The problem now is that somehow I get runtime errors when trying to pass a
function (via delegates) into the c# code in order to make c# call back
that function. The message box says: "An unhandled exeption of type
'System.Argumen tException' occurred in mscorlib.dll Additional
information: The object with type my_delegate cannot be converted to type
my_delegate.' (Actually, this is a translation of my message.)
I have given both delegate declarations the same name in case this was the
error.

Maybe someone can help?

Best regards + many thanks,
Andreas
A short code excerpt:

(managed c++)

public delegate void my_delegate();

void del_func_cpp(vo id)

{

Console::WriteL ine("del_func_c pp called");

}

(later on..)

System::Reflect ion::Assembly^ a = cr->CompiledAssemb ly;

System::Object^ _Compiled;

_Compiled = a->CreateInstance ("test_class ");

System::Reflect ion::MethodInfo ^ mi2 =

_Compiled->GetType()->GetMethod("tes t_ff");

array<my_delega te ^^ MyArray2 = gcnew array<my_delega te ^>(1);

MyArray2[0] = gcnew my_delegate( &del_func_cp p );

MyArray2[0](); <- this still works

mi2->Invoke(_Compil ed, MyArray2); <- here it crashes

I create the c# program from the following string:

strncat_s(out, sizeof(out), "public delegate void my_delegate();\ n",
sizeof(out));
That's not going to work. You need to import the delegate type from the
C++/CLI assembly as a reference in the C# program, or else leave the
delegate declaration out of the C++/CLI assembly entirely, obtain the
delegate Type from the C# assembly via reflection, and use the static
methods of the Delegate to create an object of that delegate type, passing
the C++ function pointer.

Let's bring this discussion to the microsoft.publi c.dotnet.langua ges.vc
newsgroup -- almost all C++/CLI programmers know C# and are comfortable with
advanced topics like templates and reflection, while a very small fraction
of C# programmers could write even a short C++ program.
Mar 21 '07 #2
hehe, Not all C# programmers are from Java side.

Anyway, assume no problem in complie the C# part.
First of all, you do not need that "public delegate void my_delegate();" in
the VC++.net. Unless I miss it. I do not see you create the instance of the
delegate.

cheers,
RL

"Ben Voigt" <rb*@nospam.nos pamwrote in message
news:%2******** **********@TK2M SFTNGP02.phx.gb l...
>
"Andreas Reiff" <ha************ **@gmx.netwrote in message
news:56******** *****@mid.dfnci s.de...
>Hey!

I have a managed c++ app (actually, the app is mixed managed/unmanaged,
but this happens in the managed part) that dynamically generates some
program in c# (with CSharpCodeProvi der).

The problem now is that somehow I get runtime errors when trying to pass
a function (via delegates) into the c# code in order to make c# call back
that function. The message box says: "An unhandled exeption of type
'System.Argume ntException' occurred in mscorlib.dll Additional
information: The object with type my_delegate cannot be converted to type
my_delegate. ' (Actually, this is a translation of my message.)
I have given both delegate declarations the same name in case this was
the error.

Maybe someone can help?

Best regards + many thanks,
Andreas
A short code excerpt:

(managed c++)

public delegate void my_delegate();

void del_func_cpp(vo id)

{

Console::Write Line("del_func_ cpp called");

}

(later on..)

System::Reflec tion::Assembly^ a = cr->CompiledAssemb ly;

System::Object ^ _Compiled;

_Compiled = a->CreateInstance ("test_class ");

System::Reflec tion::MethodInf o^ mi2 =

_Compiled->GetType()->GetMethod("tes t_ff");

array<my_deleg ate ^^ MyArray2 = gcnew array<my_delega te ^>(1);

MyArray2[0] = gcnew my_delegate( &del_func_cp p );

MyArray2[0](); <- this still works

mi2->Invoke(_Compil ed, MyArray2); <- here it crashes

I create the c# program from the following string:

strncat_s(ou t, sizeof(out), "public delegate void my_delegate();\ n",
sizeof(out)) ;

That's not going to work. You need to import the delegate type from the
C++/CLI assembly as a reference in the C# program, or else leave the
delegate declaration out of the C++/CLI assembly entirely, obtain the
delegate Type from the C# assembly via reflection, and use the static
methods of the Delegate to create an object of that delegate type, passing
the C++ function pointer.

Let's bring this discussion to the microsoft.publi c.dotnet.langua ges.vc
newsgroup -- almost all C++/CLI programmers know C# and are comfortable
with advanced topics like templates and reflection, while a very small
fraction of C# programmers could write even a short C++ program.

Mar 21 '07 #3
"Andreas Reiff" <ha************ **@gmx.netwrote in message
news:56******** *****@mid.dfnci s.de...
Hey!

I have a managed c++ app (actually, the app is mixed managed/unmanaged, but this happens
in the managed part) that dynamically generates some program in c# (with
CSharpCodeProvi der).

The problem now is that somehow I get runtime errors when trying to pass a function (via
delegates) into the c# code in order to make c# call back that function. The message box
says: "An unhandled exeption of type 'System.Argumen tException' occurred in mscorlib.dll
Additional information: The object with type my_delegate cannot be converted to type
my_delegate.' (Actually, this is a translation of my message.)
I have given both delegate declarations the same name in case this was the error.

Your code ain't gonna work. Following is a small (Quick and dirty) sample that may help you
implement this in your code.
Compile and run, it should give you some idea's about what's wrong with your code.

// C++ file : useDynDel.cpp
using namespace System;
using namespace System::Text;
using namespace Microsoft::CSha rp;
using namespace System::CodeDom ;
using namespace System::CodeDom ::Compiler;
using namespace System::Reflect ion;
using namespace System::IO;

namespace Tester
{
public delegate void SampleDelegate( String ^s);
public interface class Command
{
void Execute(SampleD elegate^ dl);
};

bool BuildAndCompile CS()
{
StringBuilder^ sb = gcnew StringBuilder() ;
sb->Append("usin g System;" + System::Environ ment::NewLine);
sb->Append(System: :Environment::N ewLine);
sb->Append("namesp ace Tester" + System::Environ ment::NewLine);
sb->Append("{" + System::Environ ment::NewLine);
sb->Append(" public class TestClass : Tester.Command" + System::Environ ment::NewLine);
sb->Append(" {" + System::Environ ment::NewLine);
sb->Append(" public TestClass()" + System::Environ ment::NewLine);
sb->Append(" {" + System::Environ ment::NewLine);
sb->Append(" }" + System::Environ ment::NewLine);
sb->Append(System: :Environment::N ewLine);
sb->Append(" public void Execute(SampleD elegate del) " + System::Environ ment::NewLine);
sb->Append(" {" + System::Environ ment::NewLine);
sb->Append(" del(\"Hello from Delegate - This is a testmessage\"); " +
System::Environ ment::NewLine);
sb->Append(" }" + System::Environ ment::NewLine);
sb->Append(" }" + System::Environ ment::NewLine);
sb->Append("}" + System::Environ ment::NewLine);
CSharpCodeProvi der^ csp = gcnew CSharpCodeProvi der();
ICodeCompiler^ cc = csp->CreateCompiler ();
CompilerParamet ers^ cp = gcnew CompilerParamet ers();
cp->OutputAssemb ly = ".\\TestClass.d ll";
cp->ReferencedAsse mblies->Add("useDynDel .exe");
cp->WarningLevel = 3;
cp->CompilerOption s = "/target:library /o+";
cp->GenerateExecut able = false;
cp->GenerateInMemo ry = false;
Compiler::TempF ileCollection^ tfc = gcnew TempFileCollect ion(".\\", false);
CompilerResults ^ cr = gcnew CompilerResults (tfc);

cr = cc->CompileAssembl yFromSource(cp, sb->ToString());

if (cr->Errors->Count 0)
{
Console::WriteL ine(cr->Errors[0]->ToString());
return false;
}
else

return true;
}

array<Byte>^ loadFile(String ^ filename)
{
FileStream fs(filename, FileMode::Open) ;
array<Byte>^ buffer = gcnew array<Byte>((in t) fs.Length);
fs.Read(buffer, 0, buffer->Length);
fs.Close();
return buffer;
}
void DelMethod(Strin g^ s)
{
Console::WriteL ine(s);
}

void Execute()
{

AppDomain^ newDomain = AppDomain::Curr entDomain;
array<Byte>^ rawAssembly = loadFile("TestC lass.dll");
Assembly^ assembly = newDomain->Load(rawAssemb ly, nullptr);
SampleDelegate^ d1 = gcnew SampleDelegate( DelMethod);
Command^ testClass = dynamic_cast<Co mmand^>(assembl y->CreateInstance ("Tester.TestCl ass"));
if(testClass != nullptr)
testClass->Execute(d1);
}
}
int main(array<Syst em::String ^^args)
{
if(Tester::Buil dAndCompileCS() )
Tester::Execute ();
return 0;
}

Willy.

Mar 21 '07 #4
From the little managed c++ knowledge I have, I create it here
>array<my_deleg ate ^^ MyArray2 = gcnew array<my_delega te ^>(1);

MyArray2[0] = gcnew my_delegate( &del_func_cp p );
Anyhow, the version of Willy Denoyette seems to work, so I will try to
understand it now. :)

Many many thx for your help though, to both of you!!

:)
"Egghead" <robertlo@NO_SH AW.CAschrieb im Newsbeitrag
news:uO******** ******@TK2MSFTN GP06.phx.gbl...
hehe, Not all C# programmers are from Java side.

Anyway, assume no problem in complie the C# part.
First of all, you do not need that "public delegate void my_delegate();"
in the VC++.net. Unless I miss it. I do not see you create the instance of
the delegate.

cheers,
RL

"Ben Voigt" <rb*@nospam.nos pamwrote in message
news:%2******** **********@TK2M SFTNGP02.phx.gb l...
>>
"Andreas Reiff" <ha************ **@gmx.netwrote in message
news:56******* ******@mid.dfnc is.de...
>>Hey!

I have a managed c++ app (actually, the app is mixed managed/unmanaged,
but this happens in the managed part) that dynamically generates some
program in c# (with CSharpCodeProvi der).

The problem now is that somehow I get runtime errors when trying to pass
a function (via delegates) into the c# code in order to make c# call
back that function. The message box says: "An unhandled exeption of type
'System.Argum entException' occurred in mscorlib.dll Additional
information : The object with type my_delegate cannot be converted to
type my_delegate.' (Actually, this is a translation of my message.)
I have given both delegate declarations the same name in case this was
the error.

Maybe someone can help?

Best regards + many thanks,
Andreas
A short code excerpt:

(managed c++)

public delegate void my_delegate();

void del_func_cpp(vo id)

{

Console::Writ eLine("del_func _cpp called");

}

(later on..)

System::Refle ction::Assembly ^ a = cr->CompiledAssemb ly;

System::Objec t^ _Compiled;

_Compiled = a->CreateInstance ("test_class ");

System::Refle ction::MethodIn fo^ mi2 =

_Compiled->GetType()->GetMethod("tes t_ff");

array<my_dele gate ^^ MyArray2 = gcnew array<my_delega te ^>(1);

MyArray2[0] = gcnew my_delegate( &del_func_cp p );

MyArray2[0](); <- this still works

mi2->Invoke(_Compil ed, MyArray2); <- here it crashes

I create the c# program from the following string:

strncat_s(out , sizeof(out), "public delegate void my_delegate();\ n",
sizeof(out) );

That's not going to work. You need to import the delegate type from the
C++/CLI assembly as a reference in the C# program, or else leave the
delegate declaration out of the C++/CLI assembly entirely, obtain the
delegate Type from the C# assembly via reflection, and use the static
methods of the Delegate to create an object of that delegate type,
passing the C++ function pointer.

Let's bring this discussion to the microsoft.publi c.dotnet.langua ges.vc
newsgroup -- almost all C++/CLI programmers know C# and are comfortable
with advanced topics like templates and reflection, while a very small
fraction of C# programmers could write even a short C++ program.


Mar 22 '07 #5
I don't really understand it 100%ly right now, but I am working on it.

From what I think I understand, the difference is, that you use the calling
assembly as a reference and thus have the same delegate declaration in both
assemblies?!

Ohoh.. .net really is tricky..

Anyhow, many thx for your solution, I suppose that I will have understood it
probably tomorrow (and actually just with copy + paste it is working already
in my program).

Best regards!
"Willy Denoyette [MVP]" <wi************ *@telenet.besch rieb im Newsbeitrag
news:uu******** ******@TK2MSFTN GP06.phx.gbl...
"Andreas Reiff" <ha************ **@gmx.netwrote in message
news:56******** *****@mid.dfnci s.de...
>Hey!

I have a managed c++ app (actually, the app is mixed managed/unmanaged,
but this happens in the managed part) that dynamically generates some
program in c# (with CSharpCodeProvi der).

The problem now is that somehow I get runtime errors when trying to pass
a function (via delegates) into the c# code in order to make c# call back
that function. The message box says: "An unhandled exeption of type
'System.Argume ntException' occurred in mscorlib.dll Additional
information: The object with type my_delegate cannot be converted to type
my_delegate. ' (Actually, this is a translation of my message.)
I have given both delegate declarations the same name in case this was
the error.


Your code ain't gonna work. Following is a small (Quick and dirty) sample
that may help you implement this in your code.
Compile and run, it should give you some idea's about what's wrong with
your code.

// C++ file : useDynDel.cpp
using namespace System;
using namespace System::Text;
using namespace Microsoft::CSha rp;
using namespace System::CodeDom ;
using namespace System::CodeDom ::Compiler;
using namespace System::Reflect ion;
using namespace System::IO;

namespace Tester
{
public delegate void SampleDelegate( String ^s);
public interface class Command
{
void Execute(SampleD elegate^ dl);
};

bool BuildAndCompile CS()
{
StringBuilder^ sb = gcnew StringBuilder() ;
sb->Append("usin g System;" + System::Environ ment::NewLine);
sb->Append(System: :Environment::N ewLine);
sb->Append("namesp ace Tester" + System::Environ ment::NewLine);
sb->Append("{" + System::Environ ment::NewLine);
sb->Append(" public class TestClass : Tester.Command" +
System::Environ ment::NewLine);
sb->Append(" {" + System::Environ ment::NewLine);
sb->Append(" public TestClass()" + System::Environ ment::NewLine);
sb->Append(" {" + System::Environ ment::NewLine);
sb->Append(" }" + System::Environ ment::NewLine);
sb->Append(System: :Environment::N ewLine);
sb->Append(" public void Execute(SampleD elegate del) " +
System::Environ ment::NewLine);
sb->Append(" {" + System::Environ ment::NewLine);
sb->Append(" del(\"Hello from Delegate - This is a testmessage\"); " +
System::Environ ment::NewLine);
sb->Append(" }" + System::Environ ment::NewLine);
sb->Append(" }" + System::Environ ment::NewLine);
sb->Append("}" + System::Environ ment::NewLine);
CSharpCodeProvi der^ csp = gcnew CSharpCodeProvi der();
ICodeCompiler^ cc = csp->CreateCompiler ();
CompilerParamet ers^ cp = gcnew CompilerParamet ers();
cp->OutputAssemb ly = ".\\TestClass.d ll";
cp->ReferencedAsse mblies->Add("useDynDel .exe");
cp->WarningLevel = 3;
cp->CompilerOption s = "/target:library /o+";
cp->GenerateExecut able = false;
cp->GenerateInMemo ry = false;
Compiler::TempF ileCollection^ tfc = gcnew TempFileCollect ion(".\\",
false);
CompilerResults ^ cr = gcnew CompilerResults (tfc);

cr = cc->CompileAssembl yFromSource(cp, sb->ToString());

if (cr->Errors->Count 0)
{
Console::WriteL ine(cr->Errors[0]->ToString());
return false;
}
else

return true;
}

array<Byte>^ loadFile(String ^ filename)
{
FileStream fs(filename, FileMode::Open) ;
array<Byte>^ buffer = gcnew array<Byte>((in t) fs.Length);
fs.Read(buffer, 0, buffer->Length);
fs.Close();
return buffer;
}
void DelMethod(Strin g^ s)
{
Console::WriteL ine(s);
}

void Execute()
{

AppDomain^ newDomain = AppDomain::Curr entDomain;
array<Byte>^ rawAssembly = loadFile("TestC lass.dll");
Assembly^ assembly = newDomain->Load(rawAssemb ly, nullptr);
SampleDelegate^ d1 = gcnew SampleDelegate( DelMethod);
Command^ testClass =
dynamic_cast<Co mmand^>(assembl y->CreateInstance ("Tester.TestCl ass"));
if(testClass != nullptr)
testClass->Execute(d1);
}
}
int main(array<Syst em::String ^^args)
{
if(Tester::Buil dAndCompileCS() )
Tester::Execute ();
return 0;
}

Willy.

Mar 22 '07 #6
"Andreas Reiff" <ha************ **@gmx.netwrote in message
news:56******** *****@mid.dfnci s.de...
>I don't really understand it 100%ly right now, but I am working on it.

From what I think I understand, the difference is, that you use the calling assembly as a
reference and thus have the same delegate declaration in both assemblies?!
That's it.
Ohoh.. .net really is tricky..
Not really, types defined in different assemblies will yield different object *identities*
when instantiated, so, even if they "look the same", they are different. This is really
important to understand and is not about .NET only, all OO frameworks have this feature.
Anyhow, many thx for your solution, I suppose that I will have understood it probably
tomorrow (and actually just with copy + paste it is working already in my program).
Feel free to come back if you encounter other issues.

Willy.

Mar 22 '07 #7
Ben Voigt wrote:
a very small fraction
of C# programmers could write even a short C++ program.
That sounds like an absolute statement of capability! Careful!

-- Barry

--
http://barrkel.blogspot.com/
Mar 22 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3632
by: Chris Kiechel | last post by:
I am writing a .NET Windows application and it needs to perform DDE calls to a legacy system. I created a C++ unmanaged class that performs the actual DDE connection and communication. However, I need .NET to instantiate this object and somehow allow the this object to callback to .NET. So, my question is: 1. How can a managed class instantiate and unmanaged class?
2
3249
by: mats | last post by:
Hi! This is a quite involved question concerning two dll's that are consumed from a console application. The first dll is called base.dll and is compiled in mixed mode (managed and unmanaged C++). One native class and one managed interface is declared and defined in base dll. The native class is exported via declspec(dllexport) and the managed interface via the public keyword. The managed interface has one property which returns a pointer...
1
1456
by: Bill Soudan | last post by:
Hi all, I'm a MS/.NET newbie, diving right into CLR interop. I've worked through the various issues foreign to me as a UNIX guy: multiple heap issues because I was linking to different CRT instances (ugh), calling conventions, marshalling, etc. I'm stumped on one issue, though. Quick structural overview: straight C dll wrapped by C# wrapper class. C# wrapper provides the implementation for a number of function callbacks via...
2
2419
by: KW | last post by:
I am converting a multithreaded MFC application to Managed C++ under VS2003 that uses a DLL that was compiled in Microsoft Visual Fortran 6. The main function of the fortran DLL (FVIS2FOR) takes a pointer to a function (UpdateVC) that updates a status window periodically. I am using a delegate to attempt to accomplish the same thing in .NET, but it doesn't quite work. The DLL will call the function and the function appears to act...
1
2605
by: H.B. | last post by:
Hi, I need to make a function that can display data on my Managed C++ app and be called by an unmanaged C++ DLL. Something like : void Form1::Form1_Load(System::Object * sender, System::EventArgs * e) { MyDLLInit(MyAppDisplayFunction); }
3
3675
by: Lonewolf | last post by:
Hi all, I'm having difficulties passing data back to managed class from my native class when the data is generated from within a native thread in the native class itself. I will give the following runtime error, " Attempting to call into managed code without transitioning out first. Do not attempt to run managed code inside low-level native extensibility points, such as the vectored exception handler, since doing so can cause corruption...
6
1284
by: Scottie_do | last post by:
I've heard from the CDO team that managed code is unsupported. With a site like www.pinvoke.net it's possible that I'll easily end up with a faulty application architecture that will require a rewrite after I write the darn thing. I would like to know what are the circumstances that make interop unsupported (as in CDO), and what other API's aren't supported under PInvoke. -Chris LaMont
1
3514
by: Apu Nahasapeemapetilon | last post by:
Hello and thank you in advance for your help. Can anyone think of a reason why this code would work properly on one PC, but not another? I've got a System.Windows.Forms.UserControl that products events which I want to consume (sink) within Internet Explorer. I'm following the instructions at: ms-http://support.microsoft.com/default.aspx?kbid=313891.
3
4713
by: Klaus | last post by:
Hi, I have an existing VC 6 MFC application which communicates asynchronly with a VC 2005 managed code dll. I use an unmanaged base class with virtual functions to access methods in the MFC application. Furthermore, I use a pointer to an unmanaged function to jump back into the managed dll. The managed part is basically a remoting enhancement which asynchronly
0
9719
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10618
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10371
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10110
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9187
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4329
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.