|
I have used the same technique, but it gives some exception.
|
|
|
|
|
What exception is thrown? I assume you've stepped through your code using the debugger. What has it revealed?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
Hi..
can u plz help me how to create XML file from MFC filed vales and .. How to parse at client..
..swamy
|
|
|
|
|
See here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Sir,
I want to learn hardware interfacing .For that before going for coaching I want to know what should I must have learned and what should be the basic language to go for hardware interfacing.and what r the other skills required
to learn hardware interfacing.
please help.
|
|
|
|
|
In Windows NT and up, you will need to develop a driver in order to access the hardware.
So get a copy of the Windows DDK (Driver Development Kit). Read the documentation, and have a close look at the samples.
A suitable laguage for developing drivers is C(++), so you can use VC++.
All driver samples I have seen is written in C. But there may be drivers written in other laguages as well.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
Sir,
If u would choose hardware interfacing as ur carrier option .Which language would u choose.
PLease suggest
Thanks.
|
|
|
|
|
IMO, C is the most suitable language to use for creating drivers in Win32.
Take a look at the samples in the DDK, as far as i know, they are all written in C.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
I know it doesn't answer your question, but you can do limited hardware access (do I/O port access) without writing a device driver. Do a google search for InpOut32.dll.
Using InpOut32.dll is a lot easier than writing device drivers if you are not doing anything complicated.
Of course it depends what you mean by "hardware interfacing".
|
|
|
|
|
In my MDI aplication all my child window shows system menu option, when i click minimize button it minimized and i can not see the minimized window near status bar it goes somewhere,and when i click restore down button,nothing wil happen,and system menu get disapperaed.
For that i used childfrm.cpp precreatewindow()
cs.style = WS_CHILD | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_MINIMIZE;
But no use?Pls help me.
Anu
|
|
|
|
|
I am using Splitter windows, and in that, while using CListView, i want to place 2 checkboxes in 2 different columns. I know how to place single check box, so only answer how to place 2 checkboxes?
|
|
|
|
|
For multiple checkboxes per item, use a control such as this one.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
hello everyone. i have problems in connecting to an FTP server.i have written the following lines.
CInternetSession sess("My FTP connection");<br />
CFtpConnection *pConnect = NULL;<br />
try{<br />
pConnect = sess.GetFtpConnection("/*IP address of the FTP server*/");<br />
}catch (CInternetException *pEx ) <br />
{<br />
pEx->ReportError(MB_OK); <br />
} <br />
i always get the message "Request timed out".
can anyone please tell me what to do?? Thanks...
vijay.
|
|
|
|
|
|
Dear All,
I have my program (its a small firewall program) that is installed in all my network client machines. Here I want to do is that write a program that should control all client machine's program(my program firewall).
I want to control my product that is installed in all machines from a server.
How can i do this ? Which technique is useful ?
|
|
|
|
|
when i try to search , my temp directory will fill with many files about 6-7 Mb and i dont want them , How can i avoid them ?
how can i make - do not make files in my temp directory ?
this is my code :
void CName::OnChangeName1()
{
CString sSQLL,sDen;
CDatabase_1BunView1* pBun = new CDatabase_1BunView1();
if (!pBun->Open(CDatabase_Bun::forwardOnly))
return;
if (pBun->IsOpen())
{
m_gestiuneaDb.GetWindowText(sSQLL);
m_dengestiuneDb.GetWindowText(sDen);
pBun->GetRecordCount();
while (!pBun->IsEOF())
{
CString strWord;
strWord = pBun->m_cod;
strWord.TrimLeft(); // Remove leading spaces
strWord.TrimRight(); // Remove trailing spaces
if (sSQLL == pBun->m_cod)
{
m_dengestiuneDb.SetWindowText(pBun->m_den);
}
pBun->MoveNext();
}
}
pBun->Close();
}
Bravoone
|
|
|
|
|
So you create dynamically an instance of CDatabase_1BunView1 each time you press the button ? And you even don't destroy it at the end of the function.
Make it a member variable of your class and initialize it once for all and destroy it in the destructor of your class.
|
|
|
|
|
please can you show me how can i do that ?
Bravoone
|
|
|
|
|
Uuhh
Simply create a member variable of your class instead of recreating each time you press the button. If you don't understand that, then you should first learn the basis of C++. We cannot help if you don't understand what we are telling.
|
|
|
|
|
ok but where i must define the member variabile for my class CRecordset ?
Bravoone
|
|
|
|
|
Bravoone_2006 wrote: where i must define the member variabile for my class CRecordset ?
The same place that all class members are defined. It would really behoove you to learn the basics of C++ (e.g., terminology) before embarking on such an ambitious project.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
In your class you can declare your variables
|
|
|
|
|
and is so hard to explain how ? ...if you really know !
Bravoone
|
|
|
|
|
do you really think you'll get some answers and some respect by attacking people like you do ?
|
|
|
|