Hi all,
Does anybody know that if trying to PInvoke into an unmanaged DLL which only
exports functions per specific O/S will show the "Unable to find entry point
.... in DLL ..." exception message if running/debugging on an unexported O/S
flavor?
Thanks,
-MH 3 1292
I've used PInvoke with a mixed assembly (unmanaged C++, C++/CLI and C#
on windows), but I'm not sure what you mean by "unexported O/S flavor."
What, exactly, is it you're trying to do? i.e., what
platforms/functions?
Sharon
Michael wrote:
Hi all,
Does anybody know that if trying to PInvoke into an unmanaged DLL which only
exports functions per specific O/S will show the "Unable to find entry point
... in DLL ..." exception message if running/debugging on an unexported O/S
flavor?
Thanks,
-MH
Michael,
I assume that by unexported you mean unsupported. In general, if the
function entry points
can not be found, you will have an exception.
Regards,
Tasos
Michael wrote:
Hi all,
Does anybody know that if trying to PInvoke into an unmanaged DLL which only
exports functions per specific O/S will show the "Unable to find entry point
... in DLL ..." exception message if running/debugging on an unexported O/S
flavor?
Thanks,
-MH
"Michael" <mh***@domain.comwrote:
Does anybody know that if trying to PInvoke into an unmanaged DLL which only
exports functions per specific O/S will show the "Unable to find entry point
... in DLL ..." exception message if running/debugging on an unexported O/S
flavor?
If I understand you right, you'll have to use a delegate and LoadLibrary
/ GetProcAddress approach.
-- Barry
-- http://barrkel.blogspot.com/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Carlos Guzmán Álvarez |
last post by:
Hello:
I'm trying to execute a function of a unmanaged dll using PInvoke, i
have definied the function as:
public static extern int isc_dsql_prepare(
int status_vector,
ref int...
|
by: Brett Robichaud |
last post by:
I have created a simple background thread to make one pinvoke call into a
DLL I've created. My Winforms app spawns the thread in the form load event
then go about it's business. The problem is...
|
by: vertigo |
last post by:
Hello
I use some win 32 API function for example:
HANDLE CreateFile(
LPCTSTR lpFileName,
DWORD dwDesiredAccess,
DWORD dwShareMode,
LPSECURITY_ATTRIBUTES lpSecurityAttributes,
DWORD...
|
by: cppdev |
last post by:
Hello,
After reading a few articles,
http://blogs.gotdotnet.com/cbrumme/PermaLink.aspx/e55664b4-6471-48b9-b360-f0fa27ab6cc0...
|
by: Dgdege |
last post by:
Hi all,
I want to wrapp an exiting API written in C++ to .NET using managed
C++ extensions.
I want my managed C++ class library to link with the unmanaged dll. So
I don't use PInvoke for...
|
by: _iycrd |
last post by:
After numerous problems, I'm having second thoughts about using
C++/CLI to wrap a native DLL. On the other hand, PInvoke seems like
it will take a huge amount of work, if it will work at all.
...
|
by: Mohamed Mansour |
last post by:
Hey there, this will be somewhat a long post, but any response is
appreciated!
I have done many PInvoke in the past from C++ to C#, but I did PInvoke
within C# not C++/CLI.
Can someone explain...
|
by: =?Utf-8?B?SmVzc2ljYQ==?= |
last post by:
Hello,
I have a pInvoke question.
This is the C function that is exported from one of the C dll,
extern __declspec(dllexport) IM_RET_CODE ST_import (IM_MODE mode,
char *filename,...
|
by: Sagaert Johan |
last post by:
Hi
I am struggling with pinvoke
I have dll a function that is declared as :
sf_command (IntPtr sndfile,int command, IntPtr data, int datasize);
i need to pass a pointer to a double in the...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
| |