Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 927 results for
dllimport
- Page 1
Re: Class Library to DllImport
Programming
Software Development
13 Years Ago
by Momerath
DLLImport
is for DLLs that weren't written in managed code. All you need to do is add the DLL to your project references, include a 'using' statement for the namespace and you can use what is in the DLL.
Re: DLL Importing Through Open File Dialog
Programming
Software Development
13 Years Ago
by Momerath
DLLImport
is for DLLs that are not created for managed code (…
Re: Loading Cobol forms in .Net
Programming
Software Development
9 Years Ago
by lithium112
[
DllImport
("user32.dll", SetLastError = true)] private static extern IntPtr …
Re: DllImport
Programming
Software Development
7 Years Ago
by Philippe.Lahaie
… my strong suit but I would try dumbing down the
dllimport
see if it works with the bare minimum. So, removing… attributes perhaps try that on your "ref" parameter? [
DllImport
(WINSCARD_DLL, CharSet = CharSet.Auto)] private static extern int SCardTransmit( [In…
DllImport
Programming
Software Development
7 Years Ago
by Suzie999
… System.Diagnostics; using System.Runtime.InteropServices; namespace Win32DllImports { class Program { [
DllImport
("Urlmon", EntryPoint = "ObtainUserAgentString", CallingConvention = CallingConvention.StdCall…
Re: DllImport
Programming
Software Development
7 Years Ago
by Suzie999
… System.Diagnostics; using System.Runtime.InteropServices; namespace Win32DllImports { class Program { [
DllImport
("urlmon", CharSet = CharSet.Ansi)] private static extern uint…
Re: dllimport argument return
Programming
Software Development
11 Years Ago
by Momerath
… byte[] lpBuffer, int dwSize, out int lpNumberOfBytesRead ); [
DllImport
("kernel32.dll", SetLastError = true)] static extern …object lpBuffer, int dwSize, out int lpNumberOfBytesRead ); [
DllImport
("kernel32.dll", SetLastError = true)] static extern…
Re: DllImport works in console mode?
Programming
Software Development
13 Years Ago
by ProgWr
…\\OpenIntApp\\bin\\Release\\OpenIntApp.exe", RegistryValueKind.String); [
DllImport
("coredll.dll", EntryPoint = "RequestPowerNotifications"…// pre compile Error! - VS doesn't recognize
DllImport
Console.WriteLine("registry set"); } } } [/CODE]
Re: DllImport works in console mode?
Programming
Software Development
13 Years Ago
by Momerath
… example: [code]using System; using System.Runtime.InteropServices; class PlatformInvokeTest { [
DllImport
("msvcrt.dll")] public static extern int puts(string… c); [
DllImport
("msvcrt.dll")] internal static extern int _flushall(); public…
Re: dllimport argument return
Programming
Software Development
11 Years Ago
by wlalth
… need to return byte array from the function, in your
dllimport
statement, method_4 have one argument which has ref int type… type? Also on readprocessmemory byte array argument defined without ref: [
DllImport
("kernel32.dll")] public static extern bool ReadProcessMemory(IntPtr…
DllImport works in console mode?
Programming
Software Development
13 Years Ago
by ProgWr
Hi, quick question... i am making a program without a form for windows ce and so i am trying to work in console but it seems some of the code cannot be implemented. does
DllImport
suppose to work in console? Thx & BR Ran.
Re: DllImport works in console mode?
Programming
Software Development
13 Years Ago
by ProgWr
Thanks. Any idea why VS doesn't recognize the
DllImport
word? i am using the next "using": using System; using System.Collections.Generic; using System.Text; using Microsoft.Win32; using System.Runtime.InteropServices; using System.Linq; using System.Collections; using System.Threading;
dllimport argument return
Programming
Software Development
11 Years Ago
by wlalth
…(readHandle, (IntPtr)BellekAdresi, bytes, (UIntPtr)50, ref rw); return bytes; } [
DllImport
("test.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl…
Re: dllimport argument return
Programming
Software Development
11 Years Ago
by Momerath
According to the P/Invoke tool, your
DLLImport
statement should be [System.Runtime.InteropServices.DllImportAttribute("<Unknown>", EntryPoint="method_4")] public static extern void method_4(ref int buffer) ; Of course you replace the <Unkown> with your dll name.
Re: c# dllimport issues
Programming
Software Development
10 Years Ago
by Nidal_1
…extern hidDeviceInfo hidEnumerate(UInt16 vendorId, UInt16 productId); // done [
DllImport
("libhidapi-0.dll", EntryPoint="hid_free_enumeration")] public…hidFreeEnumeration([In, MarshalAs(UnmanagedType.LPStruct)] hidDeviceInfo devs); // done [
DllImport
("libhidapi-0.dll", EntryPoint="hid_open", …
c# dllimport issues
Programming
Software Development
10 Years Ago
by khorght
…*data, size_t length); ... and this is the part in c#: [
DllImport
("hidapi.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl… extern unsafe int hid_write(IntPtr device, StringBuilder data, uint length); [
DllImport
("hidapi.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.…
libgd error when building - dllimport?
Programming
Software Development
11 Years Ago
by daino
…. Thanks. gdfontg.c:4380: error: variable 'gdFontGiant' definition is marked
dllimport
gdfontg.c:4380: warning: 'gdFontGiant' redeclared without…
Re: c# dllimport issues
Programming
Software Development
10 Years Ago
by khorght
… object. the only way to add dll is through the
dllimport
. i've tryed this library in java app using jni…
Dll creation problem(definition of dllimport function not allowed)
Programming
Software Development
13 Years Ago
by Martje
… the .dll i got an error saying : [QUOTE]definition of
dllimport
function not allowed[/QUOTE] my header and source is simple… defined DLL_EXPORT #define DECLDIR __declspec(dllexport) #else #define DECLDIR __declspec(
dllimport
) #endif extern "C" { DECLDIR int Add( int a…
Class Library to DllImport
Programming
Software Development
13 Years Ago
by ProgWr
… in C# and i am trying to use it using
DllImport
but i keep getting: Error RegConfig.exe MissingMethodException Can't….Security; using System.Reflection; using ClassLibraryWinCe; namespace RegConfig { class Program { [
DllImport
("ClassLibraryWinCe.dll")] public static extern void InitProg(string…
setup project with DLLImport
Programming
Software Development
14 Years Ago
by carey_amanda
I am doing a
DLLimport
in my C# program. And now i need to do a setup project to make it into a windows installer application. But after i install it. there's an error saying, [ATTACH]13246[/ATTACH] i have already put my dll in my application folder. still the same result. please help.
USB Driver Issues...Help me!!
Programming
Software Development
12 Years Ago
by skatamatic
…counter; public uint overflow; public IntPtr Count; } [
DllImport
("adsapi32.dll", CharSet=CharSet.Ansi)] unsafe …extern uint DRV_CounterEventStart(IntPtr DriverHandle, ref PT_CounterEventStart CounterEventStart); [
DllImport
("adsapi32.dll", CharSet = CharSet.Ansi)]…
C# Cascade .NET 1.1
Programming
Software Development
13 Years Ago
by JMC31337
…using System.ComponentModel; //=================================== public class Animate : System.Windows.Forms.Form { [
DllImport
("GDI32.dll")] public static extern bool BitBlt(int… static extern short GetAsyncKeyState( System.Windows.Forms.Keys vKey); [
DllImport
("user32.dll")] static extern void keybd_event(byte bVk…
how to call these functions?
Programming
Software Development
18 Years Ago
by c#dummie
… int OffsetHigh; public int hEvent; } [
DllImport
("kernel32.dll")] private static extern int…int hTemplateFile // handle to template file ); [
DllImport
("kernel32.dll")] private static extern bool…
Get bitmap of hidden window
Programming
Software Development
14 Years Ago
by Kligham
…CreateCompatibleDC")] internal extern static IntPtr CreateCompatibleDC(IntPtr hdc); [
DllImport
("gdi32.dll", EntryPoint = "CreateCompatibleBitmap"…quot;)] internal extern static IntPtr DeleteObject(IntPtr hDc); [
DllImport
("user32.dll")] public static extern int …
Recording sound with C# .....Errors in Program .....
Programming
Software Development
12 Years Ago
by apanimesh061
… IntPtr dwCallback, uint dwInstance, uint fdwOpen); [
DllImport
("coredll.dll")] private static extern wave…[](WAVEINCAPS caps) { return caps.m_data; } } [
DllImport
("coredll.dll")] protected static extern wave.MMSYSERR waveInGetDevCaps…
How To Interface with x25
Programming
Software Development
18 Years Ago
by udayshelar
… x25Data sFacil , x25Data sUsage , string Remote, string Local, IntPtr xx); [
DllImport
("Ex25.dll")] public static extern int x25recv( int… Cid, string cpRecvBuf, int DATA_SIZE, int iInfo, PostDelgate post); [
DllImport
("Ex25.dll")] public static extern int x25send( int…
How to work with ex25.dll in C#
Programming
Software Development
18 Years Ago
by balabhaskar
…= new x25Data() ;// size of data buffer */ [
DllImport
("Ex25.dll")] public static extern string x25version(…sUsage , string Remote, string Local, IntPtr xx); [
DllImport
("Ex25.dll")] public static extern int x25recv…, int DATA_SIZE, int iInfo, PostDelgate post); [
DllImport
("Ex25.dll")] public static extern int …
Problem when passing arrays from c# to matlab
Programming
Software Development
16 Years Ago
by Sarjo
…quot;)] private static extern IntPtr mxGetPr([In]IntPtr mxArray); [
DllImport
(@"mclmcrrt76.dll")] private static extern bool mclInitializeApplication(…string options, int count); [
DllImport
(@"mclmcrrt76.dll")] private static extern void mclTerminateApplication(); static…
Network Printer
Programming
Software Development
13 Years Ago
by muzikhera
… [MarshalAs(UnmanagedType.LPStr)] public string pDataType; } [
DllImport
("winspool.Drv", EntryPoint = "OpenPrinterA&… public static extern bool StartPagePrinter(IntPtr hPrinter); [
DllImport
("winspool.Drv", EntryPoint = "EndPagePrinter…
1
2
3
16
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC