|
Hi,
I have created gridlines using CListCtrl in reported view.I have entered data in some gridlines.
Now I want all the the data.How can I get that data?
Can u please help me.
Thank you.
|
|
|
|
|
vc++_fragrance wrote: CListCtrl.How can I get that data
CListCtrl::GetItemText(...);
Use it while iterating through the elements of the list control using a loop.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
You can use GetItemCount for get items of List and use from a loop with GetItemText for read of listctrl.
|
|
|
|
|
Hi all:
Is there any way to prevent the Edit box from wrapping?
I can't find this style among ES_*
|
|
|
|
|
did u try ES_AUTOHSCROLL?
nave
|
|
|
|
|
Naveen R wrote: did u try ES_AUTOHSCROLL?
Yeah, but this is a read only text box.
|
|
|
|
|
so what? This prevents the text from wrapping....
nave
|
|
|
|
|
Does the control have the ES_MULTILINE style?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Sir,
Is it possible to write Asp.net application in vc++.net.Or I am restricted to use VB.net and C# for writing ASP.net applications.
If possible please send some links to make a ASP.net application in vc++.net
Thanks
|
|
|
|
|
I don't believe you can.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Sir,
The option for writing the ASP.net application is provided in the vc++.net.
But i don't know how to make a web application invc++.net.
Please help.
|
|
|
|
|
I thing you are talking about ASP.net application with CLR . CLI forum[^] may be helpful for you.
|
|
|
|
|
The option is provided to write a web service.
You've been asking this for days. What do you want here ? You CANNOT wirte an ASP.NET web site in C++. When you ask about VC++.NET web sites, I assume that is what you mean. It's also possible to write web sites in c++ that are ISAPI filters, etc, but I can't imagine any reason to do that, beyond self hatred.
Why are you asking this over and over ? Why don't you listen to what people are telling you ? What's your motivation for using C++ for a web site ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I think its better that you use of C# or VB for write this application
|
|
|
|
|
Hi all
I'm trying to combine together MFC collection classes using CString objects.
I'm compiling with the command line using the following:
cl /Zi /EHsc /D "DEBUG" /D "_DEBUG" TestCollection.cpp /link /NODEFAULTLIB:LIBCMT.lib
When I compile the application without the option /D "UNICODE" and /D "_UNICODE" I've got on the console the output
ITA: <strange character=""> buono
ENG: it's good.
Hoping that UNICODE will fix the strange character I insert the 2 related unicode defines in the command line batch and the otput now is
ITA: 00A96FF8
ENG: 00A96FA8
Do you know why?
Bye Manu
TestCollection.cpp
<br />
#define WINVER 0x0501<br />
#define _WIN32_WINNT 0x0501<br />
<br />
<br />
#include "afxtempl.h"<br />
#include <iostream><br />
<br />
typedef CArray<CString, CString> dictionnary;<br />
typedef CArray<dictionnary, dictionnary> translator;<br />
<br />
const int nItems = 3;<br />
const int nDict = 2;<br />
<br />
void main()<br />
{<br />
dictionnary arEnDic;<br />
dictionnary arItDic;<br />
<br />
arEnDic.SetSize(nItems);<br />
arItDic.SetSize(nItems);<br />
<br />
arEnDic[0] = _T("bye");<br />
arItDic[0] = _T("ciao");<br />
<br />
arEnDic[1] = _T("it's good");<br />
arItDic[1] = _T("è buono");<br />
<br />
translator Tr;<br />
Tr.SetSize(nDict);<br />
for (int i = 0; i< Tr.GetSize(); i++)<br />
{<br />
Tr[i].SetSize(nItems);<br />
}<br />
<br />
Tr[0].Copy( arEnDic );<br />
Tr[1].Copy( arItDic );<br />
<br />
std::cout << "ITA: "<< Tr[1].GetAt(1) << std::endl; <br />
std::cout << "ENG: "<< Tr[0].GetAt(1) << std::endl;<br />
<br />
}<br />
|
|
|
|
|
A Unicode string is a short *. I think you need wcout. cout is printing out the memory address of your pointer. You could also use wstring to store the value.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi Christian
Thank you very much for your help!
Regards
ManuStone
|
|
|
|
|
BTW, dictionnary should contain one n.
Kevin
|
|
|
|
|
Hi Kevin, you are right!
Bye Manu
|
|
|
|
|
Declare the following somewhere:
#ifdef _UNICODE
#define tcout std::wcout
#else
#define tcout std::cout
#endif // _UNICODE
And use tcout instead of cout/wcout.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
How can i write a select SQL statement for the DB that uses the string from CEdit1 ?
lets say database name : "Names_City" class : CNames_City
col 1 : "name"
col 2 : "city"
col 3 : "country"
CString sName , sCity , sCountry;
CEdit1 : "m_name" sName;
CEdit2 : "m_city" sCity;
CEdit3 : "m_country" sCountry;
1) i have onChange for "m_name .When i write some txt in m_name i need to search in "Names_City > name = and if it matches i need the city in m_city and the country in m_country "
2)when i write in m_city and then in m_name i need to search in "name","city" and if m_name == "name" and m_city == "city" i need "country" in m_country.
* Remember i have ~260.000 Records ;
thank you in advance !
*please show me an example !
Bravoone
|
|
|
|
|
how many times will you ask this ?
|
|
|
|
|
1000000 if i have to !
because i need help !
Bravoone
|
|
|
|
|
Bravoone_2006 wrote: 1000000 if i have to !
that's not how CP works...
you should really read THIS[^] first !
|
|
|
|