|
by: Georgy Pruss |
last post by:
Hi all,
How can I call a function which is in a Windows DLL? For example,
import win32api
lib_hnd = win32api.LoadLibrary( "user32.dll" )
if lib_hnd:
fn_addr = win32api.GetProcAddress( lib_hnd, "MessageBeep" ) # returns int(2010532466)
if fn_addr:
# Here I'd like to call fn_addr. In C it would be plain fn_addr()
|
by: Dave.NET |
last post by:
Hi all,
I have the following question and hope the .NET experts here can help me:
I developed an application and created many DLLs in VC++, then I switched
the platform from VS6 and compile in VS.NET. Odd thing happens now that the
newly compiled application is successful to call a function in the DLL (a
dialog will appear) on a machine which has VS.NET installed. But if I try on
another machine without VS.NET, then the dialog won't...
|
by: Helge |
last post by:
I have a vb.net app that calls an "old" DLL that does some math (map
coordinate transformations), declared with an old fasioned declare statement
in my code.
Sometimes, but very rarely, the call fails with a COMException.
On the last dataset it failed 33 out of a total 4011085709 (4 billion)
calls.
My code catches the exception and tries one more time. Then it usually
works.
|
by: robspychala |
last post by:
Hi
Is there something similar to python's windll for calling DLLs on win32
but meant for calling dylib's on OS X?
thanks,
r.s.
|
by: kim d |
last post by:
Hi,
I'm looking to call a method of a class which is declared in a dll. I know
it's not a simple case of calling dllImport because of the fact that classes
are involved. Does anyone have an example of how this is done?
TIA
kim d
|
|
by: kj7ny |
last post by:
Is there a good example on instantiating, calling, using, etc., an API
from Python?
I need to use Python to talk to another system through that system's
API's on Windows XP.
Can you point me to documentation and/or a good example of Python using
3rd party API's? (Preferably a good example rather than just
documentation.)
|
by: luis |
last post by:
I'm using ctypes to call a fortran dll from python. I have no problems
passing integer and double arryas, but I have an error with str arrys.
For example:
.....
StringVector = c_char_p * len(id) # id is a list of strings
Id_dat=StringVector()
for i in range(len(Id)):
....Id_dat=id
|
by: Egor Zindy |
last post by:
Egor Zindy wrote:
#!/usr/bin/env python
"""
A generic chipid library based on ctypes
This module handles most of the functions in FTChipID.dll
|
by: taghi |
last post by:
I want to call NetShareEnum, a function from netapi32.dll
NetShareEnum has this definition:
NET_API_STATUS NetShareEnum(
__in LPWSTR servername,
__in DWORD level,
__out LPBYTE *bufptr,
__in DWORD prefmaxlen,
__out LPDWORD entriesread,
__out LPDWORD totalentries,
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|