|
|
Up |
|
|
  |
Author: Muhammad Farooq-i-AzamMuhammad Farooq-i-Azam
Date: May 9, 2007 23:08
On May 9, 7:44 pm, "[Jongware]" wrote:
>>* [Jongware]:
>>>> How do I display equivalent of "Hello World" in a language like Urdu,
>>>> Arabic, etc. I would like to do this using simple C language.
>
>>>> Can this [i.e. other language characters] be displayed on the command
>>>> line or console window as well?
>
>>> No. The console is restricted to plain old ASCII code pages
>
>> That is incorrect.
> ...
|
| Show full article (2.72Kb) |
|
| |
no comments
|
|
  |
Author: Alex VinokurAlex Vinokur
Date: May 9, 2007 21:42
I need
* OBJS1 to be compiled with COMPFLAGS1 only,
* OBJS2 to be compiled with COMPFLAGS2 only.
This Makefile works fine with UNIX make but nmake detects errors
--- Makefile ---
CC = gcc
LD = $(CC)
RM = rm
COMPFLAGS1 = -I.
COMPFLAGS2 = -I..
CFLAGS =
TARGET = target.exe
OBJS1 = \
foo1.o \
foo2.o
OBJS2 = \
bar1.o \
bar2.o
|
| Show full article (0.97Kb) |
|
| |
no comments
|
|
  |
Author: SueSue
Date: May 9, 2007 19:17
Hi,
I want to prevent user from resizing the window if the window size not
in the range. The following is my code, I can see the message box. But
if I remove the messagebox and run, then when I try to resize the
window by dragging the border, it allow me to resize, the window
become bigger with some empty space fill in the enlarged part. Any
ideas? Thanks.
LRESULT CMyWnd::OnWindowPosChanging(UINT uMsg, WPARAM wParam, LPARAM
lParam, BOOL& bHandled)
{
// TODO: Add your message handler code here and/or call default
WINDOWPOS* pWndPos = (WINDOWPOS*)lParam;
//don't resize if window size not within range
if( pWndPos->cx < m_minWd || pWndPos->cx > m_maxWd
|| pWndPos->cy < m_minHt || pWndPos->cy > m_maxHt ) {
pWndPos->flags |= SWP_NOSIZE;
//::MessageBox(NULL, _T("here"), _T("here"), MB_OK);
}
|
| Show full article (0.89Kb) |
|
1 Comment |
|
  |
Author: aliostadaliostad
Date: May 9, 2007 16:49
Sorry again, when I changed the setting to MultiByte from Unicode it
compiled. What does it mean? Why cant I compile it with unicode
settings?
|
| |
|
no comments
|
|
  |
Author: aliostadaliostad
Date: May 9, 2007 16:38
Hi I am trying - trying hard! - to use CxImage to load an image. I
have added include files and also added the cximage.lib to linker
aditional dependencies and all paths are fine - I have double and
triple checked them.
Everything compiles except when I try to use constructor with a file
name or create an instance and then use Load to load an image file. My
code like this:
CxImage img(_T("c:\\a.jpg"),CXIMAGE_FORMAT_JPG);
or
CxImage img;
img.Load(_T("c:\\a.jpg"),CXIMAGE_FORMAT_JPG);
Comes back with this link error:
Error 2 error LNK2019: unresolved external symbol "public: __thiscall
CxImage::CxImage(wchar_t const *,unsigned long)" (??
0CxImage@@QAE@PB_WK@Z) referenced in function "public: void __thiscall
CFourierTranTestDlg::OnSize(unsigned int,int,int)" (?
OnSize@CFourierTranTestDlg@@QAEXIHH@Z) FourierTranTestDlg.obj
I am really baffled. Could you please help?
Many thanks in advance
|
| |
|
1 Comment |
|
  |
Author: gw7ribgw7rib
Date: May 9, 2007 14:18
On 9 May, 00:18, David Lowndes wrote:
>>When I press (or rather, when I release) the right mouse button some
>>rectangles appear on the screen, but they don't look very much like
>>the menu I was expecting,
>>...
>>if ((hmenuTrackPopup = LoadMenu(hInst, menuname)) == NULL)
>> return;
>
> Paul,
>
> Try adding this:
>
> HMENU hPop = GetSubMenu( hmenuTrackPopup, 0 );
>
> and use that popup menu subsequently with the TPM api.
>
> Dave
|
| Show full article (1.08Kb) |
|
no comments
|
|
  |
Author: kilik3000kilik3000
Date: May 9, 2007 08:05
How does win32 message propagation work?
>From playing with spy++ and winspector I think I get the concept that
there is hierarchy to window handles (parent/child etc). Everything
is a window.
What I don't understand is how a message either gets to or doesn't get
to a child.
Let's say there is a mouse move message sent by windows to my
application b/c I move the mouse. What is the progression from there?
So if we say I mouse move over a button on my form...how does it go
from windows to the form to the button and then result in say a
highlight effect on the button?
Any insight will be greatly appreciated.
-Thx
|
| |
|
1 Comment |
|
  |
Author: hconnellhconnell
Date: May 9, 2007 08:03
I have now changed the source code to Not to use BitBlt but use
ImageList_Draw instead with a set of
stock images - it now works a treat! I'll use ImageList_Draw in future
for this kind of work - thanks for your help again.
|
| |
|
no comments
|
|
  |
Author: Igor.JovanovskiIgor.Jovanovski
Date: May 9, 2007 07:52
We have a Credential Provider that allows a proprietery logon to
Vista. We would like to have monitoring on the smart card so that when
the user removes the card, the system could lock, log off, go to stand
by, hibernate or shut down.
Microsoft is doing that (for locking and log off only) with a service
that needs to be started on each client system.
For the purpose of that we developed a service of our own that will
monitor the smart card for removal and will get the reader name to be
monitored from the credential provider.
Now it is possible to put the system to stand by, hibernate or to shut
it down but the calls for locking:
bLocked = LockWorkStation();
and for log off:
bLogOff = ExitWindowsEx(EWX_LOGOFF | EWX_FORCE, 0);
|
| Show full article (1.89Kb) |
|
3 Comments |
|
  |
|
|
  |
Author: [Jongware][Jongware]
Date: May 9, 2007 07:44
>* [Jongware]:
>>> How do I display equivalent of "Hello World" in a language like Urdu,
>>> Arabic, etc. I would like to do this using simple C language.
>>>
>>> Can this [i.e. other language characters] be displayed on the command
>>> line or console window as well?
>>
>> No. The console is restricted to plain old ASCII code pages
>
> That is incorrect.
>
>
>>, and AFAIK there are no code pages with Arabic.
>
> That is incorrect, but you noted that yourself below.
> ...
|
| Show full article (2.05Kb) |
|
no comments
|
|
|
|
|
|
|