|
I do not think that the private key is stored in the certificate, the private key is a secret that only the owner knows about. Do you mean the public key?
Checkout my Guide to Win32 Paint for Intermediates
|
|
|
|
|
Hi,
Im building a single document application and i want to bring up a new dialog box that is a new window, ie. has its own little bar at the bottom of the screen. Can anybody help?
Cheers
Dor
|
|
|
|
|
I haven't notebook on head but:
If you use VisualC++, you can develop this application imedialitly with
i)File->New...
ii) MFC Application
at this point you follow step to step...
this's your simgle document application...
For viewing a dialog you must write:
CDialog dialog;
dialog.domodal();
Gianfranco Lanzetta.
|
|
|
|
|
You will want to use CreateDialog to create your dialog and make it appear modelessly, if you are using MFC, you can create an instance of your dialog object, then call the Create member, then the ShowWindow member. In order to make sure that it is in the task bar you will need to set the WS_EX_APPWINDOW style for your dialog.
Checkout my Guide to Win32 Paint for Intermediates
|
|
|
|
|
Hello all!
I'm writing an app which uses many mfc controls. I am using subclasses of ScrollBars and DialogBars, TreeCtrls and some raw CWnds each of which require a common set of properties and methods. It would appear that subclassing CWnd at the object (as opposed to HWND) level would be the ideal solution.
There's a couple of ways I can think of to achieve this, but I was wondering if anyone has solved this more elegantly than I could.
One way I thought of would be to have all of my controls bolted onto a common placeholder class. Another would be to have an HWND->CWnd map and associate a class with each window which could be used to hold all my data. The final one would be to hook CWnd somehow and store a pointer to my data in one of the window data slots.
Any takers?!!
Thanks,
(C:=
Charlie.
|
|
|
|
|
You may use the macro procedures in this way.
//this's link to param1=parent (container)
//and param2=child
inline macro_name(param1,param2){
//implementation
}
where parent contains a std::vector of child pointers;
this's is a solution.
gianfranco lanzetta.
|
|
|
|
|
Hi ,
I know this might sound incredibly dumb , but what is c++? what is is used for? is this the best thing to build programs? what programs ?
Thanks for you time
|
|
|
|
|
It is a programming language. It is used for developing software of all types.
------------------------- wrote:
is this the best thing to build programs
It depends on the type of application that you are going to build. If you are going to do a large scale application, or something that requires a lot of speed or low-level access to memory, then C++ is an excellent choice.
If you are going to develop small simple programs, and I emphasize simple you could use Visual Basic, this is if your are developing for windows of course.
There are plenty of languages to choose from, mainly you should look at what the purpose of your program, where it will be used, which operating system and other factors like that before you decide on a language.
Checkout my Guide to Win32 Paint for Intermediates
|
|
|
|
|
Hi everybody,
Can we invoke local applications from IE ? And, can IE direclty invoke activeX components based on certain event....
Please reply...
Yours
Wolverine
visit me at:
http://www.futurecomputing.homestead.com/
http://www.futurecomputing.0catch.com/
|
|
|
|
|
this code don't work too good.
this is the question:
template<class type="">
int size(type x){return sizeof(x);};
or
template<class type="">
int size(type x){int _size=sizeof(x);return _size;};
Why this?
thanks a lot.
|
|
|
|
|
Well, it should work, assuming <class type> was stripped by the html parser here.
template <class type>
int size(type x){return sizeof(x);};
has to be called like int sz = size<int>(8); , which is a bit strange.
You might want to write the function like:
template <class type>
int size(){return sizeof(type);};
instead. This way you will call it like int sz = size<int>(); , which looks a bit better IMHO.
|
|
|
|
|
Hehe, more stripping there. It should have read:
int sz = size<int>(8); and int sz = sizeX<int>();
|
|
|
|
|
eheheh!!
I don't think that's right, because in this case ... try it:
#include "stdio.h"
template < class type > int size(){return sizeof(type);};
int main(int argc, char* argv[])
{
printf("%i\n",size <float>());
printf("%i\n",size <int>());
printf("%i\n",size <double>());
printf("%i\n",size <char>());
printf("%i\n",size <short>());
};
Gianfranco Lanzetta.
|
|
|
|
|
Hmm, yes why doesn't
template &tl; class type > int size(){return sizeof(type);};
work, while
template < class type > int size(type t){return sizeof(type);};
does? (Still without using the (t) argument, just specifying it is enough)
Smells like a compiler bug? Just tried it using gcc v2.95.4, and it gave the expected result. (4, 4, 8, 1, 2)
Using VC it seems like it always prints the value of the last used template parameter, in this case short, which gives 2 for all function calls.
Maybe someone with a copy of the ARM could explain how this is supposed to work.
|
|
|
|
|
Ok I have written an MS Dos exe with visual c++ but whenever I double click the icon the MS dos screen only flashes up for a second and then disappears. The program runs from the command line fine.
At the start the program is designed to simply print a usage message to the scren.
Klara
|
|
|
|
|
This is what it supose to hapen ... the program it's executed, print the usage message and finish. When a program is finsih the window is closed by default
Bye,
Orbital^
...the night is long ... but not long enought to do some real coding ...
|
|
|
|
|
Its supposed to print the usage message and then wait for the user to type in the arguements it wants the program to use. Thats the way it works when executed from the command line. This is such a pain. I can't figure out how to fix it and I know it's something really simple.
But hey I supose it's only simple if you know how to do it.
Thanks anyway.
|
|
|
|
|
If you set the program not to close on exit [Right-click => Program => Uncheck 'Close on exit'] what is the output? Do you get anything at all?
/moliate
|
|
|
|
|
It won't let me do that, whenever I right click on it I just get to see the general properties and not the others. When run through the command line it prints a usage message and then I type in the file name I want it to perform fopen call on. It then performs writes to this file. Can you see any other possible solution.
In any case thanks for your help.
|
|
|
|
|
Hi
I have taken some code from the code Project page on edit controls but i am having trouble getting it to compile. the code in itself compiles but when I try to add a member variable of that type it I keep getting the following error:
'm_MaskedEdit'
h:\edit\editdlg.h(23) : error C2146: syntax error : missing ';' before identifier 'm_MaskedEdit'
h:\edit\editdlg.h(23) : error C2501: 'CMaskedEdit' : missing storage-class or type specifiers
h:\edit\editdlg.h(23) : error C2501: 'm_MaskedEdit' : missing storage-class or type specifiers
editDlg.cpp
CD
|
|
|
|
|
You need to #include "maskededit.h" in your editdlg.h file.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002
|
|
|
|
|
oops ...thanks Christian
|
|
|
|
|
I created a new toolbar,and want to use ShowWindow(SW_HIDE)to make it invisible.
But actully all the controls inside were invisible,but the frame still existed.How to make them all invisible,including the toolbar frame and all controls in that bar?
Thx ahead.
|
|
|
|
|
Hi,
What you mean?
frame window invisible or toolbar invisible?
If you want whole frame window invisible, do this.
// The main window has been initialized, so show and update it.
pMainFrame->ShowWindow(SW_HIDE);//m_nCmdShow);
pMainFrame->UpdateWindow();
Best regard.
I confess that I am a stubborn guy, but why not put things thoroughly, logically and systematically clean. One concrete prolem is worth a thousand unapplied abstractions.
|
|
|
|
|
Sorry
I mean that I creat a toolbar and in that toolbar I create a dialog.
when the toolbar is not docking on the mainframe,I use
m_wndToolBar.ShowWindow(SW_HIDE) to make the toolbar invisible,
But actually the dialog turns invisible,the toolbar still exists.Why?
|
|
|
|