|
http://msdn.microsoft.com/msdnmag/issues/01/11/c/
or custom draw:
http://www.codeproject.com/miscctrl/XScrollBar.asp
|
|
|
|
|
i had resolved it following ur guidance.
thanks very much!
|
|
|
|
|
Hi!
I'm storing a certain path in a CAtlString class. The function i need to pass this path to however only likes char pointers. How do i get a char pointer from a Unicode CAtlString?
|
|
|
|
|
|
Thanks This solved all of my coding problems. Never knew the conversions where this easy .
|
|
|
|
|
Could someone point me to a good website that gives me some sample code on using bool variables in c++? Thanks.
Thanks!
|
|
|
|
|
huh ?
bool bIDontUnderstand;
bIDontUnderstand = true;
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
I'm trying to understand the advantage of declaring a variable type bool? I'm a beginner, For example: How do I use a bool variable?
#include <iostream>
using namespace std;
int main()
{
bool a;
int b,c;
if(b == c)
cout << "huh";
return 0;
}
Thanks!
|
|
|
|
|
A bool is used when you want to store the (true/false) value of a condition, for later reference. For example:
bool bSystemWasOK = checkIfSystemIsOK();
...
if (bSystemWasOK)
doSomething();
...
if (bSystemWasOK)
doSomethingElse();
Storing the value of the check in bSystemWasOK saves you the effort of calling checkIfSystemIsOK() repeatedly. This example assumes that the system state continues to be OK throughout the execution of the code fragment.
Hope this helps.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
I'm starting to see. The problem I'm working on is a magic square program.
r1 1 6 8
r2 5 7 3
r3 9 2 4
I'm comparing row totals to column totals to test for equality between rowsum[] and colsum[] arrays and storing the result in a bool variable. I'm having a hard time seeing how to loop through the comparisons and using the bool variable at the same time.
Thanks!
|
|
|
|
|
Magic/Diabolic squares... mmmm... that seems to be known here in CodeProject.. Take a look on this article: Magic Square[^].
Just wanted to help.
Have a nice day.
-- Ricky Marek (AKA: rbid)
-- "Things are only impossible until they are not" --- Jean-Luc Picard
My articles
|
|
|
|
|
Your link to the magic square example was exactly what I needed! You are a life saver.
Thanks!
|
|
|
|
|
I don't mean to discount your question, but that's a bit like asking for a pointer to a Math book that describes how to use numbers. Is there something specific you'd like to know?
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hi,
I download the .NET Framework Version 1.1 Redistributable Package in the station, but when I try to run a .NET C++ application I got an error message
"Application has generated an exception that could not be handled."
The same application runs fine in my development station which has the full Visual Studio .NET installed. (It was ver. 1.0, but I also downlod the .NET Framework Version 1.1 Redistributable Package and SDK 1.1 as well).
Does anyone know what else I have to do to run the application outside of the development station?
Thank you in advance for your help.
|
|
|
|
|
I found out that I have to download NET Framework Version 1.0 Redistributable Package to run the application. After I did that, it works fine.
|
|
|
|
|
So what you are saying is that an app written against the 1.0 framework will not run if the machine only has the 1.1 framework installed? Does the framework not have backwards compatibility? So any apps currently being targeted for the 1.1 framework will not work with the 2.0 framework?
Does that mean that we are going to have to distribute the 21MB+ framework with every app just to ensure that the version the app requires is on the target machine, or is MS going to distribute all old versions with the newer OSes? Sounds like a pile of BS and a good reason to continue avoiding .NET.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
I don't think it is true for all apps. Obviously, if the app depended on some API present in 1.0 but has been changed in 1.1, it won't work. Here[^] is the list of all changes made to the API that might break 1.0 to 1.1
Regards
Senthil
My Blog
|
|
|
|
|
Hello,
I'm trying to maximize my MDI child frame upon creation. However, changing the CREATESTRUCT values (e.g., cs.style |= SW_MAXIMIZE) does nothing, and cs.x = 5 causes errors?
Also, I tried to override the ActivateFrame function, but this too didn't work.
My MDI child frame contains two views in a splitter window.
Is there another way to do this in .net?
thanks!
JennyP
|
|
|
|
|
guys, i need help with running a command line application from within my VC code. I know how to do this with VB - using the Shell command, but hours of scouring the internet havent helped me in finding an equivalent in VC.
thanks
|
|
|
|
|
Try either ShellExecute() or CreateProcess() .
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
|
Sorry to have to ask these, but Project Sheets (and working with tabs in general) is completely knew to me and the MSDN is vague on some of these things.
Okay, so I have my Property Sheet set up and I've added 5 Property Pages to it. In each page is a list control (report style) that has to have headers for each column. I can set the headers with the first one (PropertyPage) but none of the others (PropertyPage1, PropertyPage2, etc). Is there something that I'm missing as how to reference those particular pages?
Next, adding buttons (yes, I asked this before; sorry for the repeat question). I know how to create the buttons, but for some reason they're not showing up in the Propery Sheet at all. I don't want buttons in the Property Pages, but rather outside of them on the Sheet itself. Right now, it looks something like this:
pWnd = GetParent();
m_btnRead.Create("Text Goes Here", WS_VISIBLE | BS_PUSHBUTTON, CRect(10, 50, 100, 208), pWnd, 1);
I've also tried replacing "pWnd" with "this". Nothing. No button anywhere. Again, am I missing how to correctly reference the Sheet?
Any help is greatly appreciated.
|
|
|
|
|
bcemick wrote:
Okay, so I have my Property Sheet set up and I've added 5 Property Pages to it. In each page is a list control (report style) that has to have headers for each column. I can set the headers with the first one (PropertyPage) but none of the others (PropertyPage1, PropertyPage2, etc). Is there something that I'm missing as how to reference those particular pages?
How and where are you inserting the columns in each list control?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
For the first Property Page, I have this:
m_lstPage1.InsertColumn(0, "Text here", LVCFMT_CENTER, 50, -1);
m_lstPage1.InsertColumn(1, "Text here", LVCFMT_LEFT, 100, -1);
m_lstPage1.InsertColumn(2, "Text here", LVCFMT_CENTER, 100, -1);
m_lstPage1.InsertColumn(3, "Text here", LVCFMT_CENTER, 100, -1);
m_lstPage1.InsertColumn(4, "Text here", LVCFMT_RIGHT, 100, -1);
m_lstPage1.InsertColumn(5, "Text here", LVCFMT_CENTER, 100, -1);
m_lstPage1.InsertColumn(6, "Text here", LVCFMT_CENTER, 100, -1);
Now, if I try to say something like:
m_lstPage2.InsertColumn(0, "Vol #", LVCFMT_CENTER, 50, -1);
I get an error that says "m_lstPage1 : undeclared identifier" even though it is declared.
|
|
|
|
|
But where are you trying to insert these columns from?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|