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

How do I get a changed value back from C#

Hello!

Assume I have an C++.net function called loadPostNames see below.
loadPostNames( dialog->GetAllPostNames(index) );
This function loadPostNames have GetAllPostNames(index) as a parameter.
Function GetAllPostNames is a method in C#.

Now to my question this identifier index passed as a parameter to method
GetAllPostNames is changed in
C# I want to be able to get the new changed value back to the C++.Net
function..

I have tried several possibilitys but I get compile error.

How should I write?

//Tony

Jun 7 '06 #1
1 1097
"tony" <jo*****************@telia.com> wrote:
Assume I have an C++.net function called loadPostNames see below.
loadPostNames( dialog->GetAllPostNames(index) );
This function loadPostNames have GetAllPostNames(index) as a parameter.
Function GetAllPostNames is a method in C#.

Now to my question this identifier index passed as a parameter to method
GetAllPostNames is changed in
C# I want to be able to get the new changed value back to the C++.Net
function..

I have tried several possibilitys but I get compile error.

How should I write?


If the C# method is changing the value of the 'index' argument and you
want to propagate the changed index value back to the caller, then the
C# method should be written to use a 'ref int index' parameter (assuming
the index is an integer). This should translate as an 'int& index'
parameter in C++/CLI.

-- Barry

--
http://barrkel.blogspot.com/
Jun 7 '06 #2

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

Similar topics

2
by: Bob Rivers | last post by:
Hi, Is it possible to verify, using js, if ANY item in a form has changed? For example: I have a <form> with multiple items (<input>, <select>, <textarea>, etc). I need to track if one (or...
2
by: Brennon Arnold | last post by:
I have a problem that I figured would be relatively common, but have been unable to find any information on it as of yet. I have a page that contains two DropDownList controls, with the second...
3
by: Kyle Keller | last post by:
I created a database which my company has used for over 2 years at now over 30 locations. Just today, one of the locations called and was having problems with their program. The database is A97...
19
by: Taras_96 | last post by:
Hi everyone, How do you detect that a form element has been changed? This thread: ...
4
by: tony | last post by:
Hello! Assume I have an C++.net function called loadPostNames see below. loadPostNames( dialog->GetAllPostNames(index) ); This function loadPostNames have GetAllPostNames(index) as a parameter....
5
by: Mark | last post by:
Hello, I have a form where I want to only enable a save button when something has changed in the dataset. Currently I'm checking current values against original values everytime a value is...
11
by: Santosh | last post by:
Dear all , i am writting following code. if(Page.IsPostBack==false) { try { BindSectionDropDownlist();
3
by: Bundy | last post by:
Hi How do I change the background colour of an input box in a form as soon as the value is changed? Also the background should revert back to it's original colour if the user decides that they...
2
by: Dan Sikorsky | last post by:
How can we tell if the value in a FormView EditItemTemplate TextBox has changed from its initial value so that we know if we have to update the corresponding db table column value? -- Thank you...
1
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...
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...
0
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...
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: 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...
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: 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 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.