|
I assumed (oops) it was C++ but no its C.
|
|
|
|
|
There's no "new" in C You can use malloc()/free() though.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Yes indeed there is no new. Tonight I will try malloc()/free().
Thanks
|
|
|
|
|
Hi,
I have an MSAccess DB in which there are two tables (Login_Details and Account_Details). I have created as SDI app.The view is associated with Account_Details table. I added another dialog for logging in. When user enters login name and password, I am able to validate the same with back end DB. After popping up the message box login successful, the form with Account details should come. But I am getting a popup "Data Source name not found and default driver not specified" and then it is showing the form with controls but no data displayed in the form.
Please let me know how to solve this..I mean how to display data in the form after login is successful?
Thanks & Regards,
VjaSai
modified on Wednesday, February 27, 2008 10:12 AM
|
|
|
|
|
Have you tried removing the dialog, and related code, that asks for login name and password? Isolate the problem rather than try to debug with a bunch of stuff mixed together.
As an aside, you might start with a plain SDI application that is hooked to the Account_Details table. Once you get that displaying properly, migrate the login stuff back in.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi all
can any body tell me how to get the start->documents->"*.*" files in our system
Thanks&&Regards
#sanroop#
|
|
|
|
|
Use SHGetSpecialFolderPath() .
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi Experts,
How can I write unicode string with WriteFile(). Or I have to use another function .
|
|
|
|
|
Since WriteFile makes a binary copy of the passed memory bytes to the disk there is not trouble to write a UNICODE string (that is a set of unsigned shorts) with it, provided you pass also the correct string size in bytes. On the other hand, if you want to write a UNICODE text file, you need to mark the first two bytes (BOM) of the file correctly (see for instance [^]).
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
|
|
|
|
|
hi i am working in VC++ 6 using Win32 App. .............
tell me how to clear the listbox
AbidBhat
|
|
|
|
|
Send the LB_RESETCONTENT [^] message to the list box window.
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
|
|
|
|
|
Thanks:
can u tell me how to tranfer the selected item(text) from combobox to editbox....
AbidBhat
|
|
|
|
|
int iSel = SendMessage(hCombo, CB_GETCURSEL, 0,0);
if (iSel != -1)
{
SendMessage(hCombo, CB_GETLBTEXT, iSel, (LPARAM) buffer);
SendMessage(hEdit, WM_SETTEXT, 0, (LPARAM) buffer);
}
Where buffer is a (properly sized) TCHAR array.
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
|
|
|
|
|
Hey i am not getting ......
where should i add these lines ......i mean to say on which control's event
AbidBhat
|
|
|
|
|
Thanks Pallani i got it ......it is nice to help me ......thank u once again
AbidBhat
|
|
|
|
|
bhat wrote: Thanks Pallani i got it ......it is nice to help me ......thank u once again
Actually is Pallini, anyway... You're welcome.
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
|
|
|
|
|
I think you said where's George and now its on the previous thread.
|
|
|
|
|
Yes, he's back!
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
|
|
|
|
|
He's back with two questions.
|
|
|
|
|
Hello everyone,
I have debugged into STL implementation for allocator in file xmemory (Visual Studio 2008). I found it has not data members, the same as its base class _Allocator_base. Is that correct?
http://msdn2.microsoft.com/en-us/library/6s8wyf7c.aspx
My questions is what is the purpose of copy? It always returns true. Here is the code,
you can see do nothing for copy constructor as well.
allocator(const allocator<_Ty>&) _THROW0()
{
}
template<class _Ty,
class _Other> inline
bool operator==(const allocator<_Ty>&, const allocator<_Other>&) _THROW0()
{
return (true);
}
thanks in advance,
George
|
|
|
|
|
From whence comes your question(s)?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi DavidCrow,
Do you mean I have not made myself understood in the question? If yes, please feel free to let me know and I will rewrite my question to make it convenient in this forum.
Sorry, English is not my native language.
regards,
George
|
|
|
|
|
George_George wrote: Do you mean I have not made myself understood in the question?
No, that's not what I meant at all.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
What is your confusion, DavidCrow? I am learning allocator and have some concept level questions. Any ideas?
regards,
George
|
|
|
|
|
George_George wrote: Any ideas?
None whatsoever.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|