|
|
I wrote a Web Browsing Program,there are several problems I can not solve,so please help,thanks a lot
Here is my program's picture(sorry that the language is in Chinese,but it has nothing to do with my questions)
http://pic.lyglyg.com/yourpic/2005/08/05/c4db079c35bdd1843a4ad893a4016ab8.jpg[^]First ,what the black arrow points is a CComboxBox Control which is located on my CToolbar,My problem is how can I set my url address directly into the edit control of the Combobox control,It seems to me that I can only do this through 2 ways,first add the url into the listbox of combobox and select it so the url will appear in edit box ,or use clipboard to first copy url to clipboard and use combobox's paste function to add it to edit box(without add it to list box),but can I do it directly
Second,can I achieve this like type in address in the edit box and press ENTER,then Show the page.It seems to me that the combobox didn't respond the Enter in edit box.Is there some ways to do that
Third:the red arrow pointed is CHtmlView Class,it handles page showing well,but how can I deal with this : when I clicked an address,it will pop up a new window,what I want to do is show the address of the new window just in the origin window,Is that possible
|
|
|
|
|
Self Pushing up the problem for help,thanks
|
|
|
|
|
hi,
i have a problem with a dll. I'm writing a program to controll a lighting system, but it doesnt work!!!
could anybody help me?
i'm writing with visual c++.
thanks for all your help
|
|
|
|
|
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]
|
|
|
|