473,320 Members | 1,732 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,320 software developers and data experts.

_stdcall..causing error..

dt.h
Expand|Select|Wrap|Line Numbers
  1.  
  2.       #ifndef INDLL_H
  3.       #define INDLL_H
  4.       #ifdef EXPORTING_DLL
  5.       extern __declspec(dllexport) char* Summ(char*);
  6.       #else
  7.       extern __declspec(dllimport) char* Summ(char*);
  8.       #endif
  9.       #endif
dt.cpp
Expand|Select|Wrap|Line Numbers
  1.  #include<iostream>
  2.     #include "dt.h"
  3.     #define EXPORTING_DLL
  4.     using namespace std;
  5.     char* _stdcall  Summ(char* a)
  6.     {  
  7.        return a;
  8.     }
  9.  
it gives two errors ::
error C2373: 'Summ' : redefinition; different type modifiers
error C2491: 'Summ' : definition of dllimport function not allowed

WHEREAS
when i remove the _stdcall..no errors
just one warning ::inconsistent dll linkage..now what does this mean??
Jun 1 '07 #1
1 2177
Banfa
9,065 Expert Mod 8TB
Please properly read and examine the example I have already given you in this thread and you should be able to figure out your mistake.

Which is that you are not using the linkage specifier __declspec(dllexport) in your source file for your functions.
Jun 1 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Jim C Nguyen | last post by:
I have a table with ~2.2 million rows. Sometimes when I do an update to one single row it will instead update ALL of the rows using the same update. This happens every one in about 500,000...
14
by: Abhi | last post by:
FYI: This message is for the benefit of MS Access Community. I found that this prblem has been encounterd by many but there is hardly any place where a complete solution is posted. So I thought...
7
by: Jamma | last post by:
Hello, I have an Access 2000 file working on XP machines and a NT network. The files are split and 95% of the time all is well and stable. The main issue arises when the app prints,a novell...
1
by: D A H | last post by:
I have gotten the same exception in multiple projects. I have solved the underlying problem. My question is if anyone knew of a setting that would cause this exception to be thrown. A...
2
by: Chris Langston | last post by:
I have a Web Server running IIS 5 or 6 on Windows 2K and Windows 2003 Server that is experiencing strange shutdown problems. We are using ASP.NET v1.1 and our application is written in VB.NET ...
2
by: DCC700 | last post by:
VS 2005 Converted Header causing error when publishing After converting from Visual Studio 2003 to 2005, I have had several issues with a header that is used throughout the project. The...
2
by: Pugal | last post by:
hi what is the difference between _stdcall and __cdecl, is the stack release issue much important.. and why other languages like java are not worrying about these things.. any idea.. -Pugal
1
by: tom_burrow | last post by:
hi, i am hoping that someone may be able to help me... i have been writing vb.net pages using visual web developer. they all work fine locally however when i upload to the server i get the...
0
by: msnews.microsoft.com | last post by:
Hi, I am tring to use Trace Listener in asp.net 1.1 application as mentoned here. But i am getting the following error, Configuration Error Description: An error occurred during the processing...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.