|
megha_gharote wrote: i want those tabs at bottom.. how can we do tht?
Some thing similar to this[^] ?
|
|
|
|
|
Hi All,
i have a sample ADO application when i test through Rational Purify it is showing that there is leak in raw_Open() function.
please give me a suggestion where there is any leak in that?
[I] Summary of all memory leaks... {65488 bytes, 676 blocks}
[I] MPK: Potential memory leak of 18552 bytes from 147 blocks allocated in Connection15::Open(_bstr_t,_bstr_t,_bstr_t,long) [TestMemLeakADOConn.exe]
Offset 0x00000008 referenced by 0x0279ffe0, a location in a HeapAlloc'd block
Distribution of potentially leaked blocks
Allocation location
HeapAlloc [C:\WINDOWS\system32\KERNEL32.dll]
Connection15::Open(_bstr_t,_bstr_t,_bstr_t,long) [d:\samples\testmemleakadoconn\debug\msado15.tli:367]
}
inline HRESULT Connection15::Open ( _bstr_t ConnectionString, _bstr_t UserID, _bstr_t Password, long Options ) {
=> HRESULT _hr = raw_Open(ConnectionString, UserID, Password, Options);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
TestFunction(void) [D:\samples\TestMemLeakADOConn\test.cpp:88]
m_pConn->put_ConnectionTimeout (300);
=> m_pConn->Open(bstrConnect, "","",-1);
_CommandPtr pCmd(__uuidof(Command));
main [D:\samples\TestMemLeakADOConn\test.cpp:171]
Thanks,
Prashanth.v
|
|
|
|
|
How to temporarely configure ip address with netsh.when i restart the system the old ip will in ip address.how to perform this.plz help me.
-- modified at 1:58 Thursday 22nd March, 2007
|
|
|
|
|
Hi,
I created a .ocx ,and I want to export some of the functionalities in to dll,how i have to do it and where to start?
Please tell me from the scratch...
Thanks
Siddharth
|
|
|
|
|
Hi!
When I try to search this dll its not shown in the search list .but actually its in running mode.
I have download form the net and try to put in the system32 it gives access violation error.
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
amitmistry_petlad wrote: what is ws2_32.dll and what's the function of this dll?
It contains winsock APIs.
amitmistry_petlad wrote: When I try to search this dll its not shown in the search list .but actually its in running mode.
I have download form the net and try to put in the system32 it gives access violation error.
What?
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
I mean that when I try to paste that file in win32 its not allowed. I have disable the network resource as well as my winsock used application.
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
Why are you trying to paste a file that is part of the operating system?
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
I am try to check it for my one application which is a part of network programming.actually I have to link this file. I had link this file. So the linking problem is resloved but the reading error start, I have just try to paste for testing purpose nothing more.
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
This file comes with every version of the OS. You shouldn't need to copy it anywhere.
Have you initialized the dll for use by your app with WSAStartup[^]?
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Where we can download free ebooks on MFC, COM, active X etc...pl guide me...
Thanks a lot
|
|
|
|
|
:-Dyou can try
http://www.esnips.com
where there will be large collections of books,
earlier there used to be a website called
http://e-books.amagrammer.net
now this web is closed obviously due to fact it had copyrighted books in it.. any one knowing a similiar site please do share the link. thanks in advance.
MAN MADE ICs. ICs MADE COMPUTERS. COMPUTERS MADE MAN MAD
Ravi
|
|
|
|
|
Try to search on Google[^]
Regards,
Paresh.
|
|
|
|
|
Please use
http://www.flazx.com/[^]
ok and if you need more then let me know I will provide you ok!!
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
you just register in this site
http://ebooksclub.org/[^]
enter into.. with user id and pwd. you can get almost all ebooks....;)
Nice talking to you. If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|
i think there are some broken links...pl verify this..
http://rapidshare.com/files/1440826/Programming_20with_20Microsoft_20Visual_20C___20.NET_206th_20Edition.chm
http://rapidshare.com/files/1440790/Programming_20Microsoft_20Visual_20C___20Fifth_20Edition.rar
http://rapidshare.com/files/1440748/Effective_20C____202ed_20and_20More_20Effective_20C__.zip
any how thanks to you
Thanks a lot
|
|
|
|
|
www.programmerworld.net
www.4shared.com
|
|
|
|
|
ganesa moorthy wrote: Where we can download free ebooks
Please buy a book, if you are serious about learning anything. Most of the ebooks available over the internet are illegal and I suggest you don't use any of those.
ganesa moorthy wrote: MFC, COM, active X etc...
You will get lost. You won't learn anything then. Learn one after another.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
brahmma wrote: You will get lost. You won't learn anything then. Learn one after another.
hahahahaha..... cool buddy..
Nice talking to you. If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|
|
Dear All,
Very Good morning...
friends, in a form view i want to add a dialogue box and a tab control containing a dialogue box at the same time.
----------------------------
| Dialogue Box |
|--------------------------|
| Tab COntrol |
| |---------| |
| | Dlg Box | |
| |---------| |
|--------------------------|
This is how it should look... Please help me.. its eating my head...
Megha
|
|
|
|
|
BOOL CBoardOptions::OnInitDialog() <br />
{<br />
CDialog::OnInitDialog();<br />
m_tabs.InsertItem(0, _T("Polling"));<br />
m_tabs.InsertItem(1, _T("Board"));<br />
m_tabs.InsertItem(2, _T("Security"));<br />
UpdateTabSelection();<br />
return TRUE; <br />
}<br />
<br />
void CBoardOptions::OnSelchangeTabs(NMHDR* pNMHDR, LRESULT* pResult) <br />
{<br />
UpdateTabSelection();<br />
*pResult = 0;<br />
}<br />
<br />
void CBoardOptions::UpdateTabSelection()<br />
{<br />
RECT rcTab, rct;int iCurrentTab;<br />
<br />
iCurrentTab = m_tabs.GetCurSel();<br />
<br />
m_tabs.GetClientRect(&rcTab);<br />
m_tabs.GetItemRect(iCurrentTab, &rct);<br />
rcTab.top += (rct.bottom - rct.top + 5);<br />
rcTab.left += 5;<br />
rcTab.bottom -= 5;<br />
rcTab.right -= 5;
<br />
switch (iCurrentTab)<br />
{<br />
case 0:<br />
m_dlgPollingOptions.ShowWindow(SW_SHOW);<br />
m_dlgPollingOptions.MoveWindow(&rcTab);<br />
m_dlgBoardOptions.ShowWindow(SW_HIDE);<br />
m_dlgSecurity.ShowWindow(SW_HIDE);<br />
break;<br />
case 1:<br />
m_dlgBoardOptions.ShowWindow(SW_SHOW);<br />
m_dlgBoardOptions.MoveWindow(&rcTab);<br />
m_dlgPollingOptions.ShowWindow(SW_HIDE);<br />
m_dlgSecurity.ShowWindow(SW_HIDE);<br />
break;<br />
case 2:<br />
m_dlgSecurity.ShowWindow(SW_SHOW);<br />
m_dlgSecurity.MoveWindow(&rcTab);<br />
m_dlgBoardOptions.ShowWindow(SW_HIDE);<br />
m_dlgPollingOptions.ShowWindow(SW_HIDE);<br />
break;<br />
}<br />
}
I think you got it.
Here dlg represents one dialog. "Board options" is one dialog.
-- modified at 6:48 Thursday 22nd March, 2007
Nice talking to you. If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|
Thank u for the reply..
I have written code in the same way.
only one line i have not added is
m_dlgPollingOptions.MoveWindow(&rcTab);
I tried with this thing but its not working..
This rcTab is for wt???
Megha
|
|
|
|
|
megha_gharote wrote: This rcTab is for wt???
Hi,
Check the modified code now. in above
Nice talking to you. If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|
Hi,
What is the best method to record the location of a file, so that
the file can be located later even the user has changed the file location ?
(beside using a file system watcher to notify the file location change, coz it would take up certain resources)
Thanks
|
|
|
|