|
tasumisra wrote: data dase
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.
|
|
|
|
|
not data base..... to the table ... we can pass dynamic querry.. that can retrive desired sorted order of the data.....as for name
if(flg==1)// here flg shows the order u want asc=1 or desc=0
{
..
// _stprintf(xyz, _T( "SELECT NAME FROM TABLE_NAME order by NAME asc" ) );
...
}
else
{
_stprintf(xyz, _T( "SELECT NAME FROM TABLE_NAME order by NAME desc" ) );
}
vikas da
|
|
|
|
|
The OP didn't mention databases...
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.
|
|
|
|
|
Hi all
What are the jobs of an architect of a software product ?
Can anyone pls provide me links/books/subjects to look for ?...
redindian
|
|
|
|
|
Product architect needs to be through knowledge of the product,it's future enhancements, applicability, customer's views/needs, compititors and there drawbacks, product design and technologies used, so on....
There are no books for becoming Product architecture, you need to be working on that product and need to gain knowledge about it...
|
|
|
|
|
hi...
I have a number of items in a Treectrl. I want to drop a file on a particular item in treectrl....
i was placed the TreeCtrl in a DIALOG,derived from Cdialog class.
Mainly,I have to use ONDrag enter(),Ondargover() events in Dialog class...
How to do this.....?
is any body knows reply me....
|
|
|
|
|
What's the drag source?
If it's the File Manager or Windows Explorer you could:
1) Call DragAcceptFiles() on the treeview control.
2) Respond to the WM_DROPFILES message in the treeview control.
3) Use DragQueryPoint() to get the cursor position where drop occurred
4) Use TreeView_HitTest() to find which item the file was dropped on
5) Use DragQueryFile() to get the name of the file dropped
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
How can i hide the toolbar on top of my dialog or window in and show it again ?
I am asking this to make a fullscreen toggling.
Thank you very much.
|
|
|
|
|
Do you need to m_wndToolBar.ShowWindow(0); ?
|
|
|
|
|
I think i wrote it wrong in my first message , i want to make my window borderless when it is in fullscreen mode.
|
|
|
|
|
I think the following should do it.
DWORD dw;<br />
dw = GetWindowLong(m_hWnd,GWL_STYLE);<br />
dw = dw & ~(WS_BORDER | WS_THICKFRAME | WS_CAPTION);<br />
<br />
SetWindowLong(m_hWnd,GWL_STYLE,dw);<br />
<br />
int x;<br />
int y;<br />
x = GetSystemMetrics(SM_CXSCREEN);<br />
y = GetSystemMetrics(SM_CYSCREEN);<br />
SetWindowPos(NULL,0,0,x,y,SWP_NOZORDER);
To restore it, do the opposite:
DWORD dw;<br />
dw = GetWindowLong(m_hWnd,GWL_STYLE);<br />
dw |= (WS_BORDER | WS_THICKFRAME | WS_CAPTION);<br />
<br />
SetWindowLong(m_hWnd,GWL_STYLE,dw);<br />
<br />
int x;<br />
int y;<br />
x = 500;<br />
y = 500;<br />
SetWindowPos(NULL,0,0,x,y,SWP_NOZORDER);
However, take care of your windows' Z-order if you need to.
this is this.
|
|
|
|
|
Thank you very much it worked but it doesnt work for the first time , but works for everytime after first. All i do is placing your code in OnLButtonDown
|
|
|
|
|
I am using VMR9 Filter for video rendering. But i must do some arrangements on this filter like :
"YUV mixing mode", "dynamic decimation", and "dynamic switch to BOB"
How can i set them on VMR9 Filter via directshow code ?
BEST REGARDS
|
|
|
|
|
Obtain a IVMRMixerControl9 interface to the VMR and use IVMRMixerControl9::SetMixingPrefs().
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I have to check whether the CTS signal and RTS Signal in serial port. I have modified my
dcb.fOutxCtsFlow=TRUE;
dcb.fRtsControl=RTS_CONTROL_ENABLE;
I am placing a LED between pin7(RTS) and pin5 for GND to check whether voltage occurs in that pin7. But no voltage occurs.
S.Yamini
|
|
|
|
|
what is your OS?
if your OS is windows XP/2003 or later , you can work with com/parallel port directly, because this ports close by Microsoft, you can use API for this work.
successful
|
|
|
|
|
My OS is Windows Xp. Can u tell me which API I can use
S.Yamini
|
|
|
|
|
|
Please give more details.
I think you need to:
1. Open the serial port (CreateFile)
2. Get the state of the DCB (GetCommState)
3. Set dcb.fOutxCtsFlow and dcb.fRtsControl
4. Set the state of the DCB (SetCommState)
Are you doing all of these?
|
|
|
|
|
I am sorry I have Placed my question wrong. I have to control a relay using serial port .The RTS and DTR should become high so that I control my relay.
S.Yamini
|
|
|
|
|
I meant, we need more details about what you are doing in your program - a longer code section, maybe.
Once you set the parameters in the DCB, did you do:
SetCommState(hPort, &dcb);
|
|
|
|
|
I am trying to control a relay via serial port using RTS and DTR pins in serial port . I have set these two pins high via VC++ coding or C. Can we suggest me something.
S.Yamini
|
|
|
|
|
It's difficult to help if you don't show what you are doing already. Maybe you are missing a step in your program, so the lines are not actually going high. If you are setting the pins high, maybe they can not supply enough current to turn on a relay.
Instead of using the control lines, what about using lines on a parallel port? Have a look at this article www.codeproject.com/useritems/PaPiC.asp[^] - it uses the InpOut32 library, which allows direct access to I/O ports.
|
|
|
|
|
hi how to edit boot configuration in vista using bcdedit.exe in mfc program. pls help me . its urgent
|
|
|
|
|
how to make my rich edit ctrl scroll automatically when insert new text?
here's how i insert text
<br />
msg.Insert( msg.GetLength() , "\n");<br />
m_system_message.SetSel(-1,-1);<br />
m_system_message.ReplaceSel(msg);
here's how the richedit is defined in the resource file
CONTROL "",IDC_SYSTEM_MESSAGE,"RICHEDIT",ES_MULTILINE | <br />
ES_AUTOVSCROLL | WS_BORDER | WS_VSCROLL | WS_TABSTOP,11,<br />
257,241,52
as you guys can see, ES_AUTOVSCROLL is definately there
but whenever i insert new text using ReplaceSel, the text focus is always at the top. how do i make it such that it automatically scrolls down to read the latest text inserted?
using
- mfc
- vc6.0
- winxp
thanks in advance!
|
|
|
|