|
|
Up |
|
|
  |
Author: Henry TownsendHenry Townsend
Date: Jan 14, 2008 10:52
I'm converting a piece of working C code from VS 2003 to VS 2005 and
have encountered a failure which just seems impossible to me. I've
scrutinized every line here and it's just not wrong. There's a
trimmed-down test case below and I'd be very grateful if someone could
point out my mistake.
Thanks in advance,
HT
BUILD SEQUENCE:
cl /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /MTd /W3 /nologo /c /Zi vsn.c
link vsn.obj /INCREMENTAL:no /NOLOGO /MANIFEST
/MANIFESTFILE:" vsn.exe.intermediate.manifest" /DEBUG /SUBSYSTEM:CONSOLE
/MACHINE:X86
CODE (vsn.c)
#include "io.h"
#include "stdio.h"
#include "stdarg.h"
#include "string.h"
#include "stdlib.h"
#define SEP ','
|
| Show full article (1.31Kb) |
|
| |
2 Comments |
|
  |
Author: thatwasfunnythatwasfunny
Date: Jan 14, 2008 09:53
Hi there,
As the title says I am trying to add a spin control to and edit
control. How do I do this using WinAPI? Thanks.
|
| |
|
| |
1 Comment |
|
  |
Author: Bruce VarleyBruce Varley
Date: Jan 14, 2008 05:41
Hi, I'm basing a MIDI data processor on a sample program MIDIMON in MSDN.
It's a fairly basic music datalogger, collecting incoming MIDI messages with
a 'low level callback function', storing them in a buffer then sending a
message to the main function. The callback function is called CALLBACK.C and
is also in MSDN. I've reproduced an extract from the summary comment lines
at the head of the code (acknowledgements to MSDN).
* The input handler takes incoming
* MIDI events and places them in the circular input buffer. It then
* notifies the application by posting a MM_MIDIINPUT message.
*
* This function is accessed at interrupt time, so it should be as
* fast and efficient as possible. You can't make any
* Windows calls here, except PostMessage().
* Because this module contains a low-level callback function,
* this entire module must reside in a FIXED code segment in a DLL.
* The data segment must be FIXED as well, since it accessed by
* the callback.
|
| Show full article (1.30Kb) |
|
1 Comment |
|
  |
Author: FrancisFrancis
Date: Jan 14, 2008 04:53
As some may have noticed in other posts, I have been trying to develop
an Internet Explorer toolbar. Thanks to the help of newsgroups,
internet articles, google codesearch I have managed to create
something that doesn't look too bad. However, I am starting to wonder
if I am nothing making things too difficult for myself by using the
standard toolbar functionality provided by Win32 API.
Does anyone know how the Windows Live, Yahoo, Google are made? They
contain elements that seem hard to add to a regular toolbar, or even
windows application. For example the search box can be resized with a
vertical slider. Is this possible with a normal toolbar? And also, how
can a search box contain a drop down menu (for selecting the search
engine, or selecting site to search), inside the edit field?
I wonder if this is toolbar, or simply a custom window containing
mostly owner drawn children. Could someone enlighten me?
Francis
|
| |
|
1 Comment |
|
  |
Author: FrancisFrancis
Date: Jan 14, 2008 04:36
Ok, it works a little. I created a second toolbar as a child control
of the first toolbar. However, the area occupied by the toolbar is
black. Button highlighting works though (shows a grey empty button).
The icons on the first toolbar are not harmed and buttons work
perfectly.
Do I need to override WM_PAINT messages or something in order to make
rendering for the second toolbar work?
|
| |
|
10 Comments |
|
  |
Author: RLRL
Date: Jan 14, 2008 02:28
hi,
i would like to get the handle or position of the (child) window/
control which currently has the keyboard cursor (not the mouse
cursor). this should work for any window and not just my own
application. i could use a global hook but before i go that route i
would like to know whether there is a simpler function similar to
GetForegroundWindow().
thanks for your help,
reto
http://www.retolaemmler.com
|
| |
|
2 Comments |
|
  |
|
|
  |
Author: Jamie OJamie O
Date: Jan 14, 2008 00:06
Hi, i used to do windows programming back in the days of windows 3.1 ,
95 and then 98 using Borland C/C++ 5.02 and its development
environment. I used straight C (and later c++ without frameworks) and
the Win32 environment to do my work.
Now i want to get back into the game, im looking around but am not
sure how to proceed. Firstly what development environments are Borland
and Microsoft pushing and can anyone reccomened one over the other.
And will i nede to learn Delphi for Borland or something else for
Microsoft to compete and programme effectively. I would prefer to use
C/C++ with Win32 and maybe some framework if absolutely needed.
Looking for some direction
Any help would be greatfully appreciated.
Cheers
Jamie
|
| |
|
3 Comments |
|
|
|
|