|
Whats wrong with my code:
Control ^editText = gcnew frmChangeTxt::txtChangeText();<br />
this->lblText->Text = editText->Text;
I'm using it to try and access the text in text box 'txtChangText' from form 'frmChangeText' and make the label in the main form 'frmMain' that text from the textbox. I'm doing this from a button control in the mainform by the way.
If doing it this way isn't possible, can someone tell me the right way?
Thanks in advanced.
|
|
|
|
|
This doesn't look like VC++ code. Am I missing something?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
|
Hi All,
Seasons Greetings!!
Im Mirza Faizan, currently a trainee at ELECTRONICS AND RADAR DEVELOPMENT ESTABLISHMENT, DRDO, Bangalore. In my academic project, I have to develop a Device driver Hardware Acceptance Test for a communication card for Control and Display Unit of a RADAR. I have seen your project on www.codeproject.com, and immediatelt realized that you can be my help!! plz plz plz...
My problem is that I am developing GUI for the driver in VC++. And I am having trouble with the following thing:
1) I have to develop a GUI in which POST is done for 24V, 5V, 3.3V, 2.5V.
*If the check is successful, then the button should become GREEN and the caption on the button should be 'OK'.
*If the check is failed, then the button should become RED and the caption on the button should be 'FAILED'. And when the user click on button, a dialog box should appear telling him what to do next.
2) Please also do tell me how to declare variable (not attached with the controls, but extra variable where I should store values of voltages which are checked.
3) Please tell me how to add C,C++ code in the GUI developed in VC++. I mean, Im developing GUI in VC++ and writing device driver in C, C++
Please help me with this. I'll be highly obliged with this kind act of yours.
Regards
Mirza Faizan
Trainee
Electronics and Radar Development Establishment.
DRDO, Bangalore
Phone:08051305747
Email:mirzafaizan@gmail.com
Mirza Faizan
Trainee
Electronics and Radar Development Establishment.
DRDO, Bangalore
Phone:08051305747
Email:mirzafaizan@gmail.com
|
|
|
|
|
You are working as a Trainee means you are supposed to be given training and guidance on what to be done.I myself feel sad and shame to see someone representing DRDO crying of not knowing how to start
a RADAR supporting software, which has life of many soldires in its(software's) hands.
This is why DRDO of India is called White Elephants. If my knowledge is right Electronics and Radar Development Establishment comes under DRDO.
Don't think I am bashing on you because you have doubt on VC++ but its on the authorities who doesn't seems to assist the trainees like you.
There is no spoon.
mail
|
|
|
|
|
You are right Mr. Suhredayan, but still your comments hasn't solved the problem. It would be much better if we stop criticizing the system and start action!! How easy is it to criticize?? Just some lines of mails....!!! Dont forget its DRDO which has developed missiles like AGNI, TRISHUL, AKASH, PRITHVI and so on... Its DRDO which is developing Avionics and Electronics Counter Measures (ECM) for Fighter Aircrafts. When will we Indians start thinking like developed countries like Americans who say "ASK NOT WHAT YOUR COUNTRY CAN DO FOR YOU, ASK WHAT YOU CAN DO FOR YOUR COUNTRY" By giving plain criticism and NO answer to problem, even YOU stand among those WHO ARE JUST GOOD AT CRITICIZING!!!
Mirza Faizan
Trainee
Electronics and Radar Development Establishment.
DRDO, Bangalore
Phone:08051305747
Email:mirzafaizan@gmail.com
|
|
|
|
|
Hi,
I am trying to use the getprocessesbyname manged extension from the system:diagnosics system.dll
from .NET with C/C++
Do any one knows away to get for a speacific process name how many process currently running and then use it in an unmanage project.
I don't want to define it with complier \clr and then use #pragm unmange and mange,tried it already and the rest of the project didn't compile.
And the only way I had luck of using it by creating a manage project and
using this code:
[C++]
#using <mscorlib.dll>
#using <system.dll>
using namespace System;
using namespace System::Diagnostics;
int main()
{
//process running eyal.exe
Process* localByName[] = Process::GetProcessesByName(S"eyal");
}
I just want to be able to run only one program eyal.exe ,and if try to run more then one will have a message and then terminate the second process.
Thanks
Will be glad to get any help.
|
|
|
|
|
Its not a good idea to check your process is runnung with you process name. It will be a disaster if the system on which your application is running has another process with the same name but from a different vendor.
To accomplish singleinstance ther are different other approaches. One of the famous article is from Joseph M Newcomer
There is no spoon.
mail
|
|
|
|
|
|
I think this will help anybody who had this same question like I did
1. http://support.microsoft.com/kb/q243953/
2. http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=711
And thanks suhredayan;) for the help
Eyal.
|
|
|
|
|
how can i make my application dominates the Operating system interface and allow the operating system to work in background. If the user wants to access the Operating system services, that is through only my Interface.
:
: please help me regarding in this
dfzgdfg
|
|
|
|
|
AFAMK to run an application you require an Operating system. Can you be a little more clear on what you are looking for.
There is no spoon.
mail
|
|
|
|
|
adnan pathan wrote:
how can i make my application dominates the Operating system...
Why would you want/need to? You can increase the process' priority, but to make it dominate over the OS would not be a wise thing to do.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
dear buddies
i am doing project and i have encountered a problem that how can i embed dialog with in another dialog in VC++. second that how can i access process handle table in VC++ that is in the kernal address space.
ok bye
ali ali
|
|
|
|
|
Hi All
I want to execute a batch file from my MFC application.
I'm using ShellExecute for this purpose,but some times my batch file returns error codes based on certain criteria.How do i get these error codes in my MFC application and react to them ?
Thanks & Regards
krishna
|
|
|
|
|
ShellExecute or ShellExecuteEx dosen't provide the option to know the return value of a process spawned .
Instead use CreateProcess() and then call GetExitCodeProcess() with the handle to the process which was returned by CreateProcess().
There is no spoon.
mail
|
|
|
|
|
|
Hi,
I am trying to use a progress bar on a dialog box but the progress bar seems to be creating some problem to the dialog box as the dialog box will fail to load.
the dialog box works fine if i remove the progress bar.
Other than the commctrl header, what are the things needed for the progress bar to work properly???
|
|
|
|
|
how and where are you instantiating your progress bar control?
bryce
---
To paraphrase Fred Dagg - the views expressed in this post are bloody good ones.
--
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
Our kids book :The Snot Goblin
|
|
|
|
|
i found my mistakes already. thanks for your quick responses.;)
logan
|
|
|
|
|
HI,
How to convert to mouse coordinates? Iam using a input device(pen) whose movements are not simulating to that of mouse coodinates. Its coordinates(1200 dpi) are different from mouse.
Any advise is welcome.
Thanx in advance.
rgds,
lokiz
lokiz
|
|
|
|
|
you might have to figure out the ratios between mouse x and y vs the pen
then have a small translator function?
have you googled for other knowledge bases on yur pen?
bryce
---
To paraphrase Fred Dagg - the views expressed in this post are bloody good ones.
--
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
Our kids book :The Snot Goblin
|
|
|
|
|
Hi,
Thanx for reply but bryce i checked their coordinates for a vertical line both look same ,the only diff is the pen generates many coordinates compared to mouses. Got any ways to check the ratios of them ?
waiting for ur reply...
lokiz
|
|
|
|
|
Hi guys,
Just a question with debugging.
What do the memory addresses mean.
0xBAADF00D & 0XDEADBEEF???
As I think i know what BAADF00D which is a Bad or illegal function call at runtime. Now i am not sure if that is right or not.
Any suggestions thoughts FACTS. Welcome
Thanks
..Evil
|
|
|
|
|