|
Try C:\Program Files\Microsoft Visual Studio\Common\IDE .
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
this one worked
ok is there a way i could make different ones a different color
like i have
BOOL
VOID
and
or
and i set user types to green
is there a way i could set
and
or
to show up another color instead of green?
like something i could add to the right of the line like
and COLOR #FF00FF
or something like that?
|
|
|
|
|
Tools | Options | Format
Category = Source Windows
Colors = User defined keywords
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
that changes all of them to one color, i want to know if there is a way i could set them to be different colors
for example i defined
VOID
BOOL
and
or
as user types,
is there a way i could make "VOID" and "BOOL" be green while "and" and "or" will be a different color like red
|
|
|
|
|
Sorry, I replied in haste. Don't know how you'd go about doing that.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
1. When I create a windows program and don't have it in focus it seems to end proccessing. This is where I place my code:
<br />
while (GetMessage(&msg, NULL, 0, 0)) <br />
{<br />
if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) <br />
{<br />
TranslateMessage(&msg);<br />
DispatchMessage(&msg);<br />
}<br />
}<br />
Is there anyway I can make sure that my program is being run all the time, even if it's not in focus?
2. My second question is about simulating the keyboard, I know about PostMessage(). However, with this function I must post
a key press to a certain window, what I want to do is to simulate a keypress to windows.
//Ylis
|
|
|
|
|
The hidden application will receive system messages but not the windows messages... Key press are windows messages and u will get it only if that window is in focus.
I am sure, i guesss for your problem you need to implement a keyboard hook.
"When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)
|
|
|
|
|
oki, thx ![Smile | :)](https://www.codeproject.com/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
To simulate keyboard messages, I guess SendInput() would be a more appropriate option.
- Nirav
* Don't wish it was easier, wish you were better! *
|
|
|
|
|
Hello, I have a problem with IDirectSound8::SetCooperativeLevel.
The DirectX SDK tells that you have to call IDirectSound8::SetCooperativeLevel immediatly after creating a IDirectSound8 object.
the prototype of IDirectSound8::SetCooperativeLevel is:
HRESULT SetCooperativeLevel(
HWND hwnd,
DWORD dwLevel
);
My app framework doesn't have any window at the moment this function has to be called.
When I set hwnd to NULL, the function fails(E_INVALIDARG).
What should I use as hwnd here?
Thx
Don't try it, just do it! ![Wink | ;-)](https://www.codeproject.com/script/Forums/Images/smiley_wink.gif)
|
|
|
|
|
That means you really need to create a window before you call that function... I have see few DirectX samples and every one of them created a window before it is called. So i think its a compulsary option.
"When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)
|
|
|
|
|
Hi again, my application doesn't close anymore after the execution of:
if( FAILED( DirectSoundCreate8( NULL, &gpDSP, NULL ) ) )
return FALSE;
before returning from main procedure i call gpDSP->Release(); , but after returning from main proc the app loops somehow through kernel32, ntdll and the kernel.
what is wrong with this?
Don't try it, just do it! ![Wink | ;-)](https://www.codeproject.com/script/Forums/Images/smiley_wink.gif)
|
|
|
|
|
I am studying for software engineer, but I am not (yet) very skilled. A relative asked me if I could help him. He has an eyeproblem and has trouble locating the mousecursor in Windows. He works with Autocad where the position of the mousecurosr is shown by a big cross. So a horizontal line covering the whole width of the monitor at the y position of the cursor and a vertical line covering the whole height of the monitor at the x position of the mousecursor. So where the 2 lines intersect there is the mousecursor.
I want to make a program that runs on top of every other program in windows and shows that cross. I searched 'The code project' and found some interresting articles. Here http://www.codeproject.com/bitmap/DeskShoot.asp abhinaba describes a way to shoot hole at your windows desktop and all the running application. The trouble with this is that 1 time a copy of the desktop is taken and the holes are painted on that copy and shown on top of everything else, so the programs that are running can be accessed until you close the shooting program.
My program should show the cross and the mouseposition on top of everything, but other programs must be able to get focus.
I already tried something with getDC. I am able to get a copy of the desktop, can draw on ii and also show it, but than the problem is that when I get the desktop for the second time the old cross pointing at the old position of the mousecursor I also visible. So eventually the screen will be filled with multiple crosses.
Is it actually possible to draw dynamically over the whole desktop with keeping the functionality to acces all the running programs? Am I looking in the right direction and can somebody help me further?
Oh by the way using a bigger mousecursor is not an option. Or maybe somebody knows a program that give this functionality?
English ins't my native language, so sorry for that
|
|
|
|
|
Instead of doing that i Guess you can increase the size of the Mouse cursor by selecting appropriate cursor and enable trailing mouse , which will certainly improve the visiblity of the cursor.
Hope this solves ur problem.
"When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)
|
|
|
|
|
Yes I know this option, but it isn't sufficient. And also when you don't move the mouse there isn't a trail and the relative really asked a solution like the cross in Autocad. But thanks for your suggestion.
I have searched sites for visually impaired and option mentioned there do not help much. Many site don't come further then sugesting a bigger cursor and the trailing thing.
|
|
|
|
|
Tim Schuhmacher wrote:
Many site don't come further then sugesting a bigger cursor and the trailing thing.
This is because the operation system is supporting it.. Your solution sounds very good indeed. How about hooking the mouse events and draw the cursor of the mouse? But I am not conviced that its really a good idea, the horizontal and vertical line will be over so many applications, dont know what will happen if a animation gif is over one of the line.
"When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)
|
|
|
|
|
I am going to try the possible solution Shog9 gave. But thanks any way for your help. When it is finished I will make it public. Others people with less vision might find i usefull also
|
|
|
|
|
It is possible to create a window that sits above all other windows, yet draws on only a portion of that area, and passes all input through to the windows behind it. Probably the easiest method is simply to create a window with a region that excludes most of the area (see: Guide to WIN32 Regions and Creating holes in a window). So, a window in the shape of a very thin cross, that moves with the mouse.
---
the work, which will become a new genre unto itself, will be called...
|
|
|
|
|
Thanks, that sounds like a good plan, I will defenitely try that.
|
|
|
|
|
We have a number of apps that valiantly attempts to re-use the same core code components on a mtriad of platforms, including but not limited to:
1) Desktop Windows (must use MFC for the user interface because it's a MDI app with pretty much every UI component you could imagine)
2) PocketPC 2002/3 on a PDA (must use MFC for the user interface because it's already part of PocketPC and not taking advantage of that fact would be a waste of available memory)
3) A custom compiled CE 2.12 kernel used on proprietary hardware (has no windows user interface, and therefore no interface code in it at all but still uses the same core code)
I need a set of type-safe collection classes and a version of CString that meet the following criteria:
1) Does not require/use MFC
2) Does not require/use STL
3) Supports unicode by default (because of CE)
4) Does not use/require exception handling
Are there any libraries available that meet all of the above criteria?
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
"You won't like me when I'm angry..." - Dr. Bruce Banner
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
Hmm... STL?
John Simmons / outlaw programmer wrote:
2) Does not require/use STL
D'oh!
Have you thought about just copying the relevant bits from MFC? AFAIK, there's not a lot to the collection / CString classes, and you could probably just remove the bits that depend on the rest of MFC (resource loading, etc.)
---
the work, which will become a new genre unto itself, will be called...
|
|
|
|
|
Or even better; copy the CString-class from WTL 3.x. Much less MFCishness to cut away I imagine.
--
Meine Welt ist monoton und minimal, doch ganz total!
|
|
|
|
|
I can not see the member variables of a control in VS2003. Although I can see all the member varibles of the all controls of all dialog classes using MS VC6 Class wizard. What kind of wizards are the VS2003 class wizards ? I can not do some of the nice things I did with the MS VC6 Classwizard ?
|
|
|
|
|
To add: Right-click on control, select "Add Variable".
To view: Read the DoDataExchange() method of your dialog class.
---
the work, which will become a new genre unto itself, will be called...
|
|
|
|
|
Amen.
"When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)
|
|
|
|