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"...
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.