Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
ref
- Page 1
CodeMirror Markdown editor toolbar
Programming
Web Development
2 Months Ago
by Dani
… is based on the [CodeMirror API](https://codemirror.net/docs/
ref
/). (The one that allows the buttons for bold, italic, etc…
Re: Show computer name on a label
Programming
Software Development
1 Month Ago
by toneewa
…> using namespace System; using namespace System::Windows::Forms; public
ref
class Mr_M : public Form { public: Mr_M() { this->Text = "…
ref to struct?
Programming
Software Development
13 Years Ago
by pseudorandom21
Hi I have a struct in my form, and I need to pass a reference/handle to it to a separate class, which is ok with the simple "
ref
" keyword. Now, how do I store this
ref
to a struct in the class (as a member variable)? Is this possible? I hope so...
ref class constructor issues
Programming
Software Development
13 Years Ago
by jonnyboy12
… started using the gcnew instead of new for the public
ref
class, that i have needed to learn for windows forms… slots in the method. It looks like this. [CODE] public
ref
class vector2{ public: System::String ^x; System::String ^y; System…
REF Data type
Programming
Databases
14 Years Ago
by ntagrafix
… three object types in part a). In particular: use the
REF
data type to implement the relationships between the types, and…
how can I show the file path instead of ref
Programming
Software Development
16 Years Ago
by ahmedo047
…i1 = 0, i = 0, j = 0 ; input(
ref
ok,
ref
fx,
ref
ft,
ref
alpha,
ref
n,
ref
m); if (ok) { m1 = m - 1; m2 …f; } private void input(
ref
bool ok,
ref
double fx,
ref
double ft,
ref
double alpha,
ref
int n,
ref
int m ) { Console.Write…
Re: how can I show the file path instead of ref
Programming
Software Development
16 Years Ago
by ahmedo047
… = 0, i = 0, j = 0 ; input(
ref
ok,
ref
fx,
ref
ft,
ref
alpha,
ref
n,
ref
m); if (ok) { m1 = m - 1; … f; } private void input(
ref
bool ok,
ref
double fx,
ref
double ft,
ref
double alpha,
ref
int n,
ref
int m ) { try …
Re: how can I show the file path instead of ref
Programming
Software Development
16 Years Ago
by ahmedo047
…i1 = 0, i = 0, j = 0; input(
ref
ok,
ref
fx,
ref
ft,
ref
alpha,
ref
n,
ref
m); if (ok) { m1 = m - 1; …f; } private void input(
ref
bool ok,
ref
double fx,
ref
double ft,
ref
double alpha,
ref
int n,
ref
int m) { try {…
A property or indexer may not be passed as an out or ref parameter
Programming
Software Development
11 Years Ago
by borgasia
… col]; curRange.Value = type + "Component Summary"; FormatRange(
ref
curRange, 10, "Green", true, false, false, XlHAlign.xlHAlignLeft….Font.Underline = true; curRange.Offset[1, 0].Value = "
Ref
-Desig"; curRange.Offset[1, 1].Value = "Part Number…
How can I XML serialize the following Ref class with delegates?
Programming
Software Development
14 Years Ago
by DaveTran
…/// For XML Serialization /// </summary> private
Ref
() { } public
Ref
(Func<T> getter, Action<T>… how can I correctly serialize and deserialize the
Ref
<float> class? I've been playing…= typeof(Func<>).MakeGenericType(new Type[] { typeof(
Ref
<float>) }); [/code] but I haven't …
passing Null to ref
Programming
Software Development
13 Years Ago
by saneeha.nust
…
ref
DATA_BLOB pDataIn, String szDataDescr,
ref
DATA_BLOB pOptionalEntropy, IntPtr pvReserved,
ref
CRYPTPROTECT_PROMPTSTRUCT pPromptStruct, CryptProtectFlags dwFlags,
ref
…quot;CRYPTPROTECT_PROMPTSTRUCT pPromptStruct" requires a
ref
to structure, but i need to …
declare local ref types?
Programming
Software Development
12 Years Ago
by Jsplinter
If I have a function that takes a
ref
argument like: void Foo(
ref
int i, int b, int c){ i…} and I want to call that function with the
ref
int i argument determined conditionally: int q, r; bool… bTest; //... if (bTest) { bar(
ref
q,1,2); } else { bar(
ref
r,1,2); } is it possible to…
Re: Multiple ref Parameters
Programming
Software Development
14 Years Ago
by Ionelul
…, than you use have to pass it with
ref
keyword. Example1 : [code] private void MainFunction…the same case as passing an int without
ref
keyword } private void RouletteSelection(Chromosome child1,…created object in RouletteSelection } private void RouletteSelection(
ref
Chromosome child1,
ref
Chromosome child2) { Chromosome child = new…
Re: Multiple ref Parameters
Programming
Software Development
14 Years Ago
by kendaop
…child1, child2; child1 = child2 = new Chromosome(CHROMOSOME_LENGTH); RouletteSelection(
ref
child1,
ref
child2); using (FileStream fileStream = new FileStream(fileName, FileMode.…my RouletteSelection method: [code=c#] private void RouletteSelection(
ref
Chromosome child1,
ref
Chromosome child2) { double target = random.NextDouble()…
Re: A property or indexer may not be passed as an out or ref parameter
Programming
Software Development
11 Years Ago
by deceptikon
The error is very clear, you can't have a `
ref
` parameter that's a property. Copy the value of the property into a temporary variable, then after the method returns, copy that temporary variable's value back to the propery.
nested class requires ref keyword
Programming
Software Development
15 Years Ago
by serkan sendur
…nestedClass = new ContainerClass.NestedClass("something"); UseWithRefKeyword(
ref
nestedClass); MessageBox.Show(nestedClass.GetField()); } private void…); MessageBox.Show(nestedClass.GetField()); } private void UseWithRefKeyword(
ref
ContainerClass.NestedClass nestedClass) { nestedClass = new ContainerClass.NestedClass…
Using C# ref keyword, but outside of method signature
Programming
Software Development
9 Years Ago
by Sphinx'LostNose
…Main(string[] args) { Object origObj = new Object(); ExampleMethod(
ref
origObj); } void ExampleMethod(
ref
Object newObj) { //origObj will also reference the newly created… // something that would mean the same as the following line:
ref
origObj =
ref
newObj; // origObj also should reference the new object with…
convert from 'ref double[]' to 'ref object'
Programming
Software Development
19 Years Ago
by wakeup
… C# I have a method with a parametr of "
ref
object" type (in C++ is a VARIANT* I convert… throws me this error: Argument '3': cannot convert from '
ref
double[]' to '
ref
object' If I create object x =null; And after…
Re: Unit testing - Invoking PrivateObject with ref params
Programming
Software Development
15 Years Ago
by Antenka
… that, that might be a problem with boxing of a
ref
-type variable when passing it in parameters list (by the… way, have you tried passing it as "
ref
intReturnValue", rather than as "intReturnValue"). Anyways - take…stackoverflow.com/questions/2475310/c-4-0-dynamic-doesnt-set-
ref
-out-arguments]C# 4.0 ‘dynamic’ doesn’t set…
passing by ref in foreach
Programming
Software Development
17 Years Ago
by jonesc5
… loop. "Cannot pass 'currentphoto' as a
ref
or out argument because it is a 'foreach iteration…(photo currentphoto in thephotos){ panel1.Controls.Add(new thumbnailPicture(
ref
currentphoto)); } I'm 100% sure that passing by… turning it into a while loop and using
ref
thephotos[x] and that gives the same error…
Unit testing - Invoking PrivateObject with ref params
Programming
Software Development
15 Years Ago
by pilsdumps
…test for a protected method that contains a
ref
parameter. The method to test looks like… this: [CODE] protected void Select(
ref
int? intReturnValue, ModelBase modelbase) { ...some code....…problem is that despite passing the intReturnValue by
ref
using the MakeByRefType() method (or at least…
Re: convert from 'ref double[]' to 'ref object'
Programming
Software Development
14 Years Ago
by aptechit
Hi, I just converted a code of VB.Net in C#. and m getting error while passing variable names or value [CODE]Error :Argument '1': cannot convert from '
ref
double' to '
ref
object' [/CODE] kindly help me to solve this error..
Multiple ref Parameters
Programming
Software Development
14 Years Ago
by kendaop
… same method? For example, [code=c#] private void RouletteSelection(
ref
Chromosome child1,
ref
Chromosome child2) { ... ... ... } [/code] I'm not getting any compiler…
Need help in returning a ref cursor from oracle stored function to vb.net
Programming
Software Development
13 Years Ago
by sunny124
… = True Then 'Me.ListBox1.Items.Add("value in
ref
cursor") 'Me.ListBox1.Items.Add("Location ID Max…code** / Create or replace package a2Package1 is Type refCursor is
ref
cursor; Function a2GetAllProdLocs Return refCursor; Function a2GetAllAudit return refCursor; End…
Re: Using C# ref keyword, but outside of method signature
Programming
Software Development
9 Years Ago
by Sphinx'LostNose
… object(); //origObj != newObj Whereas, when using a method and the
ref
keyword, then again do this, they will continue to reference… the same object: void methodA(
ref
newObj) { newObj = new object(); } //origObj == newObj…
Re: passing by ref in foreach
Programming
Software Development
17 Years Ago
by jonesc5
… in thephotos){ photo tempphoto = currentphoto; panel1.Controls.Add(new thumbnailPicture(
ref
tempphoto)); } [/code] if there is a better way of doing…
Re: passing by ref in foreach
Programming
Software Development
17 Years Ago
by Ramy Mahrous
It's C# compiler restriction [QUOTE]Cannot pass 'currentphoto' as a
ref
or out argument because it is a 'foreach iteration variable'[/QUOTE] and your solution is good to avoid this restriction.
Re: [split] convert from double* to ref double
Programming
Software Development
14 Years Ago
by nick.crane
…, pass the first element of the array by
ref
. E.g. [iCODE]axCDFLAN.XferCommand(
ref
myFreqArray[0])[/iCODE] As this is a…
Re: Multiple ref Parameters
Programming
Software Development
14 Years Ago
by CloneXpert
Hey, Actually it's absolutely normal, you can use multiple
ref
. :)
Re: [split] convert from double* to ref double
Programming
Software Development
14 Years Ago
by andisheh1362
… C# ,it say i mus use
ref
double for parameters. like this: axCDFLAN.XferCommand(
ref
double). but i dont want this becauase…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC