Click here to Skip to main content
15,902,891 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: 'PostThreadMessage' in managed c++... Pin
raitz20-Oct-03 9:49
raitz20-Oct-03 9:49 
GeneralRe: 'PostThreadMessage' in managed c++... Pin
igor196020-Oct-03 9:16
igor196020-Oct-03 9:16 
GeneralRe: 'PostThreadMessage' in managed c++... Pin
raitz20-Oct-03 9:45
raitz20-Oct-03 9:45 
GeneralRe: 'PostThreadMessage' in managed c++... Pin
igor196020-Oct-03 9:51
igor196020-Oct-03 9:51 
GeneralRe: 'PostThreadMessage' in managed c++... Pin
raitz20-Oct-03 9:59
raitz20-Oct-03 9:59 
GeneralRe: 'PostThreadMessage' in managed c++... Pin
igor196020-Oct-03 10:04
igor196020-Oct-03 10:04 
GeneralRe: 'PostThreadMessage' in managed c++... Pin
raitz20-Oct-03 10:31
raitz20-Oct-03 10:31 
GeneralWhat's .NET equivalent of a VC++ COM component with OLE DB via ATL?? Can't find info! Pin
ThomasH117-Oct-03 9:03
ThomasH117-Oct-03 9:03 
Hello everyone! I'm new here, and hopefully this is the right place to be. (Other forums haven't helped me in my search for information.) Last year, I wrote a web application with Visual Studio 6.0. I had ASP pages using JScript under IIS 5.0/Win2k server. To handle my business logic and database access, I wrote a COM component using VC++ 6.0. The COM component accessed the Oracle database using OLE DB via ATL - no ADO was used.

My Big Question is: What's the equivilant of my old COM component in Visual Studio .NET 2003??

I realize that nobody uses straight OLE DB anymore. (It was hard enough to find the OLE DB SDK 2.0 book last year!) So I'll be using ADO.NET instead, which means I'll be using Managed C++. I found a great example on how to use ADO.NET from MC++ from this website (link is http://www.codeproject.com/managedcpp/adonet_mcpp.asp?target=ado%2Enet%7Cprimer%7Cusing%7Cmanaged ).

But I can't seem to find any help on designing a component for use with ASP! Perhaps I'm using the wrong term? Every search I've done for ".NET component" has pointed me to text boxes, or data grids, or the term "object"- and "Object" has pointed me back to text boxes and data grids.

I want to stick with Managed Visual C++ for performance reasons. With the VC++ COM component, the server didn't even come close to bogging down- very cool! So I can't bring myself to write everything in ASP.NET, as most of the examples on the 'net seem to do. I want to write a component (or whatever the current terminology is?) that I can access from anywhere- from ASP.NET, from WSH, from VB.NET, etc! How do I do it?

I also can't find anything about threading. My COM component used apartment threading. Do I need to specifically implement threading for the .NET equivalent? Or would this be handled by the NET Framework automatically? If so, why do I see examples on the 'net for VC# that describe how to add threading support?

In fact, you know what I'd really like? I started off with a book by Wrox Press, called "Beginning Components for ASP using VB, VC++, and ATL". That book tied -everything- together for me, and started me off in the right direction. Is there such a book for .NET?

Thanks in advance! This is driving me nuts- I've figured out everything else, but I don't know how to convert my component into .NET technology. I know I could use my old COM DLL from .NET, but this is probably the best time for me to upgrade my application. I don't want to be locked into using COM for the next 5 years.

-Thomas
GeneralRe: What's .NET equivalent of a VC++ COM component with OLE DB via ATL?? Can't find info! Pin
Bo Hunter17-Oct-03 10:58
Bo Hunter17-Oct-03 10:58 
GeneralRe: What's .NET equivalent of a VC++ COM component with OLE DB via ATL?? Can't find info! Pin
ThomasH117-Oct-03 11:15
ThomasH117-Oct-03 11:15 
GeneralRe: What's .NET equivalent of a VC++ COM component with OLE DB via ATL?? Can't find info! Pin
J. Dunlap17-Oct-03 11:50
J. Dunlap17-Oct-03 11:50 
GeneralRe: What's .NET equivalent of a VC++ COM component with OLE DB via ATL?? Can't find info! Pin
ThomasH120-Oct-03 5:01
ThomasH120-Oct-03 5:01 
GeneralRe: What's .NET equivalent of a VC++ COM component with OLE DB via ATL?? Can't find info! Pin
ThomasH120-Oct-03 5:49
ThomasH120-Oct-03 5:49 
GeneralI know its is obvious ! Pin
Andrew Torrance17-Oct-03 0:43
Andrew Torrance17-Oct-03 0:43 
GeneralRe: I know its is obvious ! Pin
Heath Stewart22-Oct-03 3:39
protectorHeath Stewart22-Oct-03 3:39 
GeneralRe: I know its is obvious ! Pin
George L. Jackson20-Nov-03 7:54
George L. Jackson20-Nov-03 7:54 
GeneralConsole window in VC Managed C++ extension samples Pin
Liaqat Fayyaz16-Oct-03 6:30
Liaqat Fayyaz16-Oct-03 6:30 
GeneralOk so I am dull Pin
Andrew Torrance16-Oct-03 4:31
Andrew Torrance16-Oct-03 4:31 
GeneralRe: Ok so I am dull Pin
leppie16-Oct-03 8:31
leppie16-Oct-03 8:31 
GeneralRe: Ok so I am dull Pin
Andrew Torrance16-Oct-03 23:09
Andrew Torrance16-Oct-03 23:09 
GeneralRe: Ok so I am dull Pin
jhwurmbach17-Oct-03 1:15
jhwurmbach17-Oct-03 1:15 
AnswerRe: Attack of the covariant return types or How do you implement IList? Pin
Null_Vector14-Oct-03 5:02
Null_Vector14-Oct-03 5:02 
QuestionAttack of the covariant return types or How do you implement IList? Pin
Null_Vector14-Oct-03 4:19
Null_Vector14-Oct-03 4:19 
GeneralWaitForSingleObject... Pin
raitz10-Oct-03 6:07
raitz10-Oct-03 6:07 
GeneralRe: WaitForSingleObject... Pin
Nish Nishant10-Oct-03 6:17
sitebuilderNish Nishant10-Oct-03 6:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.