473,396 Members | 2,147 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.

System::ObjectT^ to void* Conversion

Hello everyone,

we have a native C++ function, which is as given below

void DoSomething(void* pData);

we are writing a c++/CLI Wrapper around it so that it can be accessed from a C## application... The c++/CLI function is

void DoSomething(System::Object^ pData)

Our doubt is how do we convert

Object^ to void*
Sep 11 '06 #1
1 1537
Wrong newsgroup. Try
news://msnews.microsoft.com/microsof...t.languages.vc
Jon

<Sabarishwrote in message news:%2****************@TK2MSFTNGP03.phx.gbl...
Hello everyone,

we have a native C++ function, which is as given below

void DoSomething(void* pData);

we are writing a c++/CLI Wrapper around it so that it can be accessed from
a C## application... The c++/CLI function is

void DoSomething(System::Object^ pData)

Our doubt is how do we convert

Object^ to void*


Sep 11 '06 #2

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

Similar topics

1
by: charles | last post by:
system.void cannot be used from c# -- use typeof(void) to get the void type object
9
by: MDoyle | last post by:
Here is the easiest question you’ll get all day from a complete newbie. I installed Visual Studio on my laptop last night and have been tryin to write my very first C# programs this morning. I’m...
2
by: Judah | last post by:
With generics in .NET 2, there are certain scenarios in which using System.Void would be useful: TReturnType MyFunction<TReturnType>() { return default(TReturnType); } Above is a simple...
2
by: Marcus Kwok | last post by:
Is there a difference between using the C++ keyword "void" and using "System::Void" when specifying parameters and return types? Is there a preference when choosing between the two? In the code...
11
by: Code[R] | last post by:
hello all, i've a problem :s i've tried to convert a "system::string" (a textbox) to an "int" but i have only found a function to convert system::string to char and char to int :s : ...
2
by: sovarschizsuzsa | last post by:
Hy! I have written a MC++ wrapper DLL file for use in a C# project. This wrapper DLL is built on a C DLL. I have the following functions in the C DLL: int First(char* a1, char* a2, void* *a3,...
0
by: Sabarish | last post by:
Hello everyone, we have a native C++ function, which is as given below void DoSomething(void* pData); we are writing a c++/CLI Wrapper around it so that it can be accessed from a C##...
1
by: wespw1 | last post by:
I have a database that was created in Access 97 converted to Access 2000, and then to Access 2003 that I created for my Store as a POS database system. The problem is I originally created the ID...
8
by: Edson Manoel | last post by:
I have some C++ unmanaged code that takes std::string& arguments (as reference), and fills them (possibly growing the string). I want to call this code through PInvoke (DllImport), possibly using...
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
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
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,...
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
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.