Yeah its a boolean value. in c++ a boolean value is defined by the keyword bool. it can be represented as zero and non-zero, or better yet, using TRUE and FALSE.
It is used in the bubble sort to know when to exit.
Hope this helps,
Chi Happens
Chi Happens
"When you know and respect your...
Just use c_str() on the ansistring, that converts it to a basic string.
String MyAnsiString = "This is my string";
string MyBasicString;
MyBasicString = MyAnsiString.c_str();
Caption = MyBasicString.c_str();
Chi Happens
"When you know and respect your own inner...
lionelhill
understood. thanks for the additional info.
Chi Happens
"When you know and respect your own inner nature, you know where you belong. You also know where you don't belong" - Benjamin Hoff
...CASE AVERAGE
Selection Sort n^2 n^2
Bubble Sort n^2 n^2
Insertion Sort n^2 n^2
QuickSort n^2 n * log n
TreeSort n^2 n * log n
RadixSort n n
MegeSort n * log n n * log n
HeapSort n * log n n...
2ffat,
Excellent. I have used c_str to convert ansistring for use with api calls, but it didn't even occur to me to convert the standard string to a c_string.
lol, that ROCKS!!!
Chi Happens
"When you know and respect your own inner nature, you know where you belong. You also know where...
std::string mybasic;
String myansi;
mybasic = "this";
for(int t=0;t<mybasic.length();t++)
myansi += mybasic.at(t);
Chi Happens
Chi Happens
"When you know and respect your own inner nature, you know where you belong. You also know where you don't...
ah, it's pretty simple to open a file and read the contents. not much to that algorithm. i think i'll let you figure that out on your own.
hint: use fstream
Chi Happens
Chi Happens
"When you know and respect your own inner nature, you know where you belong. You also know where you...
Kewl, let me know how it works out, or if you need some help.
Chi Happens
Chi Happens
"When you know and respect your own inner nature, you know where you belong. You also know where you don't belong" - Benjamin Hoff
try
#pragma resource "hammer.res"
Chi Happens
"When you know and respect your own inner nature, you know where you belong. You also know where you don't belong" - Benjamin Hoff
you should be able to use LoadImage to access the resouce images.
you need to have
#pragma resouce "filename.res"
at the top of the code (replace filename with the name of your resource file)
Then you can do this (if the bitmap within the resource is named BITMAP1, otherwise...
Sherak,
Well if I were creating a client-server flat-file database system, I would have the server application control the read/write operations. That way only ONE application is actually opening the file.
The client programs could send the data requests and updates through a port or the could...
CCLINT,
Right you can use NEW keyword to instatiate a COM object.
However, some COM objects do not recognize the new keyword and MUST be instatiated using the CreateObject method.
Since I am a contract programmer, I tend to use the lowest common denominator and create all my object using...
Jeezus I'm full of mistakes tonight.
Always remember, and never forget to delete your objects you create.
So when you type
Set objThis = CreateObject("whatever")
you need to type
Set objThis = Nothing
when you no longer need it.
Therefore, you need to include one last line...
One last thing...i made a typo:
The line that reads:
Dim CD as ADODB.Connection
Should say
Dim CN As ADODB.Connection.
Chi Happens
"When you know and respect your own inner nature, you know where you belong. You also know where you don't belong" - Benjamin Hoff
Oh one more thing for CCLINT,
You don't need anything to distribute an access database file, especially if you create an application that uses ADO for accessing it (since that is included with windows and downloadable for free from microsoft)
When you create a program that accesses an access...
...CN.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyDatabase.mdb;Persist Security Info=False"
SQL = "SELECT * FROM MyTable"
RS.Open SQL, CN
Do While RS.EOF = False
' Do something with the records using RS("FieldName").Value
RS.MoveNext
Loop...
you can do that with the picturebox control and BitBlt api function.
Chi Happens
"When you know and respect your own inner nature, you know where you belong. You also know where you don't belong" - Benjamin Hoff
you should be able to distribute the mdb file and if you use package and deployment wizard, it will know to include the adodb objects.
Chi Happens
"When you know and respect your own inner nature, you know where you belong. You also know where you don't belong" - Benjamin Hoff
There are 2 ways to use an access db in vb:
1) You create a connection to the database. you don't have to use DSN, you can connect to it directly.
2) Otherwise, you can open it using an access object:
Dim objAccess As Access.Application
Set objAccess =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.