I'm not 100% sure I understand the question, but... if you just want to launch a file as if it were double clicked in Windows Explorer, one easy way to do this is to use ShellExecute:
ShellExecute( NULL, "open", "c:\\myfile.txt", NULL, "c:\\myfile.txt"...
Here's some links you might try:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/apcompat/apcompat/application_compatibility_guide.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnappcom/html/qfixapp.asp...
Microsoft's advice is basically the same as Matt's. However, they also link you to some pages that show you how to use DAO 3.6 to connect to Access 2000 and, I think, 2002 databases:
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q232337
Is your application an MFC app? If so then you probably want to use Microsoft's CFileDialog class.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_mfc_cfiledialog.asp
I'd start with the following link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample/html/_core_microsoft_foundation_class_library_samples_index.asp
Specifically, I usually start out my company's college interns by having them work through the "Scribble"...
I'm guessing that you mean that it doesn't show up in the IntelliSense list of available functions. I don't know why this is. But the function works fine. Just type it in.
aStat0.SetSize( 40 );
You may wish to try using Microsoft's CArray template:
CArray < float, float > my_Array;
For more info, see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_carray.asp
You probably want to use either CDatabase::ExecuteSQL or CDaoDatabase::Execute. For info on these functions, try the following two links.
CDatabase:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_cdatabase.3a3a.executesql.asp
CDaoDatabase...
Please see if the following link helps:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_Export_from_a_DLL_Using_..DEF_Files.asp
I'd use the PlaySound function. You may read about it at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/mmfunc_9uxw.asp?frame=true
Once again I am guessing, but I think that if you don't specify a calling convention, cdecl will be used by default. That appears to be bad news for VB; please see the following Microsoft article:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q153586
So you might need to put...
One starting point might be to use Dependency Walker (Start-Programs-Microsoft Visual C++ 6.0-Microsoft Visual C++ 6.0 Tools-Depends). It will let you know (in the middle pane on the right hand side) what functions have been exported from your DLL.
It could be that your "Init"...
Here's some Microsoft links to get you started:
1. Creating MFC DLLs
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_create_an_mfc_dll_with_appwizard.asp?frame=true
2. Creating Win32 DLLs...
Yes, it is definitely possible. There are several ways to do it. Here's a quick overview of what will probably be the easiest way:
1. First search for "*.olb" files on your system. On my PC, which has Access 97, the appropriate file is c:\msoffice\office\msacc8.olb. The file name...
In your message map, add an ON_UPDATE_COMMAND_UI macro such as the following:
ON_UPDATE_COMMAND_UI(ID_FILE_OPEN, OnUpdateFileOpen)
In your header file, declare the function like:
afx_msg void OnUpdateFileOpen(CCmdUI* pCmdUI);
Then in the actual function body, all you really need to do is to...
Paul DiLascia answered this question very nicely in his C++ Q&A column in the October 2001 issue of MSDN Magazine. You may find his article at
http://msdn.microsoft.com/msdnmag/issues/01/10/c/c0110.asp
Also, MFC 7.0 (in Visual C++ .NET) will include a CImage class that will let you do...
A good place to start reading about floating point formats is
http://developer.intel.com/design/pentium/manuals/
From this page, the link you want is to the Intel Architecture Software Developer's Manual, Volume 1: Basic Architecture.
Then go to chapter 7 of this manual.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.