|
Hello everyone, i have a dialog based application. First dialog is a password dialog that captures the password of the user, and according to who the user is, the main dialog calls either an manager dialog or a worker dialog. I am having problems with exchaning data from dialog to dialog. For example, a worker comes in, puts in his password and his prompted with the worker dialog, on the worker dialog, the worker has a button to clock in. After the worker clicks the PUNCH IN or PUNCH OUT button, i will be saving the current time, now i would like to share that time with the main dialog, how can i do that?
none
|
|
|
|
|
You can store those values in the appclass.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
or abundently you can type cast,if you need the code email me
noder_obj@hotmail.com
|
|
|
|
|
noder wrote:
abundently you can type cast
Is it another form of transfering data from one dialog to another???
noder wrote:
if you need the code email me
no please i dont want any code that transfers data from one dialog to another by typecasting.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
yes, from one editbox control to another
|
|
|
|
|
Pass a pointer to your main dialog into your worker dialog via the constructor.
You can then call a function in your main dialog (using the pointer) which sets the time variable in the main dialog.
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
Fairly simple, from ur main dialog class u must be calling the dialog class.use the dialog class object to call the value of the variable...
I think that might help
Pavneet
|
|
|
|
|
I want to my program (while running in the background) to send virtual keystrokes, so whatever application is in the foreground will process them. It would be nice if it even worked for programs using DirectInput. Any ideas how this can be done?
|
|
|
|
|
Hi, is there a way to know how many files a given folder/drive contains WITHOUT having to "manually" (and slooowly) count them one by one via FindFirstFile() FindNextFile() etc.?
is there like a GetFileCount(LPCSTR path) API function?
Thanks!
|
|
|
|
|
Ernesto D. wrote:
is there like a GetFileCount(LPCSTR path) API function?
No. You'll have to count them using FindFirstFile() /FindNextFile()
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 then you can call the function you make GetFileCount(LPCSTR path)
and then post it here on codeproject
|
|
|
|
|
void player_move(){<br />
int a = 0;<br />
g: cout << "Enter valid move (1-9):";<br />
cin a;
if(a >= 1 && a <= 9){<br />
if(a == 1 && b1 == " ")<br />
b1 == "O";<br />
if(a == 2 && b2 == " ")<br />
b2 == "O";<br />
if(a == 3 && b3 == " ")<br />
b3 == "O";<br />
if(a == 4 && b4 == " ")<br />
b4 == "O";<br />
if(a == 5 && b5 == " ")<br />
b5 == "O";<br />
if(a == 6 && b6 == " ")<br />
b6 == "O";<br />
if(a == 7 && b7 == " ")<br />
b7 == "O";<br />
if(a == 8 && b8 == " ")<br />
b8 == "O";<br />
if(a == 9 && b9 == " ")<br />
b9 == "O";<br />
}<br />
else<br />
goto g;<br />
}
The line that contains the error gives this "error C2146: syntax error : missing ';' before identifier 'a'" Can anyone help me try to explain why this is happening becuase when I do what the compiler says it compiles fine. please help.
Actual Linux Penguins were harmed in the creation of this message.
|
|
|
|
|
Try cin >> a;
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"
|
|
|
|
|
O jeez I got it thanks, man I don't know what the governments putting into my air!!!;P LOL sry for any inconvienience. I better take a rest lol.;)
Actual Linux Penguins were harmed in the creation of this message.
|
|
|
|
|
is there any class to work with IMAP4 protocol? or perhaps ill have a luck to get sample mail client(IMAP4/SMTP)?
|
|
|
|
|
I'm using a connection string with a driverid of 277 to connect to a dbase database and then I create a table. When I open up the table in VFP 7 the integer column types are somehow converted to NUMERIC and are displayed as doubles or floats. Is this just because I'm opening it in foxpro? I'm specifying 'INTEGER' in my create table statement. the table will eventually have to be viewed from dbase, but I don't have dbase right now and I'm trying to make sure it's being exported right before I go too far with the app. Thanks in advance
If it's broken, I probably did it
bdiamond
|
|
|
|
|
During the design time, how do you set size to an activex control?
Also when you resize for example, mouse drag, how do you maintain the aspect ratio?
Alice
|
|
|
|
|
I would like to know how to add a fax ability to my MFC appclactions using a standerd fax modem.
Shell 21
Dont hate the newby
|
|
|
|
|
Your question is not clear. Any windows consist Printers and Faxes in Setings and you can send you document to printer or fax.
|
|
|
|
|
Sorry the question was badly posted how ever thanks as your reply answers it.
But how could one bypass the fax wizard and control the the sending of the fax from the application its self (eg a bulk fax mail adresses were each document has personalization and sending a fax over an exsisting call)
|
|
|
|
|
You can find more details on following addresses:
http://www.codeproject.com/isapi/aspfax.asp?print=true
http://docs.rinet.ru/VidimyyC/vcu35fi.htm
http://www.naughter.com/cmapi.html
http://www.programmersheaven.com/zone3/cat976/21955.htm
or book:
http://www.cclub.metu.edu.tr/e-kitap/programlama_dilleri/Special%20Edition%20Using%20Visual%20C++%206/ch18.htm
|
|
|
|
|
Hi all;
I have created an application requiring a DSN connection. Being myself new to Visual C++, i could not figure out how to do it "DSN-less". Now, i need to add the DSN programatically since i don't want users to create it themselves.
Can anybody please help me out.
My database is an Access database named: datastructor.mdb
It is found in c:\datastructor and the password is datastructor
Can somebody plz plz help. I badly need very fast
Thank you before hand;
Krugger
|
|
|
|
|
A DSN is just a registry key. Search the registry for a known one and you'll find the location.
Todd Smith
|
|
|
|
|
1. how to know the running & closed application?
2. how to get the chat text?.
3. how to get the machine idle time?
Please explain with example.
|
|
|
|
|
Anonymous wrote:
1. how to know the running & closed application?
Take a look in the task list, they are running applications rest is closed.
Anonymous wrote:
2. how to get the chat text?.
char szString[20] = "Wonderland"
MSN Messenger.
prakashnadar@msn.com
|
|
|
|