|
please help me to draw a pie chart based on some values which my program generates.now i am able to draw charts using mschart control.but i want to export it to an html file without using the CDC GetDC method.please advice me the best approach that i should follow.
|
|
|
|
|
|
Im using borZoi to implement ECC in my project Ive uncluded all the header files and other things according to its manual but when i call its functions i get undeclared function errors.
I call
use_NIST_B_163 ();
and get error
e:\vc\myprojects\project\malloc1\dsprojdlg.cpp(212) : error C2065: 'use_NIST_B_163' : undeclared identifier
|
|
|
|
|
Have you included the headers file directory into your settings (include path)?
And the library?? Is it linked/added into the Link tab > Object library modules?
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
I don't know anything about that library, but the manual says you must define USE_MPI. Did you define it?
Are you sure dsprojdlg.cpp has an include for borzoi.h and nist_curves.h?
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
// DSProjDlg.cpp : implementation file
//
#include "borzoi.h"
#include "nist_curves.h"
#include "stdafx.h"
#include "DSProj.h"
#include "NewDlg.h"
#include "SignDlg.h"
#include "DSProjDlg.h"
Yup Ive included the files
and Ive included the USE_MPI in Project->settings->C/C++
->prepocessor->preprocessor definitions
Is it OK?
|
|
|
|
|
titi@yahoo.com wrote:
Is it OK?
No. Since you are most likely using precompiled headers through stdafx.h, the compiler ignores anything before the include for stdafx.h.
Move the includes for borzoi.h and nist_curves.h below the include for stdafx.h and try again.
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
I like the babylon dictionary.
The only reason is because its ease of use.
Ctrl-right click on ANY word, and it shows you the dict entry.
There's a firefox extension that you can right click on a word and select from the context menu -> query to -> dictionary.com but it's no way as convenient as babylon. And it only works on firefox.
In the past I have created a simple dictionary app that use some dictionary database in the public domain.
I know a lot of students would benefit if there is such a free / open source app.
But I have no idea how Babylon did that (capture a word on ANY app on Ctrl-right click, even bitmap).
This is what I tried : I wrote a autoit script sometime ago.
Basically what I did is to program a hot key so that when it is triggered the script will:
double click where the pointer is
Ctrl-C
[autoit api] find windows handle that match my dict app
[autoit api] change focus to my dict app
Ctrl-V
<enter>
It works 75% of the time, but for some timing issues and whatnot, the 25% failure rate still frustrate the user to no end.
I think most macro/scripting solution won't cut it.
BTW, if Babylon have a built-in OCR, it'll be quite complicated to implement. And i'm not aiming that high.
How about text only apps? (one that you can use mouse to select and ctrl-c / ctrl-insert).
Is there any c/c++ glue code that can use the win32 api to achieve that?
If any win32 guru can give me pointers to the relevant doc / url / reference, that will be great.
OTOH, maybe such a open source dictionary exists, but so far I'm not aware of one yet.
|
|
|
|
|
Hi,
I am upgrading VC compiler on a windows machine from version 6.0 to 7.1
after upgrading when I tried to compile my application and got this error
\\Vc7\atlmfc\include\atlalloc.h(218) : error C2629: unexpected 'class ATL::CTempBuffer ('
I was able to compile code on 6.0 version
Please tell me reason and solution for this problem.
I got only one related link on net but it was in Hungarian.
http://www.netacademia.net/blogspace/petert/archives/2005_06.html
Regards... Ankur
|
|
|
|
|
template< typename T, int t_nFixedBytes = 128, class Allocator = CCRTAllocator >
class CTempBuffer
{
public:
CTempBuffer() throw() :
m_p( NULL )
{
}
CTempBuffer( size_t nElements ) throw( ... ) : <--- This is the line
m_p( NULL )
{
Allocate( nElements );
}
~CTempBuffer() throw()
{
if( m_p != reinterpret_cast< T* >( m_abFixedBuffer ) )
{
FreeHeap();
}
}
There were huge changes in ATL/MFC between VC6 ( which is basically crap for C++ ) and 2002. Babel fish doesn't translate hungarian, perhaps another site does ? Can you remove parts of your code to figure out which bit is causing the error ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I am getting this error whenever "atlalloc.h" is included directly or indirectly in my cpp file.
Please tell me how to fix this
Regards... Ankur
|
|
|
|
|
If I include atlalloc.h, it blows up as well. Do you need it ? It looks to me like it doubles up some stuff, actually.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Respected all
Regards!
i used the following code.
----------------------------------------------------------
pFile=fopen("C:\\filename.dat","r");
and my "filename.dat" is in the follwing form.
----------------------------
sfsd
sdfgsfg
dsfgsfg
sgsfg
X Y Z Indix
12 33 45 3335
12 34 45 2323
12 34 34 3434
---------------------------------------------------
and there are several file like the above but in different total no, of lines.
so how i can find out the total no, lines in a file.like in above but remember
that the file may be n different size.
waiting for + response.
david
|
|
|
|
|
Are you using C++ or C ? fopen is C. ifstreams are C++. In C++, reading a file with an ifstream, you can use the getline function to read a line at a time, and of course, you can keep count as you do so.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi all
how to place a animated icon on the caption bar, similar what we see in Internet Explorer.
if any one has any idea, please share it with me.
thanks and regards
pradish
|
|
|
|
|
I have error when I compile my program.Can someone tell me what is unresolve external error....
|
|
|
|
|
|
It's a sign from God. If you want more info, try posting the actual error, so we have something to work with.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
#include <afxsock.h>
#include <iostream.h>
#include <winsock.h>
#include <stdlib.h>
int doit(int, char **)
{
char ac[80];
if (gethostname(ac, sizeof(ac)) == SOCKET_ERROR)
{
cerr << "Error " << WSAGetLastError() <<
" when getting local host name." << endl;
return 1;
}
cout << "Host name is " << ac << "." << endl;
struct hostent *phe = gethostbyname(ac);
if (phe == 0)
{
cerr << "Yow! Bad host lookup." << endl;
return 1;
}
for (int i = 0; phe->h_addr_list[i] != 0; ++i)
{
struct in_addr addr;
memcpy(&addr, phe->h_addr_list[i], sizeof(struct in_addr));
cout << "Address " << i << ": " << inet_ntoa(addr) << endl;
}
return 0;
}
int main(int argc, char *argv[])
{
WSAData wsaData;
if (WSAStartup(MAKEWORD(1, 1), &wsaData) != 0)
{
return 255;
}
int retval = doit(argc, argv);
WSACleanup();
return retval;
}
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/TEST.exe : fatal error LNK1120: 2 unresolved externals
|
|
|
|
|
an unresolved external symbol linker error occurs when a compiled file (but not linked yet) uses an external symbol, such as a function or a variable declared as extern , but found nowhere in the reste of the project files.
that's why we have to #include some files sometimes...
the linker cannot find for beginthreadex() and endthreadex() for two major reasons...
1) you didn't wrote the function names correctly (C/C++ are case sensitive, so be careful to the caps...).
2) you don't include the correct header file (.h)where these two functions are defined. as they are standard headers (not defined in your project, but in one of the compiler folder), use #define<>.
cheers,
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Do you mean I need to add in #define beginthreadex and #define endthreadex at the beginning of the program
|
|
|
|
|
#define ???? no never, i never talked about that, i said #include
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
After I add the #include <beginthread> and #include <endthread>
its still got error
error C1083: Cannot open include file: 'beginthreadex': No such file or directory
|
|
|
|
|
please edit your previous post and uncheck the "Do not treat <'s as HTML tags" checkbox down EditBox you type the post
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
the #include file is not in the same directory where ur application is present
so #include foldername//abc.h
foldername in which abc.h is present
|
|
|
|