|
FYI, Sourceforge has PDFCreator[^] and does a very good job converting to PDF for any program that has the ability to print.
Steve
|
|
|
|
|
Try this open source program - PDFCreator[^]. It installs a "printer" that can be used by any program that has a print menu - but instead of going to a printer, it asks for the file to save the PDF output to. I recomend the version that uses AFPLGhostScript (instead of GPLGhostScript).
Steve
|
|
|
|
|
Hi,
This question probably has a simple answer, but for some reason I can't find it.
I'm still using Visual C++ 6.0. I'd like to get an autocomplete list of members when I'm working on a member function.
Let's say I'm writing
int MyClass::myMemberFunction()
{
int temp = m_ // I'd like to get a list of MyClass members to pop up here
}
I can get a list of members to pop up if I type 'this->' and hit ctrl-space, but that's too much work. I can go to class view, but even there I can't figure out how to copy a member from the list.
So, is there a nice simple way to get a list of the members of MyClass when I'm writing a member function?
Bruce
|
|
|
|
|
Odd. It's supposed to work within a class context.
Have you tried deleting the .ncb-file, thus forcing visual studio to regenerate the intellisense database?
Good music: In my rosary[^]
|
|
|
|
|
Hello,
Well I have use Visual studo C++ 6
and now I use *.net. And I need to do somethings
but I cant find where I do that.
In VS 6 I use ctrl+w and there I can add some WM_funk
but where it that now?
And I want to add my own ID_Funk like a ID_CLOCK value 1 or something but where do I do that now.
Is there anyone that can help me.
|
|
|
|
|
hiho@ll
i need a multimedia library, through which i get simply (very simply) control over a camcorder (i need: get the pixels of a stream), control some output window, which displays manipulated camcorder input (i need control over the pixels), control soundcard/microphone (get microphone stream, change it, forward it to loudspeaker)!
i know directshow, but for a beginner it's a bit heavy for that what i need
maybe there is somekind of wrapper for that, which is more easier to use
thx@ll
|
|
|
|
|
I strongly suspect that DirectShow would come with examples to do what you want.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
hiho@ll
i need to control some macromedia flash input fields of a form which is sent by https
i just want to do some login progress automatically, but it's flash an https which means
1. i don't know how to get control of flash input fields
2. just sniffer http get/post doesn't work because of https
any1 knows a workaround/solution?
thx@ll
|
|
|
|
|
I am making a monitor program for the PC. My monitor program will grab statistics about CPU and memory every 1 or 5 seconds. Then I want to store this data so I have a history and hence be able to graph this out in my GUI.
I thought about using a plain text file to store my graph data and plot it out. Plot it out manually or use gnuplot.
I found this tool called RRDTool (http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/). It's a database to store time-series data. Then it will beautifully graph out your data. However it's based on executing/running the program/script. Data is input using it's own command-line script. And graph creation is done the same way using another command-line script.
Problem is, how can I get C/C++ to call or incorporate RRDTool command-line program into my GUI? Is there any way in C/C++ to call another program? I don't think there is. Plus I don't think RRDTool has developer libraries (lib*.lib, etc) for C/C++ programmers to call into their own programs.
If anyone has any suggestions/advice as to easy ways to store simple statistics (CPU & memory load), and graph them in a GUI like GTK+ (http://www.gtk.org/) I'd be very grateful.
Or does anyone know a 3rd party graph plotting library that plots to GUIs like GTK/QT/SDL?
Many thanks.
|
|
|
|
|
kevingpo wrote:
how can I get C/C++ to call or incorporate RRDTool command-line program into my GUI?
I recommend using one of these very cool CP controls instead:>>>> Also see this[^] article.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
i'm not sure, but rrdtool can also just make a .gif
i think that's the way it works
make gif and use php to show it the user of a website
so you could use it the same way, just show the gif
hmm
i think it works like that
|
|
|
|
|
hi, i am aware how to take the address of a function, but what about a bound member function? The compiler won't let me do this.
here is my code, i try to pass a function pointer to a child class to notify the parent of events:
class1.h
class class1 {<br />
public: class1(int (*)(int, int, int, int));<br />
};
class1.cpp
#include "class1.h"<br />
class1::class1(int (*notifyFunc)(int, int, int, int)) {}
class2.h
#include "class1.h"<br />
<br />
class class2 {<br />
private:<br />
class1 *client;<br />
int TheNotifyFunc(int, int, int, int);<br />
public:<br />
class2();<br />
};
class2.cpp
#include "class2.h"<br />
<br />
class2::class2() {<br />
client = new class1(this->TheNotifyFunc);
}<br />
<br />
int class2::TheNotifyFunc(int, int, int, int) {<br />
return 0;<br />
}
main.cpp
#include "class2.h"<br />
<br />
void main() {<br />
new class2();<br />
}
my compiler error is:
Compiling...<br />
class2.cpp<br />
class2.cpp(4) : error C2664: 'class1::class1(int (__cdecl *)(int,int,int,int))' : cannot convert parameter 1 from 'int (int,int,int,int)' to 'int (__cdecl *)(int,int,int,int)'<br />
None of the functions with this name in scope match the target type
any workarounds?
|
|
|
|
|
I don't think the way you are trying to do it will work anyway...
Why do you want to pass "a bound member function" in the first place? Presumably because you want/need that function to access some data of a particular instance of class2, isn't it? Non static class member functions include an implicit first parameter named this , which is a pointer to the particular instance for which the method is invoked. So int TheNotifyFunc(int, int, int, int) is actually int TheNotifyFunc(class2* this, int, int, int, int); , although the language hides that detail. Then, how do you intend to pass the this parameter from class1 when you need to invoke the function?
If you don't actually need to access instance data in TheNotifyFunc(), then you should declare it as static.
If you do need to access instance data, you could, at first, program something like this:
#pragma once
class Parent;
class Child
{
private:
Parent* m_pParent;
public:
Child(Parent* pParent)
void SomeChildFunction();
};
#include "child.h"
#include "parent.h"
Child::Child(Parent* pParent)
: m_pParent(pParent)
{
}
void Child::SomeChildFunction()
{
if (m_pParent)
m_pParent->OnChildEvent(n1, n2, n3, n4);
}
#pragma once
class Child;
class Parent
{
private:
Child* m_pChild;
public:
Parent();
~Parent();
int OnChildEvent(int n1, int n2, int n3, int n4);
};
#include "parent.h"
#include "child.h"
Parent::Parent()
{
m_pChild = new Child(this);
}
Parent::~Parent()
{
delete m_pChild;
}
int Parent::OnChildEvent(int n1, int n2, int n3, int n4)
{
}
However, the fact that you were trying to use generic notifier functions rather than plain old object pointers and method calls, makes me think this approach might not be appropriate in your case. Indeed, what if you need your Child objects to have parents of different non related classes? In other words, what if you don't want your Child class to be tied (coupled) to a particular Parent class? That is, the only thing your Child class needs to know about (and depend on) from its "parent", is a way to send it some specific notification.
If that is the case, I humbly suggest you read this article[^], and then program something like this:
#pragma once
#include "cppinterfaces.h"
DeclareInterface(IChildEventTarget)
virtual int OnChildEvent(int n1, int n2, int n3, int n4) = 0;
EndInterface(IChildEventTarget)
#pragma once
interface IChildEventTarget;
class Child
{
private:
IChildEventTarget* m_pEventTarget;
public:
Child(IChildEventTarget* pEventTarget)
void SomeChildFunction();
};
#include "child.h"
#include "IChildEventTarget.h"
Child::Child(IChildEventTarget* pEventTarget)
: m_pEventTarget(pEventTarget)
{
}
void Child::SomeChildFunction()
{
if (m_pEventTarget)
m_pEventTarget->OnChildEvent(n1, n2, n3, n4);
}
#pragma once
#include "IChildEventTarget.h"
class Child;
class Parent : implements IChildEventTarget.h
{
private:
Child* m_pChild;
public:
Parent();
~Parent();
int OnChildEvent(int n1, int n2, int n3, int n4);
};
This is a much cleaner design, because your Child does not depend anymore in any specific "parent" implementation, which is what I think you was looking for with the generic function pointer. The child class does not need to be modified (not even recompiled) because of irrelevant changes in the parent class, and any other unrelated class can act as a parent as long as it implements the IChildEventTarget interface.
I've found this interface approach very useful in many cases, not just for events and event targets. However, for this specific case, you should also take a look at this excellent article[^] by Don Clugston[^].
Hope that helps,
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
i read the articles, but i dont think they apply to me. my goal is to pass the member function pointer to a win32 WNDPROC.
|
|
|
|
|
The usual approach in these cases is to pass a global function or a static member function, eventually registering the callback along with a user data value, that gets passed back as a parameter in each callback. As the user data value, you may pass a pointer to some object, and the static class member can use it to access other non static members of the class.
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Recently I have read some materials on RTP ,But I still could not know how to realize it ? Can anybody tell me some advice .
I have known the RTP/RTCP packet structure ,but I don't know how to fill the structure ,for I wonder how to get the original data used to fill in the stucture ,which I guessed is realized by myself not the RTP protocol.
AntonlioX
|
|
|
|
|
HELP...!!!
Can any one show me the interface of Gina in XP??
I define my own MyGina.dll in XP and replace System's gina.dll ,but when i login,it meet bluescreen error ??what's wrong with this?? it works correctly in 2000 and 2000/server,
is there any more interface in Xp than in 2000?what are they??
|
|
|
|
|
Gee, maybe if you cross-post to just one more irrelevant forum someone will anwer your question. Might I recommend the suggestions forum?
|
|
|
|
|
I'm looking for any C++ developers interested in testing a new XML library focusing on a simplistic public interface. Developers of almost any skill are welcome to submit a request. Either e-mail me directly or leave a message along with your e-mail address in this topic. A lot of people have expressed a great interest in the project, and I along with them, believe it'll create a massive impact in the world of Open Source.
Just send the e-mails to skonen@gmail.com . Anybody who is interested in giving it a try needs to be proficient in English and have no fear with expressing their opinions.
|
|
|
|
|
|
I may be interested. Can you post the link to the site?
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Currently I do not have an informational website up and running. Though I have registered a project account with SourceForge it doesn't have much for indepth details. However, the XML library has complete documentation including overviews and examples.
|
|
|
|
|
Stuart Konen wrote:
the XML library has complete documentation including overviews and examples.
That nice, Your XML Library have complete documentation, but I would love to check it for Speed and Size , before using in my projects
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Suppose I have an MDI project.
The wizard automatically placed my document object implementation file with:
IMPLEMENT_DYNCREATE(CCatchbugDoc, CDocument)
If I wish to have my document object to have multiple inheritance (CDocument and another non-CObject object, which is created by hand), do I need to add any new stuff under
IMPLEMENT_DYNCREATE macro?
Thanks
|
|
|
|
|
IMPLEMENT_DYNCREATE does not work with multiple inheritance.
John
|
|
|
|
|