|
Ok, ok. So I find it more intuitive
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"
|
|
|
|
|
and I for one, will defend your right to say so.
In my day, of course, one would have done a shift operation (or was that a rotate left? Ah, that's why I've stopped writing assembly code ) and tested the carry flag...
Steve S
|
|
|
|
|
Steve S wrote:
In my day, of course, one would have done a shift operation (or was that a rotate left?
Either one would work, as long as you used a 16-bit shift
BTW, what do you mean your day?? I'm 23, and still write assembler :P
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"
|
|
|
|
|
But you are young and think it is cool to do ASM.
Back in OUR day we had to.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Tim Smith wrote:
you are young and think it is cool to do ASM.
Wrong. I do VC++ mainly, but I also do a lot of embedded programming - not much choice there...
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"
|
|
|
|
|
Ah. Embedded programming. Fitting lots of functionality into a small device (in terms of memory and sometimes processor speed).
Imagine having to do that *all* the time, when 32Kb was expensive, and mass-storage meant paper-tape...
Of course, it meant viruses were easier to spot - if your executable size went up more than a few bytes, it probably wouldn't run anymore;P
Steve S
|
|
|
|
|
the & operator compares each bit of both operands returning 1 only if both are 1.
(1 & 1) = 1
(1 & 0) = 0
(0 & 1) = 0
(0 & 0) = 0
(001101 & 101011) = 001001
this way you know weather a bit has been set or not.
|
|
|
|
|
in VC++.Net's class view, how come you can't just right click on a function to delete it?
overall, i am finding that VC++.Net is not as hot as it cracked up to be.
going back to vc++6
|
|
|
|
|
closecall wrote:
how come you can't just right click on a function to delete it?
I guess it [class view] is not really smart. I never really thought about that, but it would be nice if you could.
Happy Programming!
WWW::CodeProject::BNEACETP
|
|
|
|
|
I think VC6 provieds this feature.
Toughest Steel Comes From Hottest Furnance
|
|
|
|
|
Mr.Prakash wrote:
I think VC6 provieds this feature.
It does. I wonder why MSFT removed it in VC.NET?
Happy Programming!
WWW::CodeProject::BNEACETP
|
|
|
|
|
I have creaed an exe in VB.
I am developing one application in VC++ (NON MFC)
This is what i need,
I have a Menu in VC++ where on clicking that menu i need to execute the exe which is in same application folder.
I am not strong in Vc++ interface designing and so i am trying this method , for there is no any link between my application in vc++ and the VB exe which i want to show to the user.Merely it just display things and i feel i can put this interface in a grand manner in VB than Vc++ .
I tried to add a VB active X control in Vc++ but results are negative and i dont get any help from any forum or from MSDN .
SO i need your help .
Thanks in advance
with regards
vimal
|
|
|
|
|
I think what you want to look at is ShellExecute().
Artificial intelligence is no match for natural
stupidity.
|
|
|
|
|
Hi Guys,
I'm a VC++6 programmer and using SQl Server for my database. I need to use MSMQ to solve my problem regarding real time saving of data to SQL Server. Guys, I need help if anyone knows how to activate MSMQ in the Win2000 server.
Thanks in Advance !
Mar
Mar Solero Jr.
|
|
|
|
|
I disabled my edit box in my dialog but i wish to enable it later on when a check box is checked. How do i code it?
i tried:
if(m_check==TRUE){
m_edit.EnableWindow(TRUE)}
but cannot work.
|
|
|
|
|
Remember to call UpdateData() first so that m_check contains the current status of the check box.
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! I have written an app that is a dialog with some standard controls. I have put some accelerator shortcuts on some of the buttons by adding a & in the text.
When I start the dialog everything is fine. If I press '1' nothing happens, but 'alt + 1' does the accelerator for button 1. The problem is that then if I hit '2' the button 2 is actioned, even thought I am not holding Alt any more.
Alt doesn't work as a toggle either, once it has been hit it appears to be always on.
I use GetAsyncKeyState(VK_MENU) in a few places. Should I be changing any settings there. I have not done anything to get accelerator keys but adding the & in the button text. Can anyone tell me what I am doing wrong?
Cheers
Dom
|
|
|
|
|
Hi! This was actually me posting but I wasn't logged on at the time. Could someone please help me out with what might be causing this?
Cheers
Dom
|
|
|
|
|
im developing a windows service and i need to launch an application but i launch it but it doesnt show it the service is set as interactive with desktop.
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
[^]
|
|
|
|
|
|
|
Hello,
I would like to print to the printer from my developing application, but I don't want to use any of my existing views because they're not printer formatted (I'd like to print a report style.). I have read about printing but it appears that all the printing support functions are tied to my existing CView (also, the class wizard adds them to my CView).
How should I print to the printer using a unique view so that the user never sees this new view on the screen?
thanks! JennyP
|
|
|
|
|
Do you need print preview ?
If you do, the situation gets more complicated, as all previewing support for MFC is tightly linked to the view architecture.
But if you don't, then you can simply enumerate the available printers, create a compatible DC with any one of them, then paint your printing onto the DC and send it over to the printer. The printer driver will worry about the rest. DCs created for printers are automatically matched to the printer's color, dimension and other settings, making it pretty straightforward procedure to print with them.
I suggest dwelving into this[^] and this[^] articles in the MSDN Library. First one handles the usage of a custom view for print preview/printing and the next one shows a simple code example to directly use the printer DC.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Hi all,
Is there anyway to feeds data entered in an MFC application to a nicely formatted form in MS Word? In another word, can I take data in the edit boxes and fill in the corresponding fields in MS Word?
Thank you for your help!
|
|
|
|
|
You can do this by using the Word automation com objects.
onwards and upwards...
|
|
|
|