473,839 Members | 1,411 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can i send a bitmap from ActiveX (ocx) to C# project?

hi everybody

I want to pass a bitmap file from activeX component that written in vc+
+6 to my project in c#.Net.

how can transfer a bitmap file?

is it possible that with return a pointer and lenght of file i catch
bitmap file in my project?

what's the better way to exchange such data (bmp) bitween activeX and
project?

Sep 18 '07 #1
2 2091
I want to pass a bitmap file from activeX component that written in vc+
+6 to my project in c#.Net.

how can transfer a bitmap file?

Possibly return an HBITMAP in you c dll, then use something like
System.Drawing. Image.FromHbitm ap(new IntPtr(hBitmap) ); in c#

Don't forget to clean up the hbitmap afterwards.

hth
Ben
Sep 18 '07 #2
On Sep 18, 3:20 pm, Ben Schwehn <b.schw...@gmx. netwrote:
I want to pass a bitmap file from activeX component that written in vc+
+6 to my project in c#.Net.
how can transfer a bitmap file?

Possibly return an HBITMAP in you c dll, then use something like
System.Drawing. Image.FromHbitm ap(new IntPtr(hBitmap) ); in c#

Don't forget to clean up the hbitmap afterwards.

hth
Ben
but in vc++6 an activeX has not HBITMAP return type , has it?
i don't see HBITMAP return type in vc++6
do u work with vc++6 MFC ActiveX?

Sep 19 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
6553
by: Filip Wtterwulghe | last post by:
Hello, We have a number of VB6 ActiveX applicationmodule(s) that are loaded into a IE6 WebBrowserControl . This WebControl is imbededded into Application X . Now We want to send a message from Application X to all the ActiveX applicationmodules that are in IEWebbrowser . Contains Contains Application X ------------> IE WebControl -------------> Vb6 ActiveX A Contains
1
6005
by: wang xiaoyu | last post by:
Hello: i want use activex in wxpython program,but when i use MakeActiveXClass an exception occurs. this is my source code dealing the DICOM ocx.I must note that in this program "hwtxcontrol" is a ocx developed my me use vc6,this ocx works fine in wxpython. but you can see i only change this ocx with a new DICOM ocx and set up eventClass,
0
7133
by: Ike | last post by:
I have an Activex Control created in VB6, which, displays no problem on any machine I have, but, on some machines of others, it does not. All machines are running either XP or Windows 2000, and all are running MSIE6.x, woth security settings set to display this control. For the life of me, I cannot figure out how such a simple control can be so sporadic in it;s showing on a page. It always downloads - it just doesn't always show. I'm...
1
2717
by: Steve | last post by:
I am having an issue deploying an ActiveX control. This is a .NET project in C#. The ActiveX control is written in VB6. I use the PDW (Package and Deployment Wizard) to create a .CAB for the control. The problem is that sometimes the ActiveX control installs successfully and sometimes it doesn't. We have various test machines running different operating systems. On one machine, running Windows 2000, SP4, the control installs...
2
8451
by: jdanoz | last post by:
Hello, i have a vb.net project with a reference to an ActiveX object (ocx). If i try to use the ocx from vb6 project (adding the reference) it works ok (using CreateObject). In vb.net, the CreateObject works ok, the object gets initialized...
0
1010
by: Hugin | last post by:
I've been working on a pet project lately. Basically it's a point-of-sale program written in PHP (just for practice/my portfolio). I've got pretty much everything planned out, but I can't start programming until I figure out ActiveX. There is a great standard for point-of-sale developers called OPOS and they provide a big set of ActiveX controls for use in the form of ocx files. I'm pretty sure I know how to use the controls once they're...
0
1733
by: eusebiu | last post by:
Hello... I am developing a MFC ActiveX that I want to self register when IE promts to Install it. I have added the VALUE "OLESelfRegister", "\0" to activex's resource file (.rc) and I have STDAPI DllRegisterServer(void) method in my code. When I build my ActiveX project, the ActiveX is registered fine and it work on my machine. If I added to a .cab file(cabarc -s 6144 N myactivex.cab myactivex.ocx myactivex.inf myactivex) and then...
3
4976
by: eusebiu | last post by:
Hello... I am developing a MFC ActiveX that I want to self register when IE promts to Install it. I have added the VALUE "OLESelfRegister", "\0" to activex's resource file (.rc) and I have STDAPI DllRegisterServer(void) method in my code. When I build my ActiveX project, the ActiveX is registered fine and
0
2661
tlhintoq
by: tlhintoq | last post by:
My project involves reading magstripe cards, capturing an ID number, then spinning off to do some other things including taking a photograph. 99% of this is done and good. All early phases of work went well... Until the final assembly and "beefing up" of the project. The magcard reader is made by Magtek. They provide an ActiveX component as the sole means of communication with this RS-232 serial port device. It works great as long as it...
0
10586
jinu1996
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...
1
10647
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,...
0
10293
tracyyun
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...
0
9426
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7017
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();...
0
5682
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...
0
5866
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4484
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
2
4064
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.