{"id":28272288,"url":"https://github.com/operationdarkside/projectdnc","last_synced_at":"2025-08-11T17:08:42.943Z","repository":{"id":132896313,"uuid":"81713041","full_name":"OperationDarkside/ProjectDNC","owner":"OperationDarkside","description":"General purpose framework. Feels like .NET with a pinch af Java","archived":false,"fork":false,"pushed_at":"2018-04-07T22:11:37.000Z","size":268,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-17T20:35:31.484Z","etag":null,"topics":["c-plus-plus","cpp","cpp17","framework","mysql","networking","serialization"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OperationDarkside.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-02-12T08:32:01.000Z","updated_at":"2018-04-07T22:11:39.000Z","dependencies_parsed_at":"2023-07-05T21:01:14.208Z","dependency_job_id":null,"html_url":"https://github.com/OperationDarkside/ProjectDNC","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OperationDarkside/ProjectDNC","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OperationDarkside%2FProjectDNC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OperationDarkside%2FProjectDNC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OperationDarkside%2FProjectDNC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OperationDarkside%2FProjectDNC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OperationDarkside","download_url":"https://codeload.github.com/OperationDarkside/ProjectDNC/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OperationDarkside%2FProjectDNC/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269922906,"owners_count":24496999,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-plus-plus","cpp","cpp17","framework","mysql","networking","serialization"],"created_at":"2025-05-20T20:20:45.940Z","updated_at":"2025-08-11T17:08:42.929Z","avatar_url":"https://github.com/OperationDarkside.png","language":"C++","readme":"# ProjectDNC\nA framework, that provides basic classes and functionality like the .NET Framework.\n\n**CAUTION**: This code is in an experimental state and requires C++17\n\nMotivation:\nC++ is not the programming language I learned from the start. So coming from C# and Java I had problems reading C++ Code.\nI'm aware, that the .NET Framework is available for C++, but the code then is neither native nor cross-plattform anymore.\nA short web search didn't show any noticable open-source solutions, that could offer the functionality of .NET.\nSo I started this little side-project to bring the comfort of .NET to native C++.\n\nAs mentioned above, I am not an experienced C++ developer, so the code is not optimized or anything.\n\nHowever, you are very welcome to check the code and point out bugs/impovements :-)\n\n\n**Serialization**\n\nRegistering class members:\n\n```C++\nclass TestDataClass: public Serializable {...\n\nTestDataClass::TestDataClass() {\n\tObject\u0026 f1 = this-\u003efield1;\n\tObject\u0026 f2 = this-\u003efield2;\n\tObject\u0026 f3 = this-\u003efield3;\n\n\tthis-\u003ename = \"TestDataClass\";\n\tthis-\u003eattributes.Add(SerializableAttribute(String(\"Field1\"), f1));\n\tthis-\u003eattributes.Add(SerializableAttribute(String(\"Field2\"), f2));\n\tthis-\u003eattributes.Add(SerializableAttribute(String(\"Field3\"), f3));\n}\n\nString xmlString = testClass.ToXml();\n```\n\n**Sockets**\n\nRequesting a website:\n\n```C++\nSocket sock(AddressFamily::IPv4, SocketType::Stream, ProtocolType::Tcp);\nsock.Connect(String(\"127.0.0.1\"), 80);\nsock.Send(\"GET /cgi-bin/CppWebToolkit.exe?prename=Marvin\u0026lastname=%20du%20Horst http/1.1\\r\\nHost: 127.0.0.1\\r\\nConnection: close\\r\\n\\r\\n\");\n\nstd::array\u003cchar, 500\u003e recvData;\n\nsock.Receive(recvData);\nsock.Close();\n\nString received(recvData);\nConsole::WriteLine(received);\n```\n\n**MySql**\n\nExecuting a query:\n\n```C++\nDataTable memTable;\n\nMySqlConnection connection(String(\"SERVER=127.0.0.1:3306;DATABASE=test;UID=root;PASSWORD=\"));\n\nconnection.Open();\n\nMySqlCommand command(String(\"SELECT * FROM test WHERE ID = ?\"), \u0026connection);\ncommand.Parameters().Add(MySqlParameter(MySqlDbTypes::LONG, 3));\n\nMySqlDataAdapter adapt(command);\nadapt.Fill(memTable);\n\nconnection.Close();\n```\n\n**String**\n\nJoining a list:\n\n```C++\ndnc::Collections::Generic::List\u003cString\u003e listStrings;\nlistStrings.Add(\"Hallo\");\nlistStrings.Add(\"Welt\");\nlistStrings.Add(\"Noob\");\n\nString joined_string = String::Join(\" \", listStrings);\n// \"Hallo Welt Noob\"\n```\n\n**Type**\n\nPolymorphic Type Checking:\n\n```C++\nObject* tmp_o = new String();\nbool istype = Type::isType\u003cObject, String\u003e(tmp_o);\n```\n\n\nFrameworks:\n- MySql C API - Installed\n\nIf you want to contribute or point out bugs send me a mail at spiritusbrenner@gmail.com\n\nMaintainer:\nSebastian Greis\n\nTwitter:\nhttps://twitter.com/OpDarkside or the Hashtag #ProjectDNC\n\nYoutube:\nVideo documentation about this and my other frameworks:\nhttps://www.youtube.com/channel/UCBcbGguXSzkj7ocZMEIFnxw\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foperationdarkside%2Fprojectdnc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foperationdarkside%2Fprojectdnc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foperationdarkside%2Fprojectdnc/lists"}