|
Hi
I want to compile a foreign open source application written in VC++7. But I only have VC++6 (with the latest PlatformSDK). The result is, that the compiler gives me errors like "afxdhtml.h not found" etc. I suppose these headers are new with MFC7.
Where can I get the latest headers from? The PlatformSDK does not seem to have them. Or do I need to purchase VC++7?
thanks in advance
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Do you really need what afxdhtml.h provides ?
Try afxhtml.h instead.
And if it doesn't compile, that's because this code is using the CHtmlEditView, which requires MFC7, thus VC7.
How low can you go ? (MS rant)
|
|
|
|
|
I am using the folowing code to add gridlines to a report-Style Listcontrol:
dwExStyle = m_listSpeeds.GetExStyle();<br />
dwExStyle |= LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES;<br />
m_listSpeeds.SetExtendedStyle(dwExStyle);
For some reason this is adding checkboxes to my control as well as gridlines. Why is this happening and how I can disable this behaviour?
well hell doesn't want you
and heaven is full.
Tom Waits
|
|
|
|
|
Try changing the first line from
<br />
dwExStyle = m_listSpeeds.GetExStyle();<br />
to
<br />
dwExStyle = m_listSpeeds.GetExtendedStyle();<br />
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
Thank you!! It works
What does your signiture mean in English?
well hell doesn't want you
and heaven is full.
Tom Waits
|
|
|
|
|
Well it doesn't really mean anything This is however the German version of "The funniest joke in the world"[^] according to Monty Python.
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
well hell doesn't want you
and heaven is full.
Tom Waits
|
|
|
|
|
I developed a dialog based application in MFC. I don't want to distribute MFC dlls with it and so i am linking it statically with MFC.
But when i run my Release exe on Win98 machine with no VC++ installed, i obtained error that msvcp60.dll not found.
Is there any way that there'd be no need to distribute any additional dll with our applications built using VC++/MFC
|
|
|
|
|
msvcrt is the C runtime dll, I don't know what msvcp60 is, you should look it up in MSDN, that will tell you why you have the dependancy and you can then check out if it's something you can change.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Yea i tried to search in MSDN but found 4 useless results.
|
|
|
|
|
You're right. A Google search left me thinking it is also related to the C run time. Two questions
1. Are you using any C runtime functions ?
2. Why is it such a big deal to need this dll ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
msvcp60.dll has nothing to do with the MFC.
msvcp60.dll is the MS C++ run-time. (for instance, when you use #include <iostream> and stuff like that).
Just xcopy this file.
How low can you go ? (MS rant)
|
|
|
|
|
Good for you! I *hate* apps that have to install a bunch of DLLs, because they usually do it incorrectly.
You need to do a couple things:
1. Make sure MFC is linked statically (it looks like you are doing this)
2. Are you running VC 6.0? If so:
- Go to "Project Settings" for your project(s)
- Go to the C++ tab, and change the combo box to "Code Generation".
- There is a box that says, "Use Runtime Library". It should *NOT* be an option that has "DLL" in the name. Change it to the corresponding option that does not have DLL in its name.
- Make sure you do step 2 for Debug and Release (and any other project configurations you have.)
If you are running VS.NET, the option is still there, but getting to it may be a little different.
Hope this helps.
Even a broken clock is right twice a day.
|
|
|
|
|
hi, I want use wParam and lParam to transfer values to messege pump for futher process, just tell me how to use them.
For example,
I want sent one pointer and three integers though message to message pump, how to do this??
Thank u.
Extreme programming. Do the No.1
|
|
|
|
|
You're using your own message ? I would think the easiest way would be a struct, create it using new, pass the address as a wparam or lparam, delete it when you recieve it. Not all that safe, I would think, but you can't fit a pointer and three ints into one message otherwise. Why do you need to send them in the message - is it between processes ? If so, WM_COPYDATA might be the way to go.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
What about OnMenuChar() processing?
I try to process a WM_MENUCHAR message in MFC: I return a MAKELRESULT(ID_SOMEMENUITEMID, 2) to say to Windows that this item is to be selected, but it doesn' t work.
The only thing that work is return a MAKELRESULT(..., 1) that says WIndows to close the menu..
Some hints?
Thanks
|
|
|
|
|
Hi everybody,
I have a strange problem with an allocation of memory for pointers of pointers.
i have done this function to allocate memory for 2 pointers of pointers:
void LoadHistoDB::AllocComptStartEndMin(long RowSize,long ColSize)
{
long i;
pComptStartMineure=new double* [RowSize];
pComptEndMineure=new double* [RowSize];
for(i=0;i<rowsize;i++)
{
="" pcomptstartmineure[i]="new" double[colsize];
="" pcomptendmineure[i]="new" }
}
so,="" after="" the="" allocation="" is="" done,="" i="" want="" to="" put="" value="" in="" them,="" ik="" that:
pcomptstartmineure[i][j]="i
pComptEndMineure[i][k]=i
i" don't="" post="" all="" my="" code="" because="" it="" will="" be="" too="" long.
so="" when="" test="" application="" with="" debug="" method="" (calling="" f5!)
when="">120 i could see in the debug window this message in front of pComptStartMineure:
CXX0030:expression cannot be evaluated
and i could see this same message for pComptEndMineure when i>202.
So where is the problem?
Thanks in advance for your help
gérald
|
|
|
|
|
<br />
When i>120 i could see in the debug window this message in front of pComptStartMineure:<br />
<br />
CXX0030:expression cannot be evaluated<br />
<code><br />
<br />
that means that your pointer is pointing to NULL, hence it can not evaluated the value. Normally, an attempt to access NULL pointer will give you "Access Violation" error.<br />
<br />
This dynamic memory allocation is not easy to deal with. Ideally you'll need to go step by step through each line of code and monitor your program and see what is an unexpected result.
|
|
|
|
|
I try to follow first the allocation describe by the function called AllocComptStartEndMin, and you know as usual when you do the allocation of memory for a pointer of "double" for example, p=new double[X]; when you try to see what are the value, for each i from 0 to to X-1 of p[i], (before any affectation), in the debug window, you have in this window:
p[i] in the column "Name" and -6.2774385...e+066 in "Value" column. So when i execute step by step AllocComptStartEndMin, it works even if i>120. So, why when i want to affect value to the pointers i can't affect value for the first pointer when i>120 ( and what is very strange is this value:120, because in my sample RowSize =866 and ColSize=255!)
|
|
|
|
|
Hi,
I'm developing an application where you can configure circuits. the problem is after placing the components on the User Interface I've to make connections. these connections are to be represented by lines.
How do we caluclate the path of a line that does not pass through a certain Area . The lines can be only horizontal or vertical. The line has to pass around a certain specified area.
can anybody help me out with this thanks, in advance
|
|
|
|
|
You're trying to get the circuit to draw itself and therefore not cross ? A basic line intersection algorithm looks like this:
function ccw(p1, p2, p3)
// Slightly deficient function to determine if the two lines p1, p2 and
// p2, p3 turn in counter clockwise direction}
{
var dx1, dx2, dy1, dy2;
dx1 = p2.x - p1.x; dy1 = p2.y - p1.y;
dx2 = p3.x - p2.x; dy2 = p3.y - p2.y;
if (dy1/dx1 < dy2/dx2) return true;
else return false;
}
function intersect(l1, l2)
{
return ((ccw(l1.p1, l1.p2, l2.p1) != ccw(l1.p1, l1.p2, l2.p2))
&& (ccw(l2.p1, l2.p2, l1.p1) != ccw(l2.p1, l2.p2, l1.p2)));
}
That's in JScript, sorry.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Oh I recognize the asteroids guy here...;P
How low can you go ? (MS rant)
|
|
|
|
|
If you simply want to avoid your lines from crossing, then Christian Graus's solution would work fine. However I think this solution will limit you to very simple layout diagrams.
If you would like your tool to be able to layout complex paths, I would suggest looking up path-finding on Google. I have seen many sample applications, you may be able to find one that will work for you.
Good Luck
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
Sir,
In mainframe the background color is white.I want to change this color to some other color.How can i do that .Please help me in achieving this.
Thanking you,
regards
Subhashree
|
|
|
|
|
In your OnEraseBkgnd draw a window with youur client bound.
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|