Sorry if this is the wrong group, but it seems like a good place to start.
I have a control, creating a dll written in c#/.net and some unmanaged code
in c++ using embedded c++ V3. Yes, it is for PPC2002/PPC2003 but I don't
believe that's the significant issue. My question is, can I create a
solution that wraps the c++ in c# and combine that with the c# control and
if so, is this the best way to combine these two elements? I'm not going to
post this elsewhere and hope people can look past the PPC issues since I
don't believe they matter at all here.
Thanks for any assistance,
NWOP. 3 1583
6.1. How do I call a function that is in a native DLL?
Native DLL functions can be called through Platform Invoke (P/Invoke):
Learn how to use the Platform Invoke (P/Invoke) feature of the .NET Compact
Framework. http://msdn.microsoft.com/library/en...ntrointerp.asp
Explore advanced interoperability on the .NET Compact Framework. http://msdn.microsoft.com/library/en...advinterop.asp
Learn how to create unmanaged functions that you can use in your Smart
Device applications through Platform Invoke. http://msdn.microsoft.com/library/en...nagedfuncs.asp
Learn how to marshal data between managed and unmanaged code using the .NET
Compact Framework. http://msdn.microsoft.com/library/en...llingtypes.asp
Learn how to use dumpbin.exe as an aid for declaring P/Invokes in Microsoft
..NET Compact Framework-based applications. http://msdn.microsoft.com/library/en...binpinvoke.asp
"New World Order Pigs" <lt*******@md-it.com.no.spam> wrote in message
news:#1**************@TK2MSFTNGP10.phx.gbl... Sorry if this is the wrong group, but it seems like a good place to start. I have a control, creating a dll written in c#/.net and some unmanaged
code in c++ using embedded c++ V3. Yes, it is for PPC2002/PPC2003 but I don't believe that's the significant issue. My question is, can I create a solution that wraps the c++ in c# and combine that with the c# control and if so, is this the best way to combine these two elements? I'm not going
to post this elsewhere and hope people can look past the PPC issues since I don't believe they matter at all here.
Thanks for any assistance, NWOP.
Thanks Richard. Some of these things I've looked at but one thing always
seems to be missing-- I'm using an unmanaged c++ app to use a control (dll
ultimately) written with c#/.net. My understanding is that managed code is
interpreted and needs the runtime and as such, how do I take an unmanaged
app and invoke managed code. Most of what I read is in the other direction
and doesn't apply, at least directly and obviously. In any case, I'll look
at these to see if I can gleen the info I need.
Thanks again, NWOP.
"Richard Burte" <rb****@online.microsoft.com> wrote in message
news:#A**************@TK2MSFTNGP12.phx.gbl... 6.1. How do I call a function that is in a native DLL?
Native DLL functions can be called through Platform Invoke (P/Invoke):
Learn how to use the Platform Invoke (P/Invoke) feature of the .NET
Compact Framework.
http://msdn.microsoft.com/library/en...ntrointerp.asp Explore advanced interoperability on the .NET Compact Framework.
http://msdn.microsoft.com/library/en...advinterop.asp
Learn how to create unmanaged functions that you can use in your Smart Device applications through Platform Invoke.
http://msdn.microsoft.com/library/en...nagedfuncs.asp
Learn how to marshal data between managed and unmanaged code using the
..NET Compact Framework.
http://msdn.microsoft.com/library/en...rshallingtypes
..asp Learn how to use dumpbin.exe as an aid for declaring P/Invokes in
Microsoft .NET Compact Framework-based applications.
http://msdn.microsoft.com/library/en...mpbinpinvoke.a
sp
"New World Order Pigs" <lt*******@md-it.com.no.spam> wrote in message news:#1**************@TK2MSFTNGP10.phx.gbl... Sorry if this is the wrong group, but it seems like a good place to
start. I have a control, creating a dll written in c#/.net and some unmanaged code in c++ using embedded c++ V3. Yes, it is for PPC2002/PPC2003 but I
don't believe that's the significant issue. My question is, can I create a solution that wraps the c++ in c# and combine that with the c# control
and if so, is this the best way to combine these two elements? I'm not
going to post this elsewhere and hope people can look past the PPC issues since I don't believe they matter at all here.
Thanks for any assistance, NWOP.
Yes, after looking at the articles they don't apply really. I've used
pinvoke a number of times previously and it just doesn't apply. I can't
"pinvoke" an entire application and then somehow design a managed control
into that application. I literally have a managed control that needs to be
put on an unmanaged form in an unmanaged application. I've seen some
references to doing this, but none of them are satisfactory and I'm looking
for a better way.
Thanks to any and all, NWOP.
"New World Order Pigs" <lt*******@md-it.com.no.spam> wrote in message
news:OJ**************@TK2MSFTNGP12.phx.gbl... Thanks Richard. Some of these things I've looked at but one thing always seems to be missing-- I'm using an unmanaged c++ app to use a control (dll ultimately) written with c#/.net. My understanding is that managed code
is interpreted and needs the runtime and as such, how do I take an unmanaged app and invoke managed code. Most of what I read is in the other
direction and doesn't apply, at least directly and obviously. In any case, I'll
look at these to see if I can gleen the info I need.
Thanks again, NWOP.
"Richard Burte" <rb****@online.microsoft.com> wrote in message news:#A**************@TK2MSFTNGP12.phx.gbl... 6.1. How do I call a function that is in a native DLL?
Native DLL functions can be called through Platform Invoke (P/Invoke):
Learn how to use the Platform Invoke (P/Invoke) feature of the .NET Compact Framework.
http://msdn.microsoft.com/library/en...ntrointerp.asp Explore advanced interoperability on the .NET Compact Framework.
http://msdn.microsoft.com/library/en...advinterop.asp Learn how to create unmanaged functions that you can use in your Smart Device applications through Platform Invoke.
http://msdn.microsoft.com/library/en...nagedfuncs.asp Learn how to marshal data between managed and unmanaged code using the
.NET Compact Framework.
http://msdn.microsoft.com/library/en...rshallingtypes .asp Learn how to use dumpbin.exe as an aid for declaring P/Invokes in Microsoft .NET Compact Framework-based applications.
http://msdn.microsoft.com/library/en...mpbinpinvoke.a sp
"New World Order Pigs" <lt*******@md-it.com.no.spam> wrote in message news:#1**************@TK2MSFTNGP10.phx.gbl... Sorry if this is the wrong group, but it seems like a good place to
start. I have a control, creating a dll written in c#/.net and some unmanaged
code in c++ using embedded c++ V3. Yes, it is for PPC2002/PPC2003 but I don't believe that's the significant issue. My question is, can I create a solution that wraps the c++ in c# and combine that with the c# control and if so, is this the best way to combine these two elements? I'm not
going to post this elsewhere and hope people can look past the PPC issues since
I don't believe they matter at all here.
Thanks for any assistance, NWOP.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: New World Order Pigs |
last post by:
Sorry if this is the wrong group, but it seems like a good place to start.
I have a control, creating a dll written in c#/.net and some unmanaged code
in c++ using embedded c++ V3. Yes, it is for...
|
by: Ekim |
last post by:
hello,
I'm allocating a byte-Array in C# with byte byteArray = new byte;
Now I want to pass this byte-Array to a managed C++-function by reference,
so that I'm able to change the content of the...
|
by: Adam McKee |
last post by:
We are using Visual Studio.NET 2003 in our project with .NET framework
1.1. One of our libraries is a mixed-mode dll assembly consisting of
one managed C++ library, and several unmanaged C++...
|
by: Eric Twietmeyer |
last post by:
Hello,
I'm starting to investigate cs, managed c++ and interoperating with a very
large unmanaged code base. We are going to use Windows Forms (written in
cs) to replace our old fashioned GUI. ...
|
by: Brett Styles |
last post by:
Hi Guys,
I am trying to access a class in an unmanaged dll. I have
created a wrapper managed class to access the functions I need but no matter
what I try from the MSDN samples I can not get it to...
|
by: zhphust |
last post by:
I want to convert a object of a managed class to a unmanaged structure
that has the same member with that managed class. Can anybody tell me
how i can do it?
Thanks in advance.
--
zhphust...
|
by: Sandy |
last post by:
I am confused about Unmanaged Code, How .Net Framework treate that code,
What is the use of that.
Thanks in advance
Sandeep Chitode
|
by: doug |
last post by:
I understand the basics of what managed code offers and that you open
yourself up to security issues if you allow unmanaged code. We already have
a decent amount of VB6 code to include COM DLLs. ...
|
by: Koliber (js) |
last post by:
sorry for my not perfect english
i am really f&*ckin angry
in this common pattern about dispose:
//////////////////////////////////////////////////////////
Public class...
|
by: =?Utf-8?B?VGhlTWFkSGF0dGVy?= |
last post by:
Sorry to bring up a topic that is just flogging a dead horse.... but...
On the topic of memory management....
I am doing some file parcing that has to be done as quick as posible,
but what I...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
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...
|
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: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
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: 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...
|
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: 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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
| |