|
Contains the database any linked external tables?
Pavel
Sonork 100.15206
|
|
|
|
|
I need to show in a 3D graph the evolution
of a flight. So I have to show some fixed points,
the flying object and its wake (each one with a
different color). Then I'd like to have the
possibility to move the 3D system in order to
view my objects from different position.
Which is the most appropriate way to do that ??
I have seen that OGL allows to do something similar...
and I have found some classes that manages OGL library...
Can OGL library be usefull for my problem ??
|
|
|
|
|
OGL can be used for game developpement (low fps) But i guess u can use it for ur application
Papa
Murex Co.
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
I would recommend to make a renderer wrapper so that it fits both OpenGL and DirectX. Doing so, you are cross-platform.
MS quote (http://www.microsoft.com/ddk) : As of September 30, 2002, the Microsoft® Windows® 2000 DDK, the Microsoft Windows 98 DDK, and the Microsoft Windows NT® 4.0 DDK will no longer be available for purchase or download on this site.
|
|
|
|
|
Hi,
This has probably been asked a million times before, but how do i convert a bitmap .bmp to a .ico file that i can use for the application icon in visual c++? Using a bitmap straight does not work, at least not 24bit ones.
Inserting a bitmap by cutting and pasting a bmp from
another program (CTRL-C, CTRL-V etc.) change the colors, so that doesn't work.
/Per
|
|
|
|
|
|
Take a look:
hr=m_schema->add(_bstr_t(m_szNS), _variant_t(m_szXSD)); This code returns S_OK but in fact it fails.
The same in VB:
On Error GoTo err_xsd
schema.Add txt_namespace.Text, txt_xsd_file.Text will jump to err_xsd label, where i can obtain all the information i need about the error using Err .
Do you know how could i do it in VC++?
rechi
|
|
|
|
|
For the first part, are you using #import for your type-library? If so, are you using raw_interfaces, or wrapped ones?
For the second part, you can query an interface to see if it has IErrorInfo support, and then ask via IErrorInfo methods what went wroing.
Steve S
[This signature space available for rent]
|
|
|
|
|
In VB you can do
MsgBox Err.Description
to see a string description of the error. However sometimes it will issue "Unspecified error" or something like that which does not help much.
Best regards,
Alexandru Savescu
|
|
|
|
|
I agree with your observation.
In the particular case above it was about calling add method of IXMLDOMSchemaCollection interface. It throws a _com_error object when fails and will always provide an appropriate description. Should be no reason to warry about it.
rechi
|
|
|
|
|
Hi Friends....
i just try a program in VC++ compiler,then there is an Exeption occurs...Anyone can give me an Explanation abt the following???
void main()
{
char *s = "123456789" ;
for(int i =0 ;i <strlen(s) ; i++)
{
char ss = *(s+i) ;
*(s+i) = 'x' ; //Exception
// s[i] = 'x' ; Exception
}
}
"A Programmer Never Dies..!!!"
|
|
|
|
|
's' points to read-only memory - this is the place where string literal "123456789" is stored. Change s declaration to
char s[] = "123456789";
or, better yet, switch to std::string.
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
i already get the solution..but i want the reason behind it...is it in the code segment/data segment...why this consider as read only and how...what happend to when we cahnge that stsmnt in to []..??
pls explain.....
A Programmer Never Dies..!!!
|
|
|
|
|
'char *s' declares a pointer which stores an address. char s[] creates an array which is initialized at runtime. In this case, there's a literal string in read-only segment. This literal is copied into the array located in read-write data segment.
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
But it Working in TURBO C++ Compiler
A Programmer Never Dies..***
|
|
|
|
|
Turbo C++ creates DOS executables, and you surely know that there's no memory protection under DOS.
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
s points to a constant string, you can§t change it.
Pavel
Sonork 100.15206
|
|
|
|
|
i already get the solution..but i want the reason behind it...is it in the code segment/data segment...why this consider as read only and how...what happend to when we cahnge that stsmnt in to []..??
pls explain.....
A Programmer Never Dies..!!!
|
|
|
|
|
Because inherently, the "..." is a literal, and is placed in a const segment. This *should* be a safe thing to do, and the segment then can be read-only. This allows the compiler/optimiser to use string pooling (multiple occurrences of the same literal can be folded into one). The address (char*) is the variable part, and is in the r/w segment.
The [] version simply declares and initialises some of the r/w segment, and is different.
Steve S
[This signature space available for rent]
|
|
|
|
|
The string is in code segment.
Pavel
Sonork 100.15206
|
|
|
|
|
But it Working in TURBO C++ Compiler
A Programmer Never Dies..***
|
|
|
|
|
DOS version of Turbo C++? The code segment is read-only on Windows.
Pavel
Sonork 100.15206
|
|
|
|
|
Howdy,
Does anyone know of a macro or whatever which lets you display line numbers in the VC6 Editor? I am having no luck so far...
Cheers
James
|
|
|
|
|
Try this dude..... but it's for C under Linux...might work here too.
#define TRACE printf ("%filename, %linenumber\n", _ _FILE_ _,_ _LINE_ _)
be careful with the "_"
and call TRACE anywhere you want. IE: TRACE; that's all
Good luck to ya.
Jey
|
|
|
|
|
Hi,
I'd be oblidged if someone can give me the code (using VC++) to accessing a particular port at a specified IP address.
The code should detect for failure(-1) or success.
Many Thanks,
John
|
|
|
|