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

No Entry Point Found In Dll

1
Hi,

I have a dll that was developed in VC ++.
I need to call the API in C#.
But on run timr iu get an error that no entry point found for function ... in DLL.


and when trying to call the function TApiInitialize or any other function i get an error.

My code in c# is :
DllImport("TickerApi.dll")]
public static extern void TApiShutDown();


public void test()
{

TApiShutDown

}

Please advise !!!!

I have the h. file:


// TickerApi function pointer declarations
//
typedef int (WINAPI* pTApiInitialize)(int);
typedef void (WINAPI* pTApiShutDown)(void);
typedef int (WINAPI* pTApiReadRecord)(BYTE*);
typedef int (WINAPI* pTApiConvertRecord)(BYTE*, BYTE*, int);
typedef int (WINAPI* pTApiReadAndDropRecord)(void);
typedef char* (WINAPI* pTApiGetEag2TfVersion)(void);
typedef char* (WINAPI* pTApiGetFeedServerVersion)(void);
typedef char* (WINAPI* pTApiGetRpcVersion)(void);
typedef char* (WINAPI* pTApiGetVersion)(void);
typedef void (WINAPI* pTApiSaveDataToFile)(int, char*);
typedef int (WINAPI* pTApiEmulateFeedServer)(char*);
typedef int (WINAPI* pTApiRealtimeFeedServer)(void);
typedef void (WINAPI* pTApiSetReadDelay)(long);
typedef double (WINAPI* pTApiFracToDouble)(TfValue*);
typedef long (WINAPI* pTApiFracToDenom)(TfValue*);
typedef long (WINAPI* pTApiFracToNumerator)(TfValue*);
typedef void (WINAPI* pTApiSetPrintf)(int(*)(char*, ...));
typedef void (WINAPI* pTApiSetMarketFlag)(int, int);
typedef void (WINAPI* pTApiSetNewsFlag)(int, int);
typedef void (WINAPI* pTApiSetMessageFlag)(int, int);
typedef void (WINAPI* pTApiSetSecurityFlag)(int, int);
typedef void (WINAPI* pTApiSetFieldFlag)(int, int);
typedef long (WINAPI* pTApiFieldToLong)(TfField*);
typedef float (WINAPI* pTApiFieldToFloat)(TfField*);
typedef double (WINAPI* pTApiFieldToDouble)(TfField*);
typedef int (WINAPI* pTApiFieldToString)(TfField*, char *);
typedef int (WINAPI* pTApiFieldToBinary)(TfField*, char *, int);
typedef int (WINAPI* pTApiConvJulianDate)(DWORD , int *, int *, int *);
typedef TfField *(WINAPI* pTApiGetNextField)(TfPacket*,TfField*);
typedef int (WINAPI* pTApiGetMessageType)(TfPacket *);
typedef int (WINAPI* pTApiGetSecurityType)(TfPacket *);
typedef int (WINAPI* pTApiGetExchangeId)(TfPacket *);
typedef int (WINAPI* pTApiGetMarketCenter)(TfPacket *);
typedef int (WINAPI* pTApiGetFieldCount)(TfPacket *);
typedef int (WINAPI* pTApiGetSymbol)(TfPacket *, char *);
typedef int (WINAPI* pTApiGetFieldId)(TfField *);
typedef int (WINAPI* pTApiGetValueType)(TfField *);
typedef int (WINAPI* pTApiGetValueBuffer)(TfField *, int *, int *, void *);
typedef void (WINAPI* pTApiLoadFeedFile)(char *);
typedef int (WINAPI* pTApiSendCommand)(char *);
typedef int (WINAPI* pTApiPtrToOff) (char *);
typedef int (WINAPI* pTApiOffToPtr) (char *);
typedef int (WINAPI* pTApiDataToString) (char *, char *, int);
typedef int (WINAPI* pTApiDataToXml) (char *, char *, int);

//
// ClientApi function pointer declarations
//
typedef int (WINAPI* pCApiInitialize)(int);
typedef void (WINAPI* pCApiShutDown)(void);
typedef void (WINAPI* pCApiSymbolRequest)(TfCApiSymbolRequest *pRequest);
typedef void (WINAPI* pCApiDbaseRequest)(TfCApiDbaseRequest *pRequest);

//
// ServerApi function pointer declarations
//
typedef int (WINAPI* pSApiInitialize)(char *, char *, char *, int, int);
typedef void (WINAPI* pSApiShutDown)(void);
typedef char * (WINAPI* pSApiGetLastError)(void);

/* TApiInitialize
*
* Initialize and enable the communication with the feed server
*
* nMaxBufSize - the max size (in bytes) of the conversion buffer
* supplied by the main application.
* A default of 4096 bytes is assumed if the parameter
* is set to 0.
*
* return value - 1 on success
* 0 on any failure
*/
__declspec(dllexport) int WINAPI TApiInitialize (int nMaxBufSize);

/* TApiShutDown
*
* Disable the communication with the feed server.
* It does NOT shut down the program on the feed server, any subsequent
* call to TApiInitialize() will enable the communication again.
*/
__declspec(dllexport) void WINAPI TApiShutDown (void);
Jan 14 '08 #1
0 1655

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

Similar topics

1
by: Darek | last post by:
Hi there; I was trying to apply SQL SP3a on my windows 2000 server (SP4), but the installation failed and when I rebooted my server the SQL agent failed to start and I get the following error:...
1
by: Eric | last post by:
Hi All! Has anyone has seen this error before? Event Type: Information Event Source: Application Popup Event Category: None Event ID: 26 Date: 5/14/2004 Time: 10:06:45 AM
0
by: Sam Fields | last post by:
I have found very little regarding the error "Unable to find an entry point named EnumerateSecurityPackagesW in DLL security.dll. ". I have an ASP.NET Web Service being accessed via SSL. I found...
1
by: kpd | last post by:
I am using distutils and mingw to create an extension from some C++ code for Python 2.4.1. It builds fine, but on import the following error comes up: python.exe - Entry Point Not Found The...
5
by: Mike in Santa Rosa | last post by:
I'm trying to get a simple c# app built that can launch/manipulate an excel workbook, sheet. I've chased down several examples and can't any of them to work. So I must be doing somethnig obviouslt...
0
by: allan_mclellan | last post by:
Under W2K I am using DB2 V8.2. I have a program that is using the CLI. When I run it on a workstation that doesn't have the DB2 client installed (but does have the DB2 DLL's present) I would expect...
3
by: =?Utf-8?B?Sm9hY2hpbQ==?= | last post by:
I'm trying to call my C++/CLI dll from a C# library. I gives me the error unable to find an entry point named GetA Here's my C++/CLI file: #pragma once //#ifdef WRAPPERAPI_EXPORTS...
20
by: hippomedon | last post by:
Hello everyone, I'm looking for some advice on whether I should break the normalization rule. Normally, I would not consider it, but this seems to be a special case. I have created an...
0
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, I have built MSDN OLE DB Sample Provider and successfully built/debug it using Microsoft Excel as client. I have found that in DllGetClassObject (classfac.cpp), the class...
2
by: FFrozTT | last post by:
I am having a problem creating a DLL with an entry point. I've been trying sub Main, DllMain, and I get nothing. When I run dumpbin - exports mydll.dll I see no entry points, also the dll when...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.