|
ayshe wrote: but i don't know C language enough to write this interpreter.
Then you don't deserve to pass. What makes you think that people who earned their degree want to help you become their under skilled co worker ?
If you've done your course work, you'll probably find you CAN do this if you try. You'll also find people here helpful if you post specific questions when you get stuck rather than asking for someone to do it all for you.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: Then you don't deserve to pass. What makes you think that people who earned their degree want to help you become their under skilled co worker ?
Hey! I resent that remark. I don't have a degree, and I still don't want to help them become my underskilled co-worker... (I have, however, honed my skills for 25 years, even if some days it doesn't seem like I bothered).
It never ceases to amaze me how stupid some people can be;
"Hmm. I have an assignment in a language I can't write in. I know, I'll get someone else to provide the code."
Does it never occur to them that they might have to explain how it works?
I confess, during my Computer Studies classes (I studied to GCE O & A levels in the UK), I did write 3 other people's projects for them, but to put it into context, they were all girls I was dating at the time! Nowadays, I charge money instead
Plus ca change, and all that...
(Of course, if I'd spent more time working in class instead of (ahem) socialising, who knows, I might have studied at University and got that degree)
Steve S
Developer for hire
|
|
|
|
|
Steve S wrote: I don't have a degree
Neither do I. I was just making a contrast that some have gone through what he's trying to do, on their own merits.
Steve S wrote: were all girls I was dating at the time!
ROTFL !!!
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
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! ]
|
|
|
|