STEP BY STEP ON HOW TO USE .NET DLLs

This forum is for general support of Xbase++
Post Reply
Message
Author
User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

STEP BY STEP ON HOW TO USE .NET DLLs

#1 Post 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

patito
Posts: 121
Joined: Tue Aug 31, 2010 9:01 pm

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

#2 Post 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

patito
Posts: 121
Joined: Tue Aug 31, 2010 9:01 pm

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

#3 Post 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

User avatar
Auge_Ohr
Posts: 1405
Joined: Wed Feb 24, 2010 3:44 pm

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

#4 Post 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 ...
greetings by OHR
Jimmy

patito
Posts: 121
Joined: Tue Aug 31, 2010 9:01 pm

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

#5 Post 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

User avatar
Auge_Ohr
Posts: 1405
Joined: Wed Feb 24, 2010 3:44 pm

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

#6 Post 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:
greetings by OHR
Jimmy

patito
Posts: 121
Joined: Tue Aug 31, 2010 9:01 pm

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

#7 Post 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

User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

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

#8 Post 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

patito
Posts: 121
Joined: Tue Aug 31, 2010 9:01 pm

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

#9 Post 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

patito
Posts: 121
Joined: Tue Aug 31, 2010 9:01 pm

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

#10 Post 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
Attachments
qr-vfp.rar
(267.39 KiB) Downloaded 944 times

Post Reply