|
I'd strongly recommend Beginning Visual C++ 6 by Ivor Horton. It starts off with a pretty good introduction to the C++ language, and it has some very nice examples for you to try. The God-forsaken painting program the author focuses on throughout the book is a little frustrating (unless the sole reason you bought Visual C++ was to write a simple painting program), but it covers most major topics pretty well. I'd also recommend buying the physical book. I really hate reading books from PDFs, but maybe that's just me.
Also be sure to check online for examples. If you have a problem to solve, there is almost certainly at least a partial solution somewhere online.
As for Visual Studio .NET (you didn't say which version you got for free), I don't own any books on it, so I can't really comment on any of them.
Good luck and asincludeh10 said, do post more questions
William Brendel
|
|
|
|
|
hello
i have a a DIALOGBAR when i make some control(button ,slider,..)
and i want to make in the menu bar a shortcut to this Button ,in one menu?
can u help in this ?
|
|
|
|
|
did u try to add a menu item with same ID of the button?
includeh10
|
|
|
|
|
|
add few message handlers in some suspected windows (i.e. main-frame) to see where the message is sent.
it must be somewhere, then transfer it from the window to required place.
includeh10
|
|
|
|
|
sorry,but can u explain more .
how i can handel meassage and which message??
|
|
|
|
|
i.e. the button ID is ID_TEST, add a menu item as ID_TEST.
in main-frame, wait for the message (messge=WM_COMMAND, wParam=ID_TEST).
"wait" means u put a messagebox there then click the menu to see if the message is processed to the window.
includeh10
|
|
|
|
|
ok,i will try it.
thank you
|
|
|
|
|
I have an unusual task: slow down process in Windows(I have only executable(s) of this process.
If there's no way to slow down stand-alone process, I could slow down oll system. What is the better way to do it? Is it effective to make infinite loop process with real time priority.
|
|
|
|
|
Run it on an old 386 with 128 MB;P
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
If you're running W2K, just use the task manager to reduce the process's priority.
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
I created a database using CDaoDatabase and the fields were originally
arranged using m_nOrdinalPosition parameter in CDaoFieldInfo.
Now, I want to change a order whenever I want.
Is it possible?
How about the records?
Is it also possible to change the order of records?
|
|
|
|
|
Wormhole5230 wrote:
I created a database using CDaoDatabase and the fields were originally
arranged using m_nOrdinalPosition parameter in CDaoFieldInfo.
Now, I want to change a order whenever I want.
Is it possible?
Not that I know of.
Wormhole5230 wrote:
Is it also possible to change the order of records?
Again, not that I know of. Most of the time, you'd specify a sort order in your SQL query to access the recordset in a specific order.
Ask in the SQL/ADO/ADO.NET forum. They will probably be able to give you a more definite answer.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
if an array uses its inner class, i.e.
class MyArray:public CArray < MyArray::Node*,MyArray::Node*>
{
public:
class Node
{
//........
};
//.........
};
how to let the code be compiled?
thx
includeh10
|
|
|
|
|
Ummm... try the following
template <class Array>
class ArrayNode
{
...
};
class MyArray:public CArray<ArrayNode<MyArray>*,ArrayNode<MyArray>*>
{
public:
typedef ArrayNode<MyArray> Node;
...
};
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Does anyone know of any really good tutorials on the heap out there? I searched codeproject and google with no luck. Thanks.
-KMaz
|
|
|
|
|
Try "An introduction to data structures with applications" by Tremblay & Sorenson.
It's old, and not exactly what you're looking for, but you might like it.
Vikram.
-----------------------------
KI klike KDE kand kuse kit, kbut KI kmust kadmit, kstarting kall knames kwith K kis ksilly. KI khope kthey kwill kgive kup kthis kwhole kscheme ksoon kand kcome kup kwith kreal knames.
pI vThink aHungarian nNotation vIs iA aWonderful nThing cAnd pEveryone avShould vUse pIt aAll dThe nTime, adNo nMatter pWhat dThe nContext, adEven adWhen vSpeaking.
|
|
|
|
|
Hi
I'm trying to hook the message procs of other applications, this is the code I currently use, and which fails:
HWND wndMIRC = ::FindWindow("mIRC", NULL);
m_hMenuHook = SetWindowsHookEx(WH_CALLWNDPROC, HookCallWndProc, 0, GetWindowThreadProcessId(wndMIRC,0));
SetWindowsHookEx() returns NULL if the first parameter applied to GetWindowThreadProcessID is different from the HWND of my own application
Why does this not work? Do I need to place my hook procedure into a DLL or what's wrong. I can hook my own application, but this is quite senseless and not what I want to do.
regards
Greg
modified 12-Sep-18 21:01pm.
|
|
|
|
|
|
Thanks!
In the meantime I found out I had to write a DLL, works fine.
Now I have all context menus transparent in Windows, fine
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I was working in MS VisC++ Intro edition when my monitor went dead. Not having a spare around I decided to use a PC to TV device. I am using it on a 13". My problem is that when you use the system's, "Appearance",(Win98)tab to alter the look of the desktop, it increases all aspects of font size in an API but the window text. Can I insert some code in the root directory of IDE to supplement font size changes? If so, how?
|
|
|
|
|
Do you mean to say you want the code in your editor to look bigger? If yes, go to Tools-> Options-> Format and set the font size. If no, sorry, I haven't really understood your question.
Vikram.
-----------------------------
KI klike KDE kand kuse kit, kbut KI kmust kadmit, kstarting kall knames kwith K kis ksilly. KI khope kthey kwill kgive kup kthis kwhole kscheme ksoon kand kcome kup kwith kreal knames.
pI vThink aHungarian nNotation vIs iA aWonderful nThing cAnd pEveryone avShould vUse pIt aAll dThe nTime, adNo nMatter pWhat dThe nContext, adEven adWhen vSpeaking.
|
|
|
|
|
Hi,
Did any one know how to get a message in Visual C++ when a smart card was inserted or removed ?
Thanks Very much
|
|
|
|
|
I use a toolbar within an dialog. This toolbar is resized, whenever the dialog is resized via a call to SetSizes (the height and the width are changed). But sometimes if the dialog windows was inactive for some time, the toolbar gets the wrong size. Looking into the code of CToolBar::SetSizes I found the following:
<br />
if (::IsWindow(m_hWnd))<br />
{<br />
VERIFY(SendMessage(TB_SETBITMAPSIZE, 0, MAKELONG(sizeImage.cx,<br />
sizeImage.cy)));<br />
VERIFY(SendMessage(TB_SETBUTTONSIZE, 0, MAKELONG(sizeButton.cx,<br />
sizeButton.cy)));<br />
Invalidate();
}<br />
else<br />
{<br />
m_sizeButton = sizeButton;<br />
m_sizeImage = sizeImage;<br />
}
I think the problem is that the toolbar is only resized, but the new size isn't stored in the local variables m_sizeButton and m_sizeImage. I can't access them because they are private. It seems that sometimes, the Toolbar is completely redrawn with the sizes stored in m_sizeButton and m_sizeImage. I think this is a bug in CToolbar. It should always set the local variables to the current sizes (no matter if the window exists already or not). How can I get around this bug.
In which method the Toolbar is redrawn with the sizes from m_sizeButton/Image? When is this method called? And the most important question, how can get around this?
I use Visual Studio 2003 with the MFC 7.1. Thanks in advance, Konrad Windszus
|
|
|
|
|
I have got a CListCtrl (Report View) in a resizable CDialog. Whenever I resize this dialog, I change the column width via a call to CListCtrl::SetColumnWidth, so that the horizontal scrollbar isn't necessary.
Unfortunately there seem to be a bug in the CListCtrl. Whenever a vertical! scrollbar is showed (because there are more items in the CListCtrl than it can display) and I scroll down and then resize the CListCtrl that the vertical scrollbar disappears, the first row in CListCtrl is empty and not selectable. Seems that the scrolling doesn't work correctly in this specific case.
I use the following code in OnSize of the CListCtrl:
<br />
CRect rect;<br />
GetClientRect(rect);<br />
<br />
SetColumnWidth( 0, rect.right - nLengthWidth );<br />
SetColumnWidth( 1, LVSCW_AUTOSIZE_USEHEADER );<br />
<br />
CListCtrl::OnSize(nType, cx, cy);<br />
Even I can reproduce the bug and found also some postings in the newsgroups from developers which had the same problem, I don't know how to solve the problem.
Please help me. I had the problem with MFC 4, 7, and now even with 7.1
Thanks in advance
Konrad
|
|
|
|