I did say I wanted multiple sub-object copies in my design.
Anyway.
So the conclusion is, this is not standard behavior, that I am asking for?
Type: Posts; User: Helix
I did say I wanted multiple sub-object copies in my design.
Anyway.
So the conclusion is, this is not standard behavior, that I am asking for?
Well I didn't mean that g++ should conform to Visual Studio :).
I was just saying....
Grumpy, i worked a little to produce this minimalistic example, so to keep things simple. one thing I know for sure, is that I don't want B to be a virtual base class.
I'm not convinced that this...
Hmm, I see that in my original example writing C::f() instead of C::B::f() works, and the effect is the same.
But how do I invoke D::B::f() ? Now I want to call the implementation of f() in the B...
It's not the same, because i'm calling f() from a nonstatic function so I *have* and object.
And, the compiler should know which B::f() to call specifically because I wrote C::B::f(). So it should...
Hello all,
I have the following problem when trying to disambiguate the behaviour of a function in the most-derived class:
class B
{
public:
virtual void f() {}
};
There is. You need to keep a refence to the EventHandler object that you added to the Event and you unwire that object with the -= operator on the reference.
I had no idea where to put this question, but here goes:
I want to package my .NET solution for installation. I have several C# projects with many depencies: COM DLLs written in VC++ 6, OCXs...
Can I do something about flickering?? I use, in C#, a TextBox control with its associated Graphics object.
I'm just using DrawLines & Drawline and Clear methods.
Maybe use APIs?? I tried that, but...
Hello.
Can someone tell me what is the procedure of un-wiring an event handler from an event (if there is such a thing)?
You wire a handler to an event with the syntax:
...
Thanks. I needed that.
A different namespace ...
So how do I do that? A namespace groups some functions together or some classes or what?
Hello.
I'm exporting some functions with idl. Is there a way I can define a function that has the same name as a previously defined function? For example, I want to expose a "sin" function. The...
Is nwindowproc() a non-static member function of some class?
nwindowproc() is not a member at all ... it's just there in the cpp ...
Post the code that calls nwindowproc().
Well, you caught...
I'm calling a non-static member function from a function declared as follows:
LRESULT nwindowproc(HWND hwnd,UINT message,WPARAM wparam,LPARAM lparam)
The function is in the implementation...
OK...
1)My question wasn't a DLL vs OCX but a generic class vs control class question (of course, depending on the answer I would then build a DLL or an OCX).
The question was: can a generic...
Hey.
1)Just declare the method as returning something else than void.
2)Well, there's a discussion here. But I'd probably just confuse you, so you better check the MSDN reference.
There are at...
I just started off in this kind of stuff, so I'm practically nowhere yet. I have several questions in mind, e.g.:
a)if I need to export an object with events, does it necessarily have to be a...
Oh my god, it works! I can't thank you enough.
By the way, how was I suppose to know?! This odl stuff is most badly documented.
That was good to know, but it doesn't solve the problem.
Reposting code ...
[uuid(1CFE9260-D6FB-11d7-9236-E4FCAE870F25),helpstring("Temp"),lcid(0x0409),version(1.0)]library Temp
{...
I'm exporting two UDTs from VC++ to VB6 using an ODL file.
Da problem is that apparently I can't export a struct with members of another exported struct. Here's da code:
...
Thanks, you were helpful.
Sorry, the error is still with me.
point3d _stdcall fpoint3d(double x,double y,double z)
{struct point3d t={x,y,z};
return t;}
point3d _stdcall vproduct(point3d *v1,point3d *v2)
{struct...
So I guess I must necessarily use a temporary variable, huh?
I have a "f" function whose result type is A.
I have a "g" function that takes one parameter of type pointer-to-A.
I have to call the "g" function using the return value of "f", but I can't:
...