Our users use different OS, so we use Win2k on develope PC.
CryptoAPI requires (as in MSDN)
Windows NT/2000: Requires Windows NT 4.0 or later.
Windows 95/98: Requires Windows 95 OSR2 or later (or Windows 95 with Internet Explorer 3.02 or later).
Header: Declared in wincrypt.h.
Library: Use advapi32.lib.
So CryptoAPI can not be used by win2k.
I define _WIN32_WINNT myself then include <wincrypt.h> as following
//--------- my OS is not NT
#define _WIN32_WINNT 0x0400
In addition to above points from superman,
i will say always declare and define your own default constructors when your class is having pointer members.
Along with default constructor, make your own copy constructor and operator = in that case.
It is always good to write your own default constructor so that you can initialize your member variable in default constructor.
I am trying to create a c++ dll in vs2008 and I have exported the sample function and class available in the files created (by using the export symbol option when the dll created). My problem is that whenever I try to call a the dll I get an error saying that no entry point is found in the dll.
I have manged to get C++ dlls working with vs 2005 and by using dllexport, however things seem to be a little different in vs 2008.
Thanks for the reply.
I am linking the dll to the exe using P/Invoke. The exe is developed in C# VS 2008.
When I use the export symbol option when creating the dll it creates a sample class with a constructor and a independent function (which are said to be exported). I am not sure how to instantiate this class or to call the independent function from the C# application.
what is the exact code to get the value of the editbox (variable type double) and displays in the listbox?
i tried : m_list.GetText(m_list.GetCurSel(), m_edit1) and m_list.GetText(m_edit1) but after building committed errors...
--------------------Configuration: g - Win32 Debug--------------------
C:\Program Files\Microsoft Visual Studio\MyProjects\g\gDlg.cpp(179) : error C2039: 'GetWindowTextA' : is not a member of 'CString'
c:\program files\microsoft visual studio\vc98\mfc\include\afx.h(368) : see declaration of 'CString'
Error executing cl.exe.
buffer = newchar[bufferSize + extraSize];
// ... fill the payload buffer with data here ...
// ... append extra payload here ...
// send the payload.
sendto(socket, buffer, bufferSize + extraSize, flags, &destAddr, destaddrSize);
1300 calories of pure beef goodness can't be wrong!
Last Visit: 31-Dec-99 19:00 Last Update: 29-Nov-15 2:42