I'm not sure we're on the same wavelength here, but I've isolated the problem a bit more. Basically, I have a group of tabs (File, Options, OS_Attitude, and two that aren't important) such that the...
Type: Posts; User: LowlyIntern
I'm not sure we're on the same wavelength here, but I've isolated the problem a bit more. Basically, I have a group of tabs (File, Options, OS_Attitude, and two that aren't important) such that the...
If I understand you correctly, wouldn't that only work if the data and the controls are in the same dialog?
Hello everyone,
I'm writing an MFC application and I need help with the GUI. So basically, I have some values that are stored as defaults to the registry and whenever the program is run/"Reset...
Got it, I was breaking a thread that I was supposed to keep going potentially forever. Thanks for your help, though! More clear answer here:
...
Hey guys, thanks for all of your help and all, but one of my co-workers figured it out and it's all good now. The error resided in the code
UINT C_RS_422_Port::Send_Crypto_Key(int key)
{...
"The following breakpoint was hit:
When '0x00BF64A0' changes (4 bytes) in process 'RS_SIMULATOR.exe'"
How can the application be changing it?! And only that one, too! The first 3 PortThreads...
I've been trying to, but I don't know how to set data break points to trigger when something (a HANDLE in this case) changes. In it's stead I've been trying other things like having the function name...
I don't see how they wouldn't seeing as how it's a local object, it's declared in the function, and is only used once.
Whoops, sorry. I accidentally put in StartGPSPortThread, but I've editted the post to include StartCryptoPortThread.
Yeah, I agree, but I'm not the first one to get my hands on this code and I have to do what's already been done only change it slightly. So I've been copying and pasting a lot of code and that musta...
UINT C_Control::StartCryptoPortThread( LPVOID pParam )
{
char* buffer;
int size = 0;
C_RS_422_Port* pObject = ( C_RS_422_Port*)pParam;
if (pObject == NULL )
return 1; // if...
But, what I posted in #3 is what I'm doing...
Similar how? As in the same functions, just updated? Or are there other functions required?
If I understand correctly, it seems Salem and Hunter2 are asking the same basic question right now, and the answer is yes,
>>UINT C_Control::StartCryptoPortThread( LPVOID pParam )
is declared...
Also, since the problem has been narrowed down to and the original "odd declaration" seems to be connected to whether there were breakpoints at those locations are during debugging, I've posted a new...
To Hunter2,
Yes, I've checked the thread creation and I get valid values similar too other PortThreads that work fine.
PortThread[3] doesn't change between the constructor to...
Hello,
I've been have some trouble lately with a CWinThread. Here's my original declaration:
PortThread[3]= AfxBeginThread(StartCryptoPortThread,...
PortThread[3]= AfxBeginThread(StartCryptoPortThread, &Port[3],THREAD_PRIORITY_NORMAL,0,CREATE_SUSPENDED);
That is being defined in the constructor of the Port[] instances. And yes, PortNumber is...
Oh, now I see the drop down box, yeah, I was using Debug, not Release.
Okay, that's what I figured, but how do I distinguish between the two when compiling? All I've been doing is hitting F5 or the Play button next to "Debug."
I'm not quite sure what the difference is between the two, the problem is I can't step into the StartCryptoPortThread function from the declaration and when i put a breakpoint in the function itself,...
It won't let me get to pObject in the debugger. I don't think thats the problem though, the pre-existing code that I'm trying to replicate and expand upon seems to handle that part just fine.
Yeah, I tried rebuilding and different optimizations and neither worked.
PortThread[3]= AfxBeginThread(StartCryptoPortThread, &Port[3],THREAD_PRIORITY_NORMAL,0,CREATE_SUSPENDED);
UINT...
Hello everyone, I've been running into some problems writing code for my boss and I was wondering if you could help me. You see, I have a function that is called after clicking a button on a GUI....
Hello, I 've been working on some code that requires me to output a stream of byte through a COM port. Everything works fine until I have to output a value that corresponds to the byte "11." In that...