variant Questions

2

Let's me start from what I want to do then raising some questions I have. I want to develop a general Java program which is a superset of a number of programs (let's call them program variants). I...
Iridaceous asked 18/6, 2011 at 3:22

2

I'm trying to use a COM component with the following method: HRESULT _stdcall Run( [in] SAFEARRAY(BSTR) paramNames, [in] SAFEARRAY(VARIANT *) paramValues ); How can I create in C/C++ the para...
Mercie asked 25/11, 2009 at 10:48

2

Solved

I'll attempt to shorten this code example: public interface IThing { //... Stuff } public class Thing1 : IThing { } public class Thing2 : IThing { } public interface IThingView<out T> ...
Fellner asked 26/5, 2011 at 17:38

2

Solved

See this. When and why to use <h:head>, instead of <head>? I've seen Primefaces won't work with <head>, though.
Rachellerachis asked 17/5, 2011 at 8:23

1

I need to be able to convert a naked pointer to a variant. I know that the pointer points to a variant, but I can't seem to get it back out. A straight cast (as I pretty much thought) fails: Resul...
Corporeity asked 13/4, 2011 at 18:39

4

Solved

I am developing GUI application via wxWidgets. It has 2 parts: GUI part and "Logic" part. I want to have Logic part totally independent on wxWidgets. But one component in the GUI returning wxVarian...
Worcestershire asked 28/3, 2011 at 14:2

1

Solved

When one assigns a Variant containing a string value to a floating point variable Delphi calls VarToDoubleAsString to do the conversion, which in turn uses the OS settings for decimal and thousand ...
Airbrush asked 23/2, 2011 at 11:12

2

Solved

I have the following variant from the boost lib: typedef boost::variant<int, float, double, long, bool, std::string, boost::posix_time::ptime> variant; Now I want to get a value from a var...
Neediness asked 27/12, 2010 at 15:10

4

Solved

I have a boost variant of looking like this: typedef boost::variant<int, float, double, long, bool, std::string, boost::posix_time::ptime> variant; I have a need for being able to convert an...
Milliemillieme asked 8/12, 2010 at 15:30

2

Solved

Does someone know if the boost::get for the boost::variant is a performance-consuming operation or not. Right now I am refactoring some old code in a performance-critical part, where "varianting" ...
Habsburg asked 22/10, 2010 at 13:13

2

Solved

I have two Delphi7 programs: a COM automation server (EXE) and the other program which is using the automation server. I need to pass an array of bytes from one program to the other. After some s...
Insolvable asked 1/9, 2010 at 15:34

3

Solved

Is there a way to pass a wrap and unwrap a TObject descendent in an OleVariant? I am trying to pass a TObject across automation objects. I know it's not a good idea but I don't have a good alternat...
Aneroidograph asked 5/5, 2010 at 8:23

3

Solved

OLE Variants, as used by older versions of Visual Basic and pervasively in COM Automation, can store lots of different types: basic types like integers and floats, more complicated types like strin...
Conducive asked 19/3, 2010 at 18:12

2

Solved

I have the following record definition E3Vector3T = packed record public x: E3FloatT; y: E3FloatT; z: E3FloatT; function length: E3FloatT; function normalize: E3Vector3T; function crossPr...
Jarvisjary asked 9/3, 2010 at 21:12

1

Solved

Working in Delphi7 just now, I noticed that not only a VarIsEmpty function exists, but also a VarIsEmptyParam. Since the help of Delphi does not give much explanation: VarIsEmptyParam returns t...
Pleura asked 8/3, 2010 at 13:9

1

Solved

Are there any easy-to-use, high-level classes or libraries that let you interact with VARIANTs in Visual C++? More specifically, I'd like to convert between POD types (e.g. double, long), strings...
Slap asked 1/3, 2010 at 21:4

10

Solved

I keep seeing the phrase "duck typing" bandied about, and even ran across a code example or two. I am way too lazy busy to do my own research, can someone tell me, briefly: the difference between...
Ramon asked 14/11, 2008 at 3:40

1

Solved

I'm working with a OPC Server control that stores data tags as variant types, described by System.Runtime.InteropServices.VarEnum. These types include the following, VT_BSTR (string), VT_I2 (short)...
Eagleeyed asked 30/10, 2009 at 11:26

1

Solved

In variants.pas, there is several VarIsXXX( )-functions for type-checking a variant. There is no VarIsBoolean( ), though. What's your preferred way of checking if a variant is of type boolean?
Linoel asked 12/6, 2009 at 10:53

3

Solved

Why can't Delphi variants hold objects? More importantly, what's the reason behind this limitation?
Short asked 14/12, 2008 at 9:27

1

Solved

OK, so I couldn't really think of an apropos title that summarizes this. The IPrintPipelinePropertyBag interface has the method AddProperty which aptly enough "adds a property to a property bag." ...
Innocuous asked 4/11, 2008 at 9:42

© 2022 - 2024 — McMap. All rights reserved.