|
Hi all,
In MS-Access when i create a table than its first field is ID field that is Automunber type field.
it is automatic updated when add or remove records.
Here i have one problem,
For example::
if Tabel has 4 records than ID field has number like 1,2,3,4 if i delete the 4th record than after this when i add new record than its number is 5.
like 1,2,3,5.
i want wheater i delete any record the Numbering of ID field must be as increeasing order like 1,2,3,4.... and so on, if i delete any record than at time of adding record it is itself take number greater than last record.
So please tell me how can i do this.
If possible please explain with example.
Thank in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
|
Why you repost everytime.
This is your 3rd post.
Instead please edit your previous post and provide the information to people who are trying to answer your question.
Regards,
Sandip.
|
|
|
|
|
and why didn't you follow the same thread...
|
|
|
|
|
|
We can only can say, how the data loss occured in your case only if we see the code that sets the value of lParam.
If you set the value of lParam as shown in below eg, there will not be any data loss.
eg:
LPTSTR lpString = new TCHAR[20];
_tcscpy( lpString. _T("Some txt"));
LPARAM lParam = (LPARAM)lpString;
.....
....
|
|
|
|
|
hi,
Actually i am getting the value of lparam by the server and i am receiving it in a function parameter during window message. Here is the function where i am receiving.
LRESULT CMainDlg::OnReadResponse(WPARAM wParam,LPARAM lParam)
{
// some code here
}
What to do now.
Thanks
Dhiraj
|
|
|
|
|
And how does the server set the value of the lParam?
|
|
|
|
|
Does the server and the client agree on the string format (i.e. both use UNICODE or ANSI strings)?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Why did you Repost ?!
|
|
|
|
|
Hi all
I am new in vc++ and i want to draw a tree on dialog based application.I want to take Tree Control from ToolBox and draw through code.
I have found example from functionx.com but it is drawing through code. But i want to draw through control..
So plz give example..
singh
|
|
|
|
|
Do you want to customize TreelCtrl?
|
|
|
|
|
|
So see here[^] and here[^] you can find more examples on the codeproject.
|
|
|
|
|
i need some simple example..So plz help me
singh
|
|
|
|
|
|
I have ceated a dialog box whose bporder width seems to be thick around 2 pixel. How can I increase/decrease the boreder width of dialog box
Any kind of help is appreciated.
Cheers
"A winner is not one who never fails...but the one who never quits"
|
|
|
|
|
You need to increase non client area size for this purpose handle WM_NCCALCSIZE, add a message map entry for ON_WM_NCCALCSIZE()...
A sample implementation looks likewise...
void CDialogTestDlg::OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS* lpncsp)
{
UNREFERENCED_PARAMETER( bCalcValidRects );
lpncsp->rgrc->top += 4;
lpncsp->rgrc->left += 4;
lpncsp->rgrc->bottom -= 4;
lpncsp->rgrc->right -= 4;
CWnd::OnNcCalcSize( bCalcValidRects, lpncsp );
}
Also note that you may need to handle WM_NCPAINT to fill out increased region.
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
Hai !
GoodMorning !
I am able to read the contents of a whole xyz.txt file into an character array, using
CFile cfile_object;
cfile_object.Open( strFilePath, CFile::modeRead);
// strFilePath contains the path of the required file
int len = cfile_object.GetLength();
char chFile[len];
UINT lBytesRead = cfile_object.Read (chFile, len);
chFile contains whole content of xyz.txt file, but i want each line of xyz.txt file to be stored in a separate string?
if possible plz supply some sample/reference code.
thanks!
|
|
|
|
|
|
CStdioFile::ReadString - Reads a single line of text.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
Hai...
I need to display a color text on GroupBox Caption and change a default border to colorful border. Thanks for help.
Regards,
Selvan.S.
|
|
|
|
|
hi selvan
you already ask this question .......
|
|
|
|
|