|
Dear every one,
hope you will be in good a health.
dears, i want to know clear scienaro of Classes and inheritence. i have books and material on classes and inheritence but unable to understand clear scene.
please clear me by examples that ..
What is a class
What is a subclass
what is inheritence
what is class functions
what is architecture of a class
why we use classes
how we use classes
is it a good practice to use a class
where classes exists
what are namespaces
mean i want to know every thing round the class that can clear my mind and enable me to speak about these topics in a meeting
thanks
|
|
|
|
|
Googling^
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
You've asked for a book. Why not instead go out and buy one ? If you can't understand the books you have, I don't see how us writing a new one in a forum reply will help. Try working through the books and asking a specific question. Surely you get the basic concept. If you have the materials, and you don't know what a class is, or what inheritance is, then I really don't know how anyone can help you.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Hi,
I need to make a custom search function in webbrowser control. I found the following post somewhere:
WebBrowser1.Navigate("c:\readme.htm")
Dim htmldom As mshtml.IHTMLDocument2 = CType(WebBrowser1.Document.DomDocument, mshtml.IHTMLDocument2)
htmldom.execCommand("SelectAll", False, Nothing)
htmldom.execCommand("Copy", False, Nothing)
Dim str As String = Clipboard.GetText
Dim range1 As mshtml.IHTMLTxtRange = CType(htmldom.selection.createRange(), mshtml.IHTMLTxtRange)
range1.findText("microsoft", 0, 0)// 0,0 means the first hit, 1,1 second hit like this.....
range1.select()
The problem is that it doesnt seem to select all occurances in the page, e.g. if I search the wikipedia page on Stalin for "stalin", it will move between two instances of the word on the page and not go to the rest. I have replaced the two 0s in the findtext method with a variable counter initially set to zero. Anyone have an idea as to what the problem could be?
Thanks!
Ahmad
|
|
|
|
|
Ahmad Zaidi wrote: range1.findText("microsoft", 0, 0)// 0,0 means the first hit, 1,1 second hit like this.....
comment is completely wrong
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Ahmad Zaidi wrote: range1.findText("microsoft", 0, 0)// 0,0 means the first hit, 1,1 second hit like this.....
Actually, that's not what those two parameters mean. You still have to provide the string to search for, but the first number is the number of characters into the range to start the search. The second number is a flag specifying:
2 Match whole words only.
4 Match case.
So, your line of code actually means "search for 'microsoft', starting at the beginning of the range, the search term can be inside other words, and can match any change of case.
I'd start by looking at how you're getting the range of text to search and if you're getting everything you expect.
|
|
|
|
|
Hi Dave,
Thanks alot for the reply. Here is the code I am using:
Public Function findString(ByVal wordToFind As String, ByVal myIndex As Integer) As Integer
Dim htmldom As MSHTML.IHTMLDocument2 = CType(wBrowser.Document.DomDocument, MSHTML.IHTMLDocument2)
htmldom.execCommand("SelectAll", False, Nothing)
htmldom.execCommand("Copy", False, Nothing)
Dim range1 As MSHTML.IHTMLTxtRange = CType(htmldom.selection.createRange(), MSHTML.IHTMLTxtRange)
frmSearch.Hide()
Me.Activate()
range1.findText(wordToFind, myIndex, 0)
range1.select()
range1.collapse()
myIndex += 1
Return myIndex
End Function
myIndex is the counter which as you can see is incremented each time the funciton is called. I was thinking the same thing that you mentioned, that maybe I am not getting the whole page searched, but cant figure out how to do that. Any ideas?
Thanks,
Ahmad
|
|
|
|
|
Ahmad Zaidi wrote: Dim htmldom As MSHTML.IHTMLDocument2 = CType(wBrowser.Document.DomDocument, MSHTML.IHTMLDocument2)
.
.
.
Dim range1 As MSHTML.IHTMLTxtRange = CType(htmldom.selection.createRange(), MSHTML.IHTMLTxtRange)
So what's the text look like that's being returned by this code? I'm willing to bet it's not what you think.
|
|
|
|
|
Say if an addon is already installed , and i use a webbrowser component from either ieframe.dll or shdocvw.dll . Will the plugins work when the app is executed,or do i have to write some code to integrate the plugin?If I have to,whats the code?
|
|
|
|
|
I dont' know for sure, but you'd probably have to write the code to implement IE's entire plugin interface. Don't ask me how to do it. From the little I've researched into this, it's a LOT of work.
|
|
|
|
|
Well i'm not entirely sure, but I think they will, because if you open a page with flash on it, and have the plugin installed on IE, it works fine in the control as well
|
|
|
|
|
I run a VB 6.0 professional on an SQL 2000 Server database. Which edition is better epecially between Standard and Developer for 20 workstations?
|
|
|
|
|
VB6 is rubbish, no matter what version. It's obsolete, and unsupported.
I don't see how the number of workstations it runs on makes any difference ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Fine VB6 is rubbish but then which edition of SQL 2000 is the best for a server with over 15 workstations?
|
|
|
|
|
Well, it seems obvious that professional is better than standard. The price of standard is cheaper ( still $5000 per processor ). I used google ( you may have heard of it ) and quickly found this site:
http://www.mssqlcity.com/Articles/Compare/sql_server_vs_access.htm[^]
It seems that SS2000's number of users is limited only by available memory. I would guess that standard will be just fine, but if you own both, I don't see why you'd not go with professional.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
The Developer edition is exactly that, NOT licensed for production use, but for development only. You have no choice but to go with at least the Standard edition.
|
|
|
|
|
|
First problem - you posted more code than anyone is ever going to look at for you
Second problem - you didn't tell us what it's supposed to do, or where it's not doing what you want
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
It is a mathematic evaluator
in windows form wit 2 textbox and 1 button
txtInput.text = evaluate(txtAnswer.text)
I cant figure out where it the problem.. i mean in Calc_scan function
|
|
|
|
|
let us all agree there is no problem then.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
but it is not functioning.. when i insert 123+321+23
the answer given is 123 but not the sum of the equation
|
|
|
|
|
Then that should have been part of your original message.
This thread already has six messages in it and lacking a good description
of goals, current situation, and problems, the solution is not in sight yet.
Please read the forum guidelines, and look at some other discussion threads.
Also use PRE tags when showing code, so we get original indentation.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
How about telling us what your problem is and only post the code that is in the suspect area. No one is going to debug your entire code for you.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I am using common dialog control to act as open dialog. I want it to directly go to a perticular folder when i click on my open button. How can i do that.
Thank you.
KIRAN PINJARLA
|
|
|
|