|
toxcct wrote: man, I'm wasting my precious time trying to understand your problem and suggest good solutions (which is hard, with the few informations you provided).
toxcct wrote: hen do it yourself dude ! Suspicious
OP is girl
Regards,
Sandip.
|
|
|
|
|
SandipG wrote: OP is girl
I don't care. still stoopid
BTW, my "man" was an expression. it's the same as if you say "guys"... it means "people", not only male ones...
|
|
|
|
|
I am using a vector toro push data from the server. I want if there is new data for some record of vector that record ofvector should be up updated with the new data. Please tell me how to achieve it.
Thanks In Advance.
Dhiraj
|
|
|
|
|
And what is the trouble (or your doubt) in doing this?
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]
|
|
|
|
|
Actually i am using push_back function to insert records in the form of a structure.
Now when i click a button for some selected record i have new data. I want to store this new data so that the previous record gets updated.
Thanks
|
|
|
|
|
do you have an ID or something unique identifying your record ?
if so, you could have used a map (I don't know exactly what you're doing BTW), which does this automatically.
|
|
|
|
|
so you can pop the previous data from the vector before pushing the new data in...
pop_back - Deletes the element at the end of the vector.
push_back - Add an element to the end of the vector.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Dhiraj kumar Saini wrote: Now when i click a button for some selected record i have new data
Cannot you just use the [] vector operator?
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]
|
|
|
|
|
your english is really hard to get.
I don't understand what you're trying to achieve here, and what your actual problem is...
so can you please rephrase correctly ?
|
|
|
|
|
Dhiraj kumar Saini wrote: I want if there is new data for some record
How and where do you figure out that you have new data?
Dhiraj kumar Saini wrote: ecord ofvector should be up updated with the new data
If you know how and where you have new data, it shouldn't be a problem to add it to a vector... or is it............?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
i want to store unicodes instead of string
if "Name" is field of table "Myinfo" haveing datatype text and we set its general property unicode compression = yes then my database can save unicode
but i am creating database programticall i am defining datatype of "Name" dbtext but i am unable to set unicode compression property = yes
how can do it programatically
even CDaoFieldInfo structure does not set "unicode compression" property
how can i set this property programtically
|
|
|
|
|
Hey,
if you found a solution, please let me know. I'm just facing the same problem!
regards
alex
|
|
|
|
|
Hi all,
I need a control which shows the year from 1800 to maximum possible values.From which user can pick the year ..please help me...
regards,
john.....
|
|
|
|
|
I will suggest Use CComboBox.
and add values to combo in loop starting from 1800 till current year.
I hope it helps.
Regards,
Sandip.
|
|
|
|
|
You may use Microsoft Date and Time Picker control.
Regards,
Rane
|
|
|
|
|
Hi Guys,
I have a number say 4-12 process that will operate as a set. When some new information arrives in one it occationally needs to do something in tandem with another process as quickly as possible. So, I have a thread in each process just waiting for an event to be flagged. When it is, it can check the database for the actual work.
What I have right now is a 50ms loop. This create a lot of CPU overhead from the database to be hit every 50 ms, so I'm looking for a way for two process to communicate.
Initially I thought of using a Mutex so it'll sit there waiting to aquire it, and when released the thread will immediatly check the database, but ownership becomes a problem. It's almost as if I need the opposite of a Mutex. Something that is always locked until it's unlocked.
Does anyone have thoughts on how I might get my processes to sleep until something is flagged? Thoughts?
|
|
|
|
|
You can use WaitForSingleObject and wait for particular event till it is set.
See documentation for details WaitForSingleObject[^].
Does it help?
Regards,
Sandip.
|
|
|
|
|
Hi all.
I am having a string..
say for example "bangalore".
I want to display only first 6 character i.e "bangal".
I am trying with different method ..I am getting the last 6 character i.e "galore".can anyone help me..
thank you
manju
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|
|
char chBuffer[25]={0};
char* pchString = "Your String";
lstrcpy(chBuffer, pchString);
chBuffer[6]=0;
Now:
-----
chBuffer == "Your S" and pchString == "Your String"
|
|
|
|
|
manju#123 wrote: say for example "bangalore".
I want to display only first 6 character i.e "bangal".
I know you are using MFC. So,
CString str = _T("Bangalore");
AfxMessageBox(str.Left(6));
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Hi..
Thank you very much...
manju
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|
|
Hi masters!
------------
I can catch keyboard strokes using a system-wide keyboard hook (every one can ) ...
But I can only get WM_KEYDOWN and WM_KEYUP in this way ...
What if a user is writing for example in Arabic or something? How can I understand which character she/he
is exactly typing and in which case (upper or lower)?
I'm working on a simple project, single thread, with no window to show to user ...
|
|
|
|
|
I have included Sddl.h , Have AdvApi32.dll and AdvApi32.lib at correct places. But still getting a compilation error as undeclared identifier.
modified on Monday, September 15, 2008 1:38 AM
|
|
|
|
|
Can you post the error(s) that you are getting?
Regards,
Rane
|
|
|
|
|
error C2065: 'ConvertStringSecurityDescriptorToSecurityDescriptor' : undeclared identifier
I am using this for setting full access permissions to a directory while its creation. Earlier you have sent me a sample code for setting full access permissions. But it is not working in my machine. Can I have any sample code for setting full access permission for a folder.
|
|
|
|