|
Compiler doesn't create .def file. It's created by default by Project Wizard. Can you check if there's one in your project?
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
A def file is the a part of the project (you can see it in the workspace) and you write there the name of all functions that your dll is exporting. However, sometimes the linker will try to modify it (only the first line of it). So, most likely that your .def file is missing (has been deleted) or is read-only.
Best regards,
Alexandru Savescu
|
|
|
|
|
My def file is indeed missing from my project.
In this case does VS auto-generate this missing file (with all the export functions), or is this a job that has to be done manually? (nooooo).
-chin-
|
|
|
|
|
First ensure if you really need .def file. It's needed only if you plan to export your functions by ordinal. If you export by name, then __declspec(dllexport) is enough.
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
When I tried out this set of classes to connect to Access 2000 tables, I got the following error.
Code : 80004005
Code Meaning : Unspecified error
Source : MS jet database engine
Description : Could not find installable ISAM
Can someone suggest how to get over this problem.
(I have tried to including Msrd2x40.dll and Msjet40.dll in the project)
|
|
|
|
|
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
|
|
|
|