address-operator Questions

3

Solved

Sorry, this is a mix of C# and VB.Net I have a C# class with with 2 delegates: public delegate string GetSettingDelegate(string key); public event GetSettingDelegate GetSettingEvent; public dele...
Pneumatology asked 23/5, 2011 at 22:56

10

Solved

Is it possible to assign a variable the address you want, in the memory? I tried to do so but I am getting an error as "Lvalue required as left operand of assignment". int main() { int i = 10; ...
Hujsak asked 26/11, 2012 at 5:14

1

Solved

So apparently C++20 is getting std::to_address. From the cppreference page its use case doesn't seem clear to me. We already have operator& and std::addressof, why do we need yet another funct...
Benzvi asked 7/6, 2019 at 11:44

4

Solved

I am trying to better understand pointers and referencing in C, and my course provided the following program as an example. #include <stdio.h> void swap(int* a, int* b); int main(void) { ...
Hiatus asked 11/8, 2015 at 18:27

4

I have an Objective-C class which contains a C-style struct. I need to call a C function passing a pointer to this object member (a.k.a. property). For the life of me, I can't figure out how to get...
Icebreaker asked 9/7, 2009 at 5:43

4

Solved

Possible Duplicate: What legitimate reasons exist to overload the unary operator& ? I just read this question, and I can't help but wonder: Why would anyone possibly want to overload t...
Flatus asked 27/6, 2011 at 22:7

4

Solved

If I were to create a simple object in C++, what is the difference between returning an address of the member vs. returning a pointer. As far as I'm aware, C++ doesn't have automatic garbage collec...
Chromium asked 4/4, 2011 at 17:14

4

I´m having some problem to convert my VB6 project to VB.NET I don't understand how this "AddressOf" function should be in VB.NET My VB6 code: Declare Function MP4_ClientStart Lib "hikclient.dll"...
Obituary asked 17/3, 2010 at 15:11

4

Could anyboby help me with the alternative solution in C# regarding AddressOf operator in VB6? AddressOf returns a long value. What way can I get the output in C#?
Unburden asked 11/11, 2008 at 14:1
1

© 2022 - 2024 — McMap. All rights reserved.