|
No, you can't. VC6 does not support .NET.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
FYI, I am running Win 98 with Visual C++ 6.0.
I am writing a WIN32 Application that has 3 edit boxes with 3 static text controls. I want the user to be able to enter the keystroke "ALT-1" and be placed in edit in the first box, etc. I am creating all my windows in the WinMain function. Everything works ok when the window is displayed initially, but if I "ALT-TAB" to a different window or minimize the window then the "ALT-1" key sequence stops working. The same problem exists for the Menu shortcuts ("ALT+F" for example)
I looked at handling the WM_CREATE message but I am not sure that will really resolve my problem because it looks like WM_CREATE is handled even before WinMain is executed? I am pretty sure my problem is because I am creating all my windows in WinMain but I am unclear/uncertain what action I should take. I also don't know exactly what I should look for/search on at the MSDN website. I know there is something I am doing wrong I just don't know what it is....
Any ideas/suggesions are appreciated
Thanks!
|
|
|
|
|
|
Mnemonics and hot keys are not the smae thing. You need to call RegisterHotKey() if you want ALT+1 to be seen by your applicaton even if it does not have focus.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
Thanks! So if I don't want ALT+1 to be used/see by my app when it does not have the focus what do I need to do? Should I be using an Accelerator Table? I thought accelerator tables were only for shorcut keys (keys that would correspond to a menu option (CTRL+O for Open) can they also be used for things other than menu options? I am confused by the terms shortcut keys, accelerators and Mnenmonics. Are they the same thing or are there differences?
Thanks for your help!
|
|
|
|
|
RobertW100 wrote: I am confused by the terms shortcut keys, accelerators and Mnenmonics. Are they the same thing or are there differences?
An accelerator is a keystroke or combination of keystrokes that generates a WM_COMMAND or WM_SYSCOMMAND message. Although accelerators typically generate commands that exist as menu items, they can also generate commands that have no equivalent menu items.
A mnemonic is a selected letter or digit in the label of a button or in the text of a static control. The system moves the input focus to the control associated with the mnemonic whenever the user either presses the key that corresponds to the mnemonic or presses this key and the ALT key in combination. Mnemonics provide a quick way for the user to move to a specified control by using the keyboard.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
Hi,
I want to transfer an array from an ActiveX Control using a method. I have figured out that I have to set up a UDT, but I'm unsure on how to do this. I am writing the ActiveX in MFC C++ .NET
If I have the following struct:
typedef struct testArgs {
int test1;
int test2;
BYTE * test3; // This is a array
} test;
How can I get this to so that it is accessible in say Visual Basic .NET.
Any help would be greatly appreciated.
|
|
|
|
|
Check out varient data type and safearrays.
-Prakash
|
|
|
|
|
I'm in need of incorporating some mpeg1 splitter to my appliction. If any body knows where can I start to get some information Will be appreciated.
I have splitt the mpeg1 file as a binary file some times it works fine but some times I ha sprolem with the way color is restore at the play time.
Hector Maturana
|
|
|
|
|
Hi,
I'm currently doing a university project for a resistor value selector program.
For this project, I have the program load in a series of calculated values into an array's elements. I now require my program to find the element of the array that has the smallest value and set an integer 'a' with the number of the element as opposed to the value it holds i.e.
SEL[0] = 2.3
SEL[1] = 3.4
SEL[2] = 0.3
I need the integer a to equal 2 not 0.3.
Any help would be great thanks!
|
|
|
|
|
Kevin
This is a logical question!!! U can easily find better logic than this!!!
int MinValue = SEL[0];
int ArrayVal = 0;
for (int i= 0; i < ARRAY_SIZE; i++)
{
if ( SEL[i] < MinValue )
{
ArrayVal = i;
}
}
|
|
|
|
|
Sort the array, then set a to 0 .
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
Hi,
I want to insert an icon into my application's resource, but every way I do it, it comes out ugly.
I extracted an icon from shell32.dll, and tried to import it into the icon editor of VC++ .NET 2003. However, the 32x32 32bit icon has an ugly black mask around it. If I open the same icon in Axialis IconWorkshop, the icon looks fine.
How would I normally get a 32bit icon in my resource, without having VC++ messing it up?
|
|
|
|
|
You can insert any icon you like into your resource file, but don't try to open or edit it inside Visual Studio because it will screw it up. The icon editor only supports up to 256 colour icons. The icon will still work correctly in your application if you don't edit it inside Visual Studio.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hi all,
<asp.net>
I am displaying a image using img tag, i need to edit the image like drawing on the image and saving the edited image.How could i edit and save the image using asp.net.
Regards,
Krish
|
|
|
|
|
You need to write an image editor as an embedded control in IE, then you need to write a web service to copy the images down to the editor, and to send them back up to save at the server.
A lot of work.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hello
I’m starting working VC;I'm trying to make an explorer application (dialog based), I' ve been revising some articles about the use of tree, list and combo controls, I' ve alredy made the explorer but I don't know how to make a filter to select from a series of diferents formats, and links between the controls so that in the combo you can select an extension, after looking a file, and in the list be shown the documents corresponding to this formats.
please if you can help me I really appreciate it a lot (denishernandezpacheco@hotmail.com)
Thanks denis
|
|
|
|
|
When you populate the control with the names of files, are you using FindFirstFile() ?
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
Hi, how do you go about viewing the source code in a program that I have downloaded?
|
|
|
|
|
adamlowery wrote: Hi, how do you go about viewing the source code in a program that I have downloaded?
Download the source code if it is available.
If its a java program, there are many decompilers that generates the java code out of the byte code.
-Prakash
|
|
|
|
|
Thanks for that. Much appreciated.
|
|
|
|
|
Hi!
What I want to do is to save many (70k+) rtf strings into one file. The problem is that rtf uses \r\n, which causes that only a part of a string is read from the file when I try to load it.
I'd like to avoid reading/writing fixed length block for each string since their length varies from 50 to 1200 characters (plain text, make it x3 in rtf).
If anybody has a way of doing it without saving as text, reading line-by-line and checking whenever it is a predefined separator I'd really appreciate it.
No .Net please (I’m already feeling bad about using MFC and I think I’ll have to send some angry emails to billg@microsoft.com just to feel better).
this:
CStdioFileEx input; //CStdioFile-derived class for Unicode/Multibyte
CStringW theString, temp;
input.open (_T("somefile.txt"),CFile::modeRead);
input.ReadString(temp);
while(theString != definedSeparator)
{
theString.Append(temp);
input.ReadString(temp);
}
just looks bad.
Maciej Lisiewski
"The day that Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners"
-- modified at 8:52 Sunday 8th January, 2006
|
|
|
|
|
Hi,
i need to read XML file in my Dialog window.
how can i do this?
|
|
|
|
|
checkout MSXML set of apis to read XML document.
-Prakash
|
|
|
|
|
In case you don't want to use MSXML, have a look at the TinyXML library:
http://www.grinninglizard.com/tinyxml/index.html[^]
Best regards
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|