|
Dagnabbit - should've expected that one lol!
That's where I started looking - can see where the "Run" button is triggered, but can't see anything that would correspond with the control box clicks - the OnSysMsg handler is a bit...well...empty...
Have tried explicitly adding a Message handler to handle WM_CLOSE msgs (in the dialog class), but still no joy....
Suspect that it might be something to do with the resource file...
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
I belive that resource has nothing much to do with the execution of the code.... humm sometimes these messagemaps works out of any logic.
Remove the button that causing the problem and then try.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
See what you're saying - as it happens, have done a quick hack to get it working - handling the WM_CLOSE, and calling the close function explicitly.....ugly but it works (bit like me ha ha!)
Thanks for the help though....
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
No intention of calling you names (this time).
When you click the [x], you should get (WM_SYSCOMMAND, wParam = SC_CLOSE). You're also getting, courtesy of the framework, WM_COMMAND,IDCANCEL for a dialog box, whereas if you press [enter] you get WM_COMMAND,IDOK.
That any help?
(I know it's late, but I do spend some time away from a computer...)
Steve S
|
|
|
|
|
Dear all,
I am using Visual C to collect data sent through Cypress usb communication every second. I am using the some code like "DeviceIoControl(...,IOCTL_EZUSB_BULK_READ)"...
In my Visual C program, I include a file "ezusbsys.c" written by cypress to simplify my code. This is some of the code in "ezusbsys.c" file:
/* Ezusb_KdPrint (("enter Ezusb_CallUSBD\n"));
pdx = fdo->DeviceExtension;
// issue a synchronous request (see notes above)
KeInitializeEvent(&event, NotificationEvent, FALSE);
irp = IoBuildDeviceIoControlRequest(
IOCTL_INTERNAL_USB_SUBMIT_URB,
pdx->StackDeviceObject,
NULL,
0,
NULL,
0,
TRUE, /* INTERNAL */
&event,
&ioStatus);
// Prepare for calling the USB driver stack
nextStack = IoGetNextIrpStackLocation(irp);
ASSERT(nextStack != NULL);
// Set up the URB ptr to pass to the USB driver stack
nextStack->Parameters.Other
*/
After acquiring a set of data for 1 second, signal processing & classification takes place. Although I can use Visual C to do all these, it is much more easier to use Matlab to do the signal processing & classification. However, I found out that I could not call Windows API function straight from Matlab. May I know waht should I do?
Thanks a lot for reading & thanks 4 ur help
Yours truly,
Einly
Einly
|
|
|
|
|
PNF files (the Precompiled INF files that Windows creates upon installation) are heavily encrypted. Does anyone know how to decrypt them so I can analyse the contents?
Is there a C++ method/function or a decryption executable I can use?
|
|
|
|
|
I'm working a fairly simple project. What I need help with is checking the combo box against the .mdb file to get whats in field2 of that specific part. I don't quite know how to even compare the combo box and .mdb file. I can call the file and output the first part of it but thats about it. Thank you for your help and time.
Sincerely
David "Ice"Berg
quake3b@yahoo.com
P.S. Sorry if I don't understand right away I've taught my self how to program.
|
|
|
|
|
you can query the data from the table
"SELECT FILED2 FROM TABLE_XYZ"
and then look at the value returned in the recordset object. depending on the value , you can set the ComboBox
|
|
|
|
|
Sweet Thank you for your help.
|
|
|
|
|
I am working with owner drawn menus in MFC. I noticed that for some wierd reason, the top level items will not be measured correctly, unless a separator is located somewhere in a menu. Nothing seems to be wrong with my DrawItem or MeasureItem functions. Anyone know if this is a documented bug or not?
|
|
|
|
|
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)?
|
|
|
|