|
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum
led mike
|
|
|
|
|
Could you please tell that where I can use "GetCommandLine" in dialoged based application.
any sample?
Thanks again
Regards.
|
|
|
|
|
This will show the command line in a message box:
AfxMessageBox(GetCommandLine());
Another options is the following:
AfxMessageBox(AfxGetApp()->m_lpCmdLine);
Both these options produce slightly different results so try both and see which one's right for you.
Steve
|
|
|
|
|
It means I can use these at any place in the Application. ?
As I was thinking may be it is only workable in CDlgApp class
Regards.
|
|
|
|
|
Yeah, you can use them pretty much anywhere in the application.
Steve
|
|
|
|
|
Could you please tell that where I can use "GetCommandLine" in dialoged based application.
any sample?
Thanks again
**at first I wrongly replied to "Led mike"
Regards.
|
|
|
|
|
|
zahid_ash wrote: my app is MFC dialoged based. would it recevied the arguments?Or should I build the console mode app to receive the arguments? but my preffered is Dialoged based?
try _ _ argv and _ _ argc. (Underscore are continuous, I have separated them to improve readability)
"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
|
|
|
|
|
I am working with the serpent encryption algorithm for the first time, and I wish I could find a tutorial on programming with serpent. Also, I am not going out and buying a book on serpent for this current project. I think I am just missing something simple, but I am not sure what.
When I call the serpent encryption code:
Serpent::Encryption();
I get the following errors:
'Serpent' is not a class or a namespace name
'Encryption' identifier not found
Hopefully someone knows what I am doing wrong.
Thanks.
btw, I am programming in .net
|
|
|
|
|
It looks like you're not including the header file which contains Serpent's function declarations and class definitions.
Steve
|
|
|
|
|
using:
#include <Serpent.h>
which includes:
typedef Serpent::Encryption Serpentencryption<br />
typedef Serpend::Decryption Serpentdecryption
ps. Thanks for the help
|
|
|
|
|
I use movewindow to change tree width,when tree width is smaller than its item width,hscrollbar is still not visable.
What should i do to show scrool bar when tree width is smaller than its item.
|
|
|
|
|
Has it got the WS_HSCROLL and WS_VSCROLL styles set?
Steve
|
|
|
|
|
Yes. I use movewidow() changeing the size of tree. After that,How to judge whether show scrollbar according expanded nodes ?
How to get the widest item ? I want to use it to judge whether show scroll bar.
|
|
|
|
|
Hi, I'm a beginner in using threads. I have a dll which I have to pass in some parameters, which i will call at a pt of the application. But i would like to allow the user to be able to quit the application even in the midst of the dll operation. So i shld use a thread rite? but I am not sure how abt going it.
how am i going to use the AfxBeginThread??
|
|
|
|
|
This is a broad and complex issue.
Steve
|
|
|
|
|
I mean shld i use user-interface or worker thread?
or do u have any reference to recommend me?
|
|
|
|
|
|
Use the following definition format for the THread procedure
UINT Threadproc(LPVOID pparam){return 0;}
and call the thread as
AfxBeginThread(Threadproc,this);
Remember this is worker thread
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
Telling someone how to start a thread without mentioning threading issues such as synchronisation is like giving a child a gun to play with. I don’t mean any disrespect to the person who asked the question by saying this; but writing multithreaded programs is hard and full of potential pitfalls that simply don’t exist in a single threaded application. For example, even something as simple as incrementing a counter is potentially dangerous in a multithreaded program.
Steve
|
|
|
|
|
See Here[^]maybe it is some helpful to you
whitesky
|
|
|
|
|
WhiteSky wrote: See Here[^]maybe it is some helpful to you
I agree with Mr Stephen [HERE][^] for same!
"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
|
|
|
|
|
KongHL wrote: how am i going to use the AfxBeginThread??
Like this:
<br />
AfxBeginThread(CRuntimeClass* pThreadClass,<br />
int nPriority, UINT nStackSize, DWORD dwCreateFlags,<br />
LPSECURITY_ATTRIBUTES lpSecurityAttrs)<br />
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
How do you specify file names to CFtpConnection::PutFile that have blank characters. Blanks are common to make file names readable now days, but the usual tricks like putting the sting in quotes does not allow it to work. Has anyone found a way to deal with this?
Thanks
Ray
|
|
|
|
|
Copy the file name into CString and then pass this Cstring variable to the function.
CFtpConnection::PutFile
Cheers
"Peace of mind through Technology"
|
|
|
|