|
thanku my problem got solved
|
|
|
|
|
sulabh_expert@rediffmail.com wrote: my problem got solved
how ?????
you're on a forum, please share the solutions !
|
|
|
|
|
Hi all,
I am starting with a contact manager application. And for this i need to have a double link list to get the data from the csv file.
So that i can add new contact, delete contacts, update contact and save contact.
Is linklist and node class already there in C++.NET
or do i have to create one.
And one more thing i would like to ask is do i have to sort the list before i can read it (using doubly linked list). I mean do i have to write a sort function. Which sort method would be best for this application ?
Thanks a lot
|
|
|
|
|
sir, you've been asking for C++.NET several times already, and you've been said that this was probably refering to something different to what you think.
that's why, before someone else propose a solution, I'd like you to tell me what you mean exactly by C++.NET ?
thanks
|
|
|
|
|
what do you want to know about C++.NET. It is C++ language based over .NET framework.
Which is bit different from VC++ or C++(Borland)
In Borland you have to write your own classes for mostly everything. But in .NET few classes are already defined.
So my question was whether link list class is already there in MS Visual Studio C++.NET 2005 or not.
Thanks
|
|
|
|
|
so that's what i thought.
Microsoft's C++ extension to the .NET framework is called Managed C++ (or C++/CLI for newer versions).
questions related to it belongs to the Managed C++/CLI Forum[^]
|
|
|
|
|
oh allright..
Ill post my question in that forum then.
Thanks
|
|
|
|
|
Hi All
I goted the responsibility for making an application of Inventory Management System in VC++.
can any one please told me about that.also if you have send me a demo project also.
waiting for your reply
mailing me
Yogi
|
|
|
|
|
|
I am looking for demo project in vc++ for inventory management System
Thanks
mailing me
Yogi
|
|
|
|
|
How to fix this ?
wchar_t buf[50];
swprintf( buf, L"%s", L"Hello world" );
=> Warnings (in MS Visual Studio 2005)
warning C4047: 'function' : 'size_t' differs in levels of indirection from 'unsigned short [3]'
warning C4024: 'swprintf' : different types for formal and actual parameter 2
|
|
|
|
|
wrote: warning C4047: 'function' : 'size_t' differs in levels of indirection from 'unsigned short [3]'
No idea, what should cause this warning here ? But suggesting you to replace your code with following code,
wchar_t buf[50]= {0};
swprintf( buf, 50,L"%s", L"Hello world" );
|
|
|
|
|
From the Online-MSDN, search for swprintf:
[...]
int swprintf(
wchar_t (&buffer)[size],
size_t count,
const wchar_t *format [,
argument]...
); // C++ only
[...]
With
buffer = Storage location for output
count = Maximum number of characters to store in the Unicode version of this function.
format = Format-control string
argument = Optional arguments
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Was this reply meant for me ?
|
|
|
|
|
Partially.
I seemed that you knew what the correct way to call swprintf was, but were unsure about "why" (mainly because you used the limit 50 without any explanation).
That might, however, be a misinterpretation - I am not a native speaker of English, and might have misunderstood your comment.
My reply just gave the prototype, so that both you and the OP might read it, if necessary.
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Sebastian Schneider wrote: but were unsure about "why" (mainly because you used the limit 50 without any explanation).
As array size is 50, I used it, and I think its implicit.
Sebastian Schneider wrote: I am not a native speaker of English
Same here.
Sebastian Schneider wrote: My reply just gave the prototype, so that both you and the OP might read it, if necessary.
I thought, by mistake you have posted it to me .
|
|
|
|
|
Thanks
|
|
|
|
|
Which API system calls to create a folder on Vista.
Its not CreateDirectory, I have tried it using API Monitor.
May be some shell's API. Can anybody help?
Thanks.
|
|
|
|
|
|
Thanks Paresh.
But I want to know which API system calls when we create a folder from explorer on vista.
|
|
|
|
|
CreateDirectoryEx()? SHCreateDirectoryEx()?
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
Hi All,
If I place a button in a dialog box, my perception is that the button should be the part of my dialog class. But when I see my dialog box there is no Button object.
How can I access that Button object. I need that object because I want to enable and disable that button according to some condition.
I also want to attach toottip to that button.
Please let me know if further clarification is required.
Suraj
|
|
|
|
|
Gupta Suraj wrote: How can I access that Button object. I need that object because I want to enable and disable that button according to some condition.
You need to associate a variable with the button (how to do this depends of which IDE you are using). The variable type must be a CButton in order to access functionalities of your button.
|
|
|
|
|
Other way is....
CWnd *pWnd = GetDlgItem( IDC_BUTTON/* Ur Button ID */);
pWnd->EnableWindow( FALSE );//Disable the button
pWnd->EnableWindow( TRUE );//Enable the button
|
|
|
|
|
Gupta Suraj wrote: my perception is that the button should be the part of my dialog class.
Dialog class will be based on dilaog template resource, button would be part of that resource.
Gupta Suraj wrote: How can I access that Button object. I need that object because I want to enable and disable that button according to some condition.
Apart from method Cedric has suggested, you can use GetDlgItem function for accessing controls on dialog,too.
GetDlgItem(IDC_MYBUTTON)->EnableWindow(FALSE);
|
|
|
|