|
Try recording a macro while you're copying a worksheet.
Then you can read the resulting VBA code to figure out how to do it. You just have to translate it to C++. That's what I do when I need to figure out to do things with Excel and I cannot find an example of how it should be done, including creating diagrams.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
The problem is solved:
The argument used must be the Worksheet DISPATCH, then all works correctly.
Thanks a lot to Roger Stoltz and to led mike for your help.
|
|
|
|
|
hi,
i am new to IPC - shared memory.
is it possible to store a message with the index in shared memory so that a particular message could be retrieved using the index?
is there anyway of storing a structure in a shared memory?
help me out..
adavance thanks..
Sangeetha
|
|
|
|
|
sungita wrote: is it possible to store a message with the index in shared memory
Yes.
sungita wrote:
is there anyway of storing a structure in a shared memory?
Yes.
See my article XQueue for details.
Best wishes,
Hans
|
|
|
|
|
it's already sorted mam!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi,
When we are using shared PCs, like in an internet cafe, how do we make sure that there are no Keylogger software running in the background?
Regards,
Blumen
|
|
|
|
|
|
humm google dude!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi
Please look at this code:
#include <iostream><br />
using namespace std;<br />
<br />
class MyClass<br />
{<br />
private:<br />
int d;<br />
public:<br />
int x;<br />
};<br />
int main()<br />
{<br />
MyClass a;<br />
cout << a.x;
}
I only added one function
<br />
#include <iostream><br />
using namespace std;<br />
<br />
class MyClass<br />
{<br />
private:<br />
int d;<br />
public:<br />
int x;<br />
void print(){ cout << d;}; <br />
};<br />
int main()<br />
{<br />
MyClass a;<br />
a.print();<br />
cout << a.x;
}
But if i write a.print(); after cout << a.x; it gives me run-time error again.
So why is this so?
It says: "a' is being used without being defined." But when i call function it doesnt give error. So is calling function means defining a class?
I do not understand why it gives error first and third but doesnt give error second one.
Can you please help me.
Thanks.
|
|
|
|
|
what if you do this in your main() :
void main() {
MyClass a<code>()</code>;
cout << a.x;
}
|
|
|
|
|
Sorry i don't understand what you mean
|
|
|
|
|
sawerr wrote: Sorry i don't understand what you mean
i just asked if adding parenthesis produces the error too or not
|
|
|
|
|
I am not trying to solve the problem.
I am trying to understand what happening in VC++ compiler internals.
Other debuggers dont give this error but VS2005 gives in the first and third example but not others.
If i call a func. first it doen't give error but if i dont, it gives error.
I am trying to solve why it is so.
Thanks.
|
|
|
|
|
Hi,
just some "non-professional" questions.
Have you tried to derive your class from CObject?
class MyClass : public CObject
Give the class a constructor?
class MyClass
{ //...
MyClass ();
//...
}
inline void MyClass::MyClass () {x = 123; d = 456;}
What about if u give first a value to "x"?
int main()
{
MyClass a;
a.x = 123; //I mean so.
cout << a.x;
}
Im not sure (I'm not so good as other users here) but maybe your error is related to "trush" in memory when you use your class.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
|
|
|
|
|
The debug runtime is warning you that you are about to use an uninitialized object.
The member variables of the MyClass object are not initialized. You need to provide a constructor
or initialize them some other way to prevent the warning.
Note that you can continue running after the warning.
class MyClass
{
private:
int d;
public:
int x;
MyClass() {d = 0; x = 5;}
};
int _tmain(int argc, _TCHAR* argv[])
{
MyClass a;
cout << a.x;
int x;
cin >> x;
return 0;
}
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Hi,
Im hoping to build an application that would monitor activity on a PC caused by other users logged in over a network or a Microsoft Domain (wateva u mite call it in network jargon ). Would this be possible ? Would i be able to get a handle to the event when a user logs into any of my shared folders, by accessing my PC ?
Please give me some pointers,
thanx.
|
|
|
|
|
erajsri wrote: Would i be able to get a handle to the event when a user logs into any of my shared folders, by accessing my PC ?
See NetConnectionEnum() .
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
That is Ok, but what about any events that would fire when a user establishes a connection to a shared resource ( like a shared file or folder ), or is that unsupported ?
Where could I get more infor on how file sharing is done on Windows and developing applications for that ?
|
|
|
|
|
erajsri wrote: That is Ok, but what about any events that would fire when a user establishes a connection to a shared resource
I do not know of any such event. I would think a timer would suffice.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi i am also doing the same kind of project...
where in i have to track the devcies that comes in to network and i have to diaplay the images of them or atleast the name so f them whenever a device comes in to the network.
how can it be done?
thanks in adavnce
|
|
|
|
|
Is any one know how to develop directshow image overlay filter
RajeshGupta
|
|
|
|
|
What type of filter? A renderer filter (the VMR does image overlays)?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
No, It should be transform filter that connects between two filters
RajeshGupta
|
|
|
|
|
If you've never developed a DirectShow filter, then I highly recommend using the handy base
classes provided in the SDK. Actually, I can't imagine how much code it takes to write one
without using these classes.
The process is detailed here: Writing Transform Filters[^]
In step 1, you'll probably want CTransInPlaceFilter or CVideoTransformFilter derived code
in your filter.
The "Grabber Filter Sample" sample application in the SDK is a good reference (and possibly a
starting point) if you need hints on accessing the video frames as they go by in the graph.
The overlay part is the "easy" part. If you have a video frame, you can use GDI/GDI+ to
draw the overlay on the video frame.
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
i have to create msi files in visualstudio 2005. how to avoid the minimize button in the setup
|
|
|
|