I was wondering if it is possible to load in some ada packages and possibly use them in C++. If so could someone give me an example or a link to a tutorial or something. Thanx.
I was wondering if it is possible to load in some ada packages and possibly use them in C++. If so could someone give me an example or a link to a tutorial or something. Thanx.
"only two things are infinite, the universe and human stupidity, and im not sure about the former." - albert einstein
Don't have an exact answer
but Object Ada has files that convert from Ada to c++
types like the one excerpted below:
-- ================================================== ==========================
--
-- JSW Technology
-- Ada Binding to Win32 (WinAPI)
-- Version 0.5 Software Release 2
-- Copyright (c) 1997 John Walker & JSW Technology
-- All Rights Reserved
--
-- Generated by C++ to Ada Tool Version 0.5 Software Release 2
--
-- Options: AddressOf, ArrayOf, IgnoreConstInArgument
-- Underline string: a
-- Libraries (from pragma comment(lib, ...)):
-- libcmt.lib
-- kernel32.lib
-- user32.lib
-- gdi32.lib
-- winspool.lib
-- comdlg32.lib
-- advapi32.lib
-- shell32.lib
-- ole32.lib
-- oleaut32.lib
-- uuid.lib
-- odbc32.lib
-- odbccp32.lib
-- comctl32.lib
-- glu32.lib
-- IMM32.lib
-- mapi32.lib
-- mgmtapi.lib
-- mpr.lib
-- msacm32.lib
-- nddeapi.lib
-- netapi32.lib
-- oledlg.lib
-- olepro32.lib
-- opengl32.lib
-- penwin32.lib
-- pkpd32.lib
-- rasapi32.lib
-- rpcns4.lib
-- rpcrt4.lib
-- urlmon.lib
-- uuid2.lib
-- version.lib
-- vfw32.lib
-- winmm.lib
-- wsock32.lib
--
-- ================================================== ==========================
with System, Unchecked_Conversion;
with VC;
use type VC.Int;
package WinAPI is
pragma Elaborate_Body;
-- ================================================== =======================
-- Global Types and Data
-- ================================================== =======================
subtype wchar_t is VC.Unsigned_Short;
subtype AddressOfwchar_t is VC.AddressOfUnsigned_Short;
subtype AddressOfAddressOfwchar_t is VC.AddressOfAddressOfUnsigned_Short;
subtype AddressOfAddressOfAddressOfwchar_t is VC.AddressOfAddressOfAddressOfUnsigned_Short;
........................... etc.