|
Okay... I read the articles you created linked to above. They are very nice. Correct me if I'm wrong... Are you saying that it's not possible to set the orignial menu and original styles without using ATL or MFC?
|
|
|
|
|
Please don't crosspost
I certainly don't say that. The CFullScreenImpl::SetFullScreen(bool bFullScreen) code resolves to Win32 API calls.
cheers,
AR
When the wise (person) points at the moon the fool looks at the finger (Chinese proverb)
|
|
|
|
|
Does anyone know where to find Standard MS Terminology Translations between English and Dutch. for Instance: File<->Bestand, YES<-> Ja,
No<-->Nee, Cancel<->Anuleren.
Bram van Kampen
|
|
|
|
|
How about installing a Dutch version of MS Office?
Or, even simpler, looking at Google Docs?
BTW: Cancel -> Annuleren.
|
|
|
|
|
Hi,
Luc Pattyn wrote: How about installing a Dutch version of MS Office?
Never thought of that one. You may be more familiar with those issues in Belgium. I am dutch by birth, (Delft), but have lived in Ireland since 1980. Home now for my father's 86th birthday, and realise for the first time, that in this localisation even the names of the windows menu's change. Never knew that that was the case. (My spelling of Dutch also slipped in the last 30 years. (Anuleren<-->Annuleren) but what I see now frightens me! Nothing looks familiar anymore).
Luc Pattyn wrote: Or, even simpler, looking at Google Docs?
Never tried that either, The issue is to do things in the 'Standard'Microsoft way.
I also keep hitting wrong keys because the keyboard has keys in different places, and generally, reacts different to do things in the different locality. It types a ç when I want a 'c' etc.
Thanks a lot,
Bram van Kampen
|
|
|
|
|
It becomes really frightening when you try to automate stuff by sending ALT+letter to some window; the letter depends on the language, ALT+F for File may well become ALT+B for Bestand.
As I develop on English systems but several of my customers use Dutch systems, my code often supports both (without going the official globalization/localization way).
|
|
|
|
|
Since you live in the US, you may not be aware of this: a lot of software products exist in a couple of versions, including a "domestic" version (US English only), and an "International" version which supports a number of languages, selectable either at install-time or at run-time. So you could look for one of those and change the setting.
AFAIK in Europe Windows itself comes in country-specific packages, so in the Netherlands that would be Dutch only.
FWIW: I always buy English software, so I might be no great help as far as Dutch GUI texts go!
|
|
|
|
|
Hi,
Luc Pattyn wrote: Since you live in the US, you may not be aware of this: a lot of software products exist in a couple of versions, including a "domestic" version (US English only), and an "International" version which supports a number of languages, selectable either at install-time or at run-time. So you could look for one of those and change the setting.
AFAIK in Europe Windows itself comes in country-specific packages, so in the Netherlands that would be Dutch only.
FWIW: I always buy English software, so I might be no great help as far as Dutch GUI texts go!
Well, Actually, I do NOT live in the USA, I live in Newry in Northern Ireland.
Continue in 'The Lounge'.
Bram van Kampen
|
|
|
|
|
Sorry, my mistake. Europe should be sleeping right now...
|
|
|
|
|
Is there any library in C for Linux to get gpu information for example BIOS Verison DigitalID...
|
|
|
|
|
Hello,
When I tried to buid a Visual C++ project downloaded from CodeProject website, I got many errors in the style of "MSVCRT.lib(MSVCR90.dll) : error LNK2005: _atoi already defined in libcmt.lib(atox.obj)". I am trying to bulid MFC and Visual C++ runtime libraries in static form. However I have no problem when building for shared dll for both mfc and c++ runtime libraries.
In another project, there's another problem: I cannot tell the compiler do not support for UNICODE i.e. UNICODE is always "defined" even when I have "Use Multi-Byte Character Set" selected from the general configuration. Also there is no UNICODE defined in preprocessor definitions in Project Property.
Regards,
Real Eyes Realize Real Lies.
|
|
|
|
|
Hello,
Can Win32 Exe export functions just like Win32 DLL do. If yes then, I'll parse that PE and extract all signatures of those exports from export table.
I need to call function of Win32 Exe dynamically(On run time I will choice which function I'll choose, and for this I need address and parameters...parameters I will pass it on run time and address I 'll need).
I will use LoadLibraryEx and will call functions using GetProcAddress routine.
Suggestions and recommendations?
Regards
Muhammad Usman Khalil
|
|
|
|
|
Yes, exporting and importing functions from / to an EXE file is exactly like it is for a DLL file.
|
|
|
|
|
As Gwenio said you can export from an EXE and call LoadLibrary on it just like a DLL.
But the thing to remember here is that when you call LoadLibrary on an EXE, the code in the EXE will be mapped to the calling process and will not be a separate process like when you execute the EXE.
|
|
|
|
|
What about GetProcAddress?
Will it return valid functional addresses which were exported by that EXE?
More over all these exported functions will be available in export table?
|
|
|
|
|
|
I know about PE file format.
But the thing is PE(Exe) don't contain any export directories and export tables at all for their exports. I think I need to parse .text(Executable code section)for getting the Win32 EXE functions.
as converting Win32 Exe to DLL also not an easy task at all.
Regards
Usman
|
|
|
|
|
I think , it will be better to convert it to dll rather than exporting from the exe. It is rare scenario, which i dont like.
Величие не Бога может быть недооценена.
|
|
|
|
|
glitteringsound wrote: What about GetProcAddress?
Will it return valid functional addresses which were exported by that EXE?
Yes it will. But make sure the function is exported using __declspec(dllexport) or a .DEF file.
glitteringsound wrote: More over all these exported functions will be available in export table?
Yes.
|
|
|
|
|
still after adding __declspec(dllexport) and make all functions of Exe export table, I am not getting valid address
its just throwing again 0x00000 i.e NULL pointer.
typedef (int)(FUNCTION*)(int,int)
FUNCTION fn;
hModule = (HMODULE)LoadLibraryEx((LPCSTR)strexeModule.c_str(),NULL,DONT_RESOLVE_DLL_REFERENCES);
FUNCTION fnPtr = (FUNCTION)::GetProcAddress(hModule,(LPCSTR)strModuleName.c_str());
fn is 0x00000 and in turn expected runtime exception occuring...
modified on Friday, March 19, 2010 6:59 AM
|
|
|
|
|
The function declaration should look something like -
extern "C" __declspec(dllexport) int Func(int, int)
|
|
|
|
|
thnx now its working..
the problem was __stdcall there and extern "C" was'nt there.
|
|
|
|
|
i have localized my application.initially i was loading popup menu as
CMenu popupmenu.loadmenu(IDR_MENU1);
but for localization i have now this
HMENU hmenu2=LoadMenu(hinstance,MAKEINTRESOURCE(IDR_MENU1));
popupmenu.FromHandle(hmenu2);
which is giving access violation exception.what is wrong?
|
|
|
|
|
Check the return value of LoadMenu() function. You can use GetLastError() function to know what exactly went wrong.
|
|
|
|
|
Use LoadMenuIndirect function and specify your menu id ( localized version )in the template parameter
HTH
|
|
|
|