|
It is possible that the code runs under a DOS enviornment, so a newer compiler will not help. Does MSDN still provide the legacy archive?
Steve
|
|
|
|
|
Steve Mayfield wrote:
It is possible that the code runs under a DOS enviornment
With a name like EZBuilder, it probably wasn't DOS. If it was then it should have been written according to the standard, in which case it should still compile as a console application. The only problem you may run into under that is modern system security for hardware access.
If it was written for DOS, then the whole interface needs to be rewritten anyway.
Steve Mayfield wrote:
Does MSDN still provide the legacy archive?
Many of the examples (and samples) you see in MSDN are written in C, there's your legacy archive. Most of the code I wrote years ago for DOS still compiles and works today (still supported).
Note: Many of the examples are the same ones that where in the help file for both Ver. 1.0 and 1.52 of the compiler.
If you seperated most of the code that does the work from the interface code that shows it to the user, then you should still be able to use that same code.
The conversion requires: you to handle some messages differently and some functions are no longer supported.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
I seem to recall seeing a C++ instructional book that came with v1.52 on a CD, that might be the easiest way if you can't find a release online.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | 1ClickPicGrabber | NEW~! CP SearchBar v3.0 | C++ Forum FAQ
Pinky, are you pondering what I'm pondering?
I think so Brain, but if we shaved our heads, we'd look like weasels!
|
|
|
|
|
I'm trying to use MSXML 4 DOM to parse a xml document in Visual C++, but without success. A snippet of the xml structure is a following:
<code>
<data>
<album label="Album title 1">
<track label="Label 1" sndUrl="1\0.jk" txtUrl="1\0.jk"/>
<track label="Label 2" sndUrl="1\1.jk" txtUrl="1\0.jk"/>
</album>
<album label="Album title 2">
<track label="Label 1" sndUrl="2\0.jk" txtUrl="2\0.jk"/>
<track label="Label 2" sndUrl="2\1.jk" txtUrl="2\0.jk"/>
</album>
</data>
</code>
Can anyone give me a code snippet to parse album label, track label, sndUrl, txtUrl attributes to a CString?
Please help!
Thanks in advance for any answers.
|
|
|
|
|
johnnyXP wrote:
I'm trying to ..., but without success.
What is the problem ? You don't know what to start from ? Or you can not look at MSDN , where MSXML interfaces are well documented ? Or you have some kind of errors ?
If you have you own code, which is not working, you can post a fragment.
Andrew
|
|
|
|
|
I have the MSXML SDK documentation. Actually i can't understand how to iterate throw all "album" nodes and also how to iterate within an album node to get all tracks...
I have do the same job in C# with .NET framework, but i can't in MSXML ...
|
|
|
|
|
documentElement property of IXMLDOMDocument will return you code tag. Then you need to use firstChild property of IXMLDOMNode to get data node. And again the same to get first album node. Having album node you can use it's nextSibling property to get next album node. So, I hope it's clear how to get all albums and tracks.
By the way, you can use selectSingleNode("/code/data/album") from you document node.
Having IXMLDOMNode you can query IXMLDOMElement interface and its getAttribute method.
With best regards,
Andrew
|
|
|
|
|
|
MYSQL*pMySQL=mysql_init((MYSQL*)0);
if(pMySQL==0) return;
MYSQL*pConnect=mysql_real_connect(pMySQL,
"www.mysite.com",//site name
"mysite_user", //user name
"password", //password
"mysite_maindb", //database name
0,0,0);
mysql_error says:
Access denied for user: 'mysite_user@60.246.13.57' (Using password: YES)
the user, password and database have no problem because they are all work in php (as localhost).
please help me for finding problem.
includeh10
-- modified at 8:50 Saturday 27th August, 2005
|
|
|
|
|
Try setting the password for the MySQL user to an empty string (i.e. no password), and then change your program accordingly. If you get a connection the problem may be caused by a version mismatch. Take a look at this MySQL article which talks about 'old_password' function.
|
|
|
|
|
hi
I am having problem in callling remote components methods..I tried for the same but was tnot sucessful
Any kind of help is appreciated
cheers
hi
|
|
|
|
|
What's your exact problem? Without example code and concrete scenario's, we won't be able to help you...
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
How can I use the C++ Std Lib version of 'isalnum' in VS .NET 2003?
My code is as follows:
#include <locale>
....
locale loc("English_England")
bool result = isalnum('P', loc);
I get the following compiler error: C2660: 'isalnum' : function does not take 2 arguments. The compiler refers to the VC++ version. When I use std::isalnum it then says isalnum is not found within std.
Can anybody help?
I am the handsome one in the crowd.
|
|
|
|
|
this code worked OK for me:
#include "stdafx.h"
#include < locale>
int main(int argc, char* argv[])
{
std::locale loc("English_England");
bool result = std::isalnum('P', loc);
printf("Hello World!\n");
return 0;
}
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
hi,
i had asked a similar query some days back. i wanted to add some text to the menu at runtime when the user clicks a button(similar to Add to Favourites). the solution posted helped to add the string to the menu at run time. but now i want to write a handler for the items added to the menu list; as there can be many strings in the menu we cannot write handlers for all those items. can anyone tell me how to write a single handler for the strings added in the Favourites menu.( i.e. the user would be adding a names of sites or rather strings to the menu and when he clicks one of those added in the menu i should be able to process the string, such as what is the text selected/string name).
thanks
aditya
|
|
|
|
|
Please clarify. Are you asking how to make the function be the handler for all the menu items, or how to write the body of the function?
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
How can I read each cell from each row in a worksheet programmatically.Can some one help me . I have tried it out. I can search a particular string. Also can some1 plz give me a good link for tutorial on it or any other reference
Regards
|
|
|
|
|
|
hi,
i want to use mysql in c++.
i think i need to to download driver or library first.
is mysql.h right c++ head file?
is it inside mysql package?
what files are its lib and dll? where are they?
thanks
includeh10
|
|
|
|
|
|
i don't think it is a good idea to read the huge documents.
includeh10
|
|
|
|
|
thats a shame - in those two references, and the info isnt that hard to find, is all you need to know ..
Im not a mysql expert - I only knew where to find the info - maybe you'll get lucky and someone will give you the exact answer you want, on a plate - if you want to wait that long - else it may take an amount of searching, nouse, and/or self drive .. if you cant be bothered, stick to vb
'g'
|
|
|
|
|
This is another GDI+ question:
Does anyone know how it is possible to randomly /select/draw/get coordinates of/ a point on a circle line of drawn circle?
Thanks in advance,
Sincerely,
Max Pastchenko
|
|
|
|
|
|
You question is not entirely clear. From a general perspective if you need to generate a random point on the circumference of a circle you could generate a random number between [0,360)and then, given that you know the radius and centerpoint of the circle transform your random angle to get the coordinates you need. I do not know what built in function there are for this, but simple geometry will give you the coordinates. You know the origin (centerpoint of your circle) which is a general (x,y) pair. You now also know the angle of a triangle and the length of the hypotenuse. Use trig to compute the x and y offsets: r * sin(theta) = y; r * cos(theta) = x.
I hope this helps. Check my math, my trig my be rusty.
|
|
|
|