|
Not sure what you mean an inside joke??
I asked a question and got answers.
Nothing more than that!
Although some of the answers made me feel like they should of started with hey dumbass...
Anyway no big deal. I'll found a way to this, if not here then somewhere else.
Thanks!
-- modified at 15:30 Wednesday 12th April, 2006
|
|
|
|
|
Sorry Dude. I didn't read it right. Everybody has been super helpful
to me here and I'm kinda a space cadet.
Those links were extremely helpful to me and hopefully the will be to
you.
Everybody, sorry for the confusion. Been a ruff week.
G
|
|
|
|
|
No jokes inferred or implied. I was just indicating that since you replied to me rather than Cougarxr7, he might not benefit from your suggestion.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Sorry Guys... Guess I'm the dumbass.(lol) Wasn't payin attention to detail
I guess.(lol)
Been one of them weeks.
G
|
|
|
|
|
Cougarxr7 wrote: Do I need to start Visual C++ 6.0 first??
Of course.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
I see you modified your first reply!
Thanks David thats what I was looking for!
I did search, look, and never found that!
I'm sure I went right past it.
Again Thanks!
-- modified at 15:31 Wednesday 12th April, 2006
|
|
|
|
|
When I debug a C++ program with break points to pring some values I got: data[i] - -1.#IND0
what "-1.#IND0" mean ?
Thanks
|
|
|
|
|
It means Indefinite, or quiet Not a Number (NaN).
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
hello
is there any solution to convert from Cstring to char* (char array)
other then copying chars one bye one ( var[i]=var2[i]...)
|
|
|
|
|
CString str;
char *arr = str.GetBuffer(#);
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
|
Short and sweet here. Building app with C++/Win32. Deadline is Friday
and I've got this one last little bitty error. Someone Please help...
I can't seem to track it down. Visual Studio doesn't(helpfully) point to
the line of the error. ? ..
ERROR: The instruction @ "0xc91142e" referenced memory @ "0x36303130".
The memory could not be read.
******** Code ******** NREGS IS 75 AND CALIB_START_REG IS 100 *********
case CALIB_WRITE:{
int cntr=0;
while(cntr < NREGS){
Sleep(20);
sWrtCalQuery=BuildWriteQuery((CALIB_START_REG+cntr),
01,
mpCalibrations[calibrate_list[cntr]]);
Port<<swrtcalquery;
port.listener(serialio::notify(hwnd).rx_flag(':'));
="" cntr++;
="" }
="" port<<ssavequery;
="" procflag="DFLT;
" modified="false;
" break;
="" }="" end="" calib_write
***********
="" seems="" to="" run="" through="" the="" while="" loop="" no="" problem.="" all="" of="" my="" values="" are
="" written="" connected="" device="" and="" also="" saved.="" so="" appears="" be
="" fine.="" be="" somewhere="" after="" that="" but="" can't="" figure="" it="" out.??..=""
="" also,="" when="" i="" debug="" go="" line="" by="" line,="" error="" doesn't
="" come="" up.??...=""
="" thank="" you,="" in="" advance.
="" greg..
="" --="" at="" 12:13="" wednesday="" 12th="" april,="" 2006<code="">
|
|
|
|
|
You mean your code works in debug mode and does no in release mode?
If yes, then check with array size and index used.
Typically such errors come in release mode if the memory allocated is not enough.
In debug mode due to extra buffer the problem dont seem to occur.
Check out the size of calibrate_list and max cntr value used.
|
|
|
|
|
TY ArtiGujare. I'll double check those items. I googled the error and
found a posting that directed me to a BB. It indicated that there may be
a problem with my machine. Consequently I compiled, jump drived the .exe
to another machine and ran it. No error...(hmmmm) Gonna test a couple more
machines....
Does running in VS - "start w/o debug" execute the app differently than if
you just ran the .exe??????
G
|
|
|
|
|
Not my machine. Generated the error on 3 out of 4 machines.
G
|
|
|
|
|
Thanx so much!!!!! You narrowed it down to a couple of things and as
a result, I tracked it down. Sometimes it just takes someone saying,
"More than likely the error is this. Double/Triple check it."
I had an infinite while loop going. For some reason, cntr was staying
at 1.
G
|
|
|
|
|
Compile your debug buid with /GZ. It may show the error then.
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke
|
|
|
|
|
|
How to set the text color of a toolbar, in a Win32 SDK project?
Thanks in advance.
<font=sans-serif>|-|3llo Wo|2ld
|
|
|
|
|
Hello
i want to work with a Cfile Object in a console application
what should i do please
beacause when i declare a CFile Object in my console app
in the shows the error that Cfile is an indeclared identifier.
thank you
|
|
|
|
|
CFile is an MFC class.
your console project has to support MFC.
then, include windows.h
|
|
|
|
|
Mahhouraaaaaa wrote: i want to work with a Cfile Object in a console application
what should i do please
Use AppWizard to create a console application that supports MFC. No need to manually include windows.h . This is handled automatically by virtue of it being an MFC application.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
-I am creating a program while having the program GUI developed through Windows Form Application (part of VS2005). I have tried to find a tutorial in c++ but haven't been able to find one. I found many in C# but that doesn't really help in c++. I tried morphing some C# code to try to get the c++ code working, but that didn't work. I am trying do develop a test program so I know how to code Windows Foms Applications before I try to do the GUI on the real project.
-I want to be able to have an action happen when a button is clicked here's the code:
<br />
<br />
#include "stdafx.h"<br />
#include "Form1.h"<br />
<br />
using namespace windowsformsapplicationtest;<br />
<br />
[STAThreadAttribute]<br />
int main(array<System::String ^> ^args)<br />
{<br />
Application::EnableVisualStyles();<br />
Application::SetCompatibleTextRenderingDefault(false); <br />
<br />
Application::Run(gcnew Form1());<br />
<br />
<br />
Form1::button1.Click=Application::Exit();<br />
<br />
return 0;<br />
}
When I try to compile this code I get the following error:
.\windows forms application test.cpp(20) : error C2228: left of '.Click' must have class/struct/union
Ind have tried various variations of Form1::button1.Click and don't have a clue what to try anymore, so hopefully someone can help me! What am I doing wrong? How can I fix it?
|
|
|
|
|
In case anyone else hase the same problem later on, I finally (finally after lots of effort) found this.[^]
|
|
|
|
|
try attaching an event function, which the exit inside of that function.
This is why I recommended a tutorial on "Visual C++" not just on C++ or MFC, etc. You will find in the button properties how to add an event function to the putton press, then fill that function with the actual code to what is needed. It will be easier if you learn what the tools do for you, and if you read the code it helps teach you what you need to write yourself.
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|