|
Is it possible to build a C++ Windows Forms application using form designer in VS .NET 2003 and use it on a system which does not have .NET framework installed?
Thanks!
|
|
|
|
|
Ciprian Cana wrote: Is it possible to build a C++ Windows Forms application using form designer in VS .NET 2003 and use it on a system which does not have .NET framework installed?
No, it its not.
Windows Forms is the morale equivalent to the WIN32/MFC API in .NET.
You get the stuff behind the scenes only by installing the .NET Framework - which you are allowed to redistribute.
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
I created a menu and accelerator keys but these(accelerator keys) are not working when I am operating thru key board.
please tell me the reason why? and how can I overcome the problem?
chakit
|
|
|
|
|
If your working within MFC, you have to make sure that your accelerator table ID matches that of your document resource id, the same way you have to for the menu and doducment description string
IDS_MYDOCTYPE, shoulf have an entry for string/menu and accelerator table.
If your working in a CDIaoog derived class I think you need to load the accelerator yourself and check to see whether it should be used yourself in an override of the PretranslateMessage using TranslateAccelerator fucntion.
If you vote me down, my score will only get lower
|
|
|
|
|
In the 16Bit days you could easily access the video ram B800:0000 with far pointers. "Far" is now obsolete since all pointers are 32Bit ones.
How can I access B800:0000 in a console application now ?
In 16Bit days this worked:
unsigned far int Videospeicher = 0xB8000000;
unsigned far int *pVideoPointer;
pVideoPointer = ( unsigned far int ) Videospeicher;
for( int i = 0; i < 20; i++)
{
*pVideoPointer++ = 0x4E41;
}
-- modified at 4:04 Friday 11th November, 2005
|
|
|
|
|
AFAIK, you can't. Windows is an OS with Virtual Memory support, which means that 0xB8000000 doesn't represent the physical memory at that address. What's more, if you try to read/write to that memory location, you'll get Access Violation errors because Windows detects that you're trying to use memory which has not been mapped.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Kamann wrote: In the 16Bit days you could easily access the video ram B800:0000 with far pointers.
One of my favorite parts of DOS programming was the ability to write directly to video memory.
Have you considered using the console API for this?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
I wrote an entire UI library using direct video memory access. Exploding windows, SaveScreen/RestoreScreen, TextOut.. etc. Piece of cake and was it FAST!
onwards and upwards...
|
|
|
|
|
I want to hook the Calculator program anad want tok know which button is clicked. I tried to get the caption of button with GetWindowText function. it doesn't work for buttons. Also Spy++ Find Window utility does not find the captions of buttons, only it finds the class "Button".
why is it so? isnt there a way to know yhe caption of the button clicked?
please help me.
Elif (Erkul) Ceylan
|
|
|
|
|
You will probably find that these buttons do not have any caption text associated with them as they are bitmap buttons.
If you need to work out which buttons are being pressed, use the button ctrl Id, (GetDlgCtrlId())
If you vote me down, my score will only get lower
|
|
|
|
|
Merhaba Elif Hanim,
Niye buttonun captionunu alamadiginizi anlamadim. Mesajiniz post edileli bayagi olmus ama asagidaki kod calisiyor. Umarim hala isinize yarar:
void CTrialView::OnBnClickedButton1()
{
CString szString;
CButton *pButton;
pButton = (CButton*)GetDlgItem(IDC_BUTTON1);
pButton->GetWindowText(szString);
AfxMessageBox(szString);
}
Hakan YAMANYAR
|
|
|
|
|
Hi everybody,
I'm building a program that catch messages from keyboard and mouse, like Spy++ in VC++ (The program is a dialog-based program using Hook technique). I've encoutered a problem that I can't get messages if working outside my application's window. It means if I do anything outside my application dialog, I can't catch the messages. Can anyone tell me how to get windows handler so that I can catch messages from other applications'widows running at the same time with my application? Thank you very much!
Best regards!
|
|
|
|
|
0212319 wrote: I've encoutered a problem that I can't get messages if working outside my application's window. It means if I do anything outside my application dialog, I can't catch the messages.
For Catching Window Message of Other Message you have to create global hook dll :-
here is an example:-
http://codeproject.com/dll/hooks.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
In addition to Alok's suggestion, you might also look into SetCapture() .
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
I got a sample visual c++ program from disk.I set some breakpoint in the application ,but when i debug this application,I found that the breakpoint is invalid and the breakpoint is removed in the debugging process.Why and How to fix this problem?
Thank you for your answer!
sude
|
|
|
|
|
ONLY TWO THINGS ARE RESPONSIBLE
CASE 1
You have placed a break point in loop in which control is not going;
CASE 2
You have placed a breakpoint inside dll;
|| ART OF LIVING ||
|
|
|
|
|
you let me know what exactly you have done i will tell you solution
|| ART OF LIVING ||
|
|
|
|
|
shivditya wrote: CASE 2
You have placed a breakpoint inside dll;
Hello Buddy, can you throw more light on this statement. how come breakpoint become invalid in DLL....
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
If option is not set on debug the dll obviously break point becomes invalid. Try doing it
|| ART OF LIVING ||
|
|
|
|
|
shivditya wrote: Try doing it
Is that option is set by default?!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
This is because the debugger cannot find the symbols of the DLL they are trying to set the breakpoint in.
They need to goto the Project settins, debug tab and select Additional DLLs in the combo box, you can then specify additional DLLs which will have symbols loaded for them at debug startup. this allows breakpoints to be set in loaded DLLs of a project.
Note: This was written with VC6 in mind
If you vote me down, my score will only get lower
|
|
|
|
|
Roger Allen wrote: They need to goto the Project settins, debug tab and select Additional DLLs in the combo box, you can then specify additional DLLs which will have symbols loaded for them at debug startup. this allows breakpoints to be set in loaded DLLs of a project.
That's a Intresting fact
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Roger Allen wrote: Note: This was written with VC6 in mind
Exactly. With VC++ 7+ you don't have to worry about it.
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
|
|
|
|
|
What often happens is that the source code is not the same version as the code in the application. (is the source compiled into a static link library?)
Find out where you should put the SLL and relink your app.
sude wrote: Thank you for your answer!
You're welcome
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Did not find a forum for an IDE question... so...
(If there is a better place to post -- let me know.)
Problem:
I make NO CHANGE to any project in the solution, ask for a build and
all projects checked in the solution configuration are compiled. Further,
If I build (all recompile and link) then run a debug test, I always
get the message that the project is out of date and needs to be recompiled.
Please:
What option, where, to get a proper build only recompiles if necessary?
(I have hunted and read docs and find no answer.)
Comment:
I had to reformat and reload recently. My IDE use to work correctly!
WedgeSoft
-- modified at 1:23 Friday 11th November, 2005
|
|
|
|