|
The ComunsNuber is 3,
but my cycle runs more than 3 times, because the "i" counter doesn't increases!!!
I Can send you the solution in archive, give me you e-mail. And You'll see.
The solution is on visual studio 2005 professional
|
|
|
|
|
is i declared somewhere else as global ? or do you have a scope clash ? Try and rename it.
~RaGE();
|
|
|
|
|
Rassul Yunussov wrote: ...but my cycle runs more than 3 times...
How are you verifying this?
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
well, shame on me. I found the problem...
I was reading the data to the pointer, that i didn't reserved in the memory. So i erased the memory where "i" was stored.
|
|
|
|
|
Rassul Yunussov wrote: for(int i =0;i<ColumnsNumber;i++)
what is the value of ColumnsNumber
Owner drawn
Jesus Loves
|
|
|
|
|
Did you check you ColumnsNumber. I think it would be 1.
-Malli...!
|
|
|
|
|
The ComunsNuber is 3,
but my cycle runs more than 3 times, because the "i" counter doesn't increases!!!
I Can send you the solution in archive, give me you e-mail. And You'll see.
The solution is on visual studio 2005 professional
|
|
|
|
|
I can't see anything in your code that would cause that problem. Are you sure the value of ColumnsNumber is what you expect?
Also, check to make sure your sizes in the dbffile.read() calls are correct - you might be encountering a memory smashing bug.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
You do one thing, replace the variable 'i' with something else. Because that might be clashing.
-Malli...!
|
|
|
|
|
Hi All,
How does one use cout to display hex characters?
For example a variable is set to 0x60, but when you call cout << var << endl; you get ' because that is 0x60 on the ASCII table.
regards,
Rich
"Programming today is a race between software engineers striving to build bigger and
better idiot-proof programs, and the Universe trying to produce bigger and better idiots.
So far the Universe is winning." -- Rich Cook
|
|
|
|
|
The old fashion (C) way:
int i = 0x60;
printf("%02X", i); // prints "60"
printf("%04X", i); // prints "0060"
|
|
|
|
|
Hi !
I put some sample code for your. You can make use of it, as per your need.
int n=20;
cout << "decimal: " << n << endl;
//--- Print hex with leading zeros
cout << "hex : ";
for (int i=2*sizeof(int) - 1; i>=0; i--)
{
cout << "0123456789ABCDEF"[((n >> i*4) & 0xF)];
cout << endl << endl;
}
-Malli...!
|
|
|
|
|
Hi,
That is rather cute code!
Thanks,
Rich
"Programming today is a race between software engineers striving to build bigger and
better idiot-proof programs, and the Universe trying to produce bigger and better idiots.
So far the Universe is winning." -- Rich Cook
|
|
|
|
|
Why not use:
cout << std::hex << var << endl;
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
I have to agree with David, why not stick to the iostream idioms to do the trick. Although if 'var' is defined as type 'char' then you'll need to be a little sneaky since the formatting specifier hex modifies the output base of int's but does not modify the formatting of char's.
<br />
<br />
#include <iostream.h><br />
#include <iomanip.h><br />
<br />
<br />
char var = 0x60;<br />
<br />
cout << hex << var << endl;
<br />
cout << hex << (int) var << endl;
<br />
<br />
cout << hex << setw(2) << setfill('0') << (int) var << endl;<br />
<br />
Remember kids, we're trained professionals. Don't try this at home!
|
|
|
|
|
I want make SQL operation(Add, Modify, Delete records) to Access using ODBC.
I found many method to done(ADO, CRecordSet ), but which one is good for using ?
Can give me some suggestion about ODBC connect to Access in VC++ 6?
Thanks
|
|
|
|
|
One of the simplest methods is to create a DSN for your Access database. Then use ClassWizard to create a CRecordset -derived object. It will ask you which DSN to use. You can then select the tables and columns to use. See here for an example.
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
Can i directly using ODBC connection strings and write the database location (like C:\testing\testingdb.mdb) in the ODBC connection strings ?
Because DSN need setting it before using.
Thanks your reply.
|
|
|
|
|
Sure. That same article shows how to use a DSN-less connection.
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
I want to perform some action whenever folder selection occured.So, I want to catch the Shell View(List View) events.Plz send any material or code regarding this topic.
|
|
|
|
|
Hi,
In my application i have two views say View1 and View2. When the data in the document changes each view is notified synchronously. But if i hover mouse over the view2 when the the data in document is changing and the notification is not yet sent a event is fired by mouse hover even though i have used CWaitCursor in document. I need to prevent this as its trying to access the old data when new data is loading.
Any help please..
Thanks in advance..
Nithya..
|
|
|
|
|
Any one help me to solve this problem I used ISNetworkAlive to check my lan network connection status but it is not working. Also I used NetServerEnum it is also not working in some systems . Any one please sugest me an alternative method. any status chane message is there.
|
|
|
|
|
Aby Skaria wrote: Any one please sugest me an alternative method.
See here.
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
Aby Skaria wrote: ny one please sugest me an alternative method. any status chane message is there.
http://support.microsoft.com/?id=321381[^]
"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
|
|
|
|
|
I have removed all extended styles and WS_BORDER style to get rid of the raised border around the progress.
But this doesn't seem to work. Can somebody help?
Owner drawn
Jesus Loves
|
|
|
|