Comments (2)
What do you mean for "BreakPionts Not Work"?
To be sure,
cURL requires openssl libraries. For x64 (curl-7.67.0-win64-mingw) you need libcrypto-1_1-x64.dll
and libssl-1_1-x64.dll
Also provide a return type if exists of course. For LuNari project I already mentioned about data types when string args (we need to consolidate info later), thus please also note: https://github.com/3F/LuNari/wiki/API#data-types
using(var l = new ConariL("libcurl-x64.dll"))
{
var curl = l.DLR.curl_easy_init<IntPtr>(); // CURL *handle OK: ~0x000002080ea87e10
//...
l.DLR.curl_easy_setopt(curl, 10002, "http://example.com");
var res = l.DLR.curl_easy_perform<long>(curl);
}
from conari.
This is ok:
Good to hear this!
(IntPtr)l.DLR.curl_easy_init();
I recommend exactly generic type because Conari will automatically adapt it for related requests at memory read instead of your example above when you're trying to cast result to IntPtr.
Wrong default type may corrupt processing in some cases. Because:
l.DLR.something<ret_type>() != (ret_type)l.DLR.something()
\-----------------------/ \-------------/
Thanks for using,
from conari.
Related Issues (20)
- logo HOT 1
- Speed
- File Not Found HOT 8
- Unmanaged EmitCalli and netstandard2.0 HOT 2
- LoadLibrary/Ex vs Conari. Same memory regions between processes and threads
- Support [Guide to add DllExport attribute to my project] HOT 4
- ExVar.getVar returning wrong value HOT 4
- Failed loading '...': Check used architecture or existence of file.[Error: 126] HOT 5
- The type or namespace name 'DotNet' does not exist HOT 3
- Work with Native C/C++ structures without declaration HOT 1
- Does it support for .net5 sdk? HOT 1
- How to properly use the "NativeStruct" from current Conari Version? HOT 19
- Undecorate functions from C++ compilers HOT 2
- Failed loading '...': Check used architecture or existence of file.[Error: 193]
- Support of .NET libraries
- Incorrect boolean values from unmanaged code HOT 1
- Support of exported variables / constants HOT 2
- IUnknown. COM Interface support
- Aliases for exported-functions and variables HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conari.