|
be more specific
sl74 wrote:
but it doesnt work!!!
what doesn't work?? piece of code??
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
i can't integrate the dll into my programm. it runs with all the other languages (borland c++, delphi, visual-basic), but with visual-c++ it does't work!!!
i used code from the web and from some books where i have found how to integrate a dll into a c++-program, but nothing...
i need a code-fragment with which i can integrate a dll into my c++-program.
that's it...
|
|
|
|
|
You should be more specific:
do you load the DLL dynamicly(using LoadLibrary() and function pointers)
or staticly?
a peace of code to show us the problem will help us to understand whats wrong.
BTW - what is the k8062d.dll purpose?
Regards,
Eli
|
|
|
|
|
As Bill Buklis said,
char * first = "first";
char * second = "second";
CString str = CString(first) + second;
this is working without any problem.. y u said u wont work?
plz exp
V
|
|
|
|
|
no, you didn't understand...
i said THIS won't work :
char* first = "first";
char* second = "second";
CString str = first + second;
there is somewhere in the standard headers some operators defined, and especially two ones that are similar than the following :
const CString& operator + (LPCTSTR, const CString&);
const CString& operator + (const CString&, LPCTSTR);
so, for that to work, the operator must have one of its 2 operands of type CString.
let's expose what's going on what's going on when writing CString str = CString(first) + second;
1. Declaring <code>str </code>as a <code>CString </code>object.
2. seeing the <code>operator=()</code> the compiler evaluates the right part of the <code>=</code>
3. <code>CString(first)</code> call explicitely a constructor of the CString class that
get a LPCTSTR (or <code>const char*</code> - it is the same).
4. seeing the <code>operator+()</code>, the compiler searches for an operator + that
have the matching operand type (before trying an implicit cast). Happily, this
operator + exist (see what i previously said on the global operators). it so calls is.
5. affects the CString that result from the + operation into <code>str</code>
understand better now, or may i have to explain what's going on too when using + between 2 char* ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Merci beaucoup.. c'est claire maintenant
V
|
|
|
|
|
you're welcome.
'm happy to be helpful...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
psst, you know, you could ask me to explain on the post i said that, even if it didn't appear on your screen anymore, because i have a e-mail notification each time i receive an answer on one of my posts...
nevermind...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
d'accord tocxxt ...
V
|
|
|
|
|
in english sir, in english
where are so international !!!!
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Vivekuniq wrote:
d'accord tocxxt ..
Which language it that!
"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
|
|
|
|
|
ThatsAlok wrote:
Vivekuniq wrote:
d'accord tocxxt ..
Which language it that!
he just said in french : "OK toxcct"...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
You are required to write a program to implement the EXPRESSION EVALUATION problem above using an appropriate data structure. Your program must include the functionalities to enable the user to evaluate any expression with the following minimum assumptions
Operands may be negative
Operators must include (^, %, *, /, +, -,)
Test for division by zero
Parenthesis Checking
Allow Sin, Cos and Tan values
|
|
|
|
|
uma_kanth_k wrote:
You are required to...
I am ?? you know what, i already did it
and i guess you don't want to make your homework by yourself...
see VisualCalc...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
If i give 2+3(4) in the window, it is giving 5.000 but that is wrong.
|
|
|
|
|
if you had read the article in detail, you would have seen that VisualCalc don't support implicit multiplication...
it is written black on white dude !!
when the calc see what you asked it, it tries to resolve a function name...
see the error 0xn301 in the help dialog > Error codes tab.
moreover, this question had a better place directly at the bottom of the article itself, more than the Visual C++ forum (as it relates to) ; i'm sure you would have done so if i didn't author the article too...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
What? You expect me to READ all that text? You must be stupid. Not even your software is working like I need it!
Pandoras Gift #44: Hope. The one that keeps you on suffering. aber.. "Wie gesagt, der Scheiss is' Therapie" boost your code || Fold With Us! || sighist | doxygen
|
|
|
|
|
and so what a guy like you expects of a software coming from a *stupid* guy like me ??
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
ah, i see, you vote mo down, but don't take time to answer to me ?
humm, yeah, i'm certainly too stupid for you...
unless you're not brainful enough to understand my Calculator ?!
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hi TOXCCT,
(a) I am not the original poster
(b) I was trying to make a joke, because I have enough experience with these guys, too
(c) I didn't vote you down
Pandoras Gift #44: Hope. The one that keeps you on suffering. aber.. "Wie gesagt, der Scheiss is' Therapie" boost your code || Fold With Us! || sighist | doxygen
|
|
|
|
|
so i apology sincerely, i didn't understood the joke...
and sorry too for having voted your post down (i admint, i did it )
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
humm, yeah, i'm certainly too stupid for you...
Hain Tox Don't get Upset,it's usual and part of life ! and Mr. Peterchen himself admit that he not one who have voted your article down!.
Your Visual Calc is one of the finest project I have ever seen for regular expression!, though I never work on that and try to understand that!
"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
|
|
|
|
|
ThatsAlok wrote:
Hain Tox Don't get Upset
yes, i'll not to, but that's what happens when your english is not good enough (i talk about mine of course )
ThatsAlok wrote:
Your Visual Calc is one of the finest project I have ever seen for regular expression
thank you very much...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
The Code Project forums are not here for you to find someone to do your homework. They are here for you to get help when you have a programming problem that you can't solve on your own.
Try to write the program yourself. Once you have something working, if you still have a problem, feel free to come back and ask.
One hint: If the assignment seems too large or overwhelming, pick one small part of it to get working first. For example, if you are writing an expression evaluation program, write the part that prompts the user for an expression, and then print it back out. Implement only a single operator to start. Initially, leave out the parentheses handling. This is a fundamental principle of software engineering: Break The Problem Down Into Manageable Pieces.
Good luck.
Software Zen: delete this;
|
|
|
|
|
Hi All,
How I could validate and evaluate c based expression like--
(a < b && g > l) || (N == true)
I am new to this forum. If it is already discussed please provide me link.
Thanks,
Mahipati
|
|
|
|