|
It works and I do appreciate the response, but its really slow.
I can add one variable and then click finish. And then I click
all that again and add another variable and click finish. Do you
know if the class wizard exists for visual studio 2005? Im hoping
it does exist.
Please, any response any one can give me will be greatly
appreciated.
Sincerely,
Danielle Brina (an overworked graduate student)
|
|
|
|
|
I sympathize! I usually end up adding them by hand. There is no snappy VS6 ClassWizard any more.
|
|
|
|
|
Nuts!
Two other quick questions.
How do you change the tab order? Sounds like a silly question, but
when I click on Tab Order from the menu, I can click on the items and
they start changing the tab order. But..... when I click on the
horizontal or vertical scroll to see the rest of the objects on the
screen and then start clicking the tab order again, the tab order
starts at 1 again. Is there another way to define the tab order?
There are more items on the screen than I can see so I have to scroll
to continue the tab order. I could do this with Visual Studio 6.
Also, if I compile an old program, which worked fine, I always get
errors surrounding:
#include <fstream.h>
If I comment it out, everything works fine. Why is that?
Please, any response you can give me will be greatly appreciated.
Sincerely,
Danielle Brina (an overworked graduate student)
|
|
|
|
|
To start changing tab order at a specified object press the shift key then left mouse click. Let go of the shift key and started clicking.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Is it possible to intercept the login dlg from a locked screen/computer? For a TabletPC application I'd like to change the way that a user logs back in when coming back from hibernate or a locked computer. If it's possible, even how they initially log in.
Which API functions should I be looking at?
|
|
|
|
|
This usually requires replacing msgina.dll.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
|
Sweeet! These links look much more promising than the original docs for GINA. Thanks.
|
|
|
|
|
Inherit CMyCDialog class in Class X (Class X : public CMyDialog)??. but the problem is the class X has been already inherited by the CMyDialog Call. so if do so, it'll become a cyclic inheritance. u cant do that. how to go about here?
scenario:
in Class X i have two methods
<br />
class X<br />
{<br />
SendData();<br />
ReceiveData();<br />
}<br />
In my CMyDialog, (which looks like class CMyDialod: public X )
i'd call in a button click,
<br />
void CMyDialog::OnClick()<br />
{<br />
this->SendData();<br />
}<br />
this works fine.
but when receiving , i want to display them in the CDialog. the function ReceiveData is a Thread. so in the middle of the thread, i need to update the status in the CDialog's textboxes.
in short, is it possible to access the members of the child class? or any direct access?
thanks,
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
You need to use virtual functions - a function that is defined in the base class, but implemented in the derived class, like so:
<br />
class X:<br />
{<br />
SendData();<br />
RecieveData();<br />
<br />
virtual void UpdateDialog(int message) = 0;
}<br />
<br />
X::RecieveData()<br />
{<br />
UpdateDialog();
}<br />
<br />
<br />
class CMyDialog : public X<br />
{<br />
virtual void UpdateDialog(int message);<br />
}<br />
<br />
CMyDialog::UpdateDialog(int message)<br />
{<br />
}<br />
--
Help me! I'm turning into a grapefruit!
Buzzwords!
|
|
|
|
|
i'll try this . thanks.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
You might have problem accessing the dialog window (in MFC) from another thread, so you have to use the HWND to directly access the control , or post (userdefined) message to the dialog window from the thread which will update the information.
-Prakash
|
|
|
|
|
yeaa.. this is another useful tip. thanks prakash.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
I agree with Mr. Prakash, this sounds like a clear case for sending messages.
take a look at this article. Message Management[^]
Using User-Interface Threads[^]
ZeePain! wrote: This seems like one of those programs that started small, grew incrementally, building internal pressure, and finally barfed all over its source code sneakers. Or something.
thedailywtf.com[^]
|
|
|
|
|
I'm trying to write a very time sensitive program so I need to make sure that the entire application receives the highest of priorities and that no background tasks are running. I tried using 'SetThreadPriority(hWnd,31);', but other tasks, processes, applications, etc still seem to run and interfere with the timing of my program. Is it possible to make my program such that it is the only task that is running on the computer? Thanks in advance for any help.
|
|
|
|
|
I think you could also try:
BOOL SetPriorityClass(HANDLE hProcess,DWORD dwPriorityClass);
But in my opinion, there is no way you could stop operating system processes from executing.
But boosting the priority to very high could easily hang the system...Oh I see that is exactly what you are trying to do, right?
this is this.
|
|
|
|
|
tonyro wrote: Is it possible to make my program such that it is the only task that is running on the computer?
I don't think so.there are many OS tasks that manage your system and you can not stop them , if you try to stop them (if you can!) the system may crash or go to an unstable condition.can you tell me the smallest unit of time you use in your program?
|
|
|
|
|
Thanks for your response. I'm trying to get all events in the program to be accurate down to the one millisecond scale.
|
|
|
|
|
Windows is NOT a real-time OS. So, the best you could hope for is around a 10-20 ms scale.
onwards and upwards...
|
|
|
|
|
Windows is not a real-time OS, It’s true! But there are techniques to satisfy timing constraints of a windows real-time application with 1 millisecond accuracy. Some of them may be complex and hard to implement but they are possible.
see this on MSDN: http://msdn.microsoft.com/library/en-us/dnxpembed/html/hardrealtime.asp[^]
-- modified at 0:47 Thursday 5th January, 2006
|
|
|
|
|
tonyro wrote: Is it possible to make my program such that it is the only task that is running on the computer?
Imagine if this were possible:
* How would the screen get drawn?
* How would the system read keyboard/mouse input?
* How would the system access the hard drive?
* How would the system manage the swap file?
Windows is the wrong OS for your task.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
Strange things are afoot at the U+004B U+20DD
|
|
|
|
|
This is why I continue to use Windows 98 on some systems and Exit to DOS, where I can control all of these functions. However, it is getting more and more difficult to maintain those machines. What modern OS would you recommend?
|
|
|
|
|
You can still run 98 on computers you can buy today. If 98 and DOS work for you, why change?
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
Magnae clunes mihi placent, nec possum de hac re mentiri.
|
|
|
|
|
http://www.sysinternals.com/Information/TipsAndTrivia.html Look for "Never-ending Quantum?".
NOTE: I only add this for interests sake. The users of you program will not thank you for disabling multitasking on his machine. Basically here's how to do it but by the way, don't do it. I haven't actually tried it myself, just came across it in my travels.
Steve
|
|
|
|
|
Hi everyone
I have some problem with fread and fwrite in VS2005 beta2
I have the following code, in it i generate a buffer and after assigning some values to it , i write it to a file , then i try to read it back to a new buffer which is not successful.
for variable bigVal=100 i get "k=100" for writing but for reading i get "k=77" , i would be pleased if someone can help me.
#include "stdafx.h"
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
typedef double dtype;
int _tmain(int argc, _TCHAR* argv[])
{
dtype *b;
int i,j,k;
int bigVal;
char filename[]="c:\\temp.data";
FILE *fp;
bigVal=100;
b=(dtype*) malloc(bigVal * sizeof(dtype));
for(i=0 ; i
|
|
|
|