Page 1 of 1

STEP BY STEP ON HOW TO USE .NET DLLs

Posted: Fri Dec 07, 2018 6:01 am
by unixkd
Hi all,

Is there anybody with the simplified STEP by STEP knowledge of How to use .NET DLLs/Assemblies in Xbase++

Thanks

Joe

Re: STEP BY STEP ON HOW TO USE .NET DLLs

Posted: Fri Dec 07, 2018 12:20 pm
by patito
Hi

It's very easy to do, please look for
on the web and explain how to do it
You will also find in the news of Alaska example of Olaf
You can do it with visual studio express or ultimate
If you don't have it, you can do it with some exe files from Microsoft framework

Best Regard
hector

Re: STEP BY STEP ON HOW TO USE .NET DLLs

Posted: Fri Dec 07, 2018 12:28 pm
by patito
Hi

If you want to use it as an activex you only have to register it, for it use a bat file.
%Windir%\Microsoft.NET\Framework\v4.0.30319\Regasm.exe generaxml_data.dll /codebase /tlb:generaxml_data.tlb
PAUSE
Now if it's a dll and not activex , check out the article in Olaf's alaska news, the people of alaska also have an article on the subject.


Best Regard
Héctor Pezoa

Re: STEP BY STEP ON HOW TO USE .NET DLLs

Posted: Fri Dec 07, 2018 3:30 pm
by Auge_Ohr
hi,

Sample from Olaf870 just show a IDispatch Interface to a own Dot Net Form so it is very limited.

if you real want to understand how it work i recommend to read "OLE Inside" from Kraig Brockschmidt
http://www.kraigbrockschmidt.com/books/

---

DOT NET have declare Interface in *.H

Sample ITaskbarList in shlobj.h

these 4 line are need for every AX-Interface (with different Name and GUID (here IID_ITaskbarList)

Code: Select all

#xtranslate ITaskbarList_uuidof()                                          => UuidFromString("56FDF342-FD6D-11d0-958A-006097C9A090")
#xtranslate ITaskbarList_QueryInterface( <pi>, [<params,...>])             =>  IFpQCall( 0,"__sl__sl__pt_@sl",<pi> [,<params>] )
#xtranslate ITaskbarList_AddRef( <pi>)                                     =>  IFpQCall( 1,"__sl__sl",<pi>)
#xtranslate ITaskbarList_Release(<pi>)                                     =>  IFpQCall( 2,"__sl__sl",<pi>)
next add all Interface Method same Way

Code: Select all

 ITaskbarList::HrInit()
 ITaskbarList::AddTab(hwnd)
 ITaskbarList::DeleteTab(hwnd)
 ITaskbarList::ActivateTab(hwnd)
 ITaskbarList::SetActivateAlt(hwnd)
same for ITaskbarList2, ITaskbarList3, ITaskbarList4

but this are only Method ... other are Events ...

Re: STEP BY STEP ON HOW TO USE .NET DLLs

Posted: Fri Dec 07, 2018 3:59 pm
by patito
Jimmy
With this net library for visual FoxPro, solve everything,
made in c++ net.

https://west-wind.com/wwDotnetBridge.aspx

best regard
Héctor Pezoa

Re: STEP BY STEP ON HOW TO USE .NET DLLs

Posted: Fri Dec 07, 2018 4:44 pm
by Auge_Ohr
patito wrote:With this net library for visual FoxPro, solve everything,made in c++ net.
if you are at that level to understand that Code ... :whistle:

Re: STEP BY STEP ON HOW TO USE .NET DLLs

Posted: Fri Dec 07, 2018 6:47 pm
by patito
Hi Jimmy

Jimmy, visual foxpro is not so difficult, you can work with activex without drama.
There are several interfaces that you can't compile with Alaska, but if in visual no problem for example, with xmldom, you don't need any additional library.
You, with Alaska, can't use the ribbon class, etc.
That doesn't mean Alaska's a bad product.
With Pablo's ot4xb , you can solve several activex and many structures , it has many unknown functions, for example gdiplus, socket, wininet, regex, xmlilte , etc.
Express ++ , is a wonder, congratulations to its creator mr. Roger Donnay
Soon I will post a demo, from Google Calendar and at the end of the year a prg with all the functions of gdiplus.


Best Regard
Héctor Pezoa

Re: STEP BY STEP ON HOW TO USE .NET DLLs

Posted: Sat Dec 08, 2018 6:03 am
by unixkd
With this net library for visual FoxPro, solve everything,
made in c++ net.
Hector

This product is for Visual Foxpro can it work with Xbase++ ?

Joe

Re: STEP BY STEP ON HOW TO USE .NET DLLs

Posted: Sat Dec 08, 2018 7:44 am
by patito
hi Joe

please look at my previous answers

1.- If you want to register an activex to use with Alaska xbase
build a bat file

2.- If you want to build an activex, use visual studio or express, also
can only do this with a few Microsoft exe files, a process that
it's pretty easy.

3 - and if you need to build only one dll with controls.
search in the news of Alaska, to mister Olaf and explains to him how to make it
or an article that was published a long time ago by the boys of the Alaska Xbase+++ team.
The latter is too limited.

4. the Visual FoxPro , it's a response to Jimmy.

Best Regard
Héctor Pezoa

Re: STEP BY STEP ON HOW TO USE .NET DLLs

Posted: Sat Dec 08, 2018 9:11 am
by patito
hi Jimmy

attached example a codebar QR , dll built with FoxPro visual

For Donetbrigde net , you have to make a few small
changes not to stumble upon Alaska's activex

greetings

Héctor Pezoa