|
You want to develop application VC++. Plz clarify what is your expected target of development platform i.e whether .NET or traditional manner ??
If you are interested in Arabic only then Unicode can be a good solution. Unicode supports almost all the Arabic characters. You can find some Unicode related articles here at Codeproject or at Codeguru.
As far as Urdu is concerned, then Unicode is not a good solution. Many Urdu characters are missing. However, since your requirements are low as you only want to display text on menus e.t.c, then you can use Unicode. But if you want to develop full fledge urdu text application, then you have to design fonts yourself.
Imran Farooqui
World first Urdu Instant Messenger[^]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Java is a tool for creating applications that torture users with its awful speed and its ugly interfaces.
Daniel Turini commenting on this article
|
|
|
|
|
|
I have an app where I want to convert audio from one format (PCM WAVE) to another. I've looked at the MSDN and I found out that you should first call acmStreamOpen . I've made a dialog that enumerates all the avaiable drivers, so you can select which driver you want to use for converting. But when acmStreamOpen is called, it returns MSYSERR_INVALPARAM which means "At least one parameter is invalid.". Here's my code:
void OnConvert()
{
ACMFORMATDETAILS formatdetails;
ACMDRIVERDETAILS driverdetails;
HACMSTREAM hConvert;
HACMDRIVER hAcm;
WAVEFORMATEX wSource;
WAVEFORMATEX wTarget;
int res;
DWORD cbwfx;
acmDriverOpen(&hAcm, hCurrentDriver, 0);
memset(&wSource, 0, sizeof wSource);
memset(&wTarget, 0, sizeof wTarget);
acmMetrics((HACMOBJ)hAcm, ACM_METRIC_MAX_SIZE_FORMAT, &cbwfx);
wSource.wFormatTag = WAVE_FORMAT_PCM;
wSource.nChannels = 2;
wSource.nSamplesPerSec = 44100;
wSource.nAvgBytesPerSec = 176400;
wSource.nBlockAlign = 4;
wSource.wBitsPerSample = 16;
wSource.cbSize = 0;
wTarget.wFormatTag = 85;
wTarget.nChannels = 2;
wTarget.nSamplesPerSec = 44100;
wTarget.nAvgBytesPerSec = 176400;
wTarget.nBlockAlign = 4;
wTarget.wBitsPerSample = 16;
wTarget.cbSize = cbwfx - sizeof(WAVEFORMATEX);
res = acmStreamOpen(&hConvert, hAcm, &wSource, &wTarget, NULL, 0L, 0L, ACM_STREAMOPENF_NONREALTIME | CALLBACK_FUNCTION);
}
The hCurrentDriver variable is a HACMDRIVERID which contains the desired driver to be used for conversion. The acmDriverOpen returns 0 so nothing should be wrong there. Anyone know what could be wrong? I've been troubling with this for quite some time now.
All help appreciated.
-Rune Svendsen
|
|
|
|
|
I made a sample 1 byte long file into a zipped SelfExtracting one; the resulting .exe file was less than 12 KB. It means that Decompression unit plus Exe header occupied 12KB.
When I use messy ZLib library I cannot get same result even by optimization techniques such as:
#pragma optimize("gsy",on)<br />
#pragma comment(linker,"RELEASE")<br />
#pragma comment(linker,"merge:.text=.data")<br />
#pragma comment(linker,"/merge:.reloc=.data")<br />
#pragma comment(linker,"/FILEALIGN:0x200")<br />
#pragma comment(lib, "msvcrt.lib") !!!! (link Dynamically to msvcrt.dll)
I've used VC6.0 and ZLib1.1.4 .
The size I gain is always more than 27KB plus GUI resources.
As another way if you build a tiny dll and export "compress2" and "uncompress" functions, the minimum Dll size will be 35.5KB (the minimum possible dll size is 2.5 KB).
I know that some venial difference rise from compilers and systems, but this gap is something else (as I guess.)
How can I extract a tiny simple compression/decompression unit from such libraries (Zlib or Rar)?
Is there any source code available who present a simple and tiny Comp./Decomp. method?
What's wrong with my Dll?
Amir Zamani
|
|
|
|
|
maybe you could try the ZipArchive library which presents a wrapper around the zlib as far as I know and gives great power easily. It can make self-extracting archives and is easy to use, and I'm not advertising it, I just found it good and easy when I used it.
If you search through the articles here at code project you can find an article about it and a link.
Hope it helps and makes your life easier
|
|
|
|
|
Howto remove taskbar icon of CWnd derived (Not CDialog!), created by <font color = blue>CWnd</font>::CreateEx(WS_EX_TOPMOST,...,WS_POPUP) .
Plizzz do help!
--BlackSmith--
/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
|
|
|
|
|
Have you tried removing the WS_EX_APPWINDOW style from your window. Otherwise you can add the WS_EX_TOOLWINDOW to your window. The only drawback to making your window a tool window is that you will get the mini-caption bar instead of the regular caption bar.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
I want to export some information from my software into Word.
I am not able to use the OLE for Word. Can somebody help me ? How can i initialize a word document and then write my data in it.
I want to use tables while exporting the data.
Is there any article which tells me to do that ?
I am not using MFC. I am constrained to use only Win32 APIs
Thanks in advance
|
|
|
|
|
Output content it in the Office xml file format, which is documented.
Otherwise, buy third party Word generators out there (http://www.pparadise.com/index.pasp[^])
MS quote (http://www.microsoft.com/ddk) : As of September 30, 2002, the Microsoft® Windows® 2000 DDK, the Microsoft Windows 98 DDK, and the Microsoft Windows NT® 4.0 DDK will no longer be available for purchase or download on this site. Support for development will ship at the same time as the Windows XP Service Pack 1 (SP1) release.
|
|
|
|
|
I created several CDialog with CreateIndirect calls. The dialogs are of style WS_CHILD|WS_VISIBLE|DS_FONT. They are created fine, but say, in my tab, it has 3 pages (3 dialogs), the 3rd dialog is covering the 2nd dialog, which is covering the 1st dialog ?
How can I hide the inactive dialog ???
I don't find any SetVisible() method in CDialog.
Thanks
|
|
|
|
|
call ShowWindow(SW_HIDE) and ShowWindow(SW_SHOW).
|
|
|
|
|
Thanks very much, but i have another problem in changing showing and hiding the dialogs.
When a tab is selected, it's refected notification TCN_SELCHANGE, so i handle it to make the selected dialog visible.
The header is like this, but i don't know how to get the information about selected tab.
I tried to write:
void CTabPageView::OnTcnSelchange(NMHDR *pNMHDR, LRESULT *pResult)
{
TCITEM pitem;
int cursel = GetCurSel();
if (cursel != -1)
{
GetItem(cursel, &pitem);
UINT dlgId = pitem.lParam;
}
}
However, in this case, i got the lParam of 0 instead of the stuff i put in before for creating the tabs.
|
|
|
|
|
GetItem() only works if you have set the correct mask in the TCITEM structure.
eg. to get back the lParam you must set:
pitem.mask = TCIF_LPARAM;
|
|
|
|
|
I made a class in VC++. This class is derived from some MFC class. e.g: class myclass:public CDialog .
Now i want to use the objects of myclass in various applications. I also want to derive new classes from myclass and implementing its virtual functions in derived classes e.t.c
But i want to reuse this class in my Visual Basic applications. Is it possible ??? What kind of DLL i need to make ??? Is it possible using COM ??? Or what else the solution ???
|
|
|
|
|
|
Nishant S wrote:
The easiest and probably best approach would be to write an ATL component
Is it guaranteed that such ATL compopnent will be used easily by VB because, I am deriving my class from MFC class, CSocket ??
Secondly, instead of using ATL approach , if use COM hardcore approach. Then will there be any difference using COM or ATL ???
|
|
|
|
|
Anonymous wrote:
Then will there be any difference using COM or ATL ???
Yes, if you don;t use ATL, it will take you longer.
Any ATL component will work with VB.
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Cats, and most other animals apart from mad cows can write fully functional vb code. - Simon Walton - 6-Aug-2002
|
|
|
|
|
Hi all. I am trying to use _rmdir under WindowsXP to delete some folders. But I can´t and all I get is an errno = 13. Does anyone knows what does this mean? It doesn´t fit in what the documentation tells the errno values could be. Thanx...
Rodrigo
|
|
|
|
|
|
Hi all,
I'm writing a program (MFC) that connect to a SQL Server to manipulate the data. But I dont know which technique is the best in this situation, use ADO or something else ??? Which control should I use to display the data from SQL Server ?
Thanks alot
|
|
|
|
|
I use ADO for all my SQL Server data applications. A simple combination of AdoConnection, AdoCommand and AdoRecordset. I then display the data in standard Windows Controls (ListView, Edit, ListBox etc)
Most of my command objects use Stored Procedures to retrieve the data.
Michael
Programming is great. First they pay you to introduce bugs into software. Then they pay you to remove them again.
|
|
|
|
|
Hello,
I can transfer an image from a Canon digital camera with IWiaDataTransfer::idtGetBandedData but fail with IWiaDataTransfer::idtGetData. However, with a Kodak EasyShare I can use IWiaDataTransfer::idtGetData but fail if IWiaDataTransfer::idtGetBandedData. Then I try to use IWiaDataTransfer::idtGetBandedData then IWiaDataTransfer::idtGetData if IWiaDataTransfer::idtGetBandedData failed, the IWiaDataTransfer::idtGetData fails. Do you know why?
Thanks!
|
|
|
|
|
Hello there,
I want to change the Bitmap Button when i'm moving mouse cursor on the button ...
How can i do that ???
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
|
Thanks for your helps
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|