|
Christian, I think you missed my real point; even us 'unqualified' guys wouldn't want people that stupid as coworkers
Christian Graus wrote: ROTFL !!!
See, before CodeProject, I had a social life....
(Actually, I married one of them, divorced a few years and two kids later, remarried again some time later - my current wife [I always call her that, it keeps her on her toes] understands the developer lifestyle, so I'm still married)
Steve S
Developer for hire
|
|
|
|
|
Steve S wrote: Christian, I think you missed my real point
No, I got it, just wanted to make sure you realised I wasn't being a snob.
Steve S wrote: [I always call her that, it keeps her on her toes]
LOL - I should try that.
Steve S wrote: understands the developer lifestyle
Mine is having a tough time with all the travel, I have to admit.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
thanks for our all advices and depreciatory words...
I know this is only my homework. but this is not a coding course and my excellent(!) instructor wants this homework. thus, for pass this course; he orientate us to find codes. consequently, I and my friends search this codes in internet compulsorily. we found some codes but they are very advanced. so I though to ask my question in this area..
I don't discuss about deserve to pass.. because in this course, our instructor deserve to be dismiss...
Lastly; thanks my instructor for cause to read this dirty sentences..
|
|
|
|
|
hi
which message i should pass for selecting item in listControl.
for a simple list box there is lvnselchange message.
but for a ListControl which one should i use.
thanx
|
|
|
|
|
aavesh wrote: which message i should pass for selecting item in listControl.
Send the control a LVM_SETITEM message.
aavesh wrote: for a simple list box there is lvnselchange message.
Actually, that's the notification message (LVN_ITEMCHANGED ) that a list control control sends its parent when an item has changed. Perhaps you are thinking of the LB_SETCURSEL message.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
i wrote the code under LVN_ITEMCHANGED event handler to get the current item.
its working and i'm displaying the current item from AfxMessageBox();
but exactly what is happining when i click on any item it shows me message(with the current selected text) two or three times.
why is this happeing and in which event i should write the code.
thanx
|
|
|
|
|
aavesh wrote: why is this happeing...
See here.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hello all,
I have a working BIG MFC project X. Now I want to create a new project Y(or another interface) that will use the older MFC project X as a library from which classes and methods are called. I changed the general properties of the X from .exe to .lib and Linked Y to X in the linker properties.
The problem is that I lost all linker options that were in X (I used to link X to other libraries). Whatis the solution for this?
Thank you very much.
Regards
|
|
|
|
|
safigh wrote: The problem is that I lost all linker options that were in X (I used to link X to other libraries). Whatis the solution for this?
Create a temporary DLL project and make a note of what linker options are used. Incorporate those into X.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: Create a temporary DLL project and make a note of what linker options are used. Incorporate those into X.
Do you mean that I should creat a DLL project that link to these libraries and then put this DLL in X, thus X is linked to the libraries?
How to create this DLL project and how to link it to X?
|
|
|
|
|
Notice the word "temporary" in my suggestion?
safigh wrote: How to create this DLL project...
Use MFC's AppWizard.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I can't get you. This is complicated for me. I am a beginner. Can you explain in more details and easier steps?
|
|
|
|
|
safigh wrote: Can you explain in more details and easier steps?
It doesn't get any easier than what I've already provided. Since you have already created a "BIG MFC project," we must assume that you are at least somewhat familiar with the process. In any case, see here.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Dont take the "BIG" word to that extent. It is big in core not in interface. I'll check the links and go back to u soon.
Thanks anyway.
|
|
|
|
|
hi,
you can see this site www.functionx.com
there you can find samples for creating dll samples
venu
|
|
|
|
|
How can I convert from string to LPCSTR?
|
|
|
|
|
What's wrong with:
string str = "Hello";<br />
LPCSTR lpStr = str.c_str();
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
string ? or CString ?
if std::string :
std::string str = "yop";
char psz[255] = NULL;
::strcpy(psz, str.c_str());
if CString :
CString str = "yop";
char psz[255] = NULL;
::strcpy(psz, (LPCSTR)str);
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-- modified at 8:30 Tuesday 11th July, 2006
|
|
|
|
|
toxcct wrote: char psz[255] = str.c_str();
This is syntactically incorrect. You cannot convert from const char to char[255] . You'd need to use strcpy() , or equivalent, instead.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
Use csTemp.operator LPCTSTR();
"Dream bigger...Do bigger...Expect smaller"
aji
|
|
|
|
|
csTemp.operator LPCTSTR()
Ajeesh,
why do you think we define operators overloads, if you call them like any other functions ?!
dont use csTemp.operator LPCTSTR() , use instead (LPCTSTR)csTemp .
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
Hi all,
we use WinHttp with SSL enabled for secure client/server connections. We have a private PKI and need to import our CA certificate into an appropriate truststore, so the SSL handshake runs through. Preparing a truststore outside the application is no option. We started with temporarily importing the CA certificate into the system certstore, but of course this fails for users without admin rights. We didn't like this approach, because it side effects all other applications accessing the system truststore, but saw no other choice to achieve our goal.
My questions are:
- can we create a temporary truststore and tell WinHttp to use this truststore for the SSL handshake?
- if not, what other choice do we have?
Thanks for your help,
Emil
|
|
|
|
|
I have CpopertySheet..WizardMode
and i'd like to hide back-button for one CPropertyPage of my sheet...and rename it for another
how can I do it?
|
|
|
|
|
NoName II wrote: and i'd like to hide back-button for one CPropertyPage...
Use the ShowWindow() method.
NoName II wrote: ...and rename it for another
Use the SetWindowText() method.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|