All, I have a "standard" Win32 DLL with the C header. I'd like to create a Managed C++ assembly (DLL) which can be used by the other .NET languages such as C# and VB.NET. Must I write all the code manually to expose the data structures and methods? Is there a tool or utility which will allow me to do this quickly? I appreciate your help. Thanks, RB
RichB
Posts
-
Quickest Way to Wrap Standard Win32 DLL? -
Product to Create COM Wrapper for C Win32 DLL? -
Using the vTable of an ActiveX DLL with Known Interface and Unknown GUIDAll, I'm looking to build a plug in architecture where individuals can create VB ActiveX DLLs to be used by my application. I have seen this done with products like ViewStar. The catch is, to maximize performance, I'd like to be able to use the vTable of the ActiveX DLL. So, I'd like to have the following: The VB ActiveX DLL would have a specific interface. For example, the following Methods: Function ApplicationStart(...) Function ApplicationClose(...) How do I call the methods via the vTable from my Visual C++ application? I would appreciate any help. Thanks, Rich
-
DataGrid Disable Button or Cancel ShowParentDetailsButtonClick Event?All, I have a DataGrid populated with rows. When I click the "child" rows, it displays the next level. At the top right of the grid, it displays two buttons - one with an arrow ("Navigates back to the parent rows") and one with a rectangle above a set of arrows("Shows/hides the parent rows for the current set of child rows"). So, this is pretty much a "standard" situation. Given this, how can I keep the second button from appearing in the upper right. I only want the first one with an arrow to be displayed or I'd like to be able to cancel the ShowParentDetailsButtonClick. Does anyone have any ideas? Thanks, RB
-
Cannot run Data Form Wizard in VS.NETAll, I was wondering if anyone knows how to correct this issue. I attempt to run the Data Form wizard from the add new item dialog. It gives me an error message: Could not run the ...\CSharpAddWinDataForm.vsz wizard This happened once before. I messed around with it for a while by moving files and the other usual tricks. Then, I just decided to reinstall VS.NET. :( That was not fun. Does anyone know how to fix this with reinstalling? Thanks, RB
-
Microsoft .NETNishant S wrote: Even if only 20% of MS coders are bad compared to 80% of Java coders, there are still more bad MS coders than Java coders because the number of MS coders far far exceeds the number of Java coders [assuming people who use VB can be classified as coders] The funny thing is that these people who think they are "gods" because they use C or C++ is a joke. :laugh: In reality, there is a group of very skilled, knowledgeable, professional and *FORMALLY EDUCATED* developers using every programming language. :) I do not think a guy who learned C or C++ on his own has any right to look down on a guy who has a BS and MS in Computer Science who develops in VB. :rolleyes: This is twisted. One guy spent time to master A SINGLE language, while the other has a much wider knowledge base of languages, compliers, file processing and databases which makes him a complete developer not just a C hack. Rich
-
C1010: unexpected end of file while looking for precompiled header directiveRaskolnikov, I've had problems with a similar message before. Go to the offending file and delete any and all characters at the end after your last statement. When I have done this, it usually clears it up. Good luck! Rich
-
FtpGetFile IssueAll, I was wondering if anyone has had issues with FtpGetFile. This behavior is rather odd; the file is there but cannot be downloaded. I have had my remote user check out the file security/privileges; they appear to be in order. I would like to be able to provide more information. However, since this is happening at a remote site, I do not have more information. Does anyone have any ideas? Thanks in Advance, Rich
-
Turning to the dark side (Possible spoilers for Star Wars Episode II)Darth Michael, I can relate to this all too well. This happened to me at my last gig. My cube was right across from the break room. People were in and out all day. They would hold 30 minute conversations about non work related issues. Needless to say, it was very distracting. Also, right next to the break room was a conference room. One week, when they had a training class, I had to shut the door at least once each day. :mad: You think the instructor would eventually get the hint. I expected way too much. Hang in there. For now, keep the lightsaber in its holster. Rich
-
Delphi Libraries into VC++ - is it possible??If you are writing about the VCLs, VC++ cannot directly use them. The alternative is to creative an ActiveX control or component derived from the VCL or create a Win32 API DLL. Rich
-
MSCOREE.DLL?Anonymous, I have executed C# applications on Win98 with the runtime installed. Did you download the runtime or install it from the MSDN? Rich
-
GDI+ Grab Handles QuestionAll, For a while, I have searched for information creating and using "grab handles." At this point, the only thing I have found is some weak information on the MSDN on DrawGrabHandle. Does anyone know of a good resource for this? Thanks In Advance, Rich
-
ATL - BSTRs and PropertiesMike, I appreciated your response. I'll look into your suggestions. Thanks, Rich
-
ATL - BSTRs and Properties//////////////////////////////////////////////////////////// // All, // I would appreciate any feedback on this. // Is this the best way to do this? // Thanks, // Rich //////////////////////////////////////////////////////////// BSTR bstrProperty; STDMETHODIMP MyObject::get_Property(BSTR *pVal) { // According to KB article, I need // return a copy. *pVal = SysAllocString(bstrProperty); return S_OK; } STDMETHODIMP MyObject::put_Property(BSTR newVal) { // According to KB article, I need // my own copy to use and later free. bstrProperty = SysAllocString(newVal); return S_OK; }
-
C++ Relegated to Systems-Level Programming?"We expect 60 percent or more Visual C++ developers to migrate to C# over the next 48 months. ... C++ is still going to be used. It's certainly going to be used in the COM and COM+ area...but it will be relegated to a systems-level programming language." - Mark Driver Gartner Group Inc. (.NET Magazine Fall/Winter 2001) Does anyone have any thoughtful comments? Rich
-
.NET Mag - VS.NET will take 2.5 years to overtake VS 6All, I found an interesting article in .NET Magazine. According to the article, from Fall/Winter 2001 issue, Mark Driver of Gartner Inc. predicts it will take 24 months for VS.NET development to reach 30%. In 36 months, he predicts it will reach 95%. I found these very interesting because so many people are chanting ".NET....NET." It seems like it will be a while before anyone gets a chance to use his or her new skills at a client site. As I mentioned, in my previous posts, I believe the cost of VS.NET and the cost of upgrading the users and/or development machine will slow acceptance of .NET. I appreciate any thoughtful comments. Rich
-
ATL or Visual Basic? Does it matter?All, I would like to have some opinions on my next project. I am building an n-tiered financial application with Visual Studio 6. I am not building it in .NET because of the hardware requirements, possible delays to the actual release of .NET and potential performance issues. I’d like everyone to put on his or her pointy-haired cap for this one. :) Does it really matter what tool I use to build the application? Will the customer notice the speed difference between ATL and Visual Basic? Is it worth increasing the development time for this speed increase? Will it be an effective marketing tool to say it is written with Visual C++ and ATL? I have heard some interesting thoughts on this. I would appreciate any thoughtful comments. Thanks, Rich
-
Language Switch –Java or C++ & Perplexing: Unemployed Java ProgrammersMike, It seems like it will be mid-summer before the .NET jobs roll in. That seems like a long wait. What do you think the salaries or hourly rates will be when compared with Java and C++? (Another crystal ball question.) :) Rich
-
Language Switch –Java or C++ & Perplexing: Unemployed Java ProgrammersTo me, JDBC is as easy to use as ADO. Rich
-
Language Switch –Java or C++ & Perplexing: Unemployed Java ProgrammersVisual Cafe has a "native" windows compiler. It looks like a wrapper around the class. However, it does give you an EXE (which needs the Visual Café runtime DLL). Rich