ผมมีคำถามเกี่ยวกับการสร้าง โปรแกรมด้วย C# นะครับ คือผมอยากทราบว่า C# สามารถสร้างโปรเจ็คที่เป็น ActiveX ได้หรือเปล่าคับ ที่ Complie แล้วได้ไฟล์ .OCX เพื่อเอาไปใช้บนเวป อะไรประมาณนี้นะครับ ถ้ามีต้องทำยังไง หรือว่า ถ้าไม่มี แล้วใช้ ภาษาไหนสร้างได้บ้างบน VisualStudio2005 นะครับ ช่วยแนะนำด้วยครับ
Hiring! บริษัทที่น่าสนใจ
Carmen Software
Hotel Financial Solutions
Next Innovation (Thailand) Co., Ltd.
We are web design with consulting & engineering services driven the future stronger and flexibility.
KKP Dime
KKP Dime บริษัทในเครือเกียรตินาคินภัทร
Kiatnakin Phatra Financial Group
Financial Service
Fastwork Technologies
Fastwork.co เว็บไซต์ที่รวบรวม ฟรีแลนซ์ มืออาชีพจากหลากหลายสายงานไว้ในที่เดียวกัน
Thoughtworks Thailand
Thoughtworks เป็นบริษัทที่ปรึกษาด้านเทคโนโยลีระดับโลกที่คว้า Great Place to Work 3 ปีซ้อน
Iron Software
Iron Software is an American company providing a suite of .NET libraries by engineer for engineers.
CLEVERSE
Cleverse is a Venture Builder. Our team builds several tech companies.
Nipa Cloud
#1 OpenStack cloud provider in Thailand with our own data center and software platform.
Bangmod Enterprise
The leader in Cloud Server and Hosting in Thailand.
CIMB THAI Bank
MOVING FORWARD WITH YOU - CIMB is the leading ASEAN Bank
Bangkok Bank
Bangkok Bank is one of Southeast Asia's largest regional banks, a market leader in business banking
MuvMi (Urban Mobility Tech Co.,Ltd.)
Shape the future of urban mobility towards affordable, clean, and safe solutions
T.N. Digital Solution Co., Ltd.
TNDS has been involving in every first move of banking’s major digital transformation.
KBTG - KASIKORN Business-Technology Group
KBTG - "The Technology Company for Digital Business Innovation"
Siam Commercial Bank Public Company Limited
"Let's start a brighter career future together"
Icon Framework co.,Ltd.
Global Standard Platform for Real Estate แพลตฟอร์มสำหรับธุรกิจอสังหาริมทรัพย์ครบวงจร มาตรฐานระดับโลก
REFINITIV
The Financial and Risk business of Thomson Reuters is now Refinitiv
H LAB
Re-engineering healthcare systems through intelligent platforms and system design.
The Gang Technology Co., Ltd.
We're a Digital Agency that helps our customers transform their business into digital with ease.
LTMH
LTMH มุ่งเน้นการพัฒนาผลิตภัณฑ์ที่สามารถช่วยพันธมิตรของเราให้บรรลุเป้าหมาย
Seven Peaks
We Drive Digital Transformation
Wisesight (Thailand) Co., Ltd.
The Best Choice For Handling Social Media · High Expertise in Social Data · Most Advanced and Secure
MOLOG Tech
We are Modern Logistic Platform, Specialize in WMS, OMS and TMS.
Data Wow Co.,Ltd
We enable our clients to realize increased productivity by solving their most complex issues by Data
LINE Company Thailand
LINE, the world's hottest mobile messaging platform, offers free text and voice messaging + Call
LINE MAN Wongnai
Join our journey to becoming No.1 food platform in Thailand
ผมไม่แน่ใ
aez Wed, 26/09/2007 - 18:07
ผมไม่แน่ใจนะครับ ว่า C# สร้าง ActiveX ได้ไหม แต่เท่าที่ดูในตัว VS 2005 ตัวที่ใช้สร้างจะมีอยู่ใน VC++
แต่ที่แน่ ๆ เราสามารถใช้ C#, VB.NET, ASP.NET เรียก ActiveX ได้ครับ
ตัวอย่างแรก ทำ WinFrom แล้วเรียกใช้ ActiveX http://www.codeproject.com/csharp/importactivex.asp
ตัวอย่างที่ 2 เรียกใช้ ActiveX ผ่านหน้า webForm http://www.codeproject.com/useritems/activex_fix.asp
โอ๊ว C# ทำ
aez Wed, 26/09/2007 - 18:20
โอ๊ว C# ทำ ActiveX ได้นะครับ
ตัวอย่าง Exposing Windows Forms Controls as ActiveX controls
รายละเอียดเพิ่มเติมอยู่ในเวปนั้นแล้วนะครับ ลองพยายามดูครับ ; )
ขอรบกวนอี
robot Thu, 27/09/2007 - 13:48
In reply to โอ๊ว C# ทำ by aez
ขอรบกวนอีกครั้งครับ คือ ผมลองทำตาม ตัวอย่าง "Exposing Windows Forms Controls as ActiveX controls" ที่ให้มาแล้ว ไม่ได้นะครับ โดยผมลองโหลดโปรเจ็คนี้มา run บนเครื่อง Build แล้วก็จะได้ไฟล์ .dll ปัญหาคือ 1. ผมไม่พบวิธีที่จะเรียกใ้ช้ไฟล์นี้บนเว็บได้นะคับ ปรกติเวลาเราจะใ้ช้ ActiveX บนเว็บไว้นั้น ไฟล์จะต้องสามารถ register ได้ แต่ผมลอง register ไฟล์นี้แล้ว วินโดว์บอกว่าไม่สามารถ register ได้นะครับ 2. ผมลองไป Add ไฟล์นี้บน C# (VisualStudio2005) แล้วก็ไม่สามารถทำได้เหมือนกัน เพราะฟ้องว่าไม่สามารถ register ได้ ผมลอง Add ActiveX(.ocx) อื่นที่ไม่ใช่ไฟล์นี้ดู ก็สามารถทำได้ปกติ ผลเลยอยากขอคำแนะนำหน่อยนะครับว่าจะทำอย่างไรได้บ้างนะครับ
-
robot Thu, 27/09/2007 - 13:49
-
ผมลองแล้ว
aez Thu, 27/09/2007 - 18:37
ผมลองแล้วก็ไ่ม่ได้เหมือนกัน แต่ในเอกสาร "Exposing Windows Forms Controls as ActiveX controls" คนเขียนเขาเขียน DLL แล้วให้ Application ใน VB6 เรียกใช้งานนิครับ พอดีที่เครื่องไม่มี VB6 สะด้วยเลยไม่ได้ลองต่อ
แต่หลักการผมว่าคนเขียนเขาต้องการแสดงให้เห็นว่า เราสามารถสร้าง .NET Class Library โดยมี COM Interface (ActiveX) แล้วให้โปรแกรมที่ไม่ได้เขียนบน .NET Framework สามารถเรียกใช้งานข้ามได้มั่งครับ
ผมว่าจริง ๆ แล้วไอ้การทำวิธีนี้ ตัว DLL ที่ได้ก็ไม่ใช่ ActiveX ที่แทนจริงนะครับ เพราะมีโค้คที่ไปเรียกการทำงานบน .NET Framework อยู่ดีถ้าเครื่อง client ไม่มี .NET Framework อยู่ก็ไม่น่าจะรันได้ (ไม่รู้เข้าใจผิดอะเปล่า ไม่มีประสบประการณ์ตรง)
ลองดูเอกสารนี้เพิ่มเติมครับ http://msdn.microsoft.com/msdnmag/issues/01/08/Interop/