473,396 Members | 1,917 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how to make a win32 dll with VC++ express

I'm used to make a DLL with GCC where it's rather simple (tag your function
with __decl(dllexport) andf that's it).
How do I do the same thing with VC++ express?

I try to show a friend how to use his legacy C library with .NET.
I rather do everything in VC++ for a change instead of compiling with
makefile & gcc.

In my project I plan to create a C++/CLR Winform project
And a 'native dll' project

I added an empty project which I set to be a library.
Now I know I should create things like .lib file and reference them in the
other project, but I'm not quite sure how to do that..

Any tips? clues? links? advices?
Nov 19 '05 #1
1 2411
found it!
in fact it just works!
you just have to mark your exproted function with an infamous
DLLIMPORT/EXPORT define which depends on the ocntext...

"Lloyd Dupont" <net.galador@ld> wrote in message
news:u4**************@TK2MSFTNGP14.phx.gbl...
I'm used to make a DLL with GCC where it's rather simple (tag your
function with __decl(dllexport) andf that's it).
How do I do the same thing with VC++ express?

I try to show a friend how to use his legacy C library with .NET.
I rather do everything in VC++ for a change instead of compiling with
makefile & gcc.

In my project I plan to create a C++/CLR Winform project
And a 'native dll' project

I added an empty project which I set to be a library.
Now I know I should create things like .lib file and reference them in the
other project, but I'm not quite sure how to do that..

Any tips? clues? links? advices?

Nov 19 '05 #2

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

Similar topics

5
by: Bryan Parkoff | last post by:
Please provide me the information when it is not in the correct newsgroups. I have been using C and C++ language for a long time when it is time for me to learn Win32 API functions that they can...
12
by: John Gabriel | last post by:
lThe compiler output report is seldom correct: Problems here involve not being able to generate an accurate compile report. There are so many problems and I am not on Microsoft's payroll. Neither...
14
by: Lloyd Dupont | last post by:
it's only 2 hours I'm using it and I'm already mad from it's unproductivity feature. - my most hated feature being: you can't save your file (because it's used by VC# express). Very typicall...
7
by: Mihajlo Cvetanović | last post by:
Hi all, I've been trying to find some info on Visual C++ 2005 Standard on Microsoft's site, but wasn't able to find any. There's only VC++ 2005 Express Edition, and Visual Studio 2005 Standard,...
11
by: Zytan | last post by:
Most code on the net is wrong. This is SendMessage(): LRESULT SendMessage(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); All of those parameters are 32/64-bit in size depending on the...
67
by: Nimmi Srivastav | last post by:
Apologies if my cross posting has offended anyone.... For a pure hobbyist C/C++ programmer, who wants to develop applications to run on Windows, what would be a better choice to install: Visual...
6
by: meyzhong | last post by:
Hi, I am new to Visual C++ (6.0). I want to put all the print information in different lines into a box. I create a EDIT dialogue box, and then add a CString variable (m_MSG) to the dialogue...
11
by: kimiraikkonen | last post by:
Hello, I'm very new to C# and just installed VC# 2005 express edition and i have VB 2005 express installed previously. But i saw a thing which may be called as a "Visual C# 2005 express" bug? ...
2
by: ChaosMageX | last post by:
I copied some code from a Mono 2.4 library to use in my own application. I'm getting a problem because one of the variable declarations involves the keyword "pinned" between the identifier and the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
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...
0
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,...

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.