|
Last I heard, it is *not* legal to re-distribute Microsoft fonts.
To hell with those thin-skinned pillow-biters. - Me, 10/03/2001
|
|
|
|
|
You can download Microsoft's redistributable TrueType fonts from here. Tahoma isn't one of them.
|
|
|
|
|
My ATL/DLL dont works in Delphi program althouth I provided the files:
.dll and .tlb as you say me past.
I found in Delphi web that probably have to perfom some translation to the header file
I asked from my Delphi client to do that translation and I sent him to that address: www.drbob42.com/delphi/headconv.htm that explains it .
He tried that translation of the header file but he claims that now his compiler claims that there are missing files as below:
oaidl.h
ole2.h
rpc.h
rpcndr.h
windows.h
All this files exists in the vc/include folder
What can do ?????
|
|
|
|
|
Hello
Please I want to know how can I put an Icon on any Button
thank you
Best Regards
|
|
|
|
|
Create the button with set check Icon in the Propeties of Button.
Then use SetIcon() method for put the Icon to the button!
Best regards,
Eugene Pustovoyt
|
|
|
|
|
Hello Eugene
thank you very much , that's what I need.
Best Regards
|
|
|
|
|
COULD SOMEONE HELP ME OUT AS TO HOW TO WRITE A WRAPPER IN Visual C++ 6
I have a dll (SbLm_LogClient.dll ) written in C which I need to use in my vb code. The DLL functions uses _cdecl convention hence I an getting errors. I guess the way round it is to write a wrapper in C++ using the __stdcall convention. I know the dll exposes two interfaces.
Interface 1 - SbLm_Log accepts an Integer and a Char
Interface 2 - SbLm_CloseLogClient is a sub, it accepts no parameters
I have an include (.h) and a .a file from the from the author. The content of the .h file is below
#ifdef WINDOWS_NT
#ifndef SbLm_LogClient_h_included
#define SbLm_LogClient_h_included
#ifdef BUILDING_DLL
#define DLLIMPORT __declspec (dllexport)
#else /* Not BUILDING_DLL */
#define DLLIMPORT __declspec (dllimport)
#endif /* Not BUILDING_DLL */
DLLIMPORT int SbLm_Log(int, char *);
DLLIMPORT int SbLm_CloseLogClient();
#endif // SbLm_LogClient_h_included
#else
int SbLm_Log(int, char *);
int SbLm_CloseLogClient();
#endif
Question:
1) What will the code in the .cpp file be to call this two interfaces from a new COM dll
|
|
|
|
|
Hi Guys,
I am retrieving a field from an Access database and then comparing it to something the user enters looking for a match.
However I don't get a match if the case is different. (of course)
How do I do a compare that doesnt care about the case???
or how do I change a CString var to all lower case
Any help greatly appreciated.
Thanks Guys,
Tryhard
|
|
|
|
|
CString::MakeLower() to make it lower case.
Jon Sagara
I can't think of anything original to say.
|
|
|
|
|
CString::CompareNoCase() might help.
Tryharder next time
|
|
|
|
|
|
Look up CString class members. There is one just for this purpose.
P.S. Learn to use MSDN. Its ALL in there.
Hope this helps,
Bill
|
|
|
|
|
Hi everyone.
How do i unzip a zip file programatically ?
thanks & regards,
Mangesh
|
|
|
|
|
|
This might be a dumb question, but I have spent weeks trying to figure it out, so here goes. When I first start my MFC app, is there a way to get the applications path? That is, the path to where the application's exe file is? I need this information, so I can access the help file, text files, etc which are in the app path. I have tried MSDN, the web, 'hacking' existing functions, etc, but so far have had no success.
|
|
|
|
|
Hi.
Pls use the function GetCurrentDirectory()
Regard
Luu Truong Huy
Vnetsoftware, USA
|
|
|
|
|
use GetModuleFileName
Nish
|
|
|
|
|
Use __argv[0] to get the complete filename of the .exe - __argv is the global variable. Then, perform a reverse search for '\' using CString::ReverseFind to cut the exe name from path.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
This code I find on the PJ Naughter's site (http://www.naughter.com/)
CString CSpltestApp::GetHomeDirectory() const
{
TCHAR sFilename[_MAX_PATH];
TCHAR sDrive[_MAX_DRIVE];
TCHAR sDir[_MAX_DIR];
TCHAR sFname[_MAX_FNAME];
TCHAR sExt[_MAX_EXT];
GetModuleFileName(AfxGetInstanceHandle(), sFilename, _MAX_PATH);
_tsplitpath(sFilename, sDrive, sDir, sFname, sExt);
CString rVal(CString(sDrive) + CString(sDir));
int nLen = rVal.GetLength();
if (rVal.GetAt(nLen-1) != _T('\\'))
rVal += _T("\\");
return rVal;
}
I frequently use it, work perfectly!
Best regards,
Eugene Pustovoyt
|
|
|
|
|
I have the class based from CScrollView! How to make so that scrolling it was carried out not in all window, but only in any part!
For example, I want to place not scrolled heading to the top of View!
|
|
|
|
|
Capture WM_SCROLL and then don't pass the message on if the values fall outside the area you want.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
The device context you're receiving in CYourView::OnDraw is prepared to draw using coordinates altered by current scrolling position. If you want top part of your view to remain top regardless of the scrolling, you have two options:
1) draw the top part not at the (0, 0) coords, but at the position returned by GetScrollPosition - this should be the top-left corner of visible area (I'm assuming that you're running in MM_TEXT mode).
2) use other device context for top part of the view in OnDraw - just declare a CClientDC. Draw at (0, 0).
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Basically such it is possible! Whether it is possible to make the size scroll bar, only on height of a scrolled part! If yes that as!
|
|
|
|
|
So you want scrollbars to start not at the top of the window, but in lower part? In such case, simply create two views - one for the top part, without the scrolling and one derived from CScrollView for the bottom part. You can combine two views with CSplitterWnd or you can handle frame resizing yourself - in such case, the top part's size could remain fixed and user would be unable to resize it.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Thank you!
I shall try!
Eugene Pustovoyt
|
|
|
|